原始命令是
.\ffmpeg.exe -re -i D:\素材\1.ts -c:v copy -c:a -copy -f rtsp rtsp://localhost:8554/stream
然后报错
[rtsp @ 000000bc0ddf76b0] AAC with no global headers is currently not supported.
Could not write header for output file #0 (incorrect codec parameters ?): Server returned 400 Bad Request
Error initializing output stream 0:1 --
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
正确命令
.\ffmpeg.exe -re -i D:\素材\1.ts -c:v copy -c:a copy -rtpflags latm -f rtsp rtsp://localhost:8554/stream