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

Greg Heywood gheywood at gmail.com
Sat Sep 22 13:33:55 CEST 2007


On 22/09/2007, James Hastings-Trew <jimht at shaw.ca> wrote:
>
>
> > 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.



Thanks

I added  second profile like this:

[ivtv2]
tv=normid=10:norm=pal:device=/dev/video0:width=720:height=576
pvr=abitrate=192:vbitrate=2200000:vpeak=2600000:aspect=2:arate=32000
of=mpeg=1
ofps=25
ovc=copy=1
oac=copy=1
vf=harddup=1

Then ran it:

greg at mediapc:~$ mencoder pvr:// -profile ivtv2 -of mpeg -o encode.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.
[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
Win32 LoadLibrary failed to load: avisynth.dll, /usr/lib/win32/avisynth.dll,
/usr/local/lib/win32/avisynth.dll
MPEG-PS file format detected.
VIDEO:  MPEG2  720x480  (aspect 3)  29.970 fps  2600.0 kbps (325.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x480  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 32000 Hz, 2 ch, s16le, 192.0 kbit/18.75% (ratio: 24000->128000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 245760
videocodec: framecopy (720x480 24bpp fourcc=10000002)
audiocodec: framecopy (format=50 chans=2 rate=32000 bits=16 B/s=24000
sample-1)
Limiting audio preload to 0.4s.
Increasing audio density to 4.
Writing header...
INITV: 0.200, 0.160, fps: 25.000
Pos:   0.2s      6f ( 0%)  0.00fps Trem:   0min   0mb  A-V:-0.017 [0:0]
Skipping frame!
Pos:   7.2s    198f ( 0%) 25.64fps Trem:   0min   0mb  A-V:-0.022 [1816:192]
Skipping frame!
Pos:   7.4s    204f ( 0%) 25.65fps Trem:   0min   0mb  A-V:-0.024 [1818:192]
BUFFER UNDEFLOW at stream 0, raising muxrate to 1980 kb/s, delta_scr: 223418

BUFFER UNDEFLOW at stream 0, raising muxrate to 2178 kb/s, delta_scr: 203107

BUFFER UNDEFLOW at stream 0, raising muxrate to 2395 kb/s, delta_scr: 184643

BUFFER UNDEFLOW at stream 1, raising muxrate to 2635 kb/s, delta_scr: 167857

BUFFER UNDEFLOW at stream 0, raising muxrate to 2898 kb/s, delta_scr: 152597
Pos:   7.5s    205f ( 0%) 25.73fps Trem:   0min   0mb  A-V:-0.025 [1824:192]
Skipping frame!
Pos:  13.3s    379f ( 0%) 27.49fps Trem:   0min   0mb  A-V:-0.027 [1838:192]
Skipping frame!
Pos:  19.9s    578f ( 0%) 28.87fps Trem:   0min   0mb  A-V:-0.015 [1825:192]
Skipping frame!
Writing index...82f ( 0%) 29.07fps Trem:   0min   0mb  A-V:-0.015 [1825:192]

Overhead: 1.934% (95844 / 4956572)
Writing header...

Video stream: 1825.458 kbit/s  (228182 B/s)  size: 4572772 bytes
20.040secs  582 frames

Audio stream:  192.000 kbit/s  (24000 B/s)  size: 480000 bytes  20.000 secs
greg at mediapc:~$


I deleted quite a lot of the skipped frames.

Basically, I just want to record from the PVR-150 (on S-video) for  a set
amount of time. If I can record in format that make it easy to burn to DVD,
even better, but getting a decent recording would be great. CAT /dev/video0
> file.mpg works fine, but doesn't give me the options that I need (like
recording for a certain time , or hopefully at some point, being able to
record from the RF feed or the s-video depending on what I want to record.

Cheers



More information about the MEncoder-users mailing list