[MEncoder-users] No idea what I am doing...
Greg Heywood
gheywood at gmail.com
Sat Sep 22 00:18:51 CEST 2007
Thanks for all the help so far. Getting somewhere, but still a few issues.
I have tried two different methods with varying methods of success.
METHOD 1
1) Create a mencoder.conf file and populate it (with data largely taken from
the web). The file contains:
[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.
METHOD 2
Since there are default values for most of the options, I tried a basic
command line:
mencoder pvr:// -pvr aspect=2 -o encoded.mpg -endpos 20
MEncoder 2:1.0~rc1-0ubuntu9.1 (C) 2000-2006 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ (Family: 15, Model: 75,
Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
[pvr] Using device /dev/video0
[pvr] Detected Hauppauge WinTV PVR-150
[v4l2] Available video inputs: '#0, Tuner 1' '#1, S-Video 1' '#2, Composite
1' '#3, S-Video 2' '#4, Composite 2'
[v4l2] Available audio inputs: '#0, Tuner 1' '#1, Line In 1' '#2, Line In 2'
[v4l2] Available norms: '#0, PAL-BGH' '#1, PAL-DK' '#2, PAL-I' '#3, PAL-M'
'#4, PAL-N' '#5, PAL-Nc' '#6, SECAM-BGH' '#7, SECAM-DK' '#8, SECAM-L' '#9,
SECAM-L'' '#10, NTSC-M' '#11, NTSC-J' '#12, NTSC-K'
[v4l2] Video input: S-Video 1
[v4l2] Audio input: Line In 1
[v4l2] Norm: NTSC-M.
success: format: 0 data: 0x0 - 0x0
[pvr] failed with errno 22 when reading 2048 bytes
[pvr] read 0 bytes
Win32 LoadLibrary failed to load: avisynth.dll, /usr/lib/win32/avisynth.dll,
/usr/local/lib/win32/avisynth.dll
[pvr] failed with errno 2 when reading 2048 bytes
[pvr] read 0 bytes
[pvr] failed with errno 2 when reading 2048 bytes
[pvr] read 0 bytes
============ Sorry, this file format is not recognized/supported
=============
=== If this file is an AVI, ASF or MPEG stream, please contact the author!
===
Cannot open demuxer.
Exiting...
There are more of the errno 22 lines, but I took them out to save space...
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
More information about the MEncoder-users
mailing list