New submission from mcflick181 <[email protected]>:

=====================
Summary :
=====================
Output movie after sound resampling has a wrong duration and the sound is played
in slow motion (but video is ok).


=====================
Samples :
=====================
I upload everything in
ftp://upload.mplayerhq.hu/MPlayer/incoming/slow_sound_after_sound_resampling/

sample_before_resampling.avi (Sample file)
example_after_resampling.avi (Example of bogus file after resampling)
readme.txt (More or less a copy of this ticket)


=====================
Sample details & software versions
=====================
$ ffmpeg -i sample_before_resampling.avi
FFmpeg version git-e499e3d, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-libmp3lame --enable-libx264 --enable-libxvid
--enable-libfaac --enable-pthreads --enable-libvorbis --enable-gpl 
--enable-nonfree
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.30. 2 / 52.30. 2
  libavformat   52.34. 0 / 52.34. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
  built on Jun 12 2009 15:49:01, gcc: 4.3.2
[NULL @ 0x1103650]Invalid and inefficient vfw-avi packed B frames detected

Seems stream 0 codec frame rate differs from container frame rate: 29.98
(65535/2186) -> 29.97 (30000/1001)
Input #0, avi, from 'sample_before_resampling.avi':
  Duration: 00:00:06.77, start: 0.000000, bitrate: 3825 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 720x480 [PAR 1:1 DAR 3:2], 29.97 tbr,
29.97 tbn, 29.98 tbc
    Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 192 kb/s
At least one output file must be specified


$ ldd /usr/local/bin/ffmpeg
        linux-vdso.so.1 =>  (0x00007fff2bdff000)
        libz.so.1 => /usr/lib/libz.so.1 (0x00007fd323954000)
        libm.so.6 => /lib/libm.so.6 (0x00007fd3236d1000)
        libfaac.so.0 => /usr/local/lib/libfaac.so.0 (0x00007fd3234bf000)
        libmp3lame.so.0 => /usr/local/lib/libmp3lame.so.0 (0x00007fd323239000)
        libvorbisenc.so.2 => /usr/local/lib/libvorbisenc.so.2 
(0x00007fd322e5f000)
        libvorbis.so.0 => /usr/local/lib/libvorbis.so.0 (0x00007fd322c2e000)
        libx264.so.67 => /usr/local/lib/libx264.so.67 (0x00007fd322979000)
        libpthread.so.0 => /lib/libpthread.so.0 (0x00007fd32275d000)
        libc.so.6 => /lib/libc.so.6 (0x00007fd32240a000)
        libogg.so.0 => /usr/local/lib/libogg.so.0 (0x00007fd322205000)
        /lib64/ld-linux-x86-64.so.2 (0x00007fd323b6b000)


$ uname -a
Linux ********** 2.6.27.10-grsec-xxxx-grs-ipv4-64 #5 SMP Wed Apr 1 13:10:38 UTC
2009 x86_64 GNU/Linux


$ cat /etc/debian_version
5.0.1

$ cat /proc/cpuinfo | grep "model name"
model name      : Intel(R) Xeon(R) CPU           X3360  @ 2.83GHz
model name      : Intel(R) Xeon(R) CPU           X3360  @ 2.83GHz
model name      : Intel(R) Xeon(R) CPU           X3360  @ 2.83GHz
model name      : Intel(R) Xeon(R) CPU           X3360  @ 2.83GHz

BTW I use lame-398 and faac-1.28 compiled from sources.

=====================
How to reproduce
=====================

Just one of these commands :

ffmpeg -i sample_before_resampling.avi -f avi -vcodec copy -acodec libfaac
test_slow_1.avi
ffmpeg -i sample_before_resampling.avi -f avi -vcodec copy -acodec libmp3lame
test_slow_2.avi

I tried a variety of formats (avi,flv,mp4) and codecs, but it always bugs.

$ ffmpeg -i slow_sound_after_sound_resampling.avi 2>&1 | grep Duration
  Duration: 00:00:06.77, start: 0.000000, bitrate: 3825 kb/s
  
$ ffmpeg -i test_slow_1.avi 2>&1 | grep Duration
  Duration: 00:00:13.24, start: 0.000000, bitrate: 1908 kb/s
  
$ ffmpeg -i test_slow_2.avi 2>&1 | grep Duration
  Duration: 00:00:13.36, start: 0.000000, bitrate: 1911 kb/s


=====================
Apologies
=====================
Please accept my apologies for the kind of sample I provide you...
Thank you to consider it like any other sample.

----------
messages: 5955
priority: normal
status: new
substatus: new
title: Slow sound after sound resampling and wrong duration
type: bug

_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1181>
_____________________________________________________

Reply via email to