I'm currently doing a stream that is supposed to display correctly within Flowplayer. First I send it to another PC via RTP. Here, I also checked with VLC that the codec etc. arrive correctly, which they do.

Now I want to expose this stream to Flowplayer as a file, so it can be displayed, via something I used in VLC: http://localhost:8080/test.mp4 for example.

The full line I got is: ffmpeg -i input -f mp4 http://localhost:8080/test.mp4

However, no matter how I try to do this, I only get an input/output error. Is this only possible with something like ffserver or another?

What I think is this doesn't work because ffmpeg can't act as a server; on VLC it works since it can. (Though VLC ruins the codecs I set and it can't be read afterwards for some reason)

A (sort of) workaround I can use is saving the RTP stream to a file, and then letting flowplayer load it. This, however, only works once the file is not accessed anymore; I get a codec error otherwise.

share|improve this question

bumped to the homepage by Community 20 hours ago

This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

1  
check the docs : trac.ffmpeg.org/wiki/StreamingGuide – Robert Rowntree Jun 3 '14 at 14:52
    
I've already read through them a few times, but it did not resolve my specific issue. – Boehmi Jun 3 '14 at 15:00
    
Use flv instead of mp4 if you're attempting live streaming: ffmpeg -i input -c:v libx264 -maxrate 1000k -bufsize 2000k -g 50 http://localhost:8080/test.flv Also see trac.ffmpeg.org/wiki/EncodingForStreamingSites – LordNeckbeard Jun 3 '14 at 17:23
    
Sadly, I'm still getting http://localhost:8080/test.flv: Input/output error then. – Boehmi Jun 4 '14 at 7:26
    
Where you able to fix it? – Cito Jan 13 '15 at 19:55

you need this command line

ffmpeg -f v4l2 -s 320x240 -r 25 -i /dev/video0 -f alsa -ac 1 -i hw:0 http://localhost:8090/feed1.ffm

make sure that your feed name ends with ".ffm" and if it's not the case, then add "-f ffm" before your feed URL, to manually specify the output format (because ffmpeg won't be able to figure it out automatically any more), like this "-f ffm http://localhost:8090/blah.bleh".

share|improve this answer
1  

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.