Hamad
Hamad

Reputation: 21

No sound in output clips. RTSP to mp4 ffmpeg

I was using the following command for recording input streams to mp4 into 10 seconds clip. But since few days there is no voice in the output mp4 clips. Command is

 ffmpeg -i rtsp://localhost:8554/mystream -c copy -bsf:a aac_adtstoasc -f segment -segment_time 10 -reset_timestamps 1 -map 0 output%d.mp4

ffmpeg output

I think its because of the format of input stream but i don't know for sure and also, i don't know how to solve it.

Upvotes: 0

Views: 2807

Answers (1)

Hamad
Hamad

Reputation: 21

I solved it using the following command.

      ffmpeg -i rtsp://localhost:8554/mystream -c:a aac -c:v copy -bsf:a aac_adtstoasc -f segment -segment_time 10 -reset_timestamps 1 -map 0 output%d.mp4

changing -c to -c:a aac -c:v

Upvotes: 1

Related Questions