[linux-dvb] Using pipe?
Hi list , where I could find some example to use/manage pipe for ts-decoding ? Thanks _ Vinci la nuova Nissan Micra con MSN Messenger! http://www.msn.it/messenger/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with unsubscribe linux-dvb as subject.
[linux-dvb] Help with pipe/fifo
Hi where I could find sample using pipe/fifo for ts decoding? I would use pipe so the entire stream received, could be processed to retrieve all pid transmitting over a transponder (tuned by dvbtune). Now I am using this code but there a problem on decoding pid: child's get out only pid 0 (scan decode other pids)! I think the problem is in write-end pipe but I dont know how resolve! Could you help me in anyway? thanks of all. Andrea //parent write-end fd[1] while((read(fd_dvr,tmp,10*TS_SIZE))!=0){ write(fd[1],tmp,10*TS_SIZE); } //child read-end fd[0] if((read(fd[0], mbuf, TS_SIZE))0) perror(\nerror reading pipe\n); for (i = 0; i TS_SIZE ; i++) { if ( mbuf[i] == 0x47 ){ printf(\nFound sync byte at %d\n,i); break; } } if (i == TS_SIZE) { perror(\nNot a TS\n); return -1; }else{ memcpy(buf, mbuf+i, TS_SIZE-i); while((read(fd[0], mbuf, i))!=0); memcpy(buf+TS_SIZE-i, mbuf, i); //my_get_bits() function ok! point_bit=11; i=my_get_bits(buf,13); printf(\nFirst pid: %04x\n,i); point_bit=0; l=0; while((read(fd[0], buf, TS_SIZE))!=0){ //read(fd[0], buf, TS_SIZE); point_bit=11; i=my_get_bits(buf,13); printf(\nFound pid %d: %04x %d\n,l,i,i); point_bit=0; l++; } } } _ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with unsubscribe linux-dvb as subject.
[linux-dvb] Pipe ok! Set filtering dmx...
Hi list my pipe is ok! The last question is: there's a way to set the dmx_pes_filter_params.pid = ANY_PID to obtain each pid on the transponder? This is my last limitations, please send me a reply! Thanks to all. _ Vinci la nuova Nissan Micra con MSN Messenger! http://www.msn.it/messenger/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with unsubscribe linux-dvb as subject.
[linux-dvb] Pipe?
Hi list, I need use pipe to analyze consecutive pid of ts. With this code: if(pid=fork()0) perror(\nfork error\n); else if (pid0) {//parent close(fd[0]); //tuning operation and get fd_dvr handle close(fd[1]); if (waitpid(pid,NULL,0)0) perror(waitpid error); exit(0); } else if (pid==0) {//child close(fd[1]); close(fd[0]); exit(0); } _ Vinci la nuova Nissan Micra con MSN Messenger! http://www.msn.it/messenger/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with unsubscribe linux-dvb as subject.
[linux-dvb] REPIPE
ReHI list, excuse for mistake!! So, I use a fork (such as you seen previously) to get ts from a pipe. But there is something wrong because that code run twice !!! Someone could help me? Code or something else? Tks. _ Vinci la nuova Nissan Micra con MSN Messenger! http://www.msn.it/messenger/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with unsubscribe linux-dvb as subject.
[linux-dvb] [linux-dvb]-Not able to lock...
Hi list, I have again a bad problem: polling Getting frontend event FE_STATUS: polling Getting frontend event FE_STATUS: FE_HAS_SIGNAL FE_HAS_CARRIER polling Getting frontend event FE_STATUS: FE_HAS_SIGNAL FE_TIMEDOUT FE_HAS_CARRIER Not able to lock to the signal on the given frequency. There are any patches to apply or code to modify or something else? Thanks _ MSN Foto: condividi, ritocca e stampa le tue foto online http://photos.msn.it -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with unsubscribe linux-dvb as subject.
[linux-dvb] Reader idle
Hi list, I'm using API 3.0 to develop a Ts-reader with this pes filter: struct dmx_pes_filter_params flt; if((ioctl(fd_demuxv, DMX_SET_BUFFER_SIZE, TS_BUF_SIZE))0){ perror(DMX_SET_BUFFER_SIZE failed:); return -1; } memset(flt,0,sizeof(struct dmx_pes_filter_params)); flt.pid = pid; flt.input = DMX_IN_FRONTEND; flt.output = DMX_OUT_TS_TAP; flt.pes_type = DMX_PES_OTHER; flt.flags = DMX_IMMEDIATE_START; where #define TS_BUF_SIZE 4096 but when I test the sw (after sint. with dvbtune), it work fine only 1 time otherwise stop itself at : n = read(fd_dvr,buf,sizeof(buf)); uint8_t buf[188]; and my terminal doesn't show anything (no error, no message, nothing) so I don't know where it the problem!!! Note: after insmod or reboot my sw go well; at the second chance stop! Why?Thanks _ MSN Foto: condividi, ritocca e stampa le tue foto online http://photos.msn.it -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with unsubscribe linux-dvb as subject.
[linux-dvb] ts analyzer
Hi list, I would get out some information from a transport stream read from fd_demux by unsigned char buffer[188]; is there any struct to know? Something could help me with sample-code or links ?Thanks. _ Comunica in un Â’altra dimensione con MSN Extra Storage! http://www.msn.it/msnservizi/es/extra_storage_tag/ -- Info: To unsubscribe send a mail to [EMAIL PROTECTED] with unsubscribe linux-dvb as subject.