[英]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. 我正在使用以下命令将输入到mp4的流记录到10秒的剪辑中。 But since few days there is no voice in the output mp4 clips.
但是由于几天以来,输出的mp4片段中没有声音。 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. 我认为这是因为输入流的格式,但我不确定,而且我也不知道如何解决它。
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
将
-c
更改为-c:a aac -c:v
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.