簡體   English   中英

樹莓派如何將RTSP stream h265轉h264

[英]Raspberry Pi how to convert RTSP stream h265 to h264

我正在嘗試將 H265 rtsp stream 轉換為 H264。

ffmpeg -rtsp_transport tcp -i 'rtsp://admin:admin123@192.168.1.42:554/stream2' -f lavfi -i aevalsrc=0 -vcodec copy -acodec aac -map 0:0 -map 1:0 -c:v libx264 -pix_fmt yuv420p -shortest -strict experimental -f flv rtmp://localhost:1935/live/stream

當我使用此命令時,它會出現此錯誤。

[tcp @ 0x23f13b0] Connection to tcp://localhost:1935 failed: Connection refused
[rtmp @ 0x23f1270] Cannot open connection tcp://localhost:1935
rtmp://localhost:1935/live/stream: Connection refused

如果 FFmpeg 應該充當服務器,則必須添加參數-listen 1

ffmpeg -i 'rtsp://admin:admin123@192.168.1.42:554/stream2' {...} -f flv -listen 1 rtmp://localhost:1935/live/stream

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM