This is easy:
Basically, this is a tcp receiver for mpegts streams
Example:
ffmpeg -i /tmp/aaa.flv -acodec copy -vcodec copy -vbsf h264_mp4toannexb -f mpegts "tcp://127.0.0.1:9999"
ts_13_257_256 is the name of the stream. Now you can use jwplayer or a similar player and point it to this stream
If you want to use UDP, you need to stop the server and change the configuration file so that instead
protocol="inboundTcpTs"
you should have
protocol="inboundUdpTs"
Yo ucan even copy the entire section and change the port number to both. In addition, you need to change ffmpeg so that instead of tcp: //127.0.0.1: 9999 you can have udp: //127.0.0.1: 9999
Now, if you also need the name of the stream, not ts_13_257_256 (which, by the way, is ts_protocolId_AudioPID_VideoPID), you can use LiveFLV in the same way:
ffmpeg -i /tmp/aaa.flv -acodec copy -vcodec copy -vbsf h264_mp4toannexb -f flv -metadata streamName=myStreamName "tcp://127.0.0.1:6666"
And the server should show:
Stream INLFLV(1) with name `myStreamName` registered to application `flvplayback` from protocol ILFL(3)
There you go, now you have the "computed" stream name, which is myStreamName
Last observation. Please ask this question on the crtmpserver mailing list. You will be better heard. You can find resources here: http://www.rtmpd.com/resources/ Find the google group under
Cheers, Andrey
source share