FFMPEG to stream to rtmp

1

1

I am streaming a file from hard disk to rtmp server. What i need is to stream a file from the client PC. i.e., I am hosting ffmpeg on the server and my web application streams the file from the client PC to the rtmp server. Is it possible? I don't want to upload the file to my server.

venky

Posted 2014-09-20T16:30:56.280

Reputation: 11

Answers

0

possible duplicate of another question

or look at avconv/ffmpeg

avconv documentation --> rtmp section

-re is realtime
-i is input file
-f is input file type
last parameter is the rtmp destination

For example, to stream a file in real-time to an RTMP server using avconv:
avconv -re -i myfile -f flv rtmp://myserver/live/mystream

To play the same stream using avplay:
avplay "rtmp://myserver/live/mystream live=1"

ffmpeg website
supposedly, ffmpeg is being replaced by avconv but it still seems to be an active project

try google

Bob

Posted 2014-09-20T16:30:56.280

Reputation: 131

i like to stream from client pc, in ur example "myfile" , how to use tht file from web client pc without uploading them entirely to the server? – venky – 2014-09-21T04:38:12.820

Libav is a fork of FFmpeg that had their own so-called "ffmpeg". Then they eventually replaced it with avconv. The deprecated message provided by Libav (and the additional message from the Ubuntu maintainer) were worded poorly and confusing to users. ffmpeg from FFmpeg is actively developed. – llogan – 2014-09-21T05:39:31.793