Opened 4 years ago

Closed 4 years ago

#4633 closed defect (needs_more_info)

Video/Audio synching issue with live stream recording

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

Description

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 http://alarabiya-geo-live.hls.adaptive.level3.net/hls-live/alarabiya-channel01/_definst_/live/stream1.m3u8 -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 http://alarabiya-geo-live.hls.adaptive.level3.net/hls-live/alarabiya-channel01/_definst_/live/stream1.m3u8 -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 Changed 4 years ago by cehoyos

  • Priority changed from important to normal

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 Changed 4 years ago by cehoyos

  • Resolution set to needs_more_info
  • Status changed from new to closed

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 http://alarabiya-geo-live.hls.adaptive.level3.net/hls-live/alarabiya-channel01/_definst_/live/stream1.m3u8 -vcodec mpeg4 -qscale 2 -strict -2 -acodec aac -f segment -segment_time 120 BBC%07d.mp4
Note: See TracTickets for help on using tickets.