Stream a video from VLC to rtmp

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
007007
New Cone
New Cone
Posts: 3
Joined: 19 Jan 2012 10:46

Stream a video from VLC to rtmp

Postby 007007 » 19 Jan 2012 11:04

Hello,

I saw several topics dealing with this problem, but I have not found any solution.

I'd like to know if it's possible to do a video streaming with VLC to an RTMP server, like Red5.

the output stream must be RTMP with the following information

Code: Select all

url: rtmp://91.121.198.187/oflaDemo name: livestream
Here you say

viewtopic.php?f=7&t=47461#p150823
"RTMP input is already in VLC.
RTMP output is arriving, but feel free to help."
but it is not added yet on VLC? how you manage to doing the streaming to a server Red5?

have a good day

Thanks

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Stream a video from VLC to rtmp

Postby Jean-Baptiste Kempf » 19 Jan 2012 11:52

Use RTP output and Wowza
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

007007
New Cone
New Cone
Posts: 3
Joined: 19 Jan 2012 10:46

Re: Stream a video from VLC to rtmp

Postby 007007 » 19 Jan 2012 20:17

Thank you for your reply

but wowza is not free... so vlc is incompatible with rtmp output (used by most streaming servers : Red5 and Fash media server)? :(

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream a video from VLC to rtmp

Postby VLC_help » 20 Jan 2012 21:06

RTMP support is in next 2.1.0 nightly build via avcodec
http://mailman.videolan.org/pipermail/v ... 11743.html

007007
New Cone
New Cone
Posts: 3
Joined: 19 Jan 2012 10:46

Re: Stream a video from VLC to rtmp

Postby 007007 » 20 Jan 2012 21:09

Yeah good news!!!

we can download and test it?

thank you for your great work

edit: ok I just test it, but I don't see the broadcast option "RTMP"

http://imm.io/eWDx

?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream a video from VLC to rtmp

Postby VLC_help » 22 Jan 2012 15:13

There hasn't been any GUI additions for that feature.

docblop
New Cone
New Cone
Posts: 1
Joined: 06 Mar 2012 22:11

Re: Stream a video from VLC to rtmp

Postby docblop » 06 Mar 2012 22:25

I failed trying to get an audio stream encoded to an adobe media or wowza server using rtmp as protocol:

Code: Select all

vlc.exe dshow:// :dshow-vdev=""none"" :dshow-adev= :live-caching=8000 :sout=#transcode{vcodec=none, acodec=aac, ab=16, channels=1, samplerate=44100}:rtmp{url=rtmp://streamingserver/live, name=teststream} :ttl=1.0 :sout-keep -Irc
error: [0220cb70] main input error: cannot start stream output instance, aborting

I used the latest nightly build but couldn't get it to work. does anyone know what I'm doing wrong? I searched but couldn't find any documentation about it. Any help would be appreciated.


Thanks,
Mike..

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Stream a video from VLC to rtmp

Postby VLC_help » 07 Mar 2012 19:42

Is that your actual command-line command? Or did you add the whitespaces there when you pasted it here?

yushalee10
Blank Cone
Blank Cone
Posts: 14
Joined: 05 Mar 2013 13:29

Re: Stream a video from VLC to rtmp

Postby yushalee10 » 11 Apr 2013 18:00

I have been trying to get this to work, and was trying to use:
:sout'#transcode{vcodec=h264,vb=300,fps=25,scale=1,acodec=mp4a,ab=64,channels=2}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://localhost:1935/live/livestream}' but nothing shows on the jwplayer embedded. I will try the stout code posted here (without the spaces)
update: I checked my version (installed from ubuntu software center) and apparently I'm using 1.1.12? hmmmmm

yushalee10
Blank Cone
Blank Cone
Posts: 14
Joined: 05 Mar 2013 13:29

Re: Stream a video from VLC to rtmp

Postby yushalee10 » 11 Apr 2013 20:58

I did an ubuntu upgrade, although I had issues with 12.04 before, and was able to install the 2.1 nightly build. I used the stout code from this page, as well as: sout '#transcode{vcodec=h264,vb=300,fps=25,scale=1,acodec=mp4a,ab=64,channels=2}:std{access=rtmp,mux=ffmpeg{mux=flv},dst=rtmp://ipofstreamingserver:1935/path/to/stream}'
Was a solution brought for this thread? I am trying to stream an flv file to red5 (like so many others) and would rather use VLC than ffmpeg (which I am currently using) for numerous reasons. Please let me know- thanks.

yushalee10
Blank Cone
Blank Cone
Posts: 14
Joined: 05 Mar 2013 13:29

Re: Stream a video from VLC to rtmp

Postby yushalee10 » 05 Feb 2015 01:56

For anyone Interested in this, I myself didn't find a good solution for this, unless you have some serious workstation with the cpu power to back it up. Although, My suggestion to anyone who is interested in this-
set up two monitors on your Ubuntu system one of them hdmi and the other vga or whatever
use an hdmi splitter from the hdmi port
fullscreen vlc player on the hdmi screen
playlist management on the vga screen
feed the hdmi output of the splitter to capture card that compresses the video,like the intensity pro (so you don't have to encode it) and stream with avconv (ffmpeg) to server. This works well also because you can feed multiple sources as well. Just set the video and audio output on "memory output"
This seemed to be the most stable way I could think of. In turn, one could also stream the playlist to http and then re-stream it with avconv (ffmpeg) but I noticed before that between videos, the connection would drop (this was in 2.1).
If anyone found an easier way, let me know.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 38 guests