[FFmpeg-user] (mpeg2) how to set "audio delay relative to video" as 0 ?

linxs linxsy at gmail.com
Fri Sep 19 15:39:26 CEST 2014


Thank you !
"asetpts=PTS+0.010/TB" works!


2014-09-18 18:40 GMT+08:00 Stefano Sabatini <stefasab at gmail.com>:

> On date Thursday 2014-09-18 08:58:33 +0800, linxs wrote:
> > D:\>ffprobe 0.mpg
> > ffprobe version N-63439-g96470ca Copyright (c) 2007-2014 the FFmpeg
> > developers
> >   built on May 25 2014 22:01:51 with gcc 4.8.2 (GCC)
> >   configuration: --enable-gpl --enable-version3 --disable-w32threads
> > --enable-av
> > isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls
> > --enab
> > le-iconv --enable-libass --enable-libbluray --enable-libcaca
> > --enable-libfreetyp
> > e --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug
> > --enable-
> > libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
> > --enable-libope
> > njpeg --enable-libopus --enable-librtmp --enable-libschroedinger
> > --enable-libsox
> > r --enable-libspeex --enable-libtheora --enable-libtwolame
> > --enable-libvidstab -
> > -enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
> > --enable-libvpx
> > --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
> > --enable-
> > libxavs --enable-libxvid --enable-decklink --enable-zlib
> >   libavutil      52. 86.100 / 52. 86.100
> >   libavcodec     55. 65.100 / 55. 65.100
> >   libavformat    55. 41.100 / 55. 41.100
> >   libavdevice    55. 13.101 / 55. 13.101
> >   libavfilter     4.  5.100 /  4.  5.100
> >   libswscale      2.  6.100 /  2.  6.100
> >   libswresample   0. 19.100 /  0. 19.100
> >   libpostproc    52.  3.100 / 52.  3.100
> > Input #0, mpeg, from '0.mpg':
> >   Duration: 00:00:14.98, start: 0.529978, bitrate: 953 kb/s
> >     Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv), 720x576
> [SAR
> > 16:1
> > 5 DAR 4:3], max. 104857 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
> >     Stream #0:1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16p, 384 kb/s
>
> ffprobe -show_streams?
>
> Also you can check the PTS values of the first timestamps, something
> like:
> ffprobe -show_packets -of compact -select_streams v INPUT -read_intervals
> "%+#1"
> ffprobe -show_packets -of compact -select_streams a INPUT -read_intervals
> "%+#1"
>
> > I added -af "asetpts=PTS+0/TB" to the options of ffmpeg.
> > The audio delay relative to video of output mpg  is -10ms too. nothing
> > changed.
>
> What about:
> asetpts=PTS+0.010/TB
>
> Please don't top post.
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list