[FFmpeg-trac] #1677(FFmpeg:closed): x264 encoding with overlay fails ( moov atom not found)
FFmpeg
trac at avcodec.org
Fri Feb 22 01:39:01 CET 2013
#1677: x264 encoding with overlay fails ( moov atom not found)
------------------------------------+----------------------------------
Reporter: houbahop69 | Owner:
Type: defect | Status: closed
Priority: normal | Component: FFmpeg
Version: 0.11.1 | Resolution: fixed
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+----------------------------------
Changes (by cehoyos):
* resolution: needs_more_info => fixed
* component: undetermined => FFmpeg
Comment:
I was finally able to reproduce this problem, fixed in 2fc354f
{{{
$ ffmpeg -i tests/lena.pnm -s 128x128 logo.png
}}}
{{{
$ ffmpeg -y -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -t 5 -pass 1
-an -vcodec mpeg4 -f mov /dev/null -t 5 -pass 1 -an -f ogg /dev/null
ffmpeg version N-42203-g7beeea8 Copyright (c) 2000-2012 the FFmpeg
developers
built on Feb 22 2013 01:22:51 with gcc 4.7.1 20120723 [gcc-4_7-branch
revision 189773]
configuration: --enable-libtheora
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 32.100 / 54. 32.100
libavformat 54. 14.100 / 54. 14.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 3. 0.101 / 3. 0.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x33b8160] max_analyze_duration 5000000 reached
at 5000998
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fate-
suite/svq3/Vertical400kbit.sorenson3.mov':
Metadata:
creation_time : 2001-03-20 16:17:18
title : Vertical Online SV3 Demo
title-eng : Vertical Online SV3 Demo
artist : Logan Kelsey
artist-eng : Logan Kelsey
copyright : © Vertical Online 2001
copyright-eng : © Vertical Online 2001
encoder : Sorenson Video 3
encoder-eng : Sorenson Video 3
Duration: 00:00:43.57, start: 0.000000, bitrate: 580 kb/s
Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 320x240,
391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc
Metadata:
creation_time : 2001-03-20 16:17:18
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz,
mono, s16, 176 kb/s
Metadata:
creation_time : 2001-03-20 16:17:18
handler_name : Apple Alias Data Handler
[graph 0 input from stream 0:0 @ 0x33daca0] w:320 h:240 pixfmt:yuvj420p
tb:1/600 fr:30/1 sar:0/1 sws_param:flags=2
[output stream 0:0 @ 0x33b4020] No opaque field provided
[auto-inserted scaler 0 @ 0x33b42e0] w:320 h:240 fmt:yuvj420p sar:0/1 ->
w:320 h:240 fmt:yuv420p sar:0/1 flags:0x4
[graph 1 input from stream 0:0 @ 0x34111c0] w:320 h:240 pixfmt:yuvj420p
tb:1/600 fr:30/1 sar:0/1 sws_param:flags=2
[output stream 1:0 @ 0x349d100] No opaque field provided
[auto-inserted scaler 0 @ 0x349d060] w:320 h:240 fmt:yuvj420p sar:0/1 ->
w:320 h:240 fmt:yuv420p sar:0/1 flags:0x4
Output #0, mov, to '/dev/null':
Metadata:
encoder-eng : Sorenson Video 3
title : Vertical Online SV3 Demo
title-eng : Vertical Online SV3 Demo
artist : Logan Kelsey
artist-eng : Logan Kelsey
copyright : © Vertical Online 2001
copyright-eng : © Vertical Online 2001
encoder : Lavf54.14.100
Stream #0:0(eng): Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 320x240,
q=2-31, pass 1, 200 kb/s, 30 tbn, 30 tbc
Metadata:
creation_time : 2001-03-20 16:17:18
handler_name : Apple Alias Data Handler
Output #1, ogg, to '/dev/null':
Metadata:
encoder-eng : Sorenson Video 3
title : Vertical Online SV3 Demo
title-eng : Vertical Online SV3 Demo
artist : Logan Kelsey
artist-eng : Logan Kelsey
copyright : © Vertical Online 2001
copyright-eng : © Vertical Online 2001
encoder : Lavf54.14.100
Stream #1:0(eng): Video: theora, yuv420p, 320x240, q=2-31, pass 1, 200
kb/s, 30 tbn, 30 tbc
Metadata:
creation_time : 2001-03-20 16:17:18
handler_name : Apple Alias Data Handler
Stream mapping:
Stream #0:0 -> #0:0 (svq3 -> mpeg4)
Stream #0:0 -> #1:0 (svq3 -> libtheora)
Press [q] to stop, [?] for help
frame= 150 fps=0.0 q=13.3 Lq=0.0 size= 0kB time=00:00:05.00
bitrate= 0.0kbits/s
video:214kB audio:0kB subtitle:0 global headers:3kB muxing overhead
-100.000000%
}}}
{{{
$ ffmpeg -y -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -i logo.png
-t 5 -pass 2 -an -vcodec mpeg4 test.mov -t 5 -pass 2 -an -filter_complex
[0:0][1:0]overlay test.ogv
ffmpeg version N-42203-g7beeea8 Copyright (c) 2000-2012 the FFmpeg
developers
built on Feb 22 2013 01:22:51 with gcc 4.7.1 20120723 [gcc-4_7-branch
revision 189773]
configuration: --enable-libtheora
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 32.100 / 54. 32.100
libavformat 54. 14.100 / 54. 14.100
libavdevice 54. 0.100 / 54. 0.100
libavfilter 3. 0.101 / 3. 0.101
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x2b49160] max_analyze_duration 5000000 reached
at 5000998
Guessed Channel Layout for Input Stream #0.1 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fate-
suite/svq3/Vertical400kbit.sorenson3.mov':
Metadata:
creation_time : 2001-03-20 16:17:18
title : Vertical Online SV3 Demo
title-eng : Vertical Online SV3 Demo
artist : Logan Kelsey
artist-eng : Logan Kelsey
copyright : © Vertical Online 2001
copyright-eng : © Vertical Online 2001
encoder : Sorenson Video 3
encoder-eng : Sorenson Video 3
Duration: 00:00:43.57, start: 0.000000, bitrate: 580 kb/s
Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 320x240,
391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc
Metadata:
creation_time : 2001-03-20 16:17:18
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz,
mono, s16, 176 kb/s
Metadata:
creation_time : 2001-03-20 16:17:18
handler_name : Apple Alias Data Handler
Input #1, image2, from 'logo.png':
Duration: 00:00:00.04, start: 0.000000, bitrate: N/A
Stream #1:0: Video: png, rgb24, 128x128, 25 tbr, 25 tbn, 25 tbc
[graph 0 input from stream 0:0 @ 0x2b6bf60] w:320 h:240 pixfmt:yuvj420p
tb:1/600 fr:30/1 sar:0/1 sws_param:flags=2
[graph 0 input from stream 1:0 @ 0x2b46fa0] w:128 h:128 pixfmt:rgb24
tb:1/25 fr:25/1 sar:0/1 sws_param:flags=2
-t does not work with -filter_complex (yet).
[output stream 1:0 @ 0x2b6c300] No opaque field provided
[auto-inserted scaler 0 @ 0x2b6be20] w:320 h:240 fmt:yuvj420p sar:0/1 ->
w:320 h:240 fmt:yuv420p sar:0/1 flags:0x2
[auto-inserted scaler 1 @ 0x2b451e0] w:128 h:128 fmt:rgb24 sar:0/1 ->
w:128 h:128 fmt:yuva420p sar:0/1 flags:0x2
[graph 1 input from stream 0:0 @ 0x2c55440] w:320 h:240 pixfmt:yuvj420p
tb:1/600 fr:30/1 sar:0/1 sws_param:flags=2
[output stream 0:0 @ 0x2c56460] No opaque field provided
[auto-inserted scaler 0 @ 0x2c56b20] w:320 h:240 fmt:yuvj420p sar:0/1 ->
w:320 h:240 fmt:yuv420p sar:0/1 flags:0x4
Output #0, mov, to 'test.mov':
Metadata:
encoder-eng : Sorenson Video 3
title : Vertical Online SV3 Demo
title-eng : Vertical Online SV3 Demo
artist : Logan Kelsey
artist-eng : Logan Kelsey
copyright : © Vertical Online 2001
copyright-eng : © Vertical Online 2001
encoder : Lavf54.14.100
Stream #0:0(eng): Video: mpeg4 (mp4v / 0x7634706D), yuv420p, 320x240,
q=2-31, pass 2, 200 kb/s, 30 tbn, 30 tbc
Metadata:
creation_time : 2001-03-20 16:17:18
handler_name : Apple Alias Data Handler
Output #1, ogg, to 'test.ogv':
Metadata:
encoder-eng : Sorenson Video 3
title : Vertical Online SV3 Demo
title-eng : Vertical Online SV3 Demo
artist : Logan Kelsey
artist-eng : Logan Kelsey
copyright : © Vertical Online 2001
copyright-eng : © Vertical Online 2001
encoder : Lavf54.14.100
Stream #1:0: Video: theora, yuv420p, 320x240, q=2-31, pass 2, 200
kb/s, 30 tbn, 30 tbc
Stream mapping:
Stream #0:0 (svq3) -> overlay:main (graph 0)
Stream #1:0 (png) -> overlay:overlay (graph 0)
Stream #0:0 -> #0:0 (svq3 -> mpeg4)
overlay (graph 0) -> Stream #1:0 (libtheora)
Press [q] to stop, [?] for help
theora_encode_YUVin failed (encoder is not ready or is finished) [-10]ate=
166.2kbits/s
Video encoding failed
}}}
When an encoding (or decoding) error occurs while muxing mov, current
FFmpeg still fails to write the moov atom (see for example ticket #1918),
I don't know if this is a bug / can be changed.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1677#comment:9>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list