[MEncoder-users] No idea what I am doing...

James Hastings-Trew jimht at shaw.ca
Sat Sep 22 02:20:37 CEST 2007


Greg Heywood wrote:
> On 21/09/2007, James Hastings-Trew <jimht at shaw.ca> wrote:
>   
>> Greg Heywood wrote:
>>     
>>> [ivtv]
>>> tv=normid=10:norm=pal:device=/dev/video0:width=720:height=480
>>>
>>>       
>> pvr=abitrate=192:vbitrate=2200000:vpeak=2600000:fmt=dvd:aspect=2:arate=32000
>>     
>>> of=mpeg=1
>>> mpegopts=format=dvd
>>> ofps=30000/1001
>>> ovc=copy=1
>>> oac=copy=1
>>> vf=harddup=1
>>>
>>>
>>> The command line I used was:
>>> mencoder pvr:// -profile ivtv -o encode.mpg -endpos 20
>>>
>>> This seems to work OK, although the video that is captured is very
>>>       
>> grainy,
>>     
>>> and mostly black and white static.
>>>
>>> I guess the first method is closest to working, but it seems to be using
>>> NTSC still, not PAL. I also used "v4l2-ctl -s pal" to set it to PAL (I
>>> think), but mencoder still reports NTSC-M.
>>>
>>> Any more tips on how to ensure that it records in PAL (if indeed that is
>>>       
>> the
>>     
>>> problem)?
>>>
>>> Thanks
>>>       
>
>
>
>
> If you want PAL, why do you have -ofps 30000/1001 in the profile? -ofps
>   
>> 25 is what you want. And you need to specify a container format, that's
>> why you are getting all the errors about AVI format.
>>     
>
>
>
> Thanks.  Didn't spot that. Changed it, and also changed the width to 720 to
> height 576.
>
> In terms of the container format, I have the of=mpeg=1. I thought that would
> do it.
>
> [ivtv]
> tv=normid=10:norm=pal:device=/dev/video0:width=720:height=576
> pvr=abitrate=192:vbitrate=2200000:vpeak=2600000:fmt=dvd:aspect=2:arate=32000
> of=mpeg=1
> mpegopts=format=dvd
> ofps=25
> ovc=copy=1
> oac=copy=1
> vf=harddup=1
>
> Is it a conflict with the fmt=dvd setting in the pvr line
Could be, DVD is mpeg2. Also, I don't think of=mpeg=1 is valid. You want 
of=mpeg. You'll also want the -mpegopts in the manual. I'm also 
questioning the fmt=dvd in your -pvr portion - I think fmt=ps might be 
more appropriate. But I am not 100% sure what you are trying achieve, 
and without the actual hardware here, I can't be more specific.





More information about the MEncoder-users mailing list