[FFmpeg-user] H.264 with pcm_mulaw audio live RTSP streaming

Carl Eugen Hoyos ceffmpeg at gmail.com
Thu Jan 18 14:06:11 EET 2018


2018-01-18 12:36 GMT+01:00 George Andguladze <gandguladze at hotmail.com>:

>> As a work-around, you can record the stream with something else than ogg
>> (for example avi) and then re-encode that file, the result should contain sane
>> timestamps.
>> If you use the option "-rtsp_transport tcp" you should not see the errors that
>> are in your console output, "-qscale 2" ensures maximum quality, you can
>> reduce the bitrate when encoding to ogg.
>
> Tried it and while it does normalize the video duration and makes audio
> constantly heard, the audio does not match the video's time - I can see
> people talking on the video but there is only silent noise (same noise
> when the room is empty) output from the audio.

The following works here:
$ ffmpeg -rtsp_transport tcp -i rtsp... -qscale 2 -acodec copy -y out.avi

I am happy if somebody convinces me that there is a bug in FFmpeg
(and not in the Hikvision server)!

Carl Eugen


More information about the ffmpeg-user mailing list