[FFmpeg-user] How to sync both audio and video to get correct output
chetan goni
cgoni25 at gmail.com
Tue Aug 28 08:59:29 EEST 2018
HI Fellows,
I am issuing below command to get correct output but when i played
output.mkv , audio file quicker then video.it mean video is lagging behing
*
".//ffmpeg -i H264-media-3.264 -i G711ULAW-media-1.wav -c copy
output.mkv" *
.....................
libpostproc 55. 2.100 / 55. 2.100
Input #0, h264, from 'H264-media-3.264':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: h264 (Constrained Baseline), yuv420p(progressive),
640x480, 30 fps, 30 tbr, 1200k tbn, 60 tbc
[wav @ 000001db33e4b680] Ignoring maximum wav data size, file may be invalid
[wav @ 000001db33e4b680] Estimating duration from bitrate, this may be
inaccurate
Guessed Channel Layout for Input Stream #1.0 : mono
Input #1, wav, from 'G711ULAW-media-1.wav':
Duration: 00:00:55.09, bitrate: 64 kb/s
Stream #1:0: Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 8000 Hz, mono,
s16, 64 kb/s
Output #0, matroska, to 'output.mkv':
Metadata:
encoder : Lavf58.17.101
Stream #0:0: Video: h264 (Constrained Baseline) (H264 / 0x34363248),
yuv420p(progressive), 640x480, q=2-31, 30 fps, 30 tbr, 1k tbn, 1200k tbc
Stream #0:1: Audio: pcm_mulaw ([7][0][0][0] / 0x0007), 8000 Hz, mono,
s16, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
*[matroska @ 000001db34500680] Timestamps are unset in a packet for stream
0. This is deprecated and will stop working in the future. Fix your code to
set the timestamps properly*
frame= 1500 fps=0.0 q=-1.0 Lsize= 1966kB time=00:00:54.78 bitrate=
293.9kbits/s speed=5.24e+04x
video:1523kB audio:430kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.624414%
--
Sent from: http://www.ffmpeg-archive.org/
More information about the ffmpeg-user
mailing list