VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    May 2005
    Location
    Far from Heaven
    Search Comp PM
    I'm using latest FFMpeg. My goal is to encode video in x265, sometimes I need to denoise and resize the video.

    I try to resize the video and encode to x265 - works OK. Video is resized
    Code:
    ffmpeg.exe -i d:\Camera\sample1.avi  -vf scale=640:360 -preset medium -c:v libx265 -an -x265-params crf=26 d:\Test\sample1_resized.mkv
    I try to apply denoising without resizing - works OK. I can see the size is little slower than without -filter. So filter is at least doing something.
    Code:
    ffmpeg.exe -i d:\Camera\source1.avi -filter:v hqdn3d=4.0:3.0:6.0:4.5 -preset medium -c:v libx265 -an -x265-params crf=26 d:\Test\sample1_filtered.mkv
    Here I try to resize AND apply filter:
    Code:
    ffmpeg.exe -i d:\Camera\source1.avi -filter:v hqdn3d=4.0:3.0:6.0:4.5 -vf scale=360:200 -preset medium -c:v libx265 -an -x265-params crf=26 d:\Test\sample1_resize_filter.mkv
    Video does gets resized but filter is NOT applied. I can tell this because video is the same bit by bit as the one that is resized with no filtering.

    What am I doing wrong?
    Arguing with an idiot, make sure he isn't doing the same
    Quote Quote  
  2. Use a comma to separate filters in a sequential chain

    In this example, hqdn3d is applied before the scale
    Code:
    -filter:v hqdn3d=4.0:3.0:6.0:4.5,scale=360:200
    Quote Quote  
  3. Originally Posted by junglemike View Post
    What am I doing wrong?
    You not reading FM... https://ffmpeg.org/ffmpeg-filters.html#Filtergraph-syntax-1 side to this there is plenty examples on internet https://trac.ffmpeg.org/wiki/FilteringGuide
    Quote Quote  
  4. Member
    Join Date
    May 2005
    Location
    Far from Heaven
    Search Comp PM
    Thanks! Fixed it.
    Arguing with an idiot, make sure he isn't doing the same
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!