[FFmpeg-user] Audio slowly getting out of sync

Roger Pack rogerdpack2 at gmail.com
Tue Nov 22 17:50:34 EET 2016


On 11/21/16, Gabor Alsecz <alseczg at gmail.com> wrote:
> Dear All,
>
> I have an issue when encoding HLS stream from an RTSP mjpeg video stream +
> USB audio via dshow.
> At the beginning audio & video are in sync but slowly but steadily the
> sound drifting out of sync. Video seems faster, approximately each 10
> minutes the audio late +1 second.

I wonder if the RTSP has timestamps that are "getting out of sync"
if you want to see if the show stuff is getting out of sync, run with
"-loglevel debug" and it spits out tons of timing info.

Anyway there are some "vsync" options see if either help.

> I am using the following command:
> ffmpeg -y -loglevel info -f dshow -i audio="Microphone (Trust Gaming
> Microphone)" -pix_fmt bgr24 -video_size 1280x720 -framerate 25 -f rawvideo
>   -i "-" -b:a 160k -ar 44100 -pix_fmt yuv420p -profile:v baseline -r 25 -g
> 50 -hls_time 5 -hls_list_size 0 -hls_segment_filename file%03d.ts -f hls
> out.m3u8
>
>
> As you can see, this is rawvideo, feeding by memory bitmap "images" via
> piping (from C#) + capture raw audio via dshow.
>
> Any idea what/how to solve this issue? Thanks!
>
>
> br,
> Gabor
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list