LIVEHTTP

About encoding, codec settings, muxers and filter usage
jdoggy31
New Cone
New Cone
Posts: 4
Joined: 29 Jul 2010 20:56

LIVEHTTP

Postby jdoggy31 » 29 Jul 2010 21:13

I'm trying to get LIVE HTTP to work under win7 but I don't understand a few things. This is what i've done so far.

[*]Installed the Nightly builds 1.20 (20100721-0002)
[*]Tried to run the basic example

Code: Select all

vlc -I dummy --mms-caching 0 http://www.nasa.gov/55644main_NASATV_Windows.asx vlc://quit --sout='#transcode{threads=2,width=320,height=240,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,bframes=0,ref=1,nocabac},acodec=mp3,ab=96}:duplicate{dst=std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=/var/www/streaming/mystream.m3u8,index-url=http://mydomain.com/streaming/mystream-########.ts},mux=ts{use-key-frames},dst=/var/www/streaming/mystream-########.ts}}'
VLC opens then Quits (VLC://quit)? I remove that so i can see whats going on.

Then it spits back "[051906dc] main input error: cannot start stream output instance, aborting"

I apologize for being such a noob but i must be overlooking something stupid? Things im not sure about:

The path does it need to be created ahead of time? I did that but is it based on root (c:) or vlc's program folder. I tried both.


Any help would be greatly appreciated.

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: LIVEHTTP

Postby Jean-Baptiste Kempf » 29 Jul 2010 23:10

Your duplicate part seems dubious.
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.

jdoggy31
New Cone
New Cone
Posts: 4
Joined: 29 Jul 2010 20:56

Re: LIVEHTTP

Postby jdoggy31 » 29 Jul 2010 23:15

I just copied and pasted this out of the documentation example. does anybody have a working example i can work off of?

ZackAngelo
New Cone
New Cone
Posts: 4
Joined: 04 Aug 2010 16:51

Re: LIVEHTTP

Postby ZackAngelo » 04 Aug 2010 17:05

I had similar issues. When you copy and paste from the VLC website it copies a bunch of additional markup and unnecessary quotes because the VLC wiki automatically creates hyperlinks from text that it thinks are URLs. Just recreate the command line manually component by component to figure out exactly what isn't working.

EDIT: Also the livehttp module in the nightly doesn't correctly update the index file (the .m3u8 file). Every time a new TS segment is created, it creates a new temporary index file that includes the new segment. However, to replace the old index file with the new one, it tries to just "rename over" it, which doesn't work on Windows. To get it to work, I had to run a script in the background to copy that temp file over the old index file at an interval shorter than the chuck length. It's kludgy, but works for small deployments. If I have some time I'll download the source and submit a patch to get it to work on Windows and post back here when I do.

jdoggy31
New Cone
New Cone
Posts: 4
Joined: 29 Jul 2010 20:56

Re: LIVEHTTP

Postby jdoggy31 » 04 Aug 2010 17:49

Thanks Zack Ill give it Shot.

jdoggy31
New Cone
New Cone
Posts: 4
Joined: 29 Jul 2010 20:56

Re: LIVEHTTP

Postby jdoggy31 » 04 Aug 2010 18:11

Huh. I got it working Not sure what i was doing wrong but I used your example, in another post and it worked, as a guideline. What are you using to transfer your files to a web server if you don't mind me asking?

ZackAngelo
New Cone
New Cone
Posts: 4
Joined: 04 Aug 2010 16:51

Re: LIVEHTTP

Postby ZackAngelo » 04 Aug 2010 19:01

I don't do any transferring. If you're using IIS just create a Virtual Directory that points to the folder (either locally or over an SMB share). Or, you could do the reverse: mount an SMB share on the computer running VLC and tell the livehttp streamer to stick the files there.

RoohBear
New Cone
New Cone
Posts: 4
Joined: 08 Aug 2009 18:51

Re: LIVEHTTP

Postby RoohBear » 02 Sep 2010 15:45

Hello, I'm having similar problems. I'm using the example 'HOWTO' document at http://wiki.videolan.org/Documentation: ... the_iPhone

I'm using version 1.2 built last night (vlc-1.2.0-git-20100902-0001)

I'm using this command line which I got from that page
del vlc-log.txt
vlc -vvv --extraintf=logger --mms-caching 0 http://www.nasa.gov/55644main_NASATV_Windows.asx vlc://quit --sout='#transcode{threads=2,width=320,height=240,fps=25,vcodec=h264,vb=256,venc=x264{aud,profile=baseline,level=30,keyint=30,bframes=0,ref=1,nocabac},acodec=mp3,ab=96}:duplicate{dst=std{access=livehttp{seglen=10,delsegs=true,numsegs=5,index=/var/www/streaming/mystream.m3u8,index-url=http://mydomain.com/streaming/mystream- ... #######.ts}}'
notepad vlc-log.txt

In the log file, I always see "Stream chain failed" then "main error: cannot start stream output instance, aborting"

I just installed IIS and have it running, but what else am I supposed to do? There's no documentation on what other setup I need to do
or how to connect to the stream from an iPhone.

RoohBear
New Cone
New Cone
Posts: 4
Joined: 08 Aug 2009 18:51

Re: LIVEHTTP

Postby RoohBear » 03 Sep 2010 01:52

After hours of struggling, I read about the quotes being added by the web site. Removing them from my command line parameters made a big difference but I'm getting lots of "cannot open \var\www\streaming\mystream-00000001.ts" messages. I'm using the NASA feed as an example.

I feel like getting the source code and modifying it to ignore those quotes that the web site adds!

So my question now is "Do I have to have IIS installed?" Do I replace "\var\www\streaming" with something else, such as "c:\inetpub\wwwroot"? What do I do to actually view this stream on an iPod?

araid
New Cone
New Cone
Posts: 2
Joined: 20 Oct 2010 17:22

Re: LIVEHTTP

Postby araid » 20 Oct 2010 18:53

I have the same Issue as the first post, but I don't fully understand this quotes stuff. The only two quotes I see are after sout (sout='#transcode) and in the end of the command line (##.ts}}' ), and removing them changes nothing, so I keep having the same error.

EDIT: I changed this single quotes by double quotes and I seemed to advance in my problem. Let me describe it better:
  • If I call VLC with dest: D:/someexistingfolder/stream-####.ts the program creates a single .ts file containing the stream.
  • If I call VLC with dest: D:/someexistingfolder/somenewfolder/stream-####.ts the classical error appears, saying
access_output_file access out error: cannot open 'D:/someexistingfolder/somenewfolder/stream-####.ts' (No such file or directory)
I am currently trying this locally, without any web server installed. I guess it's some kind of permissions problem, but don't know how to solve it.

Any help or code snipper will be appreciated.

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: LIVEHTTP

Postby Jean-Baptiste Kempf » 28 Oct 2010 20:57

hmmm, probably a vlc bug
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.


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: MSN [Bot] and 2 guests