[libav-tools] Converting video format when audio is out of sync

Derrell Lipman derrell.lipman at unwireduniverse.com
Tue Apr 21 16:08:19 CEST 2015

I have a .mkv file that plays properly using avplay 0.8.17 from Ubuntu
(with no specified command-line options), but plays with video/audio out of
sync when using any other program I've tried. I have been unsuccessful at
finding avconv options that will convert this file to .mp4 with proper
video/audio sync. *What are the avconv options that are equivalent to the
defaults of avplay?*

The file is an hour-long video, so it would be useful, for testing, to use
the -t option to convert only the first N seconds of the video, but that
option seems to have no effect.

Your help will be greatly appreciated! Following is the output of avprobe
on my .mkv file.

avprobe version 0.8.17, Copyright (c) 2007-2014 the Libav developers
  built on Apr 21 2015 09:23:53 with gcc 4.6.3
[matroska,webm @ 0x2450760] Estimating duration from bitrate, this may be
Input #0, matroska,webm, from '/tmp/11-00-02.mkv':
    ENCODER         : Lavf55.33.101
  Duration: 01:13:40.08, start: 0.000000, bitrate: 64 kb/s
    Stream #0.0: Video: h264 (Baseline), yuvj420p, 1920x1080, PAR 1:1 DAR
16:9, 60 fps, 19.92 tbr, 1k tbn, 60 tbc (default)
    Stream #0.1: Audio: pcm_mulaw, 8000 Hz, 1 channels, s16, 64 kb/s

Thank you very much,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.libav.org/pipermail/libav-tools/attachments/20150421/634b8fd7/attachment.html>

More information about the libav-tools mailing list