How to force VLC to always use TS?

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
vvd
New Cone
New Cone
Posts: 7
Joined: 09 Dec 2010 11:43

How to force VLC to always use TS?

Postby vvd » 17 Dec 2010 11:12

As I mentioned in my previous post Resync to an TS stream failes!, I'm using VLC to display a simple UDP stream of an Hauppauge HD-PVR box. I publish this stream simply by pushing 7 (cached) 188-byte TS packets over UDP. The HD-PVR box delivers a 1080i/50 MPEG-TS stream with H.264 encoded video and a stereo audio channel.

Starting VLC while the stream is still running results in 10%-20% to the following errors:

Code: Select all

ts warning: TS module discarded (lost sync) ps warning: this does not look like an MPEG PS stream, continuing anyway ps warning: garbage at input, trying to resync... ps warning: found sync code ps warning: garbage at input, trying to resync... ps warning: found sync code ....
Restarting the stream forces the fresh stream with fresh TS headers doesn't solve the problem. After the above error, VLC never tries to analyse a TS stream again. (all versions from 1.0.5 up to 1.1.5 neither for linux nor windows).

So, is it possible to force VLC (command line paramter?) to always use and try a TS stream?

It's important. Please answer I you have any idea.

vvd
New Cone
New Cone
Posts: 7
Joined: 09 Dec 2010 11:43

Re: How to force VLC to always use TS?

Postby vvd » 11 Jan 2011 10:42

I've found a way to force opening streams and stored files with the TS demuxer! Doing this solves the problem. There are some "skipping garbage" messages, but after this, VLC resync to the video and all works as expected. Nevertheless, there is still a bug in choosing the demuxer. (#4373)

The workarounds are: use "file/ts:" for files and "udp/ts:" for streams. I have to test the streaming as soon as I have access to a stream again.

But this "workarounds" have one drawback. I can call VLC with this prefixes by hand, but the file type associations must be fixed too.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 55 guests