← Back to team overview

linux-traipu team mailing list archive

[Bug 857761] Re: Loosing audio sync when editing mjpg material

 

Now I finally got some time to look into this again. The files play fine
with melt from the command line, and I can seek frame by frame with h
and l keys. But when I play after seeking, the sound is out of sync.
Trying multiple times back and forth I notice that this is not
consistent. Jump to start of file, hit play. Out of sync for a second or
so, then sync. Seek forwards, play, sync. Seek backwards, play, starts
out of sync, then sync.


FFplay is more flakey. First time I tried the file started a little slow, then got up to speed after a second or so,  but the playback was a wee bit choppy. Jumping with arrow keys worked once or twice, then ffplay froze and I had to kill it from another terminal. Tried again, and the file played at about half speed without sound for several seconds, then speeded up, still a bit choppy and without sound. Third time I tried, started too slowly, then too fast, but quickly got the right speed, played in sync with sound, but a bit choppy. Jumping with arrow keys does not seem accurate. Playback is more choppy afterwards.

Melt was used with the attached file. But since this is a 10 second
file, and Ffplay jumps 10 seconds with the arrow keys, the description
is from another file from the same camera. I tried to play the example
file too, and it behaves more or less in the same way.

Here is the output from ffmpeg -i MVI_0482.AVI:
FFmpeg version 0.6.2-4:0.6.2-1ubuntu1.1, Copyright (c) 2000-2010 the Libav developers
  built on Sep 16 2011 17:00:39 with gcc 4.5.2
  configuration: --extra-version=4:0.6.2-1ubuntu1.1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  WARNING: library configuration mismatch
  libavutil   configuration: --extra-version=4:0.6.2-1ubuntu2+medibuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libdc1394 --enable-shared --disable-static
  libavcodec  configuration: --extra-version=4:0.6.2-1ubuntu2+medibuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libdc1394 --enable-shared --disable-static
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
Input #0, avi, from 'MVI_0482.AVI':
  Metadata:
    ISFT            : CanonMVI02
  Duration: 00:00:09.99, start: 0.000000, bitrate: 15072 kb/s
    Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc
    Stream #0.1: Audio: pcm_u8, 11024 Hz, 1 channels, u8, 88 kb/s


The FAQ tells me to attach a file of max 10 MB. This will only be about 5 seconds, and not enough to see the problems properly, so I'll give you a larger one.

** Attachment added: "MVI_0482.AVI"
   https://bugs.launchpad.net/openshot/+bug/857761/+attachment/2547997/+files/MVI_0482.AVI

-- 
You received this bug notification because you are a member of UBUNTU -
AL - BR, which is subscribed to OpenShot Video Editor.
https://bugs.launchpad.net/bugs/857761

Title:
  Loosing audio sync when editing mjpg material

Status in OpenShot Video Editor:
  New

Bug description:
  I use movie files from my stills camera, that are motion-jpg in .avi container, 640x480@30fps. Embedded audio is uncompressed 8 bit PCM (mono) sampled at 11024 Hz.
  If I put a clip on the timeline, cut it in two and place the last part first, then the audio looses sync in the part that is moved from the end to the beginning. 

  Linux Mint 11.04 and earlier versions
  OpenShot 1.4 and earlier versions from PPA

To manage notifications about this bug go to:
https://bugs.launchpad.net/openshot/+bug/857761/+subscriptions


References