[MEncoder-users] Help to set up filter chain?

Andy Civil andycivil at gmail.com
Sun Feb 24 20:37:19 CET 2008


Hello helpful people.

Baptiste gave me a nice tip, the existence of yadif. I'm trying to see if I can
solve my problem by making an mjpeg file at 60000/1001 fps from my interlaced
source. Referencing this page:
http://avisynth.org.ru/yadif/yadif.html
tells me that I want mode=1. How do I ask for this, is it just -vf yadif=1 ???
Most of the help I find on the net seems to be for avisynth.

It's not working for me. Here's my command line:

\me\mencoder -oac copy -ovc lavc -of mpeg -vf yadif=1,scale=720:480 -lavcopts
vcodec=mjpeg:vbitrate=10000000:aspect=16/9 -ofps 60000/1001 -o mjpeg.mpg
20080213133737.m2t


I want to deinterlace (well, not exactly) to double the frame rate, and then
scale that to 720x480. I don't really care about file size (within reason),
since this is an intermediate step. My concern is to conserve quality.

Can anyone see what I've done wrong? Here's my output, please snip before
answering. Several of the lines look like real errors! Why does it ask me to
APPEND the scale filter, when it's already last in the chain??? Why is it
telling me that "The selected video_out device is incompatible with this codec."
- should I be using a different file extension (container)? I get exactly the
same error if I use .avi.




I:\Plan Sony ME>\me\mencoder -oac copy -ovc lavc -of mpeg -vf yadif=1,scale=720:
480 -lavcopts vcodec=mjpeg:vbitrate=10000000:aspect=16/9 -ofps 60000/1001 -o mjp
eg.mpg 20080213133737.m2t
MEncoder Sherpya-SVN-r25962-4.2.3 (C) 2000-2008 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 7)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x41db004
TS file format detected.
VIDEO MPEG2(pid=2064) AUDIO MPA(pid=2068) NO SUBS (yet)!  PROGRAM N. 100
VIDEO:  MPEG2  1440x1080  (aspect 3)  29.970 fps  25000.0 kbps (3125.0 kbyte/s)
[V] filefmt:29  fourcc:0x10000002  size:1440x1080  fps:29.97  ftime:=0.0334
==========================================================================
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
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=720 h=480]
Opening video filter: [yadif=1]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 1440 x 1080 (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 appending the scale filter to your filter list,
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))
==========================================================================
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.
VDec: vo config request - 1440 x 1080 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 9 -> 8
SwScaler: reducing / aligning filtersize 10 -> 9
SwScaler: reducing / aligning filtersize 10 -> 9
[swscaler @ 00D532A0]SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX
2
[swscaler @ 00D532A0]SwScaler: using 8-tap MMX scaler for horizontal luminance s
caling
[swscaler @ 00D532A0]SwScaler: using 8-tap MMX scaler for horizontal chrominance
  scaling
[swscaler @ 00D532A0]SwScaler: using n-tap MMX scaler for vertical scaling (YV12
  like)
[swscaler @ 00D532A0]SwScaler: 1440x1080 -> 720x480
videocodec: libavcodec (720x480 fourcc=47504a4d [MJPG])
Pos:   0.0s      1f ( 3%)  0.00fps Trem:   0min   0mb  A-V:0.000 [0:0]
2 duplicate frame(s)!
Writing header...
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940
Pos:   0.0s      2f ( 3%)  0.00fps Trem:   0min   0mb  A-V:0.003 [0:0]
2 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.007 [0:0]
INITV: 0.200, 0.183, fps: 59.940

2 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.010 [0:0]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.013 [0:0]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.017 [0:0]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.020 [0:0]
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.007 [0:0]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.010 [0:0]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.013 [0:0]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.017 [0:0]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.020 [0:0]
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.007 [0:0]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.010 [0:0]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.013 [0:384]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.017 [0:384]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.020 [0:384]
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   0min   0mb  A-V:0.007 [0:384]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   1min   0mb  A-V:0.010 [0:384]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
INITV: 0.200, 0.183, fps: 59.940ps Trem:   1min   0mb  A-V:0.013 [0:384]
INITV: 0.200, 0.183, fps: 59.940

1 duplicate frame(s)!
INITV: 0.200, 0.183, fps: 59.940
Pos:   0.9s     21f ( 8%)  3.96fps Trem:   0min   0mb  A-V:0.017 [0:384]
Flushing video frames.
Writing index...

Overhead: 1.#IO% (2048 / 0)
Writing header...

Video stream: 8921.504 kbit/s  (1115188 B/s)  size: 1041883 bytes  0.934 secs  2
1 frames

Audio stream:  384.000 kbit/s  (48000 B/s)  size: 72000 bytes  1.500 secs

I:\Plan Sony ME>




More information about the MEncoder-users mailing list