Skip to contentSkip to conversation

analize ASI with dvbnoop and dektec 140

DISCUSSION [email protected] 4 participants 5 messages Oct 10, 2008 – Oct 11, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

I've been trying to analyze a ts with dvbsnoop through an ASI input unsuccessfully.
When I execute dvbsnoop, it tries to read from a location (/dev/dvb/...) wich doesn't exists.

# dvbsnoop -s pidscan
dvbsnoop V1.4.52 -- http://dvbsnoop.sourceforge.net/ 

---------------------------------------------------------
Transponder PID-Scan...
---------------------------------------------------------
Error(2): /dev/dvb/adapter0/dvr0: No such file or directory

My /dev contains the following:

bus/        Dta1xx1     Dta1xx5     Dta1xx9     loop/       pts/
disk/       Dta1xx2     Dta1xx6     fd/         MAKEDEV     shm/
dri/        Dta1xx3     Dta1xx7     .initramfs/ mapper/     .static/
Dta1xx0     Dta1xx4     Dta1xx8     input/      net/        .udev/

Dektec commands are located at: /home/optiva/DTA1xx/LinuxSDK_feb08/

Dta1xx/ Dta1xxNw/ DTAPI/ DtPlay/ DtRecord/ DtRmxUtil/
Dtu2xx/

I think may be two alternatives to solve this (at least). First one and cleaner is to have drivers and dektec software installed as must, that is drivers at /dev/dvb and software at /usr (included in the path). The other way could be use the dvb options to select the appropriate device, but I've no idea how to use it.

-demux device: demux device [/dev/dvb/adapter0/demux0]
-dvr device: dvr device [/dev/dvb/adapter0/dvr0]
-frontend device: frontend device [/dev/dvb/adapter0/frontend0]
-adapter n: select dvb adapter/card no. <n> using default path
-devnr n: select device no. <n> using default dvb adapter/card

Thanks in advance,

Luis Martinez
--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#1 lore raw
Quoted 4 lines · On Fri, Oct 10, 2008 at 02:09:08PM +0200, [email protected] wrote:

I've been trying to analyze a ts with dvbsnoop through an ASI input unsuccessfully.
When I execute dvbsnoop, it tries to read from a location (/dev/dvb/...) wich doesn't exists.

The drivers provided by DekTec do not implement the Linux DVB API. You can't use dvbsnoop.
You need to write your own program using their proprietary DTAPI library. At least their drivers are open source...

Daniel

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#2 lore raw

I think you could write a v4l2 wrapper using the dektec API.

bye,
rafael diniz

Em Friday 10 October 2008, Daniel Glöckner escreveu:

Quoted 10 lines · On Fri, Oct 10, 2008 at 02:09:08PM +0200, [email protected] wrote:
Quoted 4 lines

I've been trying to analyze a ts with dvbsnoop through an ASI input unsuccessfully.
When I execute dvbsnoop, it tries to read from a location (/dev/dvb/...) wich doesn't exists.

The drivers provided by DekTec do not implement the Linux DVB API. You can't use dvbsnoop.
You need to write your own program using their proprietary DTAPI library. At least their drivers are open source...

Signature · 5 lines
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Ciência da Computação @  Unicamp
Rádio Muda, radiolivre.org, TV Piolho, tvlivre.org, www.midiaindependente.org
Chave PGP: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x2FF86098
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#3 lore raw

2008/10/11 rafael2k <[email protected]>:

Quoted 2 lines

I think you could write a v4l2 wrapper using the dektec API.

v4l2 has nothing to do with dvbsnoop :-)

you might read the manual how you can get access to the mpeg-ts stream and simply pipe it to dvbsnoop

eg.:
dvbstream -o 8192 | dvbsnoop -s ts -if /dev/stdin

note you have to replace the dvbstream command with something specific from dektec I guess.

Markus

Quoted 24 lines

bye,
rafael diniz

Em Friday 10 October 2008, Daniel Glöckner escreveu:

Quoted 10 lines · On Fri, Oct 10, 2008 at 02:09:08PM +0200, [email protected] wrote:
Quoted 4 lines

I've been trying to analyze a ts with dvbsnoop through an ASI input unsuccessfully.
When I execute dvbsnoop, it tries to read from a location (/dev/dvb/...) wich doesn't exists.

The drivers provided by DekTec do not implement the Linux DVB API. You can't use dvbsnoop.
You need to write your own program using their proprietary DTAPI library. At least their drivers are open source...

--

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Ciência da Computação @  Unicamp

Rádio Muda, radiolivre.org, TV Piolho, tvlivre.org, www.midiaindependente.org Chave PGP: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x2FF86098
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

Quoted 5 lines

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list

#4 lore raw

Hi Markus,

Quoted 3 lines
Quoted 1 line

I think you could write a v4l2 wrapper using the dektec API.

v4l2 has nothing to do with dvbsnoop :-)

ok, read "write a dvb (the linux api) wrapper using the dektec API". : )

Quoted 8 lines

you might read the manual how you can get access to the mpeg-ts stream and simply pipe it to dvbsnoop

eg.:
dvbstream -o 8192 | dvbsnoop -s ts -if /dev/stdin

note you have to replace the dvbstream command with something specific from dektec I guess.

I was talking about using the dvb api, that would be nice to have for the dektec cards.
of course, you can get the data using a pipe.

one can do:

create a named pipe:

# mkfifo fifo.ts
# run dvbsnoop:
dvbsnoop -s ts -if fifo.ts
# feed the fifo
DtRecord fifo.ts

bye,
rafael diniz

Quoted 11 lines
Quoted 11 lines

Em Friday 10 October 2008, Daniel Glöckner escreveu:

Quoted 10 lines · On Fri, Oct 10, 2008 at 02:09:08PM +0200, [email protected] wrote:
Quoted 4 lines

I've been trying to analyze a ts with dvbsnoop through an ASI input unsuccessfully.
When I execute dvbsnoop, it tries to read from a location (/dev/dvb/...) wich doesn't exists.

The drivers provided by DekTec do not implement the Linux DVB API. You can't use dvbsnoop.
You need to write your own program using their proprietary DTAPI library. At least their drivers are open source...

Signature · 5 lines
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Ciência da Computação @  Unicamp
Rádio Muda, radiolivre.org, TV Piolho, tvlivre.org, www.midiaindependente.org
Chave PGP: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x2FF86098
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-

--
video4linux-list mailing list
Unsubscribe mailto:[email protected]?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/video4linux-list