[FFmpeg-trac] #137(avformat:open): Encoding image only movie failure

FFmpeg trac at avcodec.org
Mon May 16 16:10:08 CEST 2011


#137: Encoding image only movie failure
----------------------------------+-----------------------
Reporter:  jogga                  |       Owner:  michael
    Type:  defect                 |      Status:  open
Priority:  normal                 |   Component:  avformat
 Version:  git-master             |  Resolution:
Keywords:  encoding, png, ffmpeg  |  Blocked By:
Blocking:                         |  Reproduced:  1
Analyzed:  0                      |
----------------------------------+-----------------------

Comment (by jogga):

 Now I have compiled a version that can encode the movie correctly by
 enabling the AVFMT_VARIABLE_FPS flags for the mov and mp4 muxers.

 I still can't get the movie overlay to work as expected. When I'm running
 a command like:

 ffmpeg -y -i /Users/jogga/Movies/skiing.m4v -acodec copy -s 640x360
 -vcodec libx264 -vpre slow -vpre ipod640 -crf 22 -threads 0 -vf
 "movie=/Users/jogga/Movies/skiing_subtitles.mov:f=mov,
 pad=640:360:0:286:0x00000000[subtitles];[in][subtitles]
 overlay=0:0:1[out]" /Users/jogga/Desktop/Slaskmappen/skiing_subtitled.m4v

 it still skips the empty samples at the beginning of the
 skiing_subtitles.mov file and everything gets out of sync.

 This is the output from the above command:

 ffmpeg version git-N-29957-g85eedcf, Copyright (c) 2000-2011 the FFmpeg
 developers
   built on May 16 2011 15:37:05 with clang 2.0 (tags/Apple/clang-139)
   configuration: --arch=x86_64 --cc=clang --disable-debug --disable-shared
 --enable-static --enable-libmp3lame --enable-libx264 --enable-libxvid
 --enable-libvpx --enable-libtheora --enable-libvorbis --disable-ffplay
 --disable-ffserver --enable-gpl --enable-swscale --enable-avfilter
 --enable-filter=movie
   libavutil    51.  2. 1 / 51.  2. 1
   libavcodec   53.  5. 0 / 53.  5. 0
   libavformat  53.  1. 0 / 53.  1. 0
   libavdevice  53.  0. 0 / 53.  0. 0
   libavfilter   2.  5. 0 /  2.  5. 0
   libswscale    0. 14. 0 /  0. 14. 0
   libpostproc  51.  2. 0 / 51.  2. 0

 Seems stream 1 codec frame rate differs from container frame rate: 5000.00
 (5000/1) -> 25.00 (25/1)
 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/jogga/Movies/skiing.m4v':
   Metadata:
     major_brand     : M4VP
     minor_version   : 1
     compatible_brands: M4VPM4A mp42isom
     creation_time   : 2011-05-16 14:02:59
     encoder         : CoreMediaAuthoring 706, CoreMedia 484.20, i386
     title           : skiing.mov
   Duration: 00:00:10.03, start: 0.000000, bitrate: 937 kb/s
     Stream #0.0(und): Audio: aac, 44100 Hz, stereo, s16, 128 kb/s
     Metadata:
       creation_time   : 2011-05-16 14:02:59
     Stream #0.1(und): Video: h264 (Constrained Baseline), yuv420p, 480x270
 [PAR 1:1 DAR 16:9], 798 kb/s, 25.02 fps, 25 tbr, 2500 tbn, 5k tbc
     Metadata:
       creation_time   : 2011-05-16 14:02:59
 [buffer @ 0x101302000] w:480 h:270 pixfmt:yuv420p tb:1/1000000 sar:1/1
 [movie @ 0x101300f80] seek_point:0 format_name:mov
 file_name:/Users/jogga/Movies/skiing_subtitles.mov stream_index:0
 [overlay @ 0x101306780] auto-inserting filter 'auto-inserted scaler 0'
 between the filter 'Parsed filter 1 pad' and the filter 'Parsed filter 2
 overlay'
 [scale @ 0x101304b80] w:480 h:270 fmt:yuv420p -> w:640 h:360 fmt:yuv420p
 flags:0xa0000004
 [pad @ 0x101306560] w:640 h:74 -> w:640 h:360 x:0 y:286
 color:0x00000000[rgba]
 [scale @ 0x101306da0] w:640 h:360 fmt:bgra -> w:640 h:360 fmt:yuva420p
 flags:0xa0000004
 [overlay @ 0x101306780] main w:640 h:360 fmt:yuv420p overlay x:0 y:0 w:640
 h:360 fmt:yuva420p
 [overlay @ 0x101306780] main_tb:1/1000000 overlay_tb:1/600 -> tb:1/3000000
 exact:1
 [libx264 @ 0x101801800] using SAR=1/1
 [libx264 @ 0x101801800] using cpu capabilities: MMX2 SSE2Fast SSSE3
 FastShuffle SSE4.2
 [libx264 @ 0x101801800] profile Constrained Baseline, level 3.0
 [libx264 @ 0x101801800] 264 - core 115 r1937 aa21558 - H.264/MPEG-4 AVC
 codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options:
 cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=umh subme=8 psy=1
 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0
 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6
 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=25
 scenecut=40 intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=22.0
 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 vbv_maxrate=10000 vbv_bufsize=10000
 crf_max=0.0 nal_hrd=none ip_ratio=1.41 aq=1:1.00
 Output #0, ipod, to
 '/Users/jogga/Desktop/Slaskmappen/skiing_subtitled.m4v':
   Metadata:
     major_brand     : M4VP
     minor_version   : 1
     compatible_brands: M4VPM4A mp42isom
     creation_time   : 2011-05-16 14:02:59
     title           : skiing.mov
     encoder         : Lavf53.1.0
     Stream #0.0(und): Video: libx264, yuv420p, 640x360 [PAR 1:1 DAR 16:9],
 q=0-69, 200 kb/s, 25 tbn, 25 tbc
     Metadata:
       creation_time   : 2011-05-16 14:02:59
     Stream #0.1(und): Audio: aac, 44100 Hz, stereo, 128 kb/s
     Metadata:
       creation_time   : 2011-05-16 14:02:59
 Stream mapping:
   Stream #0.1 -> #0.0
   Stream #0.0 -> #0.1
 Press [q] to stop, [?] for help
 frame=  250 fps= 66 q=-1.0 Lsize=    1632kB time=10.00
 bitrate=1336.7kbits/s
 video:1467kB audio:158kB global headers:0kB muxing overhead 0.403333%
 frame I:10    Avg QP:18.48  size: 14530
 [libx264 @ 0x101801800] frame P:240   Avg QP:23.91  size:  5652
 [libx264 @ 0x101801800] mb I  I16..4: 46.0%  0.0% 54.0%
 [libx264 @ 0x101801800] mb P  I16..4:  7.2%  0.0%  5.2%  P16..4: 42.5%
 18.6%  5.0%  0.0%  0.0%    skip:21.5%
 [libx264 @ 0x101801800] coded y,uvDC,uvAC intra: 39.4% 25.0% 2.6% inter:
 30.5% 17.0% 0.0%
 [libx264 @ 0x101801800] i16 v,h,dc,p: 49% 24% 12% 14%
 [libx264 @ 0x101801800] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 17% 11%  9% 11%
 10% 12%  7% 10%
 [libx264 @ 0x101801800] i8c dc,h,v,p: 75% 12% 10%  3%
 [libx264 @ 0x101801800] kb/s:1201.48

 What could be wrong now?

-- 
Ticket URL: <https://avcodec.org/trac/ffmpeg/ticket/137#comment:12>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list