Re: How can I save an entire TS to a file? Please help me

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matteo Pampolini wrote:

> 
> But what about the entire TS? I read about the special
> PID 8192, but I did not understood if this is a
> dvbstream feature (that doesn't work, at least for me)
> or if it's a LinuxDVB one.

hi,

in theory, it's not that difficult to dump a complete stream, BUT you 
should pay attention to the signal level because it's easy to get some 
continuity errors too if the BER is not zero..

i have a USB DVB-T device called Cinergy T2, and i can share my two 
hints. BTW i don't know if your device has the same capability (full ts 
dump..):

when i insert it on the USB BUS i get from dmesg:

==========
  [10511.327179] usb 2-2.2.3: new high speed USB device using ehci_hcd 
and address 15
[10511.346586] usb 2-2.2.3: configuration #1 chosen from 1 choice
[10511.543120] DVB: registering new adapter (TerraTec/qanu USB2.0 
Highspeed DVB-T Receiver)
[10511.544594] usbcore: registered new interface driver cinergyT2
==========

and here it's a sample of a command line for dvbstream (you get La7 in 
Bologna) to dump the complete ts stream

================
andrea@nb-venturi:/opt$ dvbstream -f 714000 -o 8192 > /tmp/prova.ts
dvbstream v0.6 - (C) Dave Chapman 2001-2004
Released under the GPL.
Latest version available from http://www.linuxstb.org/
Tuning to 714000 Hz
Using DVB card "TerraTec/qanu USB2.0 Highspeed DVB-T Receiver", freq=714000
tuning DVB-T (in United Kingdom) to 714000000 Hz, Bandwidth: 8
Getting frontend status
Bit error rate: 0
Signal strength: 54068
SNR: 46260
UNC: 0
FE_STATUS: FE_HAS_SIGNAL FE_HAS_LOCK FE_HAS_CARRIER FE_HAS_VITERBI 
FE_HAS_SYNC
dvbstream will stop after -1 seconds (71582788 minutes)
Output to stdout
Streaming 1 stream
Caught signal 2 - closing cleanly.
=================

as i told before, pay attention to the "Bit Error Rate" line, it should 
be zero..

let's see the file has grown a bit

andrea@nb-venturi:/opt$ ls -l /tmp/prova.ts
-rw-r--r-- 1 andrea andrea 17268552 2008-01-03 18:28 /tmp/prova.ts

now it's time to play it with VLC:

running with vlc you get some continuity errors only at the beginning 
(just to synchronize from the zero value as default..), if your TS is 
good enough.. like here:

andrea@nb-venturi:/opt$ vlc /tmp/prova.ts
VLC media player 0.8.6c Janus
libdvbpsi error (PSI decoder): TS discontinuity (received 8, expected 0) 
for PID 0
libdvbpsi error (PSI decoder): TS discontinuity (received 11, expected 
0) for PID 269
libdvbpsi error (PSI decoder): TS discontinuity (received 10, expected 
0) for PID 256
libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 0) 
for PID 343
libdvbpsi error (PSI decoder): TS discontinuity (received 8, expected 0) 
for PID 7042
libdvbpsi error (PSI decoder): TS discontinuity (received 15, expected 
0) for PID 283
libdvbpsi error (PSI decoder): TS discontinuity (received 12, expected 
0) for PID 279
libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 0) 
for PID 289
libdvbpsi error (PSI decoder): TS discontinuity (received 7, expected 0) 
for PID 298
libdvbpsi error (PSI decoder): TS discontinuity (received 9, expected 0) 
for PID 295
libdvbpsi error (PSI decoder): TS discontinuity (received 11, expected 
0) for PID 292
libdvbpsi error (PSI decoder): TS discontinuity (received 5, expected 0) 
for PID 301
libdvbpsi error (PSI decoder): TS discontinuity (received 11, expected 
0) for PID 359
libdvbpsi error (PSI decoder): TS discontinuity (received 14, expected 
0) for PID 304
libdvbpsi error (PSI decoder): TS discontinuity (received 13, expected 
0) for PID 18
libdvbpsi error (PSI decoder): TS discontinuity (received 1, expected 0) 
for PID 17


HTH

bye

andrea



_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux