Kdenlive   bug tracker Home page

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001102KdenliveUser Interfacepublic2009-08-24 05:122010-08-03 01:06
Reporterx1250 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionRecent git 
Target VersionFixed in Version 
Summary0001102: Audio/Video synch issues. Affects project, clip monitor and rendered files. No issues with melt.
DescriptionI have a Sony camcorder (HDR-UX20) that generates AVCHD files. As my box is not that fast, I must change the AVCHD file to something else. I do that with mencoder:

mencoder $file -o $file.avi -noskip -oac pcm -ovc lavc -lavcopts vcodec=mjpeg:vqscale=1:aspect=16/9 -fps 60000/1001 -ofps 30000/1001 -vf yadif

Resulting files have no audio/video synch issues in any of the players I have tested: vlc, mplayer or totem. Even melt has no issues! In kdenlive (and rendered files), audio falls behind.

My encoded mjpeg files are 30000/1001, and I'm using "DV/DVD Widescreen NTSC" as my project settings.

I have attached my project file and the output of ffmpeg of a source file and the encoded vob file.

Thanks.
Additional InformationAVI SOURCE

$ ffmpeg -i 00000.mts.avi
FFmpeg version SVN-r19667, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-avfilter-lavf
  libavutil 50. 3. 0 / 50. 3. 0
  libavcodec 52.32. 0 / 52.32. 0
  libavformat 52.37. 0 / 52.37. 0
  libavdevice 52. 2. 0 / 52. 2. 0
  libavfilter 0. 5. 0 / 0. 5. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Aug 20 2009 12:27:22, gcc: 4.4.1
Input #0, avi, from '00000.mts.avi':
  Duration: 00:01:07.58, start: 0.000000, bitrate: 50460 kb/s
    Stream #0.0: Video: mjpeg, yuv420p, 1440x1080, PAR 4:3 DAR 16:9, 29.97 tbr, 29.97 tbn, 29.97 tbc
    Stream #0.1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s
At least one output file must be specified

---------------------------------------------------------------------------

ENCODED FILE WITH KDENLIVE

$ ffmpeg -i untitled.vob
FFmpeg version SVN-r19667, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora --enable-libdc1394 --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-avfilter-lavf
  libavutil 50. 3. 0 / 50. 3. 0
  libavcodec 52.32. 0 / 52.32. 0
  libavformat 52.37. 0 / 52.37. 0
  libavdevice 52. 2. 0 / 52. 2. 0
  libavfilter 0. 5. 0 / 0. 5. 0
  libswscale 0. 7. 1 / 0. 7. 1
  libpostproc 51. 2. 0 / 51. 2. 0
  built on Aug 20 2009 12:27:22, gcc: 4.4.1

Seems stream 0 codec frame rate differs from container frame rate: 59.94 (60000/1001) -> 29.97 (30000/1001)
Input #0, mpeg, from 'untitled.vob':
  Duration: 00:25:28.57, start: 0.500000, bitrate: 6273 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480 [PAR 32:27 DAR 16:9], 9000 kb/s, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0.1[0x80]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
At least one output file must be specified
TagsNo tags attached.
Build/Install MethodManual build from SVN
Attached Files? file icon project.kdenlive [^] (139,263 bytes) 2009-08-24 05:12

- Relationships

-  Notes
(0003815)
x1250 (reporter)
2009-08-24 05:55

I made a unexpected discovery. If I save the mencoder encoded mjpeg AVI file with avidemux (copy audio, copy video, no rencoding), kdenlive will no longer have AV issues. Something is happening there.
(0003914)
ddennedy (developer)
2009-09-16 08:23

The media players you test with do not solely use ffmpeg. When you tested with melt did you do any seeking or just play sequentially. In the editor, more seeking is involved. If you trim the beginning of the clip, then it will cause seeking on render. So, test playback with ffplay at the command line. With it playing, click around on the window a bit to make it seek, then click near the left edge and let it play for a while and see if sync goes bad.
(0005454)
ttill (developer)
2010-08-03 01:06

closing, lack of response.

- Issue History
Date Modified Username Field Change
2009-08-24 05:12 x1250 New Issue
2009-08-24 05:12 x1250 File Added: project.kdenlive
2009-08-24 05:12 x1250 Build/Install Method => Manual build from SVN
2009-08-24 05:55 x1250 Note Added: 0003815
2009-09-16 08:23 ddennedy Note Added: 0003914
2009-09-16 08:23 ddennedy Status new => feedback
2010-08-03 01:06 ttill Note Added: 0005454
2010-08-03 01:06 ttill Status feedback => resolved
2010-08-03 01:06 ttill Resolution open => no change required
2010-08-03 01:06 ttill Status resolved => closed


Copyright © 2000 - 2014 MantisBT Team
Powered by Mantis Bugtracker