Wowza Community

publish RTMP in command line to wowza server

Hi ! it’s my first message after some day search

I would like stream to Wowza server with StreamType = live in RTMP.

That’s works with adobe air application but not with vlc or ffmpeg or gstreamer.

I would like to use a command line application or python, for stream in RTMP, it’s realist?

My last test for exemple (not working):

ffmpeg -i /home/video.avi -re -acodec copy -vcodec copy -f mp4 rtmp://999.999.999.999:1935/Apps/stream_name

cvlc v4l2:///dev/video0 --sout ‘#transcode{vcodec=FLV1,acodec=mp3}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=999.999.999.999:1935/Apps/stream_name}’

Might have better luck with rtsp in this case. I know rtmp support in vlc is not good. But I don’t have any good experience with this kind of use to really help much.

Richard

We do not have specific instructions for ffmpeg using RTMP protocol. We do have instructions for using MPEG-TS here:

https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts

Charlie

You can try the lastest ffmpeg from here:

http://ffmpeg.arrozcru.org/autobuilds/

Richard

Sorry, I don’t know where to point you for that.

Richard

I’m not sure how to capture webcam with ffmpeg. Here is a guide to doing it with VLC:

Here is current ffmpeg guide:

https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts

Richard

Try this on for size :slight_smile:

http://www.xuggle.com/xuggler/

try this. It works for me. you might have to specify the preset of ffmpeg

ffmpeg -i /home/video.avi -re -acodec libfaac - vcodec libx264 -vpre default -f flv rtmp://serverip/app/streamName

try this. It works for me. you might have to specify the preset of ffmpeg

ffmpeg -i /home/video.avi -re -acodec libfaac - vcodec libx264 -vpre default -f flv rtmp://serverip/app/streamName

Which version of ffmpeg did you use? My one does not support rtmp publishing yet.

You can try the lastest ffmpeg from here:

http://ffmpeg.arrozcru.org/autobuilds/

Richard, thanks for this information. The windows version really works. :slight_smile:

But I would like to do publishing with (debian) linux…

try this. It works for me. you might have to specify the preset of ffmpeg

ffmpeg -i /home/video.avi -re -acodec libfaac - vcodec libx264 -vpre default -f flv rtmp://serverip/app/streamName

Just adding my 2pennys worth, for me I could only get real time playback/streaming if -re was before -i input.

ffmpeg [B]-re[/B] -i /home/sample.mp4 -acodec copy -vcodec copy -f flv rtmp://serverip/app/streamName

Otherwise ffmpeg would just act as if transcoding and do it as fast as it could, not helpful for streaming :wink:

Also my file was an mp4 ready for streaming so i just used -acodec copy -vcodec copy

I am trying to make ffmpeg work with wowza. For testing purpose I am trying to send video from my webcam. The follow is the command I am using.

ffmpeg -re -f video4linux2 -i /dev/video0 -acodec libfacc -vcodec libx264 -f h264 rtmp://localhost:1935/live/test

But it doesnt seem to work.

I build ffmpeg from git repository with the following config

–enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab

ffmpeg -protocols says it has rtmp input/output support

Any pointers on how to make this work…

Thank you I saw that one… But the problem is I am trying this on linux and it seems to have some problem…