<div>Hmm. So this should do it:</div>
<div> </div>
<div>dvbstream -f 522000 -o -tm 8 0 1248 1249 5180 > recordings/test.ts</div>
<div> </div>
<div>But VLC does not play that file (mplayer does). I tried to add almost all pids in the stream but with no luck with VLC.</div>
<div> </div>
<div>Here are the pids I got from dvbsnoop:</div>
<div>
<p>dvbsnoop -s pidscan<br>dvbsnoop V1.4.00 -- <a href="http://dvbsnoop.sourceforge.net/">http://dvbsnoop.sourceforge.net/</a></p>
<p>---------------------------------------------------------<br>Transponder PID-Scan...<br>---------------------------------------------------------<br>PID found: 0 (0x0000) [SECTION: Program Association Table (PAT)]
<br>PID found: 1 (0x0001) [SECTION: Conditional Access Table (CAT)]<br>PID found: 18 (0x0012) [SECTION: Event Information Table (EIT) - other transport stream, present/following]<br>PID found: 41 (0x0029) [SECTION: DVB CA message section (EMM/ECM)]
<br>PID found: 57 (0x0039) [SECTION: DVB CA message section (EMM/ECM)]<br>PID found: 870 (0x0366) [SECTION: Program Map Table (PMT)]<br>PID found: 871 (0x0367) [SECTION: MHP- Application Information Table (AIT)]<br>
PID found: 872 (0x0368) [SECTION: DSM-CC - Download Data Messages (DDB)]<br>PID found: 878 (0x036e) [PES: ISO/IEC 13818-3 or ISO/IEC 11172-3 audio stream]<br>PID found: 879 (0x036f) [PES: ITU-T Rec. H.262 | ISO/IEC 13818-2 or ISO/IEC 11172-2 video stream]
<br>PID found: 880 (0x0370) [SECTION: Program Map Table (PMT)]<br>PID found: 1002 (0x03ea) [SECTION: DSM-CC - Download Data Messages (DDB)]<br>PID found: 1004 (0x03ec) [PES: private_stream_1]<br>PID found: 1010 (0x03f2) [SECTION: Program Map Table (PMT)]
<br>PID found: 1011 (0x03f3)<br>PID found: 1012 (0x03f4) [SECTION: DSM-CC - Download Data Messages (DDB)]<br>PID found: 1016 (0x03f8) [PES: ISO/IEC 13818-3 or ISO/IEC 11172-3 audio stream]<br>PID found: 1017 (0x03f9) [PES: private_stream_1]
<br>PID found: 1018 (0x03fa) [PES: ISO/IEC 13818-3 or ISO/IEC 11172-3 audio stream]<br>PID found: 1019 (0x03fb) [PES: ITU-T Rec. H.262 | ISO/IEC 13818-2 or ISO/IEC 11172-2 video stream]<br>PID found: 1021 (0x03fd) [SECTION: MHP- Application Information Table (AIT)]
<br>PID found: 1022 (0x03fe) [SECTION: DSM-CC - Download Data Messages (DDB)]<br>PID found: 1026 (0x0402) [PES: ISO/IEC 13818-3 or ISO/IEC 11172-3 audio stream]<br>PID found: 1027 (0x0403) [PES: private_stream_1]<br>PID found: 1028 (0x0404) [PES: ISO/IEC 13818-3 or ISO/IEC 11172-3 audio stream]
<br>PID found: 1029 (0x0405) [PES: ITU-T Rec. H.262 | ISO/IEC 13818-2 or ISO/IEC 11172-2 video stream]<br>PID found: 1241 (0x04d9) [SECTION: MHP- Application Information Table (AIT)]<br>PID found: 1242 (0x04da) [SECTION: DSM-CC - U-N messages (DSI or DII)]
<br>PID found: 1248 (0x04e0) [PES: ISO/IEC 13818-3 or ISO/IEC 11172-3 audio stream]<br>PID found: 1249 (0x04e1) [PES: ITU-T Rec. H.262 | ISO/IEC 13818-2 or ISO/IEC 11172-2 video stream]<br>PID found: 1280 (0x0500) [SECTION: Program Map Table (PMT)]
<br>PID found: 1290 (0x050a) [SECTION: Program Map Table (PMT)]<br>PID found: 5050 (0x13ba) [SECTION: Program Map Table (PMT)]<br>PID found: 5070 (0x13ce) [SECTION: Program Map Table (PMT)]<br>PID found: 5180 (0x143c) [SECTION: Program Map Table (PMT)]
<br>PID found: 8191 (0x1fff)<br></p><br><br> </div>
<div><span class="gmail_quote">2007/3/8, Måns Rullgård <<a href="mailto:mans@mansr.com">mans@mansr.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Peter Fassberg <<a href="mailto:pf@leissner.se">pf@leissner.se</a>> writes:<br><br>>> But how do I record a specific program in a mux? If I point out the video
<br>>> and sound pids for a program with<br>>><br>>> dvbstream -f 522000 -o -tm 8 1249 1248 > recordings/test.ts<br>>><br>>> The stream does not play in VLC.<br>><br>> Exact. That is not a "true" TS as some mandatory PID's is missing.
<br>> PAT/PMT/SDT/NIT/SID ... I'm sure there is someone who can explain<br>> exactly what PIDs you need to get i compliant TS.<br><br>You need the PAT, PMT, and whatever audio and video belong to your<br>program. The PAT always has PID 0, and lists the PID of the PMT for
<br>each program in the mux. The PMT then lists the PIDs of each<br>audio/video stream in the program. The NIT, SDT etc. only contain<br>meta-information not necessary for playback.<br><br>--<br>Måns Rullgård<br><a href="mailto:mans@mansr.com">
mans@mansr.com</a><br></blockquote></div><br>