Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-17 Thread Duncan Webb
Paul Sijben wrote:
>> So what you need is a way to change the MPLAYER_VO_DEV depending on the
>> media type, rather than the activity?
> 
> 
> indeed. The problem is that with ivtv the tv also gives mpeg.
> 
> but I am not sure the MPLAYER ARGS will work as it will insert also the
> other VO_DEV which I guess will confuse mplayer.
> right?

What happens when you use, to play mpeg and avi files:
-vo xvmc,xvidix -vc ffmpeg12mc
and
-vo xvmc,xvidix

AFAIK Mplayer will fallback to a second video output device when the
first one doesn't work.

If this works then it is easy and no changes are required. :)

And try not to top post so much, as other readers will lose the thread
of the conversation.

Duncan

> Duncan Webb wrote:
>> Paul Sijben wrote:
>>   
>>> That was not what I meant. on a unichrome platform xvidix will do hw
>>> /assisted /decoding of thinks like divx, it does not work for mpeg2.
>>> I only used it as an example of the template I think should be used.
>>>
>>> So for me personally the -vo xvmc  -vc ffmpeg12mc  should be used when
>>> the recording devices is ivtv.
>>>
>>> Others will need the normal MPLAYER_VO_DEV and MPLAYER_VO_DEV_OPTS
>>> 
>>
>> Then I think you could add special device arguments to the MPLAYER_ARGS,
>> this is what I have:
>> MPLAYER_ARGS = { 'dvd': '-cache 8192',
>>  'vcd': '-cache 4096',
>>  'cd' : '-cache 1024 -cdda speed=2',
>>  'tv' : '-nocache',
>>  'ivtv'   : '-cache 8192',
>>  'dvb': '-cache 1024',
>>  'avi': '-cache 5000 -idx',
>>  'rm' : '-cache 5000 -forceidx',
>>  'rmvb'   : '-cache 5000 -forceidx',
>>  'webcam' : 'tv:// -tv
>> driver=v4l:width=352:height=288:outfmt=yuy2:device=/dev/video2',
>>  'default': '-cache 5000'
>>  }
>>
>> AFAIK I could also add mpeg it the above.
>>
>> So what you need is a way to change the MPLAYER_VO_DEV depending on the
>> media type, rather than the activity?
>>
>> Duncan
>>
>>   
>>> Paul
>>>
>>>
>>> Duncan Webb wrote:
>>> 
 Paul Sijben wrote:
   
   
> sure, I would expect to see for unichrome or other HWacel output playback:
>
>  --prio=-20 /usr/bin/mplayer -vo xvmc  -vc ffmpeg12mc -framedrop  
> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
> -fs -slave -cache 8192 /dev/video0
>
>
> and when one does not have mpeg2 HWaccel:
>
>  --prio=-20 /usr/bin/mplayer -vo xvidix -framedrop  
> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
> -fs -slave -cache 8192 /dev/video0
>
>
> Note that in my setup there are no MPLAYER_VO_DEV_OPTS
> 
> 
 Now I'm confused the only difference is "-vo xvmc -vc ffmpeg12mc" for
 hardware decoding and "-vo xvidix" for software decoding.

 So why do we need HWaccel options, they could be set up in local_conf.py 
 as:
 MPLAYER_VO_DEV = 'xvmc'
 MPLAYER_VO_DEV_OPTS = '-vc ffmpeg12mc'

 Do you only want these options for watching tv?

 Duncan

   
   
> Paul
>
>
> Duncan Webb wrote:
> 
> 
>> Paul Sijben wrote:
>>   
>>   
>>   
>>> Duncan,
>>>
>>> Sorry for the delay. I now had time to test the patch and it does not
>>> work. it now produces the following command (adding both the non
>>> hardware accellerated VO device and the non HW accel):
>>>
>>>  --prio=-20 /usr/bin/mplayer -vo xvidixxvmc  -vc ffmpeg12mc -framedrop  
>>> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
>>> -fs -slave -cache 8192 /dev/video0
>>> 
>>> 
>>> 
>> What is the correct command line, can you list the different command
>> lines that you expect if they are different.
>>
>> Thanks
>> Duncan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-17 Thread Paul Sijben
> So what you need is a way to change the MPLAYER_VO_DEV depending on the
> media type, rather than the activity?


indeed. The problem is that with ivtv the tv also gives mpeg.

but I am not sure the MPLAYER ARGS will work as it will insert also the
other VO_DEV which I guess will confuse mplayer.
right?
Paul

