Streaming H.264 using Videolan

About encoding, codec settings, muxers and filter usage
publicENEMY
Cone that earned his stripes
Cone that earned his stripes
Posts: 104
Joined: 14 May 2007 05:04
Location: Malaysia

Streaming H.264 using Videolan

Postby publicENEMY » 31 Jan 2008 07:23

I am trying to stream H.264 media using videolan. It was unsuccessfull. After researching the net, i found out that Videolan at current version (stable) cannot stream H.264 due to unable to encapsulate H.264 in MPEG TS. So i try encapsulate H.264 in other container, mkv and mp4. unfortunately, mkv does not support streaming (or so i thought) and Videolan does not support streaming in mp4.

My conclusion is, it is impossible to stream(server/client) H.264 in Videolan.


And no, transcoding is out of the question.

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: Streaming H.264 using Videolan

Postby Jean-Baptiste Kempf » 31 Jan 2008 09:14

However, development versions of VLC should have that thing fixed.
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.

publicENEMY
Cone that earned his stripes
Cone that earned his stripes
Posts: 104
Joined: 14 May 2007 05:04
Location: Malaysia

Re: Streaming H.264 using Videolan

Postby publicENEMY » 01 Feb 2008 02:03

So are all my assumptions true?

Where can i get the development versions of VLC? I would appreciate if anyone would provide the binary here (formatted my linux box).

Thanks.

Arite
Big Cone-huna
Big Cone-huna
Posts: 2478
Joined: 26 Jun 2007 20:40
VLC version: 3.0.20
Operating System: Debian Testing|Win10

Re: Streaming H.264 using Videolan

Postby Arite » 01 Feb 2008 02:13

You can get nightly builds for 0.9.0 here:
http://nightlies.videolan.org/

For Linux either compile from source or use the appropriate repositories given on the VLC nightly builds index page (for Debian based OS's add to them to etc/apt/sources.list and use apt to install).

Arite.
Don't use PMs for support questions.

publicENEMY
Cone that earned his stripes
Cone that earned his stripes
Posts: 104
Joined: 14 May 2007 05:04
Location: Malaysia

Re: Streaming H.264 using Videolan

Postby publicENEMY » 01 Feb 2008 03:47

Damn. Ive been asking without looking first. I found the latest build here http://nightlies.videolan.org/build/win32/latest/.

Thanks and sorry ;)


And by the way, I found a way to stream H.264. But with less satisfactory results. Here's how.

1. transcode the h.264 media with MPEG ts as the encapsulation method.
2. choose h.264 as the video codec.
3. outputs to a file.

the problem with these is the image is grainy even with equal or higher bitrates than the original and the aspect ratio is totally messed up.
i use apple quicktime hd trailer as sample media source. you can easily leech it here, http://www.demo-world.eu/trailers/quick ... ailers.php

Downloading latest vlc as of now. Will report back the results.

Thanks.

publicENEMY
Cone that earned his stripes
Cone that earned his stripes
Posts: 104
Joined: 14 May 2007 05:04
Location: Malaysia

Re: Streaming H.264 using Videolan

Postby publicENEMY » 04 Feb 2008 04:14

in case anyone wondering, the latest version of videolan (nightlies) build are broken for streaming. not only h.264, icant even stream anything that can be stream previously.

Any success stories on h.264 streaming guys?

slash24
New Cone
New Cone
Posts: 3
Joined: 01 Feb 2008 14:56

Re: Streaming H.264 using Videolan

Postby slash24 » 05 Feb 2008 10:12

in case anyone wondering, the latest version of videolan (nightlies) build are broken for streaming. not only h.264, icant even stream anything that can be stream previously.

Any success stories on h.264 streaming guys?
I am trying to do exactly the same thing as you are, and was following this thread because of that. I have also tried to do it with the nightlies and have the same problem: no streaming possible at all....
If you (or anyone else) have a solution / workaround to stream H.264 I would be very gratefull if you post it here! I will do the same thing if I find anything!

QuakeCH
Blank Cone
Blank Cone
Posts: 12
Joined: 27 Jul 2007 20:25

Re: Streaming H.264 using Videolan

Postby QuakeCH » 06 Feb 2008 17:21

If you can read french -> http://blog.quakenet.ch/?p=6 , you should find the solution.

Just don't forget to add : --enable-x264 to configure line :)

RCPDesigns
New Cone
New Cone
Posts: 1
Joined: 23 Feb 2008 03:50

Re: Streaming H.264 using Videolan

Postby RCPDesigns » 23 Feb 2008 03:54

I've been trying to do this and just bumped into this thread. It appears to me that this doesn't work because the SPS and PPS are not sent. I am not sure where they would fit into the MpegTS. I have download the nightlies and they crash for me no matter what I do.
Any idea how this will be fixed and when it will be available for a real release?

jjrai
New Cone
New Cone
Posts: 4
Joined: 07 Apr 2008 18:00

Re: Streaming H.264 using Videolan

Postby jjrai » 07 Apr 2008 22:46

Does anyone have a site that streams h.264 videos, so that I can see if a C# program I have is able to read a stream of 264 video? I am trying to test it with VLC, but am unsuccessful.

Thanks

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

Re: Streaming H.264 using Videolan

Postby revolunet » 07 Apr 2008 22:54

on apple hd trailers you can find some : http://images.apple.com/movies/wb/i_am_ ... _h.480.mov
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

gborzi

Re: Streaming H.264 using Videolan

Postby gborzi » 17 Apr 2008 17:11

Hy there

