Page 1 of 1

MPEG-2 TS file demultiplexing ?

Posted: 22 Feb 2007 16:57
by MaeWanto
I would like to demultiplex an MPEG-2 TS file with VLC in order to get Elementary Streams ( audio, video and DVB subtitles if possible ). Could someone tell me the right command-line to use please ?

And what would be the command-line to mux audio, video and DVBsub ES to MPEG-2 TS ?

Posted: 23 Feb 2007 22:09
by DJ
Why not use the menu, it's a whole lot easier. :)

Posted: 23 Feb 2007 22:37
by MaeWanto
Because it's easier to batch with command lines ...

Actually, I'm not sure this is possible to demux an MPEG-2 TS files to "raw" Elementary Streams with VLC at all. I read that the resulting audio and video files had to be packed ( either in PS, TS, AVI or other file format ) and I didn't find anything about DVB subtitles ...

Posted: 23 Feb 2007 23:00
by DJ
Help options
-h, --help print help for VLC (can be combined with
--advanced)
-H, --longhelp print help for VLC and all it's modules (can
be combined with --advanced)
--advanced print help for the advanced options
--help-verbose ask for extra verbosity when displaying help

Posted: 24 Feb 2007 15:57
by paulc0001
Actually, I'm not sure this is possible to demux an MPEG-2 TS files to "raw" Elementary Streams with VLC at all.
You can generate ES files like this:

Code: Select all

vlc --intf dummy $1 vlc:quit --sout '#es{access=file,mux=es,dst-video="video.mp2v",dst-audio="audio.mp2a"}'
and I didn't find anything about DVB subtitles ...
If you're just adding subtitles to an existing TS file then try spumux but note this is for DVD subtitles which may be different.

Posted: 25 Feb 2007 02:41
by DJ
If I was a new user for a program trying to learn if something were possible I would try the menus first to see if what I wanted to was possible, before jumping into the command line. What you are trying to do is very unclear to me so I just made some superficial suggestions.

VLC is NOT batch encode, file friendly from the command line or any other way!!!!!!!!!!