Duncan Webb wrote:
> Paul Sijben wrote:
>   
>> That was not what I meant. on a unichrome platform xvidix will do hw
>> /assisted /decoding of thinks like divx, it does not work for mpeg2.
>> I only used it as an example of the template I think should be used.
>>
>> So for me personally the -vo xvmc  -vc ffmpeg12mc  should be used when
>> the recording devices is ivtv.
>>
>> Others will need the normal MPLAYER_VO_DEV and MPLAYER_VO_DEV_OPTS
>> 
>
> Then I think you could add special device arguments to the MPLAYER_ARGS,
> this is what I have:
> MPLAYER_ARGS = { 'dvd': '-cache 8192',
>  'vcd': '-cache 4096',
>  'cd' : '-cache 1024 -cdda speed=2',
>  'tv' : '-nocache',
>  'ivtv'   : '-cache 8192',
>  'dvb': '-cache 1024',
>  'avi': '-cache 5000 -idx',
>  'rm' : '-cache 5000 -forceidx',
>  'rmvb'   : '-cache 5000 -forceidx',
>  'webcam' : 'tv:// -tv
> driver=v4l:width=352:height=288:outfmt=yuy2:device=/dev/video2',
>  'default': '-cache 5000'
>  }
>
> AFAIK I could also add mpeg it the above.
>
> So what you need is a way to change the MPLAYER_VO_DEV depending on the
> media type, rather than the activity?
>
> Duncan
>
>   
>> Paul
>>
>>
>> Duncan Webb wrote:
>> 
>>> Paul Sijben wrote:
>>>   
>>>   
 sure, I would expect to see for unichrome or other HWacel output playback:

  --prio=-20 /usr/bin/mplayer -vo xvmc  -vc ffmpeg12mc -framedrop  
 -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
 -fs -slave -cache 8192 /dev/video0


 and when one does not have mpeg2 HWaccel:

  --prio=-20 /usr/bin/mplayer -vo xvidix -framedrop  
 -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
 -fs -slave -cache 8192 /dev/video0


 Note that in my setup there are no MPLAYER_VO_DEV_OPTS
 
 
>>> Now I'm confused the only difference is "-vo xvmc -vc ffmpeg12mc" for
>>> hardware decoding and "-vo xvidix" for software decoding.
>>>
>>> So why do we need HWaccel options, they could be set up in local_conf.py as:
>>> MPLAYER_VO_DEV = 'xvmc'
>>> MPLAYER_VO_DEV_OPTS = '-vc ffmpeg12mc'
>>>
>>> Do you only want these options for watching tv?
>>>
>>> Duncan
>>>
>>>   
>>>   
 Paul


 Duncan Webb wrote:
 
 
> Paul Sijben wrote:
>   
>   
>   
>> Duncan,
>>
>> Sorry for the delay. I now had time to test the patch and it does not
>> work. it now produces the following command (adding both the non
>> hardware accellerated VO device and the non HW accel):
>>
>>  --prio=-20 /usr/bin/mplayer -vo xvidixxvmc  -vc ffmpeg12mc -framedrop  
>> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
>> -fs -slave -cache 8192 /dev/video0
>> 
>> 
>> 
> What is the correct command line, can you list the different command
> lines that you expect if they are different.
>
> Thanks
> Duncan
>   
>   
>>> -
>>> Take Surveys. Earn Cash. Influence the Future of IT
>>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>>> opinions on IT & business topics through brief surveys - and earn cash
>>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> ___
>>> Freevo-users mailing list
>>> Freevo-users@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/freevo-users
>>>   
>>>   
>> -- 
>> Paul Sijben mailto:[EMAIL PROTECTED]
>> Amersfoort, NL  http://www.sijben.net
>> tel:+31 334557522   fax:+31 33 4557523
>>
>>
>> 
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>>
>> 
>>
>> ___
>> Freevo-users mailing list
>> Freevo-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freevo-users
>> 
>
>
>
> 

Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-17 Thread Duncan Webb
Paul Sijben wrote:
> That was not what I meant. on a unichrome platform xvidix will do hw
> /assisted /decoding of thinks like divx, it does not work for mpeg2.
> I only used it as an example of the template I think should be used.
> 
> So for me personally the -vo xvmc  -vc ffmpeg12mc  should be used when
> the recording devices is ivtv.
> 
> Others will need the normal MPLAYER_VO_DEV and MPLAYER_VO_DEV_OPTS

