[FFmpeg-trac] #1435(undetermined:new): FFmpeg 0.11.1 simple reproducable synchronisation bug with work around - non imput specific

FFmpeg trac at avcodec.org
Mon Jun 11 14:34:20 CEST 2012


#1435: FFmpeg 0.11.1 simple reproducable synchronisation bug with work around -
non imput specific
-------------------------------------+-------------------------------------
             Reporter:  feelart      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
              Version:  0.11.1       |  undetermined
             Keywords:  avi desync   |               Resolution:
             Blocking:               |               Blocked By:
Analyzed by developer:  0            |  Reproduced by developer:  0
-------------------------------------+-------------------------------------

Comment (by feelart):

 Well, you're right for mp4 they are MD5 equivalent, not for the rest.

 Is NOT equivalent:

 ffmpeg -i input.mp4 -acodec copy -vcodec mpeg4 output.<extension different
 than mp4, especially avi>
 vs
 ffmpeg -i input.mp4 -f mp4 -acodec copy -vcodec mpeg4 output.<extension
 different than mp4, especially avi>

 Similarly:

 ffmpeg -i input.mp4 -acodec libmp3lame -vcodec copy output.<extension
 different than mp4, especially avi>
 vs
 ffmpeg -i input.mp4 -f mp4 -acodec libmp3lame -vcodec copy
 output.<extension different than mp4, especially avi>


 Observations:
 1/ with the option -acodec copy, the output file is de-synchronized except
 when one adds the "-f mp4"

 2/ Generally, KMplayer finishes playing and at the end throws an "unfound
 member" error. So I suspected so missing close() instruction at encoding.

 3/ With avi there is a seriously flaw:
 ffmpeg -i "2012-03 03Praha.mp4" -f mp4 -acodec libmp3lame -vcodec copy
 mp3_vcopy_f_AVI.avi
 generates a synchronised file of 533124Kb

 vs

 ffmpeg -i "2012-03 03Praha.mp4" -acodec libmp3lame  -vcodec copy
 mp3_vcopyAVI.avi
 generates a file of 87804Kb (look at the preceding !)

 Now, when played with KMPlayer it immediately throws an error "This AVI
 file was not prepared for sequential reading, the alternative 'Avi
 Splitter' will now ..." and if I simply close KMplayer, WinXP hangs... I
 had to tried several times to check, better killing.

 After list of test instructions and list of outputs.

 ffmpeg -i "2012-03 03Praha.mp4" -acodec copy -vcodec mpeg4 -q 20
 acopy_mpeg4AVI.avi

 ffmpeg -i "2012-03 03Praha.mp4" -f mp4 -acodec copy -vcodec mpeg4 -q 20
 acopy_mpeg4_f_AVI.avi

 ffmpeg -i "2012-03 03Praha.mp4" -acodec copy -vcodec mpeg4 -q 20
 acopy_mpeg4MP4.mp4

 ffmpeg -i "2012-03 03Praha.mp4" -f mp4 -acodec copy -vcodec mpeg4 -q 20
 acopy_mpeg4_f_MP4.mp4


 ffmpeg -i "2012-03 03Praha.mp4" -acodec copy -vcodec mpeg4 -q 20
 acopy_mpeg4MKV.mkv

 ffmpeg -i "2012-03 03Praha.mp4" -f mp4 -acodec copy -vcodec mpeg4 -q 20
 acopy_mpeg4_f_MKV.mkv

 *************   test a change of audio output as MP3
 **********************

 ffmpeg -i "2012-03 03Praha.mp4" -acodec libmp3lame  -vcodec mpeg4
 mp3_mpeg4AVI.avi

 ffmpeg -i "2012-03 03Praha.mp4" -f mp4 -acodec libmp3lame -vcodec mpeg4
 mp3_mpeg4_f_AVI.avi

 ffmpeg -i "2012-03 03Praha.mp4" -acodec libmp3lame  -vcodec copy
 mp3_vcopyAVI.avi

 ffmpeg -i "2012-03 03Praha.mp4" -f mp4 -acodec libmp3lame -vcodec copy
 mp3_vcopy_f_AVI.avi


 ffmpeg -i "2012-03 03Praha.mp4" -acodec libmp3lame  -vcodec copy
 mp3_vcopyMP4.mp4

 ffmpeg -i "2012-03 03Praha.mp4" -f mp4 -acodec libmp3lame -vcodec copy
 mp3_vcopy_f_MP4.mp4


 ffmpeg -i "2012-03 03Praha.mp4" -acodec libmp3lame  -vcodec copy
 mp3_vcopyMKV.mkv

 ffmpeg -i "2012-03 03Praha.mp4" -f mp4 -acodec libmp3lame -vcodec copy
 mp3_vcopy_f_MKV.mkv

 ffmpeg -i "2012-03 03Praha.mp4" -f mp4 -acodec libmp3lame -vcodec mpeg4
 mp3_mpeg4_f_MP4.mp4



 Now the directory outputs:
  Répertoire de C:\Documents and Settings\Angel\Mes
 documents\Downloads\v11_1\_avi

 11/06/2012  14:02    <REP>          .
 11/06/2012  14:02    <REP>          ..
 11/06/2012  14:00                78 acopy_mpeg4AVI-error.txt
 11/06/2012  13:25         5 292 870 acopy_mpeg4AVI.avi
 11/06/2012  13:26         5 242 086 acopy_mpeg4_f_AVI.avi
 11/06/2012  14:02                60 mp3_mpeg4AVI-error.txt
 11/06/2012  13:34         4 103 906 mp3_mpeg4AVI.avi
 11/06/2012  13:35         4 036 226 mp3_mpeg4_f_AVI.avi
 11/06/2012  13:58                98 mp3_vcopyAVI-error.txt
 11/06/2012  13:36        89 910 782 mp3_vcopyAVI.avi
 11/06/2012  13:37        54 592 770 mp3_vcopy_f_AVI.avi
                9 fichier(s)      163 178 876 octets

  Répertoire de C:\Documents and Settings\Angel\Mes
 documents\Downloads\v11_1\_MKV

 11/06/2012  14:05    <REP>          .
 11/06/2012  14:05    <REP>          ..
 11/06/2012  14:04                35 acopy_mpeg4MKV-error.txt
 11/06/2012  13:27         5 236 324 acopy_mpeg4MKV.mkv
 11/06/2012  13:28         5 242 086 acopy_mpeg4_f_MKV.mkv
 11/06/2012  14:05                33 mp3_vcopyMKV-error.txt
 11/06/2012  13:44        54 588 000 mp3_vcopyMKV.mkv
 11/06/2012  13:45        54 592 770 mp3_vcopy_f_MKV.mkv
                6 fichier(s)      119 659 248 octets

  Répertoire de C:\Documents and Settings\Angel\Mes
 documents\Downloads\v11_1\_MP4

 11/06/2012  14:12    <REP>          .
 11/06/2012  14:12    <REP>          ..
 11/06/2012  13:22         5 242 086 acopy_mpeg4MP4.mp4
 11/06/2012  13:23         5 242 086 acopy_mpeg4_f_MP4.mp4
 11/06/2012  14:11         4 036 226 mp3_mpeg4_f_MP4.mp4
 11/06/2012  13:42        54 592 770 mp3_vcopyMP4.mp4
 11/06/2012  13:43        54 592 770 mp3_vcopy_f_MP4.mp4
                5 fichier(s)      123 705 938 octets

      Total des fichiers listés :
               20 fichier(s)      406 544 062 octets
               11 Rép(s)  14 083 158 016 octets libres

 C:\Documents and Settings\Angel\Mes documents\Downloads\v11_1>

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/1435#comment:4>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list