footage converted to XDCAM422 (Mpeg2) becomes darker in quicktime
Hi, I'm converting footage from an AVCHD camera to XDCAM422 for editing in Final Cut using the following command line using very recent SVN: ffmpeg -y -i /Volumes/RobMobMac/jaeger/rohmaterial/avchd/PH1-SD2-00136-1080.MTS -s hd1080 -vcodec mpeg2video -b 50M -minrate 50M -maxrate 50M -bufsize 36408333 -aspect 16:9 -r 25 -pix_fmt yuv422p -bf 2 -dc 10 -flags2 +ivlc+sgop+non_linear_q -qdiff 0.5 -dc 10 -qmin 1 -qmax 12 -lmin '1*QP2LAMBDA' -rc_min_vbv_use 1 -rc_max_vbv_use 1 -g 12 -vtag xd5e -acodec pcm_s24be xdcam422.mov FFmpeg version SVN-r22741, Copyright (c) 2000-2010 the FFmpeg developers built on Mar 31 2010 12:06:18 with gcc 4.2.1 (Apple Inc. build 5646) (dot 1) configuration: --enable-gpl --enable-nonfree libavutil 50.14. 0 / 50.14. 0 libavcodec 52.64. 0 / 52.64. 0 libavformat 52.59. 0 / 52.59. 0 libavdevice 52. 2. 0 / 52. 2. 0 libswscale 0.10. 0 / 0.10. 0 [mpegts @ 0x10100b000]MAX_READ_SIZE:5000000 reached Input #0, mpegts, from '/Volumes/RobMobMac/jaeger/rohmaterial/avchd/PH1-SD2-00136-1080.MTS': Duration: 00:00:59.77, start: 0.371078, bitrate: 10474 kb/s Program 1 Stream #0.0[0x1011]: Video: h264, yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 50 tbc Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s Output #0, mov, to 'xdcam422.mov': Metadata: encoder : Lavf52.59.0 Stream #0.0: Video: mpeg2video, yuv422p, 1920x1080 [PAR 1:1 DAR 16:9], q=1-12, 50000 kb/s, 25 tbn, 25 tbc Stream #0.1: Audio: pcm_s24be, 48000 Hz, stereo, s32, 2304 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding [h264 @ 0x101027e00]missing picture in access unit60 bitrate=52184.2kbits/s frame= 1495 fps= 14 q=1.0 Lsize= 380729kB time=59.76 bitrate=52190.9kbits/s video:363879kB audio:16821kB global headers:0kB muxing overhead 0.007469% The footage appears very dark in Quicktime/FCP, although it looks OK in ffplay (I cannot see a difference in brightness between original and converted footage). I read a few posts in the archives indicating that Quicktime applies some sort of magic gamma correction. Is this what's happening here? Is there anything I can do to tweak this on the command line? I observed two more things which might be worth noting: - if I convert to MJPEG and import into FCP or play in quicktime it doesn't look as dark. - if I export a PNG still frame from the original video it also looks much darker than the same frame played in ffplay Is there anything wrong with ffplay's display of the colors or ffmpeg's conversion? Shall I post this in roundup with sample files? Regards, Robert
participants (1)
-
krueger@signal7.de