digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Mimicking Motion Adaptiveness blur with Mencoder. (http://www.digitalfaq.com/archives/encode/10063-mimicking-motion-adaptiveness.html)

Koekies 06-06-2004 06:55 AM

thanx I'll try that :)



EDIT:
That wasn't it :(

Koekies 06-06-2004 07:27 AM

Hi this is what dos says.

MPEG-PS file format detected.
VIDEO: MPEG2 720x480 (aspect 3) 29.970 fps 9800.0 kbps (1225.0 kbyte/s)
[V] filefmt:2 fourcc:0x10000002 size:720x480 fps:29.97 ftime:=0.0334
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
================================================== ========================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: 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.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
================================================== ========================
Writing AVI header...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x480 fourcc=3267706d [mpg2])

[mpeg2video @ 009B1B2C]MPEG1/2 doesnt support 2997/125 fps, there may be AV sync
issues
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
[mpeg2video @ 009B1B2C]rc buffer underflowmin 0mb A-V:0.000 [0:0]
Pos: 0.3s 9f ( 0%) 0fps Trem: 0min 0mb A-V:0.000 [0:0]
Skipping frame!

Mencoder chooses to use 720x480 :? is there anyway you can force mencoder not to do that :?:

-Koekies

rds_correia 06-06-2004 08:49 AM

Hi koekies,
Can you try just
Code:

vf=scale=720:480::0:9,crop=672:378:24:16,expand=704:480
Just to see if you still get 720x480?
Cheers

Koekies 06-06-2004 09:02 AM

I'll try :) Bicubic resizing gives the same problem as lancos :( Which is better quality? and I'm trying the experimental motion estimation method X1 anyone tried that before?

Koekies 06-06-2004 09:05 AM

I think the motion estimation command vme=5 took away some tiny blocks you could see when there was fast motion :) I'm not sure though it could be something else.

Koekies 06-06-2004 09:19 AM

Mencoder still says

Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 480 (preferred csp: 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.
VDecoder init failed
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.3.1
Selected video codec: [mpeg12] vfm:libmpeg2 (MPEG 1 or 2 (libmpeg2))
================================================== ========================
Writing AVI header...
VDec: vo config request - 720 x 480 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x480 fourcc=3267706d [mpg2])

Koekies 06-06-2004 09:30 AM

In the man_page from mplayer I found this
Code:

−zoom
 
 Allow software scaling, where available. Could be used to force scaling with −vf scale.
NOTE: −vf scale will IGNORE options −x / −y / −xy / −fs / −aspect without −zoom.

Could I use that?

rds_correia 06-06-2004 09:47 AM

Maybe, but it seems to me that your problem is either on expand or crop where the 1st of them takes precedence.
This doesn't seem a scaling problem but mencoder scale is way different than any AVISynth resizer.
Give it a try, anyway.
Cheers

bigggt 06-06-2004 10:02 AM

Hi guys man i know this isin't for newbies because i don't understand anything you guys are doing but when i alter the temp.conf file how do i run it without using the gui
:oops: :cry:

Koekies 06-06-2004 10:15 AM

create a bat file like this

Code:

Mencoder.exe -include temp.conf -lavcopts vbitrate="your bitrate here":vpass=1 "path to your file you want to encode" -o "path to your encoded file example c:\movie\skvcd.m2v"
Mencoder.exe -include temp.conf -lavcopts vbitrate=="your bitrate here":vpass=2 "path to your file you want to encode" -o "path to your encoded file"

or isn't this what you wanted to know? :P

-Koekies

Koekies 06-06-2004 10:17 AM

No luck with the zoom command I don't think it was meant to be used for what I wanted it to bad the -x="x" and -y="y" commands only work in mplayer :(

bigggt 06-06-2004 10:19 AM

HI Koekies

Code:

create a bat file like this

