Eittipat / pyrtmp

PyRTMP: Pure Python RTMP server
MIT License
90 stars 20 forks source link

How demo_rtmp.py works? #16

Open pliniopvv opened 8 months ago

pliniopvv commented 8 months ago

https://github.com/Eittipat/pyrtmp/blob/3e56d1390cd834fc33c2a9d436826bc15b76b278/example/demo_rtmpt.py#L146

How it's work? the following command work? ffmpeg -i my_test_file.flv -c:v copy -c:a copy -f flv rtmp://127.0.0.1:1935/test/sample

I try connect the OBS on the "rtmp://127.0.0.1:1935/test/sample" and no work.

I need help.

Eittipat commented 8 months ago

The follwing command send flv file to rtmp server and if you use RTMP2FLVController, It will save it to file ffmpeg -i my_test_file.flv -c:v copy -c:a copy -f flv rtmp://127.0.0.1:1935/test/sample

and you're using rtmpt demo (RTMPT is not RTMP) you have to use this command instead ffmpeg -i my_test_file.flv -c:v copy -c:a copy -f flv rtmpt://127.0.0.1:1935/test/sample

as a result, you should have file saved into your server