[MEncoder-users] strange with mencoder

Igor goga777 at front.ru
Mon Jan 1 20:29:31 CET 2007


Hi

I have the card Gotview PCI DVD Deluxe with mpeg2 encoder.
But, if I will try to VHS-capture with option -pvr abitrate=128 (only with 128!!!) I will have the
mencoder's error (with abitrate=128 - is OK)

$ mencoder -profile capture pvr:// -o ww.mpeg -oac copy -ovc copy -of mpeg
MEncoder dev-SVN-r21640-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 3, Stepping: 4)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

[pvr] Using device /dev/video0
[pvr] Detected GotView PCI DVD2 Deluxe
[v4l2] Available video inputs: '#0, Tuner 1' '#1, S-Video 1' '#2, Composite 1'
[v4l2] Available audio inputs: '#0, Tuner 1' '#1, Line In 1'
[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'
[encoder] Error setting MPEG controls (Numerical result out of range).
[pvr] can't set encoder settings
Failed to open pvr://.
Cannot open file/device.

Exiting...


I don't understand which figure I should write in -pvr vbitrate=xxx:vpeak=xxxx
If I will write vbitrate=6:vpeak=7  I will receive the file with very slow videobitrate
Also I don't understand why I have really audiobitrate 384.0 kbit/25.00% , if I wrote
pvr=abitrate=129 (129 kbit/s)

Hereafter you can see my settings and my results

mencoder.conf
[capture]
tv=driver=v4l2:input=2:width=720:height=576:device=/dev/video0
pvr=aspect=1:arate=48000:abitrate=129:amode=mono:vmode=vbr:vbitrate=6:vpeak=7

$ mencoder -profile capture pvr:// -o ww.mpeg -oac copy -ovc copy -of mpeg

MEncoder dev-SVN-r21640-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 3, Stepping: 4)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

[pvr] Using device /dev/video0
[pvr] Detected GotView PCI DVD2 Deluxe
[v4l2] Available video inputs: '#0, Tuner 1' '#1, S-Video 1' '#2, Composite 1'
[v4l2] Available audio inputs: '#0, Tuner 1' '#1, Line In 1'
[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: Composite 1 [v4l2] Audio input: Line In 1
success: format: 0  data: 0x0 - 0x0
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
										^^^^^^^^^^^^^^^^^ ????

[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
						 ^^^^^^^ ??????

Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 245760
videocodec: framecopy (720x576 24bpp fourcc=10000002)
audiocodec: framecopy (format=50 chans=2 rate=48000 bits=16 B/s=48000 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.9s     22f ( 0%) 20.26fps Trem:   0min   0mb  A-V:-0.084 [0:384]
1 duplicate frame(s)!
Pos:   1.3s     32f ( 0%) 20.45fps Trem:   0min   0mb  A-V:-0.084 [465:384]
1 duplicate frame(s)!
[pvr] failed with errno 4 when reading 64 bytes   0mb  A-V:-0.048 [440:384]
Writing index...34f ( 0%) 18.84fps Trem:   0min   0mb  A-V:-0.052 [456:384]

Overhead: 6.116% (6256 / 102288)
Writing header...

Video stream:  456.044 kbit/s  (57005 B/s)  size: 82088 bytes  1.440 secs  34 frames

Audio stream:  384.000 kbit/s  (48000 B/s)  size: 96000 bytes  2.000 secs


Playing ww.mpeg.
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try adding the scale filter, e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 48000 Hz, 2 ch, s16le, 384.0 kbit/25.00% (ratio: 48000->192000)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 720x576 => 768x576 Planar YV12  [fs]
A:   0.4 V:   0.0 A-V:  0.403 ct:  0.000   1/  1 ??% ??% ??,?% 0 0
Broken frame at 0x4C80
A:   0.7 V:   1.5 A-V: -0.774 ct: -0.028  33/ 33 14%  3%  0.1% 0 0

Exiting... (End of file)








More information about the MEncoder-users mailing list