[FFmpeg-user] Converting from Avid DNxHD files results in black or white pictures only
Werner Robitza
werner.robitza at gmail.com
Tue Feb 7 11:28:33 CET 2012
I have DNxHD encoded source files, from two different creators. I'm
unable to decode either of them, regardless of the output codec I use
in FFmpeg. Transcoding them with other applications such as Adobe
Media Encoder or QuickTime itself is not a problem though.
For example, just trying with a very simple command line.
----------------------------------------------------------------------
aeneas:sami werner$ ffmpeg -i 01-sami-ep01-var01-de.mov -t 5 ~/Desktop/out.mp4
ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
built on Feb 7 2012 10:12:12 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/0.10
--enable-shared --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/gcc-4.2
--enable-libx264 --enable-libfaac --enable-libmp3lame --enable-librtmp
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
--enable-libopencore-amrnb --enable-libopencore-amrwb --disable-ffplay
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10180e800] multiple fourcc not supported
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '01-sami-ep01-var01-de.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2010-07-20 08:41:46
Duration: 00:03:09.20, start: 0.000000, bitrate: 1020724 kb/s
Stream #0:0(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p,
1920x1080, 1019185 kb/s, 25 fps, 25 tbr, 25k tbn, 25k tbc
Metadata:
creation_time : 2010-07-20 08:41:46
handler_name : ?Apple Alias-Datensteuerung
Stream #0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz,
2 channels, s16, 1536 kb/s
Metadata:
creation_time : 2010-07-20 08:41:46
handler_name : ?Apple Alias-Datensteuerung
Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
Metadata:
creation_time : 2010-07-20 08:45:09
handler_name : ?Apple Alias-Datensteuerung
timecode : 01:00:00:00
File '/Users/cacmtv/Desktop/out.mp4' already exists. Overwrite ? [y/N] y
w:1920 h:1080 pixfmt:yuv422p tb:1/1000000 sar:0/1 sws_param:
[libx264 @ 0x10184a800] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x10184a800] profile High 4:2:2, level 4.0, 4:2:2 8-bit
[libx264 @ 0x10184a800] 264 - core 120 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2011 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
Output #0, mp4, to '/Users/cacmtv/Desktop/out.mp4':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2010-07-20 08:41:46
encoder : Lavf53.31.100
Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv422p,
1920x1080, q=-1--1, 25 tbn, 25 tbc
Metadata:
creation_time : 2010-07-20 08:41:46
handler_name : ?Apple Alias-Datensteuerung
Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 48000 Hz, 2
channels, s16, 128 kb/s
Metadata:
creation_time : 2010-07-20 08:41:46
handler_name : ?Apple Alias-Datensteuerung
Stream mapping:
Stream #0:0 -> #0:0 (dnxhd -> libx264)
Stream #0:1 -> #0:1 (pcm_s16be -> libfaac)
Press [q] to stop, [?] for help
[dnxhd @ 0x10a881e00] Multiple ff_thread_finish_setup() calls
[dnxhd @ 0x10a882400] Multiple ff_thread_finish_setup() calls
[dnxhd @ 0x10a884a00] Multiple ff_thread_finish_setup() calls
[dnxhd @ 0x10a881e00] Multiple ff_thread_finish_setup() calls
[dnxhd @ 0x10a882400] Multiple ff_thread_finish_setup() calls
[dnxhd @ 0x10a884a00] Multiple ff_thread_finish_setup() calls
[dnxhd @ 0x10a881e00] Multiple ff_thread_finish_setup() calls
[dnxhd @ 0x10a882400] Multiple ff_thread_finish_setup() calls
[dnxhd @ 0x10a884a00] Multiple ff_thread_finish_setup() calls
[dnxhd @ 0x10a881e00] Multiple ff_thread_finish_setup() calls
Multiple ff_thread_finish_setup() callskB time=00:00:00.00 bitrate=
0.0kbits/s
[dnxhd @ 0x10a884a00] Multiple ff_thread_finish_setup() calls
[dnxhd @ 0x10a881e00] Multiple ff_thread_finish_setup() calls
frame= 10 fps= 10 q=32766.0 Lsize= 57kB time=00:00:00.32
bitrate=1470.1kbits/s
video:2kB audio:53kB global headers:0kB muxing overhead 4.297623%
[libx264 @ 0x10184a800] frame I:1 Avg QP: 7.00 size: 424
[libx264 @ 0x10184a800] frame P:3 Avg QP:31.00 size: 72
[libx264 @ 0x10184a800] frame B:6 Avg QP:31.00 size: 67
[libx264 @ 0x10184a800] consecutive B-frames: 20.0% 0.0% 0.0% 80.0%
[libx264 @ 0x10184a800] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x10184a800] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0%
0.0% 0.0% 0.0% 0.0% skip:100.0%
[libx264 @ 0x10184a800] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0%
0.0% 0.0% direct: 0.0% skip:100.0%
[libx264 @ 0x10184a800] 8x8 transform intra:0.0%
[libx264 @ 0x10184a800] coded y,uvDC,uvAC intra: 0.0% 0.0% 0.0% inter:
0.0% 0.0% 0.0%
[libx264 @ 0x10184a800] i16 v,h,dc,p: 99% 0% 1% 0%
[libx264 @ 0x10184a800] i8c dc,h,v,p: 100% 0% 0% 0%
[libx264 @ 0x10184a800] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x10184a800] kb/s:20.88
----------------------------------------------------------------------
The output file is available here:
http://dl.dropbox.com/u/24074822/dnxhd/out.mp4
It just shows a black picture in every player I've tried, from VLC to QuickTime.
The same happens with another DNxHD file as source.
Note that I have omitted all "Multiple ff_thread_finish_setup() calls"
messages in the following output.
----------------------------------------------------------------------
aeneas:echo-tv-source werner$ ffmpeg -i GUT_DEUTSCH.mov -t 5 ~/Desktop/out-2.mp4
ffmpeg version 0.10 Copyright (c) 2000-2012 the FFmpeg developers
built on Feb 7 2012 10:12:12 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
configuration: --prefix=/usr/local/Cellar/ffmpeg/0.10
--enable-shared --enable-gpl --enable-version3 --enable-nonfree
--enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/gcc-4.2
--enable-libx264 --enable-libfaac --enable-libmp3lame --enable-librtmp
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
--enable-libopencore-amrnb --enable-libopencore-amrwb --disable-ffplay
libavutil 51. 34.101 / 51. 34.101
libavcodec 53. 60.100 / 53. 60.100
libavformat 53. 31.100 / 53. 31.100
libavdevice 53. 4.100 / 53. 4.100
libavfilter 2. 60.100 / 2. 60.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 6.100 / 0. 6.100
libpostproc 52. 0.100 / 52. 0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x10180e800] Timecode frame rate not supported
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GUT_DEUTSCH.mov':
Metadata:
creation_time : 2010-09-09 15:45:16
Duration: 00:07:06.60, start: 0.000000, bitrate: 122659 kb/s
Stream #0:0(eng): Audio: pcm_s16be (twos / 0x736F7774), 44100 Hz,
2 channels, s16, 1411 kb/s
Metadata:
creation_time : 2010-09-09 15:45:16
handler_name : ?Apple Alias-Datensteuerung
Stream #0:1(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p,
1280x720, 121241 kb/s, 50 fps, 50 tbr, 50k tbn, 50k tbc
Metadata:
creation_time : 2010-09-09 15:45:16
handler_name : ?Apple Alias-Datensteuerung
Stream #0:2(eng): Data: none (tmcd / 0x64636D74)
Metadata:
creation_time : 2010-09-09 15:59:52
handler_name : ?Apple Alias-Datensteuerung
Stream #0:3(eng): Audio: pcm_s16be (twos / 0x736F7774), 44100 Hz,
2 channels, s16, 1411 kb/s
Metadata:
creation_time : 2010-09-09 15:45:16
handler_name : ?Apple Alias-Datensteuerung
Stream #0:4(eng): Video: dnxhd (AVdn / 0x6E645641), yuv422p,
1280x720, 121241 kb/s, 50 fps, 50 tbr, 50k tbn, 50k tbc
Metadata:
creation_time : 2010-09-09 15:45:16
handler_name : ?Apple Alias-Datensteuerung
[buffer @ 0x1017150a0] w:1280 h:720 pixfmt:yuv422p tb:1/1000000
sar:0/1 sws_param:
[libx264 @ 0x1018ab200] using cpu capabilities: MMX2 SSE2Fast SSSE3
FastShuffle SSE4.1 Cache64
[libx264 @ 0x1018ab200] profile High 4:2:2, level 3.2, 4:2:2 8-bit
[libx264 @ 0x1018ab200] 264 - core 120 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2011 - http://www.videolan.org/x264.html - options:
cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1
psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1
8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2
threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1
b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250
keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf
mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40
aq=1:1.00
Output #0, mp4, to '/Users/cacmtv/Desktop/out-2.mp4':
Metadata:
creation_time : 2010-09-09 15:45:16
encoder : Lavf53.31.100
Stream #0:0(eng): Video: h264 (![0][0][0] / 0x0021), yuv422p,
1280x720, q=-1--1, 50 tbn, 50 tbc
Metadata:
creation_time : 2010-09-09 15:45:16
handler_name : ?Apple Alias-Datensteuerung
Stream #0:1(eng): Audio: aac (@[0][0][0] / 0x0040), 44100 Hz, 2
channels, s16, 128 kb/s
Metadata:
creation_time : 2010-09-09 15:45:16
handler_name : ?Apple Alias-Datensteuerung
Stream mapping:
Stream #0:1 -> #0:0 (dnxhd -> libx264)
Stream #0:0 -> #0:1 (pcm_s16be -> libfaac)
Press [q] to stop, [?] for help
video:886kB audio:60kB global headers:0kB muxing overhead 0.793350%
[libx264 @ 0x1018ab200] frame I:1 Avg QP:25.20 size: 46659
[libx264 @ 0x1018ab200] frame P:66 Avg QP:25.31 size: 9010
[libx264 @ 0x1018ab200] frame B:183 Avg QP:28.13 size: 1451
[libx264 @ 0x1018ab200] consecutive B-frames: 0.8% 4.8% 0.0% 94.4%
[libx264 @ 0x1018ab200] mb I I16..4: 29.1% 62.9% 8.0%
[libx264 @ 0x1018ab200] mb P I16..4: 1.2% 1.3% 0.3% P16..4: 37.9%
7.0% 4.8% 0.0% 0.0% skip:47.6%
[libx264 @ 0x1018ab200] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 25.9%
0.3% 0.0% direct: 0.2% skip:73.5% L0:38.9% L1:60.0% BI: 1.0%
[libx264 @ 0x1018ab200] 8x8 transform intra:52.6% inter:80.2%
[libx264 @ 0x1018ab200] coded y,uvDC,uvAC intra: 43.3% 52.8% 13.6%
inter: 4.6% 13.5% 0.1%
[libx264 @ 0x1018ab200] i16 v,h,dc,p: 29% 23% 6% 41%
[libx264 @ 0x1018ab200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 13% 36% 5%
5% 6% 6% 9% 5%
[libx264 @ 0x1018ab200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27% 17% 14% 6%
8% 10% 6% 9% 4%
[libx264 @ 0x1018ab200] i8c dc,h,v,p: 61% 16% 20% 4%
[libx264 @ 0x1018ab200] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1018ab200] ref P L0: 55.6% 14.0% 21.7% 8.7%
[libx264 @ 0x1018ab200] ref B L0: 91.4% 7.0% 1.5%
[libx264 @ 0x1018ab200] ref B L1: 95.4% 4.6%
[libx264 @ 0x1018ab200] kb/s:1451.04
----------------------------------------------------------------------
What could be wrong here? I've never been able to properly decode
these source files, although all players show them without problems
(e.g. QuickTime, VLC, Premiere Pro).
I might be able to supply the source files, but they're rather big (~25GB).
Best regards
Werner Robitza
More information about the ffmpeg-user
mailing list