[MEncoder-users] Making an AVI which delcares itself to be interlaced

Grozdan Nikolov (openSUSE Linux) microchip at telenet.be
Fri Mar 21 23:29:40 CET 2008


On Friday 21 March 2008 23:25, Andy Civil wrote:
> Grozdan Nikolov (openSUSE Linux) wrote:
> > On Friday 21 March 2008 22:54, Andy Civil wrote:
> >> Hi
> >>
> >> I'm trying to make an xvid avi file which is interlaced. Although the
> >> following command works quite well, the resulting AVI doesn't seem to be
> >> LABELLED as interlaced (although the content clearly is). What this
> >> means is, then when I use this kind of file in another program, I have
> >> to specify for each one, that it's interlaced (which is a bind, when I
> >> have fifty or so to do).
> >>
> >> If I use "gspot" on the file produced here, it doesn't light up with
> >> either TFF or BFF flags.
> >>
> >> Any options I'm missing that could make the interlaced flag be on?
> >
> > try...
> >
> > -vf scale=720:480,harddup,phase=t,tinterlace=2
> >
> > alternatively
> >
> > -vf scale=720:480,harddup,tinterlace=4
> >
> > since interlacing is added after scaling, there's no need to enable
> > interlace-aware software scaling
> >
> > also keep in mind that when interlacing, your frame rate will be halved.
> > So if you interlace a 60p content (59.94 fps) it will become 30i (29.970
> > fps). You must use in this case the -ofps 30000/1001 options
>
> Thanks, but I think I do need interlace-aware scaling because my source is
> 1440 x 1080 (interlaced). In fact this was the feature that forced me out
> of FFmpeg into mencoder. I'm going from 30i to 30i. Nevertheless, I will
> google for your suggested options phase and tinterlace to see if they will
> help me.

then why don't you just encode it as interlaced if the source is interlaced to 
begin with? why do you need to interlace it again with some filters? Just 
enable SWS interlace-aware mode and enable interlacing in Xvid too and encode 
it as is if it's already interlaced like you said...

>
> >> My command (copy/paste):
> >>
> >> I:\me\mencoder -oac mp3lame -lameopts preset=standard:fast -ovc xvid
> >> -xvidencopts
> >> trellis:quant_type=h263:vhq=2:me_quality=6:chroma_me:closed_gop:max_bfra
> >>mes =2:bitrate=10000000:interlacing=1 -vf scale=720:480:1,il=s,harddup
> >> -ofps 30000/1001 -o
> >> "XVID\20080215145859_i1_vils.m2t.avi" "20080215145859.m2t"
> >>
> >> Here's the start of my output:
> >> E:\Sony\2008-02-15>I:\me\mencoder -oac mp3lame -lameopts
> >> preset=standard:fast -o vc xvid -xvidencopts
> >> trellis:quant_type=h263:vhq=2:me_quality=6:chroma_me:closed
> >> _gop:max_bframes=2:bitrate=10000000:interlacing=1 -vf
> >> scale=720:480:1,il=s,hardd up -ofps 30000/1001 -o
> >> "XVID\20080215145859_i1_vils.m2t.avi" "20080215145859.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 - 0x19af5d4
> >> 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)
> >> ========================================================================
> >>== xvid: using library version 1.1.3 (build xvid-1.1.3)
> >> Opening video filter: [expand osd=1]
> >> Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
> >> Opening video filter: [harddup]
> >> Opening video filter: [il=s]
> >> Opening video filter: [scale w=720 h=480 interlaced=1]
> >> ========================================================================
> >>== Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
> >> VDec: vo config request - 1440 x 1080 (preferred colorspace: Mpeg PES)
> >> 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))
> >> ========================================================================
> >>== MP3 audio selected.
> >> 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
> >>
> >> Thks for any hints...
>
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users

-- 
Regards



More information about the MEncoder-users mailing list