Reputation: 21
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
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
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