Mailing List archive

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

[linux-dvb] Problems with apps/test/test_pes.c



I'm trying to learn how to get the audio and video PES data
from the NAPI and want to use the apps/test/test_pes.c example
from the latest CVS driver. After applying the following patch
to that file:

30a31
> #include <unistd.h>
49,50c50,51
<   int aout=open("audio.pes", O_RDWR|O_CREAT);
<   int vout=open("video.pes", O_RDWR|O_CREAT);
---
>   int aout=open("audio.pes", O_RDWR|O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP);
>   int vout=open("video.pes", O_RDWR|O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP);
66c67
< #if 0
---
> #if 1
78c79
<   if (ioctl(fd_sec, SEC_SEND_SEQUENCE, &scmds) < 0)  return;
---
>   if (ioctl(fd_sec, SEC_SEND_SEQUENCE, &scmds) < 0)  return 1;
85c86
<   if (ioctl(fd_frontend, QPSK_TUNE, &qpsk) < 0)  return;
---
>   if (ioctl(fd_frontend, QPSK_TUNE, &qpsk) < 0)  return 1;


it compiles fine, but when I run it, it doesn't tune to the desired
channel (apparently 'n-tv'), nor does it record anything. It just
creates the two files 'audio.pes' and 'video.pes'.

Tuning the channel with VDR (partially adapted to the NAPI) works
fine, so the problem must be within the test_pes.c example.
Maybe I just don't see it...

Can somebody point out what's wrong here?

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________


--- 
Info:
To unsubscribe send a mail to listar@linuxtv.org with "unsubscribe linux-dvb" as subject.



Home | Main Index | Thread Index