ffmpeg -re -f lavfi -i aevalsrc="sin(400*2*PI*t)" -ar 8000 -f mulaw -f rtp rtp://127.0.0.1:1234 &
ffplay rtp://127.0.0.1:1234
私は人工的な信号を交換するために、実際のビデオファイルを使用します。 は、それから私は、端末Aで以下の記述:フレーム情報がカウントされ :
ffmpeg -re -i outputFile.avi -f mulaw -f rtp rtp://127.0.0.1:1234
、働いているようです。
frame= 309 fps= 29 q=31.0 Lsize= 931kB time=00:00:10.30 bitrate= 740.8kbits/s video:922kB audio:0kB subtitle:0 global headers:0kB muxing overhead 1.030813%
端子Aのフレームはまだ(完成品ではない)をカウントしたとき、私は端末Bで以下を入力します:ここで終わりに端末Aの情報です
ffplay rtp://127.0.0.1:1234
しかし、それはありません動作していません: エラー情報:
[udp @ 0x7fb370001500] bind failed: Address already in useB f=0/0
rtp://127.0.0.1:1234: Input/output error
なぜですか?
ffmpegの-Re -i out.avi -f MULAW -f:私はffmpegの端末のための入力であるfoo.sdp
を使用カミーユGoudeseune からの指示に従って[アップデート1] RTP RTP://127.0.0.1:1235
ffplay用の端子は、次のとおりです。
ffplay -i foo.sdp
ffplay端末では、画像なしで多くのエラーが表示されます。
libpostproc 52. 2.100/52. 2.100
[sdp @ 0x7fafdc0008c0] Undefined type (30) 0KB sq= 0B f=0/0
[sdp @ 0x7fafdc0008c0] nal size exceeds length: 25453 86 0B f=0/0
[sdp @ 0x7fafdc0008c0] Consumed more bytes than we got! (-25367)
[sdp @ 0x7fafdc0008c0] nal size exceeds length: 25453 86
[sdp @ 0x7fafdc0008c0] Consumed more bytes than we got! (-25367)
[sdp @ 0x7fafdc0008c0] Unhandled type (27) (See RFC for implementation details
[sdp @ 0x7fafdc0008c0] Undefined type (31) 0KB sq= 0B f=0/0
[sdp @ 0x7fafdc0008c0] Unhandled type (27) (See RFC for implementation details
[sdp @ 0x7fafdc0008c0] nal size exceeds length: 62414 6130B f=0/0
[sdp @ 0x7fafdc0008c0] Consumed more bytes than we got! (-61801)
[sdp @ 0x7fafdc0008c0] nal size exceeds length: 62414 613
[sdp @ 0x7fafdc0008c0] Consumed more bytes than we got! (-61801)
[h264 @ 0x7fafdc003020] non-existing PPS referencedq= 0B f=0/0
[h264 @ 0x7fafdc003020] non-existing PPS 0 referenced
[h264 @ 0x7fafdc003020] decode_slice_header error
[h264 @ 0x7fafdc003020] Invalid mix of idr and non-idr slices
[sdp @ 0x7fafdc0008c0] Undefined type (31) 0KB sq= 0B f=0/0
[sdp @ 0x7fafdc0008c0] Unhandled type (29) (See RFC for implementation details
[sdp @ 0x7fafdc0008c0] Unhandled type (26) (See RFC for implementation details
[sdp @ 0x7fafdc0008c0] Unhandled type (27) (See RFC for implementation details
Last message repeated 2 times 0KB vq= 0KB sq= 0B f=0/0
[sdp @ 0x7fafdc0008c0] Undefined type (31)
[sdp @ 0x7fafdc0008c0] Unhandled type (26) (See RFC for implementation details
[sdp @ 0x7fafdc0008c0] Unhandled type (25) (See RFC for implementation details
[h264 @ 0x7fafdc003020] insane cropping not completely supported, this could look slightly wrong ... (left: 2, top: 2)
[h264 @ 0x7fafdc003020] illegal aspect ratio
[h264 @ 0x7fafdc003020] missing picture in access unit with size 84589
[h264 @ 0x7fafdc003020] Partitioned H.264 support is incomplete
[h264 @ 0x7fafdc003020] insane cropping not completely supported, this could look slightly wrong ... (left: 2, top: 2)
[h264 @ 0x7fafdc003020] illegal aspect ratio
[h264 @ 0x7fafdc003020] insane cropping not completely supported, this could look slightly wrong ... (left: 2, top: 2)
[h264 @ 0x7fafdc003020] illegal aspect ratio
[h264 @ 0x7fafdc003020] no frame!
[h264 @ 0x7fafdc003020] RTP: missed 2563 packetsB sq= 0B f=0/0
[sdp @ 0x7fafdc0008c0] Undefined type (30)
Last message repeated 1 times
[sdp @ 0x7fafdc0008c0] Undefined type (31)
これは数年後のことですが、これらの回答は他の人に役立っています。これらの回答の1つがあなたのために働いた場合は、それを受け入れてください。 –
親愛なるユーザー1914692、なぜあなたは答えを受け入れませんか?これらの回答のうちの1つは「すてきな回答」のバッジを獲得したものでもあります。 SOの仕組みを知るには、十分な活動とバッジがあります。 SO_REUSEADDR'およびまたは 'SO_REUSEPORT'がtrueに設定されている'場合 –