[linux-dvb] How can I save an entire TS to a file? Please help me

2008-01-03 Thread Matteo Pampolini
Hello everybody and happy new year,

my name is Matteo, I'm writing from Italy and this is
my first post to this list.

I'm trying to record an entire (data included) DVB-T
TS into a file, I tried many solutions before posting,
say dvbstream, DVBStreamer, VideoLAN, but always
without success.

I have an USB 2.0 SigmaTek DVB-300 device, that Linux
recognises as:

 dvb-usb: found a 'DiBcom USB2.0 DVB-T reference
design (MOD3000P)' in warm state.

Moreover, during initialization I get this message:

dvb-usb: will pass the complete MPEG2 transport stream
to the software demuxer.

As far as I can understand this means that the entire
transport stream should be passed to the kernel
software demuxer that in turns selects the PIDs I
need.

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.

Anyway, I am able to tune, of course, able to record a
single service and stream it to be watched through
VLC, but not to record the entire TS into a file, can
anyone please help me?

Many thanks in advance,

Matteo.


  ___ 
L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail: 
http://it.docs.yahoo.com/nowyoucan.html


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


Re: [linux-dvb] How can I save an entire TS to a file? Please help me

2008-01-03 Thread Nico Sabbi
Il Thursday 03 January 2008 17:12:07 Matteo Pampolini ha scritto:
 Hello everybody and happy new year,

 my name is Matteo, I'm writing from Italy and this is
 my first post to this list.

 I'm trying to record an entire (data included) DVB-T
 TS into a file, I tried many solutions before posting,
 say dvbstream, DVBStreamer, VideoLAN, but always
 without success.

 I have an USB 2.0 SigmaTek DVB-300 device, that Linux
 recognises as:

  dvb-usb: found a 'DiBcom USB2.0 DVB-T reference
 design (MOD3000P)' in warm state.

 Moreover, during initialization I get this message:

 dvb-usb: will pass the complete MPEG2 transport stream
 to the software demuxer.

 As far as I can understand this means that the entire
 transport stream should be passed to the kernel
 software demuxer that in turns selects the PIDs I
 need.

 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.

it's a feature of the linuxdvb drivers  that the specific driver
must be able to handle correctly, although in your case
there doesn't seem to be a problem


 Anyway, I am able to tune, of course, able to record a
 single service and stream it to be watched through
 VLC, but not to record the entire TS into a file, can
 anyone please help me?

what command line are you using?
$ dvbstream -f FREQ -bw BW -o 8192  dump.ts 
is sufficient

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


Re: [linux-dvb] How can I save an entire TS to a file? Please help me

2008-01-03 Thread Andrea Venturi
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


[EMAIL PROTECTED]:/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 71400 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

[EMAIL PROTECTED]:/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:

[EMAIL PROTECTED]:/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@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb