-sout-udp-caching . The movie don't play till the end !

About encoding, codec settings, muxers and filter usage
alcos
New Cone
New Cone
Posts: 7
Joined: 26 Apr 2006 18:10
Location: Ecole d'Ingénieurs de Genève
Contact:

-sout-udp-caching . The movie don't play till the end !

Postby alcos » 12 Oct 2006 14:44

Hello hello,

for some reason i must use the option :
'--sout-udp-caching 15000' on my server side, I send RTP packets in multicast mode.

Everything's ok, i can receive my stream on my client side, put on a file or directly play it to the screen.

But ... There is a but :? , the stream is not played till the end, it seems it lacks approximativly the '15 seconds' that i've set as value in the udp caching.

If I don't put '--sout-udp-caching...' I receive all the movie.

Does someone can tell me why with this option I cannot receive all the movie, and if there is a solution for that ?

Thank you for help and have a nice day,
alain
There's no path to happiness, happiness is the path !

dionoea
Cone Master
Cone Master
Posts: 5157
Joined: 03 Dec 2003 23:09
Location: Paris, France

Postby dionoea » 12 Oct 2006 23:41

Must be because the stream is shut down once all the input is read, without waiting for the buffers to empty. If this is the case, then you definitively spoted a bug. Could you try streaming with VLC 0.9.0 to see if this was fixed ? (if it wasn't please post a bug on http://trac.videolan.org/vlc/ )
Antoine Cellerier
dionoea
(Please do not use private messages for support questions)

alcos
New Cone
New Cone
Posts: 7
Joined: 26 Apr 2006 18:10
Location: Ecole d'Ingénieurs de Genève
Contact:

-sout-udp-caching . The movie don't play till the end !

Postby alcos » 13 Oct 2006 11:02

Yes you're right, it seems to be that when VLC (server side) meet the end of the file, it forgets to push the rest of the cached data !

I am going to try what you suggest and send a bug report.

Thank you for help and have a nice week-end,
alain costanza
There's no path to happiness, happiness is the path !

alcos
New Cone
New Cone
Posts: 7
Joined: 26 Apr 2006 18:10
Location: Ecole d'Ingénieurs de Genève
Contact:

-sout-udp-caching . The movie don't play till the end !

Postby alcos » 13 Oct 2006 11:12

So Dionoea, I've just checked the last builds (last modified 13-10-2006) for windows, and i get the same problem so the bug is not fixed !

I am going to post the bug.

bye,
alain
There's no path to happiness, happiness is the path !

alcos
New Cone
New Cone
Posts: 7
Joined: 26 Apr 2006 18:10
Location: Ecole d'Ingénieurs de Genève
Contact:

-sout-udp-caching . The movie don't play till the end !

Postby alcos » 17 Oct 2006 13:50

For those who are interested, the only solution I've found to correct this problem, while waiting for the bug to be corrected, is to add on the server side a command like :

--file-cat "BlackFile.mpg"

Where 'BlackFile.mpg' is just a 'nothing movie with black screen' and which last the 'n seconds' which are necessary for vlc to push the end of the principal movie file.
There's no path to happiness, happiness is the path !

Laurie
Blank Cone
Blank Cone
Posts: 13
Joined: 02 Nov 2006 12:45
Location: Warwick, UK

Postby Laurie » 03 Nov 2006 12:04

Hello, this post looks interesting. I'm new to vlc but having just got it streaming over the
net from a capture card. (Linux server -> win xp client) I'm experiencing similar things.

The client connects (server says so) Only when I press the stop button on the server side does the video play on the client side. I'm not using files but a live feed, any idea how could I get around this?

server command ...

vlc -vvv v4l:/dev/video:norm=pal:channel=1:size=80x62 --no-sout-audio --ttl=30 --sout '#transcode{scale=1,fps=25,vcodec=mp4v,vb=32}:standard{access=http,mux=ogg,url=10.0.0.67:80}'
Laurie

alcos
New Cone
New Cone
Posts: 7
Joined: 26 Apr 2006 18:10
Location: Ecole d'Ingénieurs de Genève
Contact:

Postby alcos » 09 Nov 2006 14:04

Hello,

it's not the same problem than you that I've got. Anyway I have no idea what can be your problem...

Have you tried the last stable version of VLC (0.8.5) ?
Have you tried a local test, just with a hub ?
Have you tried to disable your firewalls ?
Did you test from a windows platform as a server ? Does it work ?
Did you try another linux distribution ?

I don't see why your stream is like stored on your server until you stop it, it looks very strange, it's not exactly the behavior we expect !

Did you try RTP transmission instead of http ?

Sorry, I can just send you questions, may be one of them will help you, I hope so.

Good luck and have a nice day,
alain
There's no path to happiness, happiness is the path !


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 1 guest