Opened 6 years ago

Closed 6 years ago

#4633 closed defect (needs_more_info)

Video/Audio synching issue with live stream recording

Reported by: Alaa Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug:

I am trying to record and segment a live stream and save it in two output files: video and audio , but the generated video and audio segment files are not always synched , for example the video length is 120 seconds while the audio file length is 124 seconds! the command to reproduce this is:

ffmpeg -loglevel 40 -re -i -f segment -segment_time 120 ARA%07d.mp4 -f segment -segment_time 120 -ac 1 -ar 16000 ARA%07d.wav

How to reproduce:

% ffmpeg -loglevel 40 -re -i -f segment -segment_time 120 BBC%07d.mp4 -f segment -segment_time 120 -ac 1 -ar 16000 BBC%07d.wav
ffmpeg version
built on ...

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (2)

comment:1 by Carl Eugen Hoyos, 6 years ago

Priority: importantnormal

Please provide the command line that allows to reproduce your issue together with the complete, uncut console output to make this a valid ticket.

comment:2 by Carl Eugen Hoyos, 6 years ago

Resolution: needs_more_info
Status: newclosed

Feel free to reopen this ticket if you can add the missing information, I tested the following command line and the output files seem to play in-sync:

$ ffmpeg -i -vcodec mpeg4 -qscale 2 -strict -2 -acodec aac -f segment -segment_time 120 BBC%07d.mp4
Note: See TracTickets for help on using tickets.