[FFmpeg-trac] #5882(undetermined:reopened): Certain x264 videos do not play on Apple decoders (Quicktime/iTunes/iPad)

FFmpeg trac at avcodec.org
Tue Oct 11 01:06:38 EEST 2016


#5882: Certain x264 videos do not play on Apple decoders (Quicktime/iTunes/iPad)
-------------------------------------+-------------------------------------
             Reporter:  Technologov  |                    Owner:
                 Type:  defect       |                   Status:  reopened
             Priority:  important    |                Component:
              Version:  git-master   |  undetermined
             Keywords:  mov          |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by Technologov):

 Actually ffmpeg complains about *.mov too...

 {{{
 alexey at deb9ws:~$ /usr/local/bin/ffmpeg -i /mnt/E/Video-MPEG4-AVC-
 test/Pocahontas2.avi -map 0:0 -b:v 600k -pix_fmt yuv420p -to 00:08:00
 /mnt/E/Video-MPEG4-AVC-test/Pocahontas2.mov
 ffmpeg version N-81947-gc45ba26-1 Copyright (c) 2000-2016 the FFmpeg
 developers
   built with gcc 6.1.1 (Debian 6.1.1-11) 20160802
   configuration: --extra-version=1 --toolchain=hardened
 --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu
 --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping
 --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-
 avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-
 libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-
 libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig
 --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm
 --enable-libmodplug --enable-libmp3lame --enable-libopus --enable-libpulse
 --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-
 libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-
 libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-
 libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-
 libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab
 --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r
 --enable-chromaprint --enable-libopencv --enable-libx264
   libavutil      55. 32.100 / 55. 32.100
   libavcodec     57. 61.100 / 57. 61.100
   libavformat    57. 51.103 / 57. 51.103
   libavdevice    57.  0.102 / 57.  0.102
   libavfilter     6. 63.100 /  6. 63.100
   libavresample   3.  0.  0 /  3.  0.  0
   libswscale      4.  1.100 /  4.  1.100
   libswresample   2.  2.100 /  2.  2.100
   libpostproc    54.  0.100 / 54.  0.100
 Input #0, avi, from '/mnt/E/Video-MPEG4-AVC-test/Pocahontas2.avi':
   Metadata:
     encoder         : VirtualDubMod 1.5.10.2 (build 2542/release)
     title           :
 Pokahontas.2.Puteshestvie.V.Novyj.Mir.1998.DUAL.BDRip.XviD.AC3.-HELLYWOOD
     artist          : Gummy
   Duration: 01:13:09.84, start: 0.000000, bitrate: 2841 kb/s
     Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID /
 0x44495658), yuv420p, 704x400 [SAR 1:1 DAR 44:25], 1930 kb/s, 23.98 fps,
 23.98 tbr, 23.98 tbn, 23.98 tbc
     Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side),
 fltp, 448 kb/s
     Stream #0:2: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, 5.1(side),
 fltp, 448 kb/s
 [libx264 @ 0x1fd3b60] using SAR=1/1
 [libx264 @ 0x1fd3b60] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
 [libx264 @ 0x1fd3b60] profile High, level 3.0
 [libx264 @ 0x1fd3b60] 264 - core 148 r2708 86b7198 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2016 - 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=6
 lookahead_threads=1 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=23
 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=600
 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
 [mov @ 0x1f8cf80] WARNING codec timebase is very high. If duration is too
 long,
 file may not be playable by quicktime. Specify a shorter timebase
 or choose different container.
 Output #0, mov, to '/mnt/E/Video-MPEG4-AVC-test/Pocahontas2.mov':
   Metadata:
     artist          : Gummy
     title           :
 Pokahontas.2.Puteshestvie.V.Novyj.Mir.1998.DUAL.BDRip.XviD.AC3.-HELLYWOOD
     encoder         : Lavf57.51.103
     Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p,
 704x400 [SAR 1:1 DAR 44:25], q=-1--1, 600 kb/s, 23.98 fps, 10000k tbn,
 23.98 tbc
     Metadata:
       encoder         : Lavc57.61.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/600000 buffer size: 0 vbv_delay: -1
 Stream mapping:
   Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
 Press [q] to stop, [?] for help
 FATAL error, file duration too long for timebase, this file will not
 be2.9kbits/s dup=1 drop=0 speed=5.16x
 playable with quicktime. Choose a different timebase or a different
 container format
 frame=11509 fps=123 q=-1.0 Lsize=   38099kB time=00:07:59.89 bitrate=
 650.4kbits/s dup=1 drop=0 speed=5.13x
 video:37969kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 0.342819%
 [libx264 @ 0x1fd3b60] frame I:136   Avg QP:14.88  size: 33303
 [libx264 @ 0x1fd3b60] frame P:3397  Avg QP:19.53  size:  6406
 [libx264 @ 0x1fd3b60] frame B:7976  Avg QP:23.37  size:  1578
 [libx264 @ 0x1fd3b60] consecutive B-frames:  3.7%  6.0% 16.7% 73.5%
 [libx264 @ 0x1fd3b60] mb I  I16..4: 11.4% 72.3% 16.4%
 [libx264 @ 0x1fd3b60] mb P  I16..4:  1.6%  6.3%  2.2%  P16..4: 31.0% 12.6%
 8.5%  0.0%  0.0%    skip:37.9%
 [libx264 @ 0x1fd3b60] mb B  I16..4:  0.1%  0.5%  0.4%  B16..8: 26.4%  3.5%
 1.1%  direct: 1.4%  skip:66.5%  L0:47.7% L1:46.4% BI: 5.9%
 [libx264 @ 0x1fd3b60] final ratefactor: 22.03
 [libx264 @ 0x1fd3b60] 8x8 transform intra:62.7% inter:70.1%
 [libx264 @ 0x1fd3b60] coded y,uvDC,uvAC intra: 60.9% 65.8% 40.5% inter:
 8.6% 10.4% 1.6%
 [libx264 @ 0x1fd3b60] i16 v,h,dc,p: 31% 27% 14% 29%
 [libx264 @ 0x1fd3b60] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 21% 18% 31%  4%  5%
 5%  5%  5%  6%
 [libx264 @ 0x1fd3b60] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 16% 22%  7%  7%
 7%  7%  6%  6%
 [libx264 @ 0x1fd3b60] i8c dc,h,v,p: 54% 21% 20%  5%
 [libx264 @ 0x1fd3b60] Weighted P-Frames: Y:3.6% UV:3.1%
 [libx264 @ 0x1fd3b60] ref P L0: 65.4%  9.4% 17.6%  7.6%  0.1%
 [libx264 @ 0x1fd3b60] ref B L0: 85.6% 11.6%  2.9%
 [libx264 @ 0x1fd3b60] ref B L1: 95.3%  4.7%
 [libx264 @ 0x1fd3b60] kb/s:647.97
 }}}

 It says: "FATAL error, file duration too long for timebase, this file will
 not be
 playable with quicktime. Choose a different timebase or a different
 container format"

 How to fix this issue and what is "timebase" ?

 Thanks in advance,

--
Ticket URL: <https://trac.ffmpeg.org/ticket/5882#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list