How to filter one program from TS with multiple programs

About encoding, codec settings, muxers and filter usage

How to filter one program from TS with multiple programs

Postby jasonluo on Wed Jun 24, 2009 11:24 am

I have a TS file which contains four programs. Each program has one video track, two audio tracks and two dvb subtitle tracks. How can I generate a new TS file which includes only one program?

Thanks a lot.
jasonluo
New Cone
New Cone
 
Posts: 4
Joined: Wed Jun 24, 2009 11:19 am

Re: How to filter one program from TS with multiple programs

Postby thannoy on Wed Jun 24, 2009 11:40 am

@see VLC_command-line_help
@see Documentation:Streaming_HowTo

Code: Select all
vlc input.ts --program=prgmNumber --sout file/ts://oupout.ts
thannoy
Big Cone-huna
Big Cone-huna
 
Posts: 600
Joined: Thu Mar 20, 2008 10:44 am
Location: France

Re: How to filter one program from TS with multiple programs

Postby jasonluo on Wed Jun 24, 2009 12:15 pm

I tested the command, but the TS file generated is without any subtitle track. How can I remain the subtitle tracks of the program?
jasonluo
New Cone
New Cone
 
Posts: 4
Joined: Wed Jun 24, 2009 11:19 am

Re: How to filter one program from TS with multiple programs

Postby thannoy on Wed Jun 24, 2009 2:38 pm

Maybe look at those papougenet posts:
@see viewtopic.php?f=7&t=58265
@see viewtopic.php?f=4&t=59246
thannoy
Big Cone-huna
Big Cone-huna
 
Posts: 600
Joined: Thu Mar 20, 2008 10:44 am
Location: France

Re: How to filter one program from TS with multiple programs

Postby jasonluo on Wed Jun 24, 2009 3:06 pm

Great. It works with the following command line:

vlc.exe d:\650_hk.ts :sout-all :sout=#duplicate{dst=std{access=file,mux=ts,dst="d:\a.ts"},select="program=1",dst=display,select="program=1"}

Thanks a lot!
jasonluo
New Cone
New Cone
 
Posts: 4
Joined: Wed Jun 24, 2009 11:19 am

Re: How to filter one program from TS with multiple programs

Postby jasonluo on Thu Jun 25, 2009 7:27 am

Another problem. With the above command line, the PMT of the program is lost. How can I remain the PMT of that program?
jasonluo
New Cone
New Cone
 
Posts: 4
Joined: Wed Jun 24, 2009 11:19 am

Re: How to filter one program from TS with multiple programs

Postby csr@statsbiblioteket.dk on Wed Jul 01, 2009 12:20 pm

On linux I tried
Code: Select all
vlc input.ts :sout-all :sout=#duplicate{dst=std{access=file,mux=ts,dst="/home/csr/digitaltv_conf/drup.ts"},select="program=103",dst=display,select="program=103"}

but got the following error:
Code: Select all
[code][00000409] main stream out error: no sout stream module matched "duplicateselect=program=103"
[00000408] main stream output error: stream chain failed for `duplicateselect=program=103'
[00000407] main input error: cannot start stream output instance, aborting[/code]


What's that about? I'm on ubuntu. Is their vlc distrib missing some functionality?
csr@statsbiblioteket.dk
New Cone
New Cone
 
Posts: 5
Joined: Wed Sep 20, 2006 9:24 am

Re: How to filter one program from TS with multiple programs

Postby csr@statsbiblioteket.dk on Thu Aug 13, 2009 9:28 am

I've recompiled vlc with --enable-sout but I still get the same error. Any takers?
csr@statsbiblioteket.dk
New Cone
New Cone
 
Posts: 5
Joined: Wed Sep 20, 2006 9:24 am

Re: How to filter one program from TS with multiple programs

Postby mayuranantwar on Tue Feb 09, 2010 12:00 pm

Hello jasonluo!
Could you please share your transport stream with multiple dvb subtitling tracks?







Thanks,
MSA
mayuranantwar
New Cone
New Cone
 
Posts: 7
Joined: Mon Dec 17, 2007 4:14 pm


Return to VLC stream-output (sout)

Who is online

Users browsing this forum: No registered users and 13 guests