...did anybody solve this issue?
It looks still broken in videolan 0.8.6f ...

Thanks

gb

SENCO
New Cone
New Cone
Posts: 6
Joined: 22 Apr 2008 14:04

Re: Streaming H.264 using Videolan

Postby SENCO » 22 Apr 2008 15:32

I can stream H.264 perfectly with 0.8.6f if I select MPEG TS as encapsulation method when transcoding.

I mean,
a) I take a xvid movie -> transcode to H.264 into MP4 file. Then I stream (HTTP) this file in a MPEG TS container -> DONT WORK (I receive "waiting for SPS/PPS" message in receiver)

b) I take a xvid movie -> transcode to H.264 into MPEG TS file. Then I stream (HTTP) this file in the same container -> IT WORKS.

I think VideoLAN put H.264 SPS/PPS information on each key frame only if the encapsulation target is MPEG TS at the time of transcoding. If I use MP4 as encapsulation, it puts it only at the beginning.

Best regards,

SENCO
New Cone
New Cone
Posts: 6
Joined: 22 Apr 2008 14:04

Re: Streaming H.264 using Videolan

Postby SENCO » 23 Apr 2008 13:21

I have detected that the frecuency between SPS/PPS packets is lower when destination is HTTP rather than File.

So if I transcode and save into a file and then I stream it, it's different than transcode and stream directly.

Is this a bug in VLC 0.8.6f ?

publicENEMY
Cone that earned his stripes
Cone that earned his stripes
Posts: 104
Joined: 14 May 2007 05:04
Location: Malaysia

Re: Streaming H.264 using Videolan

Postby publicENEMY » 24 Apr 2008 05:14

i beleive encapsulation by transcoding is the way to go (as forwarded by SENCO), but the results from transcoding is extremely low image quality (do consider quality/bitrate ratio).

if anyone have found any progress on this matter, do post.

thank you guys.

gborzi

Re: Streaming H.264 using Videolan

Postby gborzi » 30 Apr 2008 14:55

Dear SENCO, thank you for your hint, but the problem is still there.

I am starting from uncompressed full-frame AVIs just to keep everything simple.
I am trying to stream only files already transcoded and saved, I do not transcode and stream on the fly.

I have tried several options and using several source files to transcode to h264 using MPEG-TS as encapsulation method. The wiki section on codecs was very helpful.
If I read the transcoded file from the file system it reads almost OK; remaining issues are:
-- the video window appears after some seconds from the beginning of the reproduction, maybe this is related to keyframe issues?
-- VLC does not show neither the video length nor the current position in seconds.

Anyway, when I stream the same encoded file via VLC -> VLM -> VOD interface, in the same LAN or even on the same PC, only the audio stream is received ok. The messages windows is full of SPS/PPS messages, as usual.

Best regards

g.

PureVirtual
Blank Cone
Blank Cone
Posts: 14
Joined: 26 Apr 2008 01:51

Re: Streaming H.264 using Videolan

Postby PureVirtual » 10 May 2008 18:14

Hi, gborzi!

I'm looking for solucion of the "waiting for SPS/PPS" problem as well. In my case (http streaming from VLC to VLC) I use a temporary(?) workaround -- encapsulating h264 video in asf container (mux=asf) while streaming. It helps to start video playback immediately, although the first few seconds may be displayed with a strangely high brightness level.

Glad if it helps...

gborzi

Re: Streaming H.264 using Videolan

Postby gborzi » 12 May 2008 18:25

Thank you very much, I will try this!

vibes992000
Blank Cone
Blank Cone
Posts: 61
Joined: 29 Feb 2008 12:05
VLC version: 0.86i
Operating System: Windows XP
Location: INDIA
Contact:

Re: Streaming H.264 using Videolan

Postby vibes992000 » 31 May 2008 18:19

I'm able to successfully stream using H.264 by the Manual way i.e going into open capture device .. but streaming via H.264 fails when I try using VLM for streaming i.e Only Video comes no audio :(

for more details about my Successful H.264 implementation via manual way and failures via VLM way please refer to the link
viewtopic.php?f=11&t=47071

and for its live demonstrations you can visit http://www.ignouonline.ac.in/broadcast
vibs

nodicetv
New Cone
New Cone
Posts: 1
Joined: 13 Jun 2008 19:15

Re: Streaming H.264 using Videolan

Postby nodicetv » 13 Jun 2008 19:49

Any success stories on h.264 streaming yet. Would really like to start using h264 more.

vibes992000
Blank Cone
Blank Cone
Posts: 61
Joined: 29 Feb 2008 12:05
VLC version: 0.86i
Operating System: Windows XP
Location: INDIA
Contact:

Re: Streaming H.264 using Videolan

Postby vibes992000 » 14 Jun 2008 05:10

Any success stories on h.264 streaming yet. Would really like to start using h264 more.
Yes it seems that it is successfully launched on our broadcasting stations. We are webcasting and streaming using H.264 and capturing that using VideoLan Plugin.
vibs

fenomeno83
Blank Cone
Blank Cone
Posts: 17
Joined: 08 Jun 2007 14:26

Re: Streaming H.264 using Videolan

Postby fenomeno83 » 26 Jun 2008 12:06

I use h264/aac with vlc and it works good!
I also use vlc encoding tand after stream to sopcast (that will stream original vlc data using p2p)..

example image:Image

here there are 2 videoguides (but in italian)
http://it.youtube.com/watch?v=y1bBfPFgzMs&fmt=18

http://it.youtube.com/watch?v=Un8dpCYMttQ&fmt=18


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 2 guests