Re: Write to DVR

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

 



Thomas Lagemann wrote:
> Hi,
> I'm trying to set up a DVB test environment using TS files from the
> hardisk and pass them to the DVB card.
> Using:
> cat myts.ts > /dev/dvb/adapter0/dvr0
> already does the trick, and i can display a few frames of the TS over my
> DVB card. But of course the bitrate is much to high and so it freesez
> after a few seconds.
> I'm now trying to write a program that writes the TS packets from the
> file with the right bitrate.
> So, how do i write to the dvr using the linux-dvb-api ?
> The following code returns -1 for written size.
> -----------------
> #define DVR "/dev/dvb/adapter0/devr0"
> 
> if ((dvr_out = open(DVR,O_WRONLY|O_NONBLOCK)) < 0){
> printf("Can't open dvr\n");
> return false;
> }
> dat=#one TS packet#
> if (dat)
>           {
>             size_t size=write (dvr_out, dat, 188);
>             printf("%d bytes written \n",size);
>           }
> ------------------
> Do i need to do something else to initialize the dvr?

IIRC, you need to use DMX_IN_DVR
ie pesfilter.input. IIRC, there is are some test applications in
dvb-apps/test/

_______________________________________________
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