[FFmpeg-user] Problematic RTSP re-streaming

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Aug 24 18:35:02 EEST 2018

2018-08-24 16:40 GMT+02:00, George Andguladze <gandguladze at hotmail.com>:
> Hello,
> I apologize for posting this issue here again, as it has been discussed
> before, but unfortunately the solution we came up with has not solved the
> problem entirely. Here is the story:
> I have a RTSP stream coming from a Hikvision NVR that uses H.264 encoding
> for video and G.711ulaw for audio. My goal is to re-stream it using HLS to a
> HTML5 website. The problem is audio PTS that is completely messed up which
> results in normal transcoding of it being impossible:
>   1.  ffmpeg -rtsp_transport tcp -i rtsp://the_source -qscale 2 -c:v copy
> -c:a aac -flags -global_header -hls_time 10 -hls_list_size 6 -hls_wrap 10
> -start_number 1 C:\inetpub\wwwroot\HLS\stream1C.m3u8

Please test "-af asetpts=PTS/60", this improves the situation here,
you can probably test with actual people talking;-)

Did I already ask if it works with vlc?
Or any other player?

Carl Eugen

More information about the ffmpeg-user mailing list