Then I think you could add special device arguments to the MPLAYER_ARGS,
this is what I have:
MPLAYER_ARGS = { 'dvd': '-cache 8192',
 'vcd': '-cache 4096',
 'cd' : '-cache 1024 -cdda speed=2',
 'tv' : '-nocache',
 'ivtv'   : '-cache 8192',
 'dvb': '-cache 1024',
 'avi': '-cache 5000 -idx',
 'rm' : '-cache 5000 -forceidx',
 'rmvb'   : '-cache 5000 -forceidx',
 'webcam' : 'tv:// -tv
driver=v4l:width=352:height=288:outfmt=yuy2:device=/dev/video2',
 'default': '-cache 5000'
 }

AFAIK I could also add mpeg it the above.

So what you need is a way to change the MPLAYER_VO_DEV depending on the
media type, rather than the activity?

Duncan

> 
> Paul
> 
> 
> Duncan Webb wrote:
>> Paul Sijben wrote:
>>   
>>> sure, I would expect to see for unichrome or other HWacel output playback:
>>>
>>>  --prio=-20 /usr/bin/mplayer -vo xvmc  -vc ffmpeg12mc -framedrop  
>>> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
>>> -fs -slave -cache 8192 /dev/video0
>>>
>>>
>>> and when one does not have mpeg2 HWaccel:
>>>
>>>  --prio=-20 /usr/bin/mplayer -vo xvidix -framedrop  
>>> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
>>> -fs -slave -cache 8192 /dev/video0
>>>
>>>
>>> Note that in my setup there are no MPLAYER_VO_DEV_OPTS
>>> 
>>
>> Now I'm confused the only difference is "-vo xvmc -vc ffmpeg12mc" for
>> hardware decoding and "-vo xvidix" for software decoding.
>>
>> So why do we need HWaccel options, they could be set up in local_conf.py as:
>> MPLAYER_VO_DEV = 'xvmc'
>> MPLAYER_VO_DEV_OPTS = '-vc ffmpeg12mc'
>>
>> Do you only want these options for watching tv?
>>
>> Duncan
>>
>>   
>>> Paul
>>>
>>>
>>> Duncan Webb wrote:
>>> 
 Paul Sijben wrote:
   
   
> Duncan,
>
> Sorry for the delay. I now had time to test the patch and it does not
> work. it now produces the following command (adding both the non
> hardware accellerated VO device and the non HW accel):
>
>  --prio=-20 /usr/bin/mplayer -vo xvidixxvmc  -vc ffmpeg12mc -framedrop  
> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
> -fs -slave -cache 8192 /dev/video0
> 
> 
 What is the correct command line, can you list the different command
 lines that you expect if they are different.

 Thanks
 Duncan
   
>>
>>
>> -
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to share your
>> opinions on IT & business topics through brief surveys - and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>> ___
>> Freevo-users mailing list
>> Freevo-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/freevo-users
>>   
> 
> -- 
> Paul Sijben mailto:[EMAIL PROTECTED]
> Amersfoort, NL  http://www.sijben.net
> tel:+31 334557522   fax:+31 33 4557523
> 
> 
> 
> 
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> 
> 
> 
> 
> ___
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users



-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-17 Thread Paul Sijben
That was not what I meant. on a unichrome platform xvidix will do hw
/assisted /decoding of thinks like divx, it does not work for mpeg2.
I only used it as an example of the template I think should be used.

So for me personally the -vo xvmc  -vc ffmpeg12mc  should be used when
the recording devices is ivtv.

Others will need the normal MPLAYER_VO_DEV and MPLAYER_VO_DEV_OPTS

Paul


Duncan Webb wrote:
> Paul Sijben wrote:
>   
>> sure, I would expect to see for unichrome or other HWacel output playback:
>>
>>  --prio=-20 /usr/bin/mplayer -vo xvmc  -vc ffmpeg12mc -framedrop  
>> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
>> -fs -slave -cache 8192 /dev/video0
>>
>>
>> and when one does not have mpeg2 HWaccel:
>>
>>  --prio=-20 /usr/bin/mplayer -vo xvidix -framedrop  
>> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
>> -fs -slave -cache 8192 /dev/video0
>>
>>
>> Note that in my setup there are no MPLAYER_VO_DEV_OPTS
>> 
>
> Now I'm confused the only difference is "-vo xvmc -vc ffmpeg12mc" for
> hardware decoding and "-vo xvidix" for software decoding.
>
> So why do we need HWaccel options, they could be set up in local_conf.py as:
> MPLAYER_VO_DEV = 'xvmc'
> MPLAYER_VO_DEV_OPTS = '-vc ffmpeg12mc'
>
> Do you only want these options for watching tv?
>
> Duncan
>
>   
>> Paul
>>
>>
>> Duncan Webb wrote:
>> 
>>> Paul Sijben wrote:
>>>   
>>>   
 Duncan,

 Sorry for the delay. I now had time to test the patch and it does not
 work. it now produces the following command (adding both the non
 hardware accellerated VO device and the non HW accel):

  --prio=-20 /usr/bin/mplayer -vo xvidixxvmc  -vc ffmpeg12mc -framedrop  
 -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
 -fs -slave -cache 8192 /dev/video0
 
 
