[FFmpeg-user] Overlay not working in combo with audio params
Bouke (VideoToolShed)
bouke at videotoolshed.com
Thu Mar 6 17:03:15 CET 2014
Having trouble overlaying a PNG
Everything works as advertised, untill i try to set audio codec params.
What am i missing?
ffmpeg started on 2014-03-06 at 16:56:12
Report written to "ffmpeg-20140306-165612.log"
Command line:
ffmpeg.exe -i "G:\\ToEncode\\Vrede.mov" -i "g:\\test.png" -filter_complex
overlay -pix_fmt yuv420p -preset slow -crf 18 -vcodec libx264 -crf 18 -map
1:0 -map 0:0 -acodec pcm_s16le -aspect 16:9 -report "G:\\test2.mp4"
ffmpeg version N-60959-g669043d Copyright (c) 2000-2014 the FFmpeg
developers
built on Feb 27 2014 22:07:15 with gcc 4.8.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth
--enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm
--enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp
--enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora
--enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265
--enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 66.100 / 52. 66.100
libavcodec 55. 52.102 / 55. 52.102
libavformat 55. 33.100 / 55. 33.100
libavdevice 55. 10.100 / 55. 10.100
libavfilter 4. 2.100 / 4. 2.100
libswscale 2. 5.101 / 2. 5.101
libswresample 0. 18.100 / 0. 18.100
libpostproc 52. 3.100 / 52. 3.100
Splitting the commandline.
Reading option '-i' ... matched as input file with argument
'G:\ToEncode\Vrede.mov'.
Reading option '-i' ... matched as input file with argument 'g:\test.png'.
Reading option '-filter_complex' ... matched as option 'filter_complex'
(create a complex filtergraph) with argument 'overlay'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format)
with argument 'yuv420p'.
Reading option '-preset' ... matched as AVOption 'preset' with argument
'slow'.
Reading option '-crf' ... matched as AVOption 'crf' with argument '18'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec
('copy' to copy stream)) with argument 'libx264'.
Reading option '-crf' ... matched as AVOption 'crf' with argument '18'.
Reading option '-map' ... matched as option 'map' (set input stream mapping)
with argument '1:0'.
Reading option '-map' ... matched as option 'map' (set input stream mapping)
with argument '0:0'.
Reading option '-acodec' ... matched as option 'acodec' (force audio codec
('copy' to copy stream)) with argument 'pcm_s16le'.
Reading option '-aspect' ... matched as option 'aspect' (set aspect ratio
(4:3, 16:9 or 1.3333, 1.7777)) with argument '16:9'.
Reading option '-report' ... matched as option 'report' (generate a report)
with argument '1'.
Reading option 'G:\test2.mp4' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option filter_complex (create a complex filtergraph) with argument
overlay.
Applying option report (generate a report) with argument 1.
Successfully parsed a group of options.
Parsing a group of options: input file G:\ToEncode\Vrede.mov.
Successfully parsed a group of options.
Opening an input file: G:\ToEncode\Vrede.mov.
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000296f1a0] Format mov,mp4,m4a,3gp,3g2,mj2
probed with size=2048 and score=95
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000296f1a0] Found duplicated MOOV Atom.
Skipped it
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000296f1a0] Before
avformat_find_stream_info() pos: 8492248068 bytes read:229396 seeks:4
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000296f1a0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 000000000296f1a0] After
avformat_find_stream_info() pos: 661296 bytes read:628500 seeks:5 frames:25
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'G:\ToEncode\Vrede.mov':
Metadata:
creation_time : 2014-03-06 11:57:25
timecode : 00:00:00:00
Duration: 00:18:12.96, start: 0.000000, bitrate: 62159 kb/s
Stream #0:0(eng), 24, 1/48000: Audio: pcm_s16le (sowt / 0x74776F73),
48000 Hz, stereo, s16, 1536 kb/s (default)
Metadata:
creation_time : 2014-03-06 11:57:25
handler_name : Apple Alias Data Handler
Stream #0:1(eng), 1, 1/25000: Video: dnxhd (AVdn / 0x6E645641), yuv422p,
1280x720, 60620 kb/s, 25 fps, 25 tbr, 25k tbn, 25k tbc (default)
Metadata:
creation_time : 2014-03-06 11:57:25
handler_name : Apple Alias Data Handler
Stream #0:2(eng), 0, 1/600: Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2014-03-06 12:12:27
handler_name : Apple Alias Data Handler
timecode : 00:00:00:00
Successfully opened the file.
Parsing a group of options: input file g:\test.png.
Successfully parsed a group of options.
Opening an input file: g:\test.png.
[AVIOContext @ 0000000002a10240] Statistics: 4587 bytes read, 0 seeks
Input #1, image2, from 'g:\test.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #1:0, 1, 1/25: Video: png, rgba, 180x174 [SAR 2835:2835 DAR
30:29], 25 tbr, 25 tbn, 25 tbc
Successfully opened the file.
Parsing a group of options: output file G:\test2.mp4.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option vcodec (force video codec ('copy' to copy stream)) with
argument libx264.
Applying option map (set input stream mapping) with argument 1:0.
Applying option map (set input stream mapping) with argument 0:0.
Applying option acodec (force audio codec ('copy' to copy stream)) with
argument pcm_s16le.
Applying option aspect (set aspect ratio (4:3, 16:9 or 1.3333, 1.7777)) with
argument 16:9.
Successfully parsed a group of options.
Opening an output file: G:\test2.mp4.
detected 12 logical cores
[graph 0 input from stream 0:1 @ 0000000002a34c40] Setting 'video_size' to
value '1280x720'
[graph 0 input from stream 0:1 @ 0000000002a34c40] Setting 'pix_fmt' to
value '4'
[graph 0 input from stream 0:1 @ 0000000002a34c40] Setting 'time_base' to
value '1/25000'
[graph 0 input from stream 0:1 @ 0000000002a34c40] Setting 'pixel_aspect' to
value '0/1'
[graph 0 input from stream 0:1 @ 0000000002a34c40] Setting 'sws_param' to
value 'flags=2'
[graph 0 input from stream 0:1 @ 0000000002a34c40] Setting 'frame_rate' to
value '25/1'
[graph 0 input from stream 0:1 @ 0000000002a34c40] w:1280 h:720
pixfmt:yuv422p tb:1/25000 fr:25/1 sar:0/1 sws_param:flags=2
[graph 0 input from stream 1:0 @ 0000000002a343a0] Setting 'video_size' to
value '180x174'
[graph 0 input from stream 1:0 @ 0000000002a343a0] Setting 'pix_fmt' to
value '28'
[graph 0 input from stream 1:0 @ 0000000002a343a0] Setting 'time_base' to
value '1/25'
[graph 0 input from stream 1:0 @ 0000000002a343a0] Setting 'pixel_aspect' to
value '2835/2835'
[graph 0 input from stream 1:0 @ 0000000002a343a0] Setting 'sws_param' to
value 'flags=2'
[graph 0 input from stream 1:0 @ 0000000002a343a0] Setting 'frame_rate' to
value '25/1'
[graph 0 input from stream 1:0 @ 0000000002a343a0] w:180 h:174 pixfmt:rgba
tb:1/25 fr:25/1 sar:2835/2835 sws_param:flags=2
[format @ 0000000002a50880] compat: called with args=[yuv420p]
[format @ 0000000002a50880] Setting 'pix_fmts' to value 'yuv420p'
Successfully opened the file.
[auto-inserted scaler 0 @ 000000000296fec0] w:iw h:ih flags:'bilinear'
interl:0
[Parsed_overlay_0 @ 0000000002a356a0] auto-inserting filter 'auto-inserted
scaler 0' between the filter 'graph 0 input from stream 0:1' and the filter
'Parsed_overlay_0'
[auto-inserted scaler 1 @ 0000000002969d20] w:iw h:ih flags:'bilinear'
interl:0
[Parsed_overlay_0 @ 0000000002a356a0] auto-inserting filter 'auto-inserted
scaler 1' between the filter 'graph 0 input from stream 1:0' and the filter
'Parsed_overlay_0'
[AVFilterGraph @ 0000000002a14840] query_formats: 5 queried, 2 merged, 2
already done, 0 delayed
[auto-inserted scaler 0 @ 000000000296fec0] w:1280 h:720 fmt:yuv422p
sar:0/1 -> w:1280 h:720 fmt:yuv420p sar:0/1 flags:0x2
[auto-inserted scaler 1 @ 0000000002969d20] w:180 h:174 fmt:rgba
sar:2835/2835 -> w:180 h:174 fmt:yuva420p sar:1/1 flags:0x2
[Parsed_overlay_0 @ 0000000002a356a0] main w:1280 h:720 fmt:yuv420p overlay
w:180 h:174 fmt:yuva420p eof_action:repeat
[Parsed_overlay_0 @ 0000000002a356a0] [framesync @ 0000000002a4e068]
Selected 1/25000 time base
[Parsed_overlay_0 @ 0000000002a356a0] [framesync @ 0000000002a4e068] Sync
level 2
[graph 1 input from stream 0:0 @ 0000000002969de0] Setting 'time_base' to
value '1/48000'
[graph 1 input from stream 0:0 @ 0000000002969de0] Setting 'sample_rate' to
value '48000'
[graph 1 input from stream 0:0 @ 0000000002969de0] Setting 'sample_fmt' to
value 's16'
[graph 1 input from stream 0:0 @ 0000000002969de0] Setting 'channel_layout'
to value '0x3'
[graph 1 input from stream 0:0 @ 0000000002969de0] tb:1/48000 samplefmt:s16
samplerate:48000 chlayout:0x3
[audio format for output stream 0:1 @ 000000000507af80] Setting
'sample_fmts' to value 's16'
[AVFilterGraph @ 0000000002a15380] query_formats: 4 queried, 9 merged, 0
already done, 0 delayed
[libx264 @ 0000000002a4fe60] using mv_range_thread = 24
[libx264 @ 0000000002a4fe60] using SAR=1/1
[libx264 @ 0000000002a4fe60] using cpu capabilities: MMX2 SSE2Fast SSSE3
SSE4.2 AVX
[libx264 @ 0000000002a4fe60] profile High, level 3.1
[libx264 @ 0000000002a4fe60] 264 - core 142 r2389 956c8d8 - H.264/MPEG-4 AVC
codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options:
cabac=1 ref=5 deblock=1:0:0 analyse=0x3:0x113 me=umh subme=8 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=18
lookahead_threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0
bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=2 b_bias=0
direct=3 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=50 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0
qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[mp4 @ 0000000002a4f8a0] Could not find tag for codec pcm_s16le in stream
#1, codec not currently supported in container
Output #0, mp4, to 'G:\test2.mp4':
Metadata:
timecode : 00:00:00:00
encoder : Lavf55.33.100
Stream #0:0, 0, 1/12800: Video: h264 (libx264) ([33][0][0][0] / 0x0021),
yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 12800 tbn, 25 tbc (default)
Stream #0:1(eng), 0, 1/90000: Audio: pcm_s16le, 48000 Hz, stereo, s16,
1536 kb/s (default)
Metadata:
creation_time : 2014-03-06 11:57:25
handler_name : Apple Alias Data Handler
Stream mapping:
Stream #0:1 (dnxhd) -> overlay:main (graph 0)
Stream #1:0 (png) -> overlay:overlay (graph 0)
overlay (graph 0) -> Stream #0:0 (libx264)
Stream #0:0 -> #0:1 (pcm_s16le -> pcm_s16le)
Could not write header for output file #0 (incorrect codec parameters ?):
Error number -22 occurred
[AVIOContext @ 0000000002a59aa0] Statistics: 0 seeks, 1 writeouts
[AVIOContext @ 000000000296a000] Statistics: 628500 bytes read, 5 seeks
Bouke
VideoToolShed
van Oldenbarneveltstraat 33
6512 AS NIJMEGEN, the Netherlands
+31 24 3553311
More information about the ffmpeg-user
mailing list