[FFmpeg-user] Cropping small portion of input video while rescaling

Kieran O'Leary kieran.oleary at irishfilm.ie
Sat Jul 25 15:36:06 CEST 2015


Hello,

I am working with a 2k full aperture 16mm DPX scan. It has approx 32 pixels of the black perforation area of the film on the top and bottom. I am hoping to transcode everything to 720/576 v210 as I'm working on a DVD project (I'm going to do a lot of work in a NLE after I transcode). I am using 24fps for now as the audio was transferred at 24fps as well. I plan on syncing everything up in an NLE and then convert both to 25fps.
I've tried the following output but it results in a 720 * 560 output. I'd like the black bars to be removed but the output video to be 720*576. I've achieved this in the past with Apple compressor's cropping tool.
Also, is there anything else I'm messing up in general? I'm using square pixels as opposed to the PAL standard, as I can convert at the DVD authoring stage (I hope I'm not making a colossal mistake there as AVID MC 8 seems to just export with square pixels anyhow). The output of the 576p video is really lovely. ffmpeg resizing is brilliant.

full output:

ifi-edit2:~ admin$ /Users/admin/Downloads/SnowLeopard_Lion_Mountain_Lion_Mavericks_Yosemite_24/ffmpeg -start_number 867116 -r 24 -i /Volumes/Stardom/glitch\ tests/untitled\ folder/%06d.dpx -r 24 -vf "scale=720:576, crop=in_w:in_h-32" -c:v v210 /Volumes/Stardom/glitch\ tests/untitled\ folder/ffmpegv210reseiz24cro32pxcrope.mov

ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers

  built with llvm-gcc 4.2.1 (LLVM build 2336.11.00)

  configuration: --prefix=/Volumes/Ramdisk/sw --enable-gpl --enable-pthreads --enable-version3 --enable-libspeex --enable-libvpx --disable-decoder=libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-avfilter --enable-libopencore_amrwb --enable-libopencore_amrnb --enable-filters --enable-libgsm --enable-libvidstab --enable-libx265 --disable-doc --arch=x86_64 --enable-runtime-cpudetect

  libavutil      54. 27.100 / 54. 27.100

  libavcodec     56. 41.100 / 56. 41.100

  libavformat    56. 36.100 / 56. 36.100

  libavdevice    56.  4.100 / 56.  4.100

  libavfilter     5. 16.101 /  5. 16.101

  libswscale      3.  1.101 /  3.  1.101

  libswresample   1.  2.100 /  1.  2.100

  libpostproc    53.  3.100 / 53.  3.100

Input #0, image2, from '/Volumes/Stardom/glitch tests/untitled folder/%06d.dpx':

  Duration: 00:00:11.72, start: 0.000000, bitrate: N/A

    Stream #0:0: Video: dpx, gbrp10le, 2048x1556, 25 tbr, 25 tbn, 25 tbc

Output #0, mov, to '/Volumes/Stardom/glitch tests/untitled folder/ffmpegv210reseiz24cro32pxcrope.mov':

  Metadata:

    encoder         : Lavf56.36.100

    Stream #0:0: Video: v210 (v210 / 0x30313276), yuv422p10le, 720x544, q=2-31, 200 kb/s, 24 fps, 12288 tbn, 24 tbc

    Metadata:

      encoder         : Lavc56.41.100 v210

Stream mapping:

  Stream #0:0 -> #0:0 (dpx (native) -> v210 (native))

Press [q] to stop, [?] for help

frame=    8 fps=0.0 q=0.0 size=    8160kB time=00:00:00.33 bitrate=200541.2kbitsframe=   15 fps= 13 q=0.0 size=   15300kB time=00:00:00.62 bitrate=200540.6kbitsframe=   21 fps= 13 q=0.0 size=   21420kB time=00:00:00.87 bitrate=200540.5kbitsframe=   27 fps= 12 q=0.0 size=   27540kB time=00:00:01.12 bitrate=200540.4kbitsframe=   33 fps= 12 q=0.0 size=   33660kB time=00:00:01.37 bitrate=200540.4kbitsframe=   38 fps= 12 q=0.0 size=   38760kB time=00:00:01.58 bitrate=200540.4kbitsframe=   44 fps= 12 q=0.0 size=   44880kB time=00:00:01.83 bitrate=200540.4kbitsframe=   50 fps= 12 q=0.0 size=   51000kB time=00:00:02.08 bitrate=200540.3kbitsframe=   56 fps= 12 q=0.0 size=   57120kB time=00:00:02.33 bitrate=200540.3kbitsframe=   62 fps= 11 q=0.0 size=   63240kB time=00:00:02.58 bitrate=200540.3kbitsframe=   68 fps= 11 q=0.0 size=   69360kB time=00:00:02.83 bitrate=200540.3kbitsframe=   74 fps= 11 q=0.0 size=   75480kB time=00:00:03.08 bitrate=200540.3kbitsframe=   80 fps= 11 q=0.0 size=   81600kB time=00:00:03.33 bitrate=200540.3kbitsframe=   86 fps= 11 q=0.0 size=   87720kB time=00:00:03.58 bitrate=200540.3kbitsframe=   92 fps= 11 q=0.0 size=   93840kB time=00:00:03.83 bitrate=200540.3kbitsframe=   98 fps= 11 q=0.0 size=   99960kB time=00:00:04.08 bitrate=200540.2kbitsframe=  104 fps= 11 q=0.0 size=  106080kB time=00:00:04.33 bitrate=200540.2kbitsframe=  110 fps= 11 q=0.0 size=  112200kB time=00:00:04.58 bitrate=200540.2kbitsframe=  116 fps= 11 q=0.0 size=  118320kB time=00:00:04.83 bitrate=200540.2kbitsframe=  122 fps= 11 q=0.0 size=  124440kB time=00:00:05.08 bitrate=200540.2kbitsframe=  128 fps= 11 q=0.0 size=  130560kB time=00:00:05.33 bitrate=200540.2kbitsframe=  134 fps= 11 q=0.0 size=  136680kB time=00:00:05.58 bitrate=200540.2kbitsframe=  140 fps= 11 q=0.0 size=  142800kB time=00:00:05.83 bitrate=200540.2kbitsframe=  146 fps= 11 q=0.0 size=  148920kB time=00:00:06.08 bitrate=200540.2kbitsframe=  152 fps= 11 q=0.0 size=  155040kB time=00:00:06.33 bitrate=200540.2kbitsframe=  158 fps= 11 q=0.0 size=  161160kB time=00:00:06.58 bitrate=200540.2kbitsframe=  164 fps= 11 q=0.0 size=  167280kB time=00:00:06.83 bitrate=200540.2kbitsframe=  170 fps= 11 q=0.0 size=  173400kB time=00:00:07.08 bitrate=200540.2kbitsframe=  176 fps= 11 q=0.0 size=  179520kB time=00:00:07.33 bitrate=200540.2kbitsframe=  182 fps= 11 q=0.0 size=  185640kB time=00:00:07.58 bitrate=200540.2kbitsframe=  188 fps= 11 q=0.0 size=  191760kB time=00:00:07.83 bitrate=200540.2kbitsframe=  194 fps= 11 q=0.0 size=  197880kB time=00:00:08.08 bitrate=200540.2kbitsframe=  200 fps= 11 q=0.0 size=  204000kB time=00:00:08.33 bitrate=200540.2kbitsframe=  206 fps= 11 q=0.0 size=  210120kB time=00:00:08.58 bitrate=200540.2kbitsframe=  212 fps= 11 q=0.0 size=  216240kB time=00:00:08.83 bitrate=200540.2kbitsframe=  218 fps= 11 q=0.0 size=  222360kB time=00:00:09.08 bitrate=200540.2kbitsframe=  224 fps= 11 q=0.0 size=  228480kB time=00:00:09.33 bitrate=200540.2kbitsframe=  230 fps= 11 q=0.0 size=  234600kB time=00:00:09.58 bitrate=200540.2kbitsframe=  236 fps= 11 q=0.0 size=  240720kB time=00:00:09.83 bitrate=200540.2kbitsframe=  242 fps= 11 q=0.0 size=  246840kB time=00:00:10.08 bitrate=200540.2kbitsframe=  248 fps= 11 q=0.0 size=  252960kB time=00:00:10.33 bitrate=200540.2kbitsframe=  254 fps= 11 q=0.0 size=  259080kB time=00:00:10.58 bitrate=200540.2kbitsframe=  260 fps= 11 q=0.0 size=  265200kB time=00:00:10.83 bitrate=200540.2kbitsframe=  266 fps= 11 q=0.0 size=  271320kB time=00:00:11.08 bitrate=200540.2kbitsframe=  272 fps= 11 q=0.0 size=  277440kB time=00:00:11.33 bitrate=200540.2kbitsframe=  278 fps= 11 q=0.0 size=  283560kB time=00:00:11.58 bitrate=200540.2kbitsframe=  284 fps= 11 q=0.0 size=  289680kB time=00:00:11.83 bitrate=200540.2kbitsframe=  290 fps= 11 q=0.0 size=  295800kB time=00:00:12.08 bitrate=200540.2kbitsframe=  293 fps= 11 q=0.0 Lsize=  298862kB time=00:00:12.20 bitrate=200541.4kbits/s

video:298860kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000619%




------
This email has been scanned for spam and malware by The Email Laundry.



More information about the ffmpeg-user mailing list