>>> What is the correct command line, can you list the different command
>>> lines that you expect if they are different.
>>>
>>> Thanks
>>> Duncan
>>>   
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>   

-- 
Paul Sijben mailto:[EMAIL PROTECTED]
Amersfoort, NL  http://www.sijben.net
tel:+31 334557522   fax:+31 33 4557523

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-17 Thread Duncan Webb
Paul Sijben wrote:
> sure, I would expect to see for unichrome or other HWacel output playback:
> 
>  --prio=-20 /usr/bin/mplayer -vo xvmc  -vc ffmpeg12mc -framedrop  
> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
> -fs -slave -cache 8192 /dev/video0
> 
> 
> and when one does not have mpeg2 HWaccel:
> 
>  --prio=-20 /usr/bin/mplayer -vo xvidix -framedrop  
> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
> -fs -slave -cache 8192 /dev/video0
> 
> 
> Note that in my setup there are no MPLAYER_VO_DEV_OPTS

Now I'm confused the only difference is "-vo xvmc -vc ffmpeg12mc" for
hardware decoding and "-vo xvidix" for software decoding.

So why do we need HWaccel options, they could be set up in local_conf.py as:
MPLAYER_VO_DEV = 'xvmc'
MPLAYER_VO_DEV_OPTS = '-vc ffmpeg12mc'

Do you only want these options for watching tv?

Duncan

> 
> Paul
> 
> 
> Duncan Webb wrote:
>> Paul Sijben wrote:
>>   
>>> Duncan,
>>>
>>> Sorry for the delay. I now had time to test the patch and it does not
>>> work. it now produces the following command (adding both the non
>>> hardware accellerated VO device and the non HW accel):
>>>
>>>  --prio=-20 /usr/bin/mplayer -vo xvidixxvmc  -vc ffmpeg12mc -framedrop  
>>> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
>>> -fs -slave -cache 8192 /dev/video0
>>> 
>>
>> What is the correct command line, can you list the different command
>> lines that you expect if they are different.
>>
>> Thanks
>> Duncan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-17 Thread Paul Sijben
sure, I would expect to see for unichrome or other HWacel output playback:

 --prio=-20 /usr/bin/mplayer -vo xvmc  -vc ffmpeg12mc -framedrop  
-ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
-fs -slave -cache 8192 /dev/video0


and when one does not have mpeg2 HWaccel:

 --prio=-20 /usr/bin/mplayer -vo xvidix -framedrop  
-ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
-fs -slave -cache 8192 /dev/video0


Note that in my setup there are no MPLAYER_VO_DEV_OPTS

Paul


Duncan Webb wrote:
> Paul Sijben wrote:
>   
>> Duncan,
>>
>> Sorry for the delay. I now had time to test the patch and it does not
>> work. it now produces the following command (adding both the non
>> hardware accellerated VO device and the non HW accel):
>>
>>  --prio=-20 /usr/bin/mplayer -vo xvidixxvmc  -vc ffmpeg12mc -framedrop  
>> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
>> -fs -slave -cache 8192 /dev/video0
>> 
>
> What is the correct command line, can you list the different command
> lines that you expect if they are different.
>
> Thanks
> Duncan
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>   

-- 
Paul Sijben mailto:[EMAIL PROTECTED]
Amersfoort, NL  http://www.sijben.net
tel:+31 334557522   fax:+31 33 4557523

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-17 Thread Duncan Webb
Paul Sijben wrote:
> Duncan,
> 
> Sorry for the delay. I now had time to test the patch and it does not
> work. it now produces the following command (adding both the non
> hardware accellerated VO device and the non HW accel):
> 
>  --prio=-20 /usr/bin/mplayer -vo xvidixxvmc  -vc ffmpeg12mc -framedrop  
> -ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
> -fs -slave -cache 8192 /dev/video0

What is the correct command line, can you list the different command
lines that you expect if they are different.

Thanks
Duncan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-17 Thread Paul Sijben
Duncan,

