[Redbutton-devel] SF.net SVN: redbutton: [49] redbutton-download/trunk/stream.c
Brought to you by:
skilvington
|
From: <ski...@us...> - 2006-05-11 08:27:30
|
Revision: 49 Author: skilvington Date: 2006-05-11 01:27:18 -0700 (Thu, 11 May 2006) ViewCVS: http://svn.sourceforge.net/redbutton/?rev=49&view=rev Log Message: ----------- always set PES filter type to DMX_PES_OTHER Modified Paths: -------------- redbutton-download/trunk/stream.c Modified: redbutton-download/trunk/stream.c =================================================================== --- redbutton-download/trunk/stream.c 2006-05-10 13:36:14 UTC (rev 48) +++ redbutton-download/trunk/stream.c 2006-05-11 08:27:18 UTC (rev 49) @@ -28,11 +28,22 @@ pes_filter.output = DMX_OUT_TS_TAP; pes_filter.flags = DMX_IMMEDIATE_START; pes_filter.pid = pid; + /* + * I think the way pes_type works is like this: + * if you set it to DMX_PES_VIDEO then the output goes to the dvr0 device (as a TS) + * but it also ends up on the video0 device (presumably as decoded video frames) + * similarly for DMX_PES_AUDIO + * if we set the pes_type to DMX_PES_OTHER then the output only goes to the dvr0 device + * on my Nova-T card, there is no hardware MPEG decoder so setting the pes_type to DMX_PES_VIDEO returns an error (sometimes!) + * anyway, always setting it to DMX_PES_OTHER works for me + */ + pes_type=DMX_PES_OTHER; pes_filter.pes_type = pes_type; if(ioctl(fd, DMX_SET_PES_FILTER, &pes_filter) < 0) { error("ioctl DMX_SET_PES_FILTER: %s", strerror(errno)); +error("pid=%d type=%d", pid, pes_type); close(fd); return -1; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |