pvr-350 and mplayer

Mr. Darren darren780 at yahoo.com
Fri Jun 25 17:42:45 UTC 2010


Maybe time to reconsider this.  Not everyone who needs to use cxm0 can use it with mplayer.  keep zoneminder and motion in mind.  


Re: PVR-350 and mplayer   
by Greg Lehey Dec 09, 2006; 04:17pm ::
Rate this Message:    - Use ratings to moderate (?) 
Reply | Print | View Threaded | Show Only this Message 
On Saturday,  9 December 2006 at 23:31:59 +0100, Anders Troback wrote: 
> Hi, 
> 
> I'm running a PVR-350 on my FBSD 6.2 system. 
> 
> If I do "mplayer /dev/cxm0" mplayer are showing "slow" picutre with 
> good sound at first and after a few secs good picture and crappy 
> sound. 

Yes, I've seen this, and I'm working on it.  You should also be seeing 
this kind of message in /var/log/messages: 

  Nov  3 17:04:58 afa0001 kernel: cxm0: encoder dma not enough buffer space free 

Try this patch: 

--- /usr/ports/multimedia/pvr250/work/dev/cxm/cxm.h     Sat Dec  9 13:28:01 2006 
+++ /usr/ports/multimedia/pvr250/work-in-progress/dev/cxm/cxm.h Thu Nov 30 18:30:15 2006 
@@ -64,7 +64,7 @@ 
        enum cxm_byte_order byte_order; 
 }; 

-#define CXM_SG_BUFFERS 50 
+#define CXM_SG_BUFFERS 500 

 struct cxm_buffer_pool { 
        bus_dma_tag_t           dmat; 

Then rebuild the module, unload the old module and install the new 
one.  Please let me know how it goes, whether or not it works.  I'm 
currently in the process of importing this driver into the source 
tree, and this is one of the things I'm planning to make a tuneable. 

Greg 
-- 
See complete headers for address and phone numbers. 



 attachment0 (194 bytes) Download Attachment  

 Re: PVR-350 and mplayer   
by Anders Troback Dec 12, 2006; 04:15am ::
Rate this Message:    - Use ratings to moderate (?) 
Reply | Print | View Threaded | Show Only this Message 
On Sun, 10 Dec 2006 09:47:27 +1030 
Greg 'groggy' Lehey <grog at ...> wrote: 


> On Saturday,  9 December 2006 at 23:31:59 +0100, Anders Troback wrote: 
> > Hi, 
> > 
> > I'm running a PVR-350 on my FBSD 6.2 system. 
> > 
> > If I do "mplayer /dev/cxm0" mplayer are showing "slow" picutre with 
> > good sound at first and after a few secs good picture and crappy 
> > sound. 
> 
> Yes, I've seen this, and I'm working on it.  You should also be seeing 
> this kind of message in /var/log/messages: 
> 
>   Nov  3 17:04:58 afa0001 kernel: cxm0: encoder dma not enough buffer 
> space free 
> 
> Try this patch: 
> 
> --- /usr/ports/multimedia/pvr250/work/dev/cxm/cxm.h     Sat Dec  9 
> 13:28:01 2006 
> +++ /usr/ports/multimedia/pvr250/work-in-progress/dev/cxm/cxm.h Thu 
> Nov 30 18:30:15 2006 @@ -64,7 +64,7 @@ enum cxm_byte_order byte_order; 
>  }; 
> 
> -#define CXM_SG_BUFFERS 50 
> +#define CXM_SG_BUFFERS 500 
> 
>  struct cxm_buffer_pool { 
>         bus_dma_tag_t           dmat; 
> 
> Then rebuild the module, unload the old module and install the new 
> one.  Please let me know how it goes, whether or not it works.  I'm 
> currently in the process of importing this driver into the source 
> tree, and this is one of the things I'm planning to make a tuneable. 
> 
... [show rest of quote]
No same thing (besides that I didn't see the dma stuff 
in /var/log/messages anymore):-( 

I did try to run xine instead (cat /dev/cxm0 | xine stdin://) and that 
works! It don't change anything but I just want to let you know:-) 



-- 
Anders Trobäck 
http://www.troback.com/
============================================ 
Windows: "Where do you want to go today?" 
Linux: "Where do you want to go tomorrow?" 
FreeBSD: "Are you guys coming, or what?" 
-------------------------------------------- 
_______________________________________________ 
freebsd-multimedia at ... mailing list 
http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe at ..." 
  

 Re: PVR-350 and mplayer   
by usleepless Dec 12, 2006; 04:44am ::
Rate this Message:    - Use ratings to moderate (?) 
Reply | Print | View Threaded | Show Only this Message 
Hi Anders, 

i am dutch, your name means "different" here. 

On 12/9/06, Anders Troback <freebsd at ...> wrote: 

> Hi, 
> 
> I'm running a PVR-350 on my FBSD 6.2 system. 
> 
> If I do "mplayer /dev/cxm0" mplayer are showing "slow" picutre with 
> good sound at first and after a few secs good picture and crappy sound. 
> 
> Mplayer repeats an error: 
> 
> Broken frame at 
> 0xB62E0 A:  15.9 V:   8.9 A-V:  6.984 ct:  0.584 205/205 11%  1% 152.2% 
> 29 0 Too many video packets in the buffer: (4096 in 8103092 bytes). 
> Maybe you are playing a non-interleaved stream/file or the codec failed? 
> For AVI files, try to force non-interleaved mode with the -ni option. 
> 
> Too many video packets in the buffer: (4096 in 8103092 bytes). 
> Maybe you are playing a non-interleaved stream/file or the codec failed? 
> For AVI files, try to force non-interleaved mode with the -ni option. 
> A:  16.0 V:   9.0 A-V:  7.035 ct:  0.588 206/206 12%  1% 151.5% 29 0 
> 
> If I do "cat /dev/cxm0 > tv.mpg" and then "mplayer tv.mpg" everything 
> are just fine! 
> 
> Any ideas out there!?! 
> 
> Thanks!!! 
... [show rest of quote]

try mplayer -cache 4000 /dev/cxm0 

regards, 

usleep 
_______________________________________________ 
freebsd-multimedia at ... mailing list 
http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe at ..." 
  

 Re: PVR-350 and mplayer   
by Anders Troback Dec 12, 2006; 04:55am ::
Rate this Message:    - Use ratings to moderate (?) 
Reply | Print | View Threaded | Show Only this Message 
On Tue, 12 Dec 2006 12:44:49 +0100 
usleepless at ... wrote: 


> Hi Anders, 
> 
> i am dutch, your name means ":" here. 
> 
> On 12/9/06, Anders Troback <freebsd at ...> wrote: 
> > Hi, 
> > 
> > I'm running a PVR-350 on my FBSD 6.2 system. 
> > 
> > If I do "mplayer /dev/cxm0" mplayer are showing "slow" picutre with 
> > good sound at first and after a few secs good picture and crappy 
> > sound. 
> > 
> > Mplayer repeats an error: 
> > 
> > Broken frame at 
> > 0xB62E0 A:  15.9 V:   8.9 A-V:  6.984 ct:  0.584 205/205 11%  1% 
> > 152.2% 29 0 Too many video packets in the buffer: (4096 in 8103092 
> > bytes). Maybe you are playing a non-interleaved stream/file or the 
> > codec failed? For AVI files, try to force non-interleaved mode with 
> > the -ni option. 
> > 
> > Too many video packets in the buffer: (4096 in 8103092 bytes). 
> > Maybe you are playing a non-interleaved stream/file or the codec 
> > failed? For AVI files, try to force non-interleaved mode with the 
> > -ni option. A:  16.0 V:   9.0 A-V:  7.035 ct:  0.588 206/206 12% 
> > 1% 151.5% 29 0 
> > 
> > If I do "cat /dev/cxm0 > tv.mpg" and then "mplayer tv.mpg" 
> > everything are just fine! 
> > 
> > Any ideas out there!?! 
> > 
> > Thanks!!! 
> 
> 
> try mplayer -cache 4000 /dev/cxm0 
> 
> regards, 
> 
> usleep 
... [show rest of quote]
That did the trick (with that patch on, will try without it later) ! 

Thanks!!! 

And yes, I'm different:-) 


\\anders 

-- 
Anders Trobäck 
http://www.troback.com/
============================================ 
Windows: "Where do you want to go today?" 
Linux: "Where do you want to go tomorrow?" 
FreeBSD: "Are you guys coming, or what?" 
-------------------------------------------- 
_______________________________________________ 
freebsd-multimedia at ... mailing list 
http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia
To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe at ..." 
   Free embeddable forum powered by Nabble

 Darren Johnston




More information about the freebsd-multimedia mailing list