Sorry for the delay. I now had time to test the patch and it does not
work. it now produces the following command (adding both the non
hardware accellerated VO device and the non HW accel):

 --prio=-20 /usr/bin/mplayer -vo xvidixxvmc  -vc ffmpeg12mc -framedrop  
-ao alsa -fs -autosync 100 -nolirc -autoq 100 -screenw 768 -screenh 576
-fs -slave -cache 8192 /dev/video0


Duncan Webb wrote:
> Paul Sijben wrote:
>   
>> 1.6.1 with the modifications I have shared with the email list ;-)
>> 
>
> Will you try this patch against the original tv/plugins/mplayer.py?
>
> I would like to know if the changes are valid for the HWACCEL stuff.
>
> Duncan
>
>   
> 
>
> --- src/tv/plugins/mplayer.py 2006-10-24 09:44:21.0 +0200
> +++ src/tv/plugins/mplayer.py.r8716   2006-12-11 22:00:10.0 +0100
> @@ -2,14 +2,14 @@
>  # ---
>  # mplayer.py - implementation of a TV function using MPlayer
>  # ---
> -# $Id: mplayer.py 8460 2006-10-24 07:44:20Z duncan $
> +# $Id: mplayer.py 8716 2006-12-10 16:50:42Z duncan $
>  #
>  # Notes:
> -# Todo:
> +# Todo:
>  #
>  # ---
>  # Freevo - A Home Theater PC framework
> -# Copyright (C) 2002 Krister Lagerstrom, et al. 
> +# Copyright (C) 2002 Krister Lagerstrom, et al.
>  # Please see the file freevo/Docs/CREDITS for a complete list of authors.
>  #
>  # This program is free software; you can redistribute it and/or modify
> @@ -69,7 +69,7 @@
>  
>  __muted= 0
>  __igainvol = 0
> -
> +
>  def __init__(self):
>  self.tuner_chidx = 0# Current channel, index into 
> config.TV_CHANNELS
>  self.app_mode = 'tv'
> @@ -81,19 +81,20 @@
>  
>  if not tuner_channel:
>  tuner_channel = self.fc.getChannel()
> -
> +
>  vg = self.current_vg = self.fc.getVideoGroup(tuner_channel, True)
>  
>  # Convert to MPlayer TV setting strings
>  norm = 'norm=%s' % vg.tuner_norm
>  input = 'input=%s' % vg.input_num
>  device= 'device=%s' % vg.vdev
> -
> +
>  w, h = config.TV_VIEW_SIZE
>  outfmt = 'outfmt=%s' % config.TV_VIEW_OUTFMT
>  
>  # Build the MPlayer command
>  args = (config.MPLAYER_NICE, config.MPLAYER_CMD, 
> config.MPLAYER_VO_DEV,
> +config.MPLAYER_VO_DEV_HWACCEL, 
> config.MPLAYER_VO_DEV_OPTS_HWACCEL,
>  config.MPLAYER_VO_DEV_OPTS, config.MPLAYER_AO_DEV, 
> config.MPLAYER_ARGS_DEF)
>  
>  if mode == 'tv':
> @@ -104,7 +105,7 @@
>  #ivtv_dev.print_settings()
>  ivtv_dev.close()
>  self.fc.chanSet(tuner_channel, True)
> -
> +
>  tvcmd = vg.vdev
>  
>  if config.MPLAYER_ARGS.has_key('ivtv'):
> @@ -128,7 +129,7 @@
>  
>  tvcmd = ('tv:// -tv driver=%s:%s:freq=%s:%s:%s:'
>   '%s:width=%s:height=%s:%s %s' %
> - (config.TV_DRIVER, vg.adev, tuner_freq, device, 
> input, norm, 
> + (config.TV_DRIVER, vg.adev, tuner_freq, device, 
> input, norm,
>w, h, outfmt, config.TV_OPTS))
>  
>  if config.MPLAYER_ARGS.has_key('tv'):
> @@ -140,7 +141,7 @@
>  
>  tvcmd = ('tv:// -tv driver=%s:freq=%s:%s:%s:'
>   '%s:width=%s:height=%s:%s %s' %
> - (config.TV_DRIVER, tuner_freq, device, input, norm, 
> + (config.TV_DRIVER, tuner_freq, device, input, norm,
>w, h, outfmt, config.TV_OPTS))
>  
>  if config.MPLAYER_ARGS.has_key('tv'):
> @@ -149,7 +150,7 @@
>  elif mode == 'vcr':
>  tvcmd = ('tv:// -tv driver=%s:%s:%s:'
>   '%s:width=%s:height=%s:%s %s' %
> - (config.TV_DRIVER, device, input, norm, 
> + (config.TV_DRIVER, device, input, norm,
>w, h, outfmt, config.TV_OPTS))
>  
>  if config.MPLAYER_ARGS.has_key('tv'):
> @@ -161,9 +162,10 @@
>  
>  args += (tvcmd,)
>  
> -mpl = '--prio=%s %s -vo %s%s -ao %s -fs %s -slave %s %s' % args
> +mpl = '--prio=%s %s -vo %s%s %s %s -ao %s -fs %s -slave %s %s' % args
>  
>  command = mpl
> +_debug_('command=\"%s\"', (command))
>  self.mode = mode
>  
>  
> @@ -172,7 +174,7 @@
>  # VCR is mic in
>  # btaudio (different dsp device) will be added later
>  mixer = plugin.getbyname('MIXER')
> -
> +
>  if mixer and config.MAJOR_AUDIO_CTRL == 'VOL':
>  mixer_vol = mixer.getMainVolume()
>  mixer.setMainVolume(0)
> @@ -182,7 +184,7 @@
>  
>

Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-11 Thread Duncan Webb
Paul Sijben wrote:
> 1.6.1 with the modifications I have shared with the email list ;-)

Will you try this patch against the original tv/plugins/mplayer.py?

I would like to know if the changes are valid for the HWACCEL stuff.

Duncan

--- src/tv/plugins/mplayer.py   2006-10-24 09:44:21.0 +0200
+++ src/tv/plugins/mplayer.py.r8716 2006-12-11 22:00:10.0 +0100
@@ -2,14 +2,14 @@
 # ---
 # mplayer.py - implementation of a TV function using MPlayer
 # ---
-# $Id: mplayer.py 8460 2006-10-24 07:44:20Z duncan $
+# $Id: mplayer.py 8716 2006-12-10 16:50:42Z duncan $
 #
 # Notes:
-# Todo:
+# Todo:
 #
 # ---
 # Freevo - A Home Theater PC framework
-# Copyright (C) 2002 Krister Lagerstrom, et al. 
+# Copyright (C) 2002 Krister Lagerstrom, et al.
 # Please see the file freevo/Docs/CREDITS for a complete list of authors.
 #
 # This program is free software; you can redistribute it and/or modify
@@ -69,7 +69,7 @@
 
 __muted= 0
 __igainvol = 0
-
+
 def __init__(self):
 self.tuner_chidx = 0# Current channel, index into 
config.TV_CHANNELS
 self.app_mode = 'tv'
@@ -81,19 +81,20 @@
 
 if not tuner_channel:
 tuner_channel = self.fc.getChannel()
-
+
 vg = self.current_vg = self.fc.getVideoGroup(tuner_channel, True)
 
 # Convert to MPlayer TV setting strings
 norm = 'norm=%s' % vg.tuner_norm
 input = 'input=%s' % vg.input_num
 device= 'device=%s' % vg.vdev
-
+
 w, h = config.TV_VIEW_SIZE
 outfmt = 'outfmt=%s' % config.TV_VIEW_OUTFMT
 
 # Build the MPlayer command
 args = (config.MPLAYER_NICE, config.MPLAYER_CMD, config.MPLAYER_VO_DEV,
+config.MPLAYER_VO_DEV_HWACCEL, 
config.MPLAYER_VO_DEV_OPTS_HWACCEL,
 config.MPLAYER_VO_DEV_OPTS, config.MPLAYER_AO_DEV, 
config.MPLAYER_ARGS_DEF)
 
 if mode == 'tv':
@@ -104,7 +105,7 @@
 #ivtv_dev.print_settings()
 ivtv_dev.close()
 self.fc.chanSet(tuner_channel, True)
-
+
 tvcmd = vg.vdev
 
 if config.MPLAYER_ARGS.has_key('ivtv'):
@@ -128,7 +129,7 @@
 
 tvcmd = ('tv:// -tv driver=%s:%s:freq=%s:%s:%s:'
  '%s:width=%s:height=%s:%s %s' %
- (config.TV_DRIVER, vg.adev, tuner_freq, device, 
input, norm, 
+ (config.TV_DRIVER, vg.adev, tuner_freq, device, 
input, norm,
   w, h, outfmt, config.TV_OPTS))
 
 if config.MPLAYER_ARGS.has_key('tv'):
@@ -140,7 +141,7 @@
 
 tvcmd = ('tv:// -tv driver=%s:freq=%s:%s:%s:'
  '%s:width=%s:height=%s:%s %s' %
- (config.TV_DRIVER, tuner_freq, device, input, norm, 
+ (config.TV_DRIVER, tuner_freq, device, input, norm,
   w, h, outfmt, config.TV_OPTS))
 
 if config.MPLAYER_ARGS.has_key('tv'):
@@ -149,7 +150,7 @@
 elif mode == 'vcr':
 tvcmd = ('tv:// -tv driver=%s:%s:%s:'
  '%s:width=%s:height=%s:%s %s' %
- (config.TV_DRIVER, device, input, norm, 
+ (config.TV_DRIVER, device, input, norm,
   w, h, outfmt, config.TV_OPTS))
 
 if config.MPLAYER_ARGS.has_key('tv'):
@@ -161,9 +162,10 @@
 
 args += (tvcmd,)
 
-mpl = '--prio=%s %s -vo %s%s -ao %s -fs %s -slave %s %s' % args
+mpl = '--prio=%s %s -vo %s%s %s %s -ao %s -fs %s -slave %s %s' % args
 
 command = mpl
+_debug_('command=\"%s\"', (command))
 self.mode = mode
 
 
@@ -172,7 +174,7 @@
 # VCR is mic in
 # btaudio (different dsp device) will be added later
 mixer = plugin.getbyname('MIXER')
-
+
 if mixer and config.MAJOR_AUDIO_CTRL == 'VOL':
 mixer_vol = mixer.getMainVolume()
 mixer.setMainVolume(0)
@@ -182,7 +184,7 @@
 
 # Start up the TV task
 self.app = childapp.ChildApp2(command)
-
+
 self.prev_app = rc.app()
 rc.app(self)
 
@@ -197,7 +199,7 @@
 elif mixer:
 mixer.setLineinVolume(config.TV_IN_VOLUME)
 mixer.setIgainVolume(config.TV_IN_VOLUME)
-
+
 if mixer and config.MAJOR_AUDIO_CTRL == 'VOL':
 mixer.setMainVolume(mixer_vol)
 elif mixer and config.MAJOR_AUDIO_CTRL == 'PCM':
@@ -231,16 +233,25 @@
 rc.post_event(em.PLAY_END)
 return TRUE
 
+elif event == em.PAUSE or event == em.PLAY:
+self.app.write('pause\n')
+if DEBUG: print '%s: sending pause to mplayer' % (time.time())
+   

Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-11 Thread Paul Sijben
1.6.1 with the modifications I have shared with the email list ;-)

Duncan Webb wrote:
> Paul Sijben wrote:
>   
>> they are overwritten with the HWACCEL params when those params are
>> needed. (python does not allow partial changes of a set)
>> 
>
> Hi Paul,
> which version of freevo are you using?
>
> Duncan
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>   

-- 
Paul Sijben mailto:[EMAIL PROTECTED]
Amersfoort, NL  http://www.sijben.net
tel:+31 334557522   fax:+31 33 4557523

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-11 Thread Duncan Webb
Paul Sijben wrote:
> they are overwritten with the HWACCEL params when those params are
> needed. (python does not allow partial changes of a set)

Hi Paul,
which version of freevo are you using?

Duncan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-11 Thread Paul Sijben
they are overwritten with the HWACCEL params when those params are
needed. (python does not allow partial changes of a set)

Duncan Webb wrote:
> Philip Armstrong wrote:
>   
>> On Thu, Dec 07, 2006 at 11:55:58AM +0100, Paul Sijben wrote:
>> 
>>>I have applied the patch in my setup too and also patched
>>>tv/plugins.mplayer.py for unichrom hwaccel
>>>insert:
>>>
>>>args = (config.MPLAYER_NICE, config.MPLAYER_CMD,\
>>>config.MPLAYER_VO_DEV_HWACCEL,\
>>>" "+config.MPLAYER_VO_DEV_OPTS_HWACCEL,\
>>>config.MPLAYER_AO_DEV, config.MPLAYER_ARGS_DEF)
>>>
>>>in the clause under group ivtv (line 109).
>>>   
>
> This is not correct, at the args are set up earlier in the program
>
> Duncan
>
>
> -
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> ___
> Freevo-users mailing list
> Freevo-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freevo-users
>   

-- 
Paul Sijben mailto:[EMAIL PROTECTED]
Amersfoort, NL  http://www.sijben.net
tel:+31 334557522   fax:+31 33 4557523

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-08 Thread S2
Paul Sijben wrote:
> 2) I notice that after a channel change mplayer is struggling with
> displaying the video, pressing pause and unpausing after a little sorts
> that out. Is this something that is related to my setup IVTV+UNICHROME
> out or do others have this problem too?
> 
> BTW: is channel changing supposed to take several seconds?

Yes, I have the same problems. And mplayer does not work with my xvmc
accelerated openchrome driver. I'll switch to xine this afternoon and
try if that works better.

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-08 Thread Duncan Webb
Philip Armstrong wrote:
> On Thu, Dec 07, 2006 at 11:55:58AM +0100, Paul Sijben wrote:
>>I have applied the patch in my setup too and also patched
>>tv/plugins.mplayer.py for unichrom hwaccel
>>insert:
>>
>>args = (config.MPLAYER_NICE, config.MPLAYER_CMD,\
>>config.MPLAYER_VO_DEV_HWACCEL,\
>>" "+config.MPLAYER_VO_DEV_OPTS_HWACCEL,\
>>config.MPLAYER_AO_DEV, config.MPLAYER_ARGS_DEF)
>>
>>in the clause under group ivtv (line 109).

This is not correct, at the args are set up earlier in the program

Duncan


-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-07 Thread Philip Armstrong
On Thu, Dec 07, 2006 at 11:55:58AM +0100, Paul Sijben wrote:
>I have applied the patch in my setup too and also patched
>tv/plugins.mplayer.py for unichrom hwaccel
>insert:
> 
>args = (config.MPLAYER_NICE, config.MPLAYER_CMD,\
>config.MPLAYER_VO_DEV_HWACCEL,\
>" "+config.MPLAYER_VO_DEV_OPTS_HWACCEL,\
>config.MPLAYER_AO_DEV, config.MPLAYER_ARGS_DEF)
> 
>in the clause under group ivtv (line 109).
> 
>I have made no patch yet for this because I have two questions:
>1) is it only IVTV that generates MPEG or are there other capture cards
>that need this too?

DVB cards usually give you an mpeg transport stream.

>2) I notice that after a channel change mplayer is struggling with
>displaying the video, pressing pause and unpausing after a little sorts
>that out. Is this something that is related to my setup IVTV+UNICHROME out
>or do others have this problem too?

Audio sync in current mplayer sucks rocks in my experience. It often
takes ages to come into sync when starting playback. Sometimes
twiddling with autosync values helps, but it's pot luck as far as I
can tell.

>BTW: is channel changing supposed to take several seconds?

mplayer seems to like to search the mpeg stream for the program and
audio chunks, even if you've told it the pid values beforehand, which
means it has to cache a chunk of the stream and scan through it first.

There's also some retune time in the receiver circuitry of course: it
has to sync to the new signal. For DVB, changing channels within a
single MUX *ought* to be instantaneous, since no retuning is necessary.

Phil

-- 
http://www.kantaka.co.uk/ .oOo. public key: http://www.kantaka.co.uk/gpg.txt

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users


Re: [Freevo-users] mplayer change channel + UNICHROME

2006-12-07 Thread Paul Sijben
I have applied the patch in my setup too and also patched
tv/plugins.mplayer.py for unichrom hwaccel

insert:

args = (config.MPLAYER_NICE, config.MPLAYER_CMD,\
config.MPLAYER_VO_DEV_HWACCEL,\
" "+config.MPLAYER_VO_DEV_OPTS_HWACCEL,\
config.MPLAYER_AO_DEV, config.MPLAYER_ARGS_DEF)

in the clause under group ivtv (line 109).

I have made no patch yet for this because I have two questions:
1) is it only IVTV that generates MPEG or are there other capture cards
that need this too?
2) I notice that after a channel change mplayer is struggling with
displaying the video, pressing pause and unpausing after a little sorts
that out. Is this something that is related to my setup IVTV+UNICHROME
out or do others have this problem too?

BTW: is channel changing supposed to take several seconds?

Paul

Philip Armstrong wrote:
> On Wed, Dec 06, 2006 at 10:42:34PM +0100, Duncan Webb wrote:
>   
>> Philip Armstrong wrote:
>> 
>>> Attached is a more complete patch including the channel changes.
>>>
>>> cheers, Phil
>>>   
>> I would be very happy if you would add a feature request for this.
>> http://sourceforge.net/tracker/?func=add&group_id=46652&atid=446898
>> 
>
> Done, I think: Request ID 1610656. Let me know if I've messed anything
> up!
>
> cheers, Phil
>
>   

-- 
Paul Sijben mailto:[EMAIL PROTECTED]
Amersfoort, NL  http://www.sijben.net
tel:+31 334557522   fax:+31 33 4557523

-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___
Freevo-users mailing list
Freevo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freevo-users