[FFmpeg-trac] #1677(undetermined:new): x264 encoding with overlay fails ( moov atom not found)
FFmpeg
trac at avcodec.org
Fri Aug 24 17:34:50 CEST 2012
#1677: x264 encoding with overlay fails ( moov atom not found)
--------------------------------------+----------------------------------
Reporter: houbahop69 | Type: defect
Status: new | Priority: normal
Component: undetermined | Version: 0.11.1
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
--------------------------------------+----------------------------------
Summary of the bug:I am using ffmpeg to re-encode old realmedia videos
(rv10). I have writtent a script that produces in the same run mp4 (x264
aac) ogg and webm files. I have taken the opportunity to add a logo on the
files.
Everything works perfectly for ogv and webm but the mp4 file cannot be
played with this error:
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xdb61a0] moov atom not found
TagLib: MP4: Invalid atom size
[0xdd1c88] mp4 demux error: MP4 plugin discarded (no moov,foov,moof box)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xdd2280] moov atom not found
[0xdd1c88] avformat demux error: Could not open : Unknown error 1094995529
I have found a trick : if I add at least 1 ms to the "duration parameter"
value the encoding works perfectly. There is also no problem if I remove
the overlay. The following copy paste may have errors...
How to reproduce:
{{{
ffmpeg -y -ss 00:00:00.00 -v warning -threads 0 -i test.rm -i
logoWhiteSmall.png -t 00:00:30.01 -s 768x576 -aspect 4:3 -r 25.0 -metadata
title=Pathogenicity and genomic variability of HHV-6 -metadata
author=Henri Agut -metadata copyright=ENS Lyon -metadata:s:a language=fra
-vcodec libx264 -vpre medium -async 1 -pass 1 -b:v 700k -bt:v 50k -maxrate
750k -bufsize 1500k -map 0:0 -acodec libfaac -ac 2 -ar 48000 -b:a 64k -map
0:1 test.mp4 -t 00:00:30.01 -s 768x576 -aspect 4:3 -r 25.0 -metadata
title=Pathogenicity and genomic variability of HHV-6 -metadata
author=Henri Agut -metadata copyright=Lyon -metadata:s:a language=fra
-vcodec libvpx -vpre ipod -async 1 -pass 1 -b:v 700k -bt:v 50k -maxrate
750k -bufsize 1500k -map 0:0 -acodec libvorbis -ac 2 -ar 48000 -b:a 64k
-map 0:1 test.webm -t 00:00:30.01 -s 768x576 -aspect 4:3 -r 25.0 -metadata
title=Pathogenicity and genomic variability of HHV-6 -metadata
author=Henri Agut -metadata copyright=Lyon -metadata:s:a language=fra
-vcodec libtheora -vpre ipod -async 1 -pass 1 -b:v 700k -bt:v 50k -maxrate
750k -bufsize 1500k -map 0:0 -acodec libvorbis -ac 2 -ar 48000 -b:a 64k
-map 0:1 test.ogv
ffmpeg -y -ss 00:00:00.00 -v warning -threads 0 -i test.rm -i
logoWhiteSmall.png -t 00:00:30.01 -filter_complex [0:v[1:v]overlay=0
:main_h-overlay_h -s 768x576 -aspect 4:3 -r 25.0 -metadata
title=Pathogenicity and genomic variability of HHV-6 -metadata
author=Henri Agut -metadata copyright=ENS Lyon -metadata:s:a language=fra
-vcodec libx264 -vpre medium -async 1 -pass 2 -b:v 700k -bt:v 50k -maxrate
750k -bufsize 1500k -map 0:0 -acodec libfaac -ac 2 -ar 48000 -b:a 64k -map
0:1 -map_channel 0.1.0 -map_channel 0.1.0 test.mp4 -t 00:00:30.01
-filter_complex [0:v][1:v]overlay=0:main_h-overlay_h -s 768x576 -aspect
4:3 -r 25.0 -metadata title=Pathogenicity and genomic variability of HHV-6
metadata author=Henri Agut -metadata copyright=ENS Lyon metadata:s:a
language=fra -vcodec libvpx -vpre ipod -async 1 -pass 2 -b:v 700k -bt:v
50k -maxrate 750k -bufsize 1500k -map 0:0 -acodec libvorbis -ac 2 -ar
48000 -b:a 64k -map 0:1 -map_channel 0.1.0 -map_channel 0.1.0 test.webm -t
00:00:30.01 -filter_complex [0:v][1:v]overlay=0:main_h-overlay_h -s
768x576 -aspect 4:3 -r 25.0 -metadata title=Pathogenicity and genomic
variability of HHV-6 -metadata author=Henri Agut -metadata copyright=Lyon
-metadata:s:a language=fra -vcodec libtheora -vpre ipod -async 1 -pass 2
-b:v 700k -bt:v 50k -maxrate 750k -bufsize 1500k -map 0:0 -acodec
libvorbis -ac 2 -ar 48000 -b:a 64k -map 0:1 -map_channel 0.1.0
-map_channel 0.1.0 test.ogv
}}}
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1677>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list