Code:
Mencoder.exe -include temp.conf -lavcopts vbitrate="your bitrate here":vpass=1 "path to your file you want to encode" -o "path to your encoded file example c:\movie\skvcd.m2v"
Mencoder.exe -include temp.conf -lavcopts vbitrate=="your bitrate here":vpass=2 "path to your file you want to encode" -o "path to your encoded file"


is that for me

The only way i know how to get mencoder to run is through one og the Gui's made here(MEncoderMe or packshot)

I started one like Karl said and then edited the file but now i don't know what to do to start again without the GUi(which will overwrite what i just changed)

if your above answer is what i need to do i just don't understand :D

thanx for your help

Koekies 06-06-2004 10:22 AM

First tell me what your conf file is named
Is it in the same dir as mencoder?
Then you create a tekst file copy the stuff in it I just posted
rename it to *.bat and run it

bigggt 06-06-2004 10:27 AM

Thanx buddy please bare with me because i am not computer smart

my conf file is simply named temp.conf

and yes it is in the same folder as mencoder

I tried to run the bat file(by double clicking it) that was created the same time as my conf file but it starts and just closes

Koekies 06-06-2004 10:31 AM

Quote:

Originally Posted by rds_correia
...mencoder scale is way different than any AVISynth resizer.

Well according to the manual you can select lancos bicubic etc.

Code:

−sws <software scaler type> (see −vf scale option too)
 
 This option sets the quality (and speed, respectively) of the software scaler, with the −zoom option. For example with x11 or other outputs which lack hardware acceleration. Possible settings are:
NOTE: For −sws 2 and 7, the sharpness can be set with the scaling parameter (p) of −vf scale (0 (soft) − 100 (sharp)), for −sws 9, it specifies the filter length (1 − 10).
 
 0  fast bilinear (default)
 1  bilinear
 2  bicubic (good quality)
 3  experimental
 4  nearest neighbour (bad quality)
 5  area
 6  luma bicubic / chroma bilinear
 7  gauss
 8  sincR
 9  lanczos
 10  bicubic spline

these are software scalers I think avisynth uses ones that are very simmilar

Koekies 06-06-2004 10:37 AM

@ bigggt the bat created by mencodeme doesn't just work like that
because of the value %%PASS%% or something it only works with mencodeme.
So copy that line so you have it two times. replace the first %%PASS%% with 1 and the second with 2

encode bat mencodeme makes
Mencoder.exe -include temp.conf -lavcopts vbitrate=843:vpass=%%PASS%% "C:\movies\Timeline\alliance-timeline-xvid\alliance-timeline-xvid.avi" -o "C:\movies\Timeline\alliance-timeline-xvid\alliance-timeline-xvid.mpv"

what you do to it
Mencoder.exe -include temp.conf -lavcopts vbitrate=843:vpass=1 "C:\movies\Timeline\alliance-timeline-xvid\alliance-timeline-xvid.avi" -o "C:\movies\Timeline\alliance-timeline-xvid\alliance-timeline-xvid.mpv"
Mencoder.exe -include temp.conf -lavcopts vbitrate=843:vpass=2 "C:\movies\Timeline\alliance-timeline-xvid\alliance-timeline-xvid.avi" -o "C:\movies\Timeline\alliance-timeline-xvid\alliance-timeline-xvid.mpv"

bigggt 06-06-2004 10:47 AM

Thanx Koekies

I have to leave for the day but i will try when i get home tonight

I appreciate your help :D

bigggt 06-06-2004 05:35 PM

OK i get and did what you said but i still don't get how to run the bat file,i can't just double click it :roll:

Koekies 06-06-2004 05:42 PM

why not?
run it in dos see why it shuts down there must be some mencoder error if it shuts down immediatly

bigggt 06-06-2004 06:51 PM

Thanx Buddy I final i got it (thanx to you :wink: )

The error i was getting was something to the effect of not finding the directory or something


All times are GMT -5. The time now is 11:54 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.