Quantcast Mencoder: Question about Mencoder 1 Pass - Page 2 - digitalFAQ.com Forums [Archives]
Go Back    digitalFAQ.com Forums [Archives] > Video Production Forums > Video Encoding and Conversion

Reply
 
LinkBack Thread Tools
  #21  
06-03-2004, 03:20 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Prodater64
If your source is DVD 720*480 why do you use scale=720:480::0:9? Scale is a very slow filter. Can you say me what mean ::0:9?
I already told about that to Inc and he answered that the scale is necessary as it does not only scale. I didn't have any problem without it but I confess that in the manual it is say that scale also perform a space color conversion that seems to be necessary for other filters.
It's a little the equivalent to our ConvertToYV12().

For the other information I let you read into the manual :
http://www.mplayerhq.hu/DOCS/man/fr/manpage.html

(note: here we are using lanczos so the 9 is the precision of the filter, that is something taht you can modify in avisynth).

But the slower things in all this is the unsharp. You lose 3 fps for each usage and here it is used 2 times
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #22  
06-03-2004, 04:27 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
...
I already told about that to Inc and he answered that the scale is necessary as it does not only scale. I didn't have any problem without it but I confess that in the manual it is say that scale also perform a space color conversion that seems to be necessary for other filters.
It's a little the equivalent to our ConvertToYV12().

For the other information I let you read into the manual :
http://www.mplayerhq.hu/DOCS/man/fr/manpage.html
But that Inc said it don't mean that it he say to be correct.
I am always reading manual before posting. In manual, there is not filters that needs rgb colorspace (at less I can't find out it). But I just find out an option explanation that permits to deduce that scale it is not necessary when original and scaled frame size match.

Quote:
Originally Posted by MPLAYER Manual Say
-spuaa <mode> (OSD only)
Antialiasing/scaling mode for DVD/VobSub. A value of 16 may be added to mode in order to force scaling even when original and scaled frame size already match, for example to smooth subtitles with the gaussian blur
I understand the blue remarked text as it is not usual neither necessary to use scale when mentioned condition is true. (except for spuaa option, of course)

Quote:
Originally Posted by Dialhot
(note: here we are using lanczos so the 9 is the precision of the filter, that is something taht you can modify in avisynth).
Is it correct this way?
Again from manual, don't would be?:
Code:
scale=720:480:-sws 9:filter lenght

--------------------------
Visit: Intermediate guide: MencodeMe/Win32 - Avisynth - MakeAvis by Prodater64.
Visit: KVCD - MencodeMe - Auxiliar Task - KVCD Docking Gate by Prodater64.
Visit: Mencoder scripting with AVSEdit and Guide for Multiple Files by Prodater64.
Visit: Mini-guide quick and easy - DVD to (S)KVCD with MencodeMe by Maurus.
Visit: Mencode-me: a newbie oriented GUI - 0.23 is out! by VMesquita.
--------------------------

Reply With Quote
  #23  
06-03-2004, 05:04 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Prodater64
But that Inc said it don't mean that it he say to be correct.
Inc, as myself, never "say" something. He report something he has experimented himself.
As I told you, SOMETIMES you need that conversion. And has I also told you : PERSONNALY I never had any problem.

You see, that's not just "saying"...

Quote:
I am always reading manual before posting. In manual, there is not filters that needs rgb colorspace (at less I can't find out it).
Don't always trust the man : scale does NOT convert to RGB (and that is a good thing) but in the case of lanczos it seems to output in YV12. Unfortunally, in all my attempt, the source was also YV12 so I never saw the benefit of this. And BTW I don't use scale when I do not need to scale (just as you are suggesting).

But I just find out an option explanation that permits to deduce that scale it is not necessary when original and scaled frame size match.

Quote:
I understand the blue remarked text as it is not usual neither necessary to use scale when mentioned condition is true. (except for spuaoption, of course)
No, the part in blue tells taht you can FORCE the scaling even when it is not necessary. That means that without that NO SCALING is done when the target has the same res than the source. In other words, "scale" is optimized.

Quote:
Again from manual, don't would be?:
Code:
scale=720:480:-sws 9:filter lenght
For sure not ! "sws" is a parameter independant, scale is an option of the "vf" parameter. You line in syntaxically incorrect.
Reply With Quote
  #24  
06-03-2004, 05:10 PM
black prince black prince is offline
Free Member
 
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
@anyone,

Mencoder.exe -include temp.conf -lavcopts vbitrate=1037:vpass=1 "F:\Temp\KSVCD.avs" -o /dev/null

Also, I'm trying to use MEncoderAVS from http://ffdshow.sf.net/ffmpeg_avs.rar
and every frame is dropped for "duplicate error" which creates no log and
mpv files. Is this compiled version of MEncoder working for Win32
Others claim to have it working, but I can't get it to stop dropping
frames for "dup error" This avs version would allow me
to encode directly from an avs script instead of MakeAVIS avi file.

-BP
Reply With Quote
  #25  
06-03-2004, 05:25 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by Prodater64
But that Inc said it don't mean that it he say to be correct.
Nice. (shure I dont got "holes" in my hands)

Well ....
IF you would see the log of the console the forced colorspace conversion seems to be fixed as now the scaler just does a BYpass IMHO as in my case i got NO fps speed loss if not scaling in effective is set due to values different from the orig state!.

"YV12 to YV12 colorspace scaling" in case of DVD inpout resizing or similair quoted is written there already since a lot of outcomed builds, means since 1-2 Month!

Try to load a strange mpeg4 codec and apply a filter (I dont know which one suffered now but ..) ... that caused a crash in mencoder IF that Scale was not used before!

Also ... if you look into mencoder Console log .... Verrry often when mencoder cant recognise the input diata... he uses "scale" to get that input decodable. So as Phil said ... theres mor "in" :scale: than just a scaler.

And according to cosmetics ... Even when using fitcd on a 720 source just beiing cropped to 704 .... you wont find only a "Crop" line in the avs output script generated by Fitcd or Moviestacker, ... no ... the whole Bicubicresize(XXX,YYY,i,i,x,y,XXX,YYY) will be put out with "sclaing" parameters.

You tell you read manuals? Nice. Ok. I also do ... but Practice will also give a little overview whats happening. Then you will see that some parts of the manual have not been updated properly ... as the console log output DOES report something different.

Generally: Shure Im not everytime right as im just a product of "this" human world. But I do not "just assume" I at least do "say" things if I did try them before no offense

Quote:
Again from manual, don't would be?:
Code:
scale=720:480:-sws 9:filter lenght
Wouldnt be ? I think you should try as I saw that scale:.....:9 is the argument for lanczos ... where the single "-sws 9" could be the sclaer argument for mplayer ??? Maybe its needed to be double mentioned .. which would be silly but we never know. And that could be found out.
Reply With Quote
  #26  
06-03-2004, 05:33 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Dialhot
...
As I told you, SOMETIMES you need that conversion. And has I also told you : PERSONNALY I never had any problem.

You see, that's not just "saying"...
No offense Phil, please, I know Inc. and your working way.

Quote:
Quote:
Again from manual, don't would be?:
Code:
scale=720:480:-sws 9:filter lenght
For sure not ! "sws" is a parameter independant, scale is an option of the "vf" parameter. You line in syntaxically incorrect.
I understand that from:
Quote:
scale[=w:h[:interlaced[:chr_drop[aram[re- size]]]]]
Scales the image with the software scaler (slow) and performs a YUV<->RGB colorspace conversion (al- so see -sws option).
w,h
scaled width/height (default: original width/height)
NOTE: If -zoom is used, and underlying fil- ters (including libvo) are incapable of scaling, it defaults to d_width/d_height!
0: scaled d_width/d_height
-1: original width/height
-2: Calculate w/h using the other di- mension and the prescaled aspect ratio.
-3: Calculate w/h using the other di- mension and the original aspect ratio.
interlaced
Toggle interlaced scaling.
chr_drop
chroma skipping
0: use all available input lines for chroma
1: use only every 2. input line for chroma
2: use only every 4. input line for chroma
3: use only every 8. input line for chroma
param
scaling parameter (depends upon the scaling method used)
-sws 2 (bicubic): sharpness (0 (soft) - 100 (sharp))
-sws 7 (gaussian): sharpness (0 (soft) - 100 (sharp))
-sws 9 (lanczos): filter length (1-10)
presize
Scale to preset sizes.
qntsc: 352x240 (NTSC quarter screen)
qpal: 352x288 (PAL quarter screen)
ntsc: 720x480 (standard NTSC)
pal: 720x576 (standard PAL)
sntsc: 640x480 (square pixel NTSC)
spal: 768x576 (square pixel PAL)

--------------------------
Visit: Intermediate guide: MencodeMe/Win32 - Avisynth - MakeAvis by Prodater64.
Visit: KVCD - MencodeMe - Auxiliar Task - KVCD Docking Gate by Prodater64.
Visit: Mencoder scripting with AVSEdit and Guide for Multiple Files by Prodater64.
Visit: Mini-guide quick and easy - DVD to (S)KVCD with MencodeMe by Maurus.
Visit: Mencode-me: a newbie oriented GUI - 0.23 is out! by VMesquita.
--------------------------

Reply With Quote
  #27  
06-03-2004, 07:38 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Prodater64
I understand that from:
You just need lessons on "how to read nice UNIX app lan page"

Quote:
scaling parameter (depends upon the scaling method used)
-sws 2 (bicubic): sharpness (0 (soft) - 100 (sharp))
-sws 7 (gaussian): sharpness (0 (soft) - 100 (sharp))
-sws 9 (lanczos): filter length (1-10)
In correct english this gives :

"if the scaling method (that is setted by -sws option as you can read in the manual several pages above this one) is bicubic (that correspond to -sws 2) then this parameter represents the sharpness and can take a value from 0 to 100.

if the scaling method is gaussian(that correspond to -sws 7) then this parameter represents the sharpness and can take a value from 0 to 100.

if the scaling method is lanczos(that correspond to -sws 9) then this parameter represents thefilter length and can take a value from 1 to 10."

if the scaling method is something else than the three values above, then this paremeter is not used."


As you can see, the manual would have twice the number of pages if everything was expressed like this !
Reply With Quote
  #28  
06-03-2004, 07:56 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
@ Dialhot: Thank you.

In Argentina (where I'am from) we say (more or less): Who don't know is like who don't see.
Thank for your lessons.


--------------------------
Visit: Intermediate guide: MencodeMe/Win32 - Avisynth - MakeAvis by Prodater64.
Visit: KVCD - MencodeMe - Auxiliar Task - KVCD Docking Gate by Prodater64.
Visit: Mencoder scripting with AVSEdit and Guide for Multiple Files by Prodater64.
Visit: Mini-guide quick and easy - DVD to (S)KVCD with MencodeMe by Maurus.
Visit: Mencode-me: a newbie oriented GUI - 0.23 is out! by VMesquita.
--------------------------

Reply With Quote
  #29  
06-04-2004, 04:05 AM
Fluffbutt Fluffbutt is offline
Free Member
 
Join Date: Apr 2004
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
vf=yuvcsp,scale=720:480::0:9,crop=672:448:24:16,no ise=3th,
unsharp=l3x3:0.6,hqdn3d=3:6:2,unsharp=l3x3:-0.7:c3x3:
-1.5,expand=704:480:16:16
Not trying to be a pest, (and I understand about Kwags noise & minbitrate thingy), but wouldn't having hqdn after noise=3th remove the noise you've just put in?

,hqdn3d=3:6:2,unsharp=l3x3:-0.7:c3x3:-1.5,noise=3th, Instead? or am I waaay wrong...
__________________
|
Meeow!
Reply With Quote
  #30  
06-04-2004, 04:27 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
I didn't noticed that in the previous post but yes, you are right. I did the same mistake 2 days ago and changed that since then.
Reply With Quote
  #31  
06-04-2004, 04:38 AM
Fluffbutt Fluffbutt is offline
Free Member
 
Join Date: Apr 2004
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
WOW!!

The Fluffbutt actually got something you guru's didn't!!!



<PURRRRRRRRRRRRRRRRRRRRRRRR> !!!!
__________________
|
Meeow!
Reply With Quote
  #32  
06-04-2004, 05:11 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by Fluffbutt
The Fluffbutt actually got something you guru's didn't!!!!
We just find funnier to let you discover your mistakes by yourself and answer after that : "you didn't knew that ? pffff.... newbies..."

Reply With Quote
  #33  
06-05-2004, 08:06 AM
Fluffbutt Fluffbutt is offline
Free Member
 
Join Date: Apr 2004
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts


__________________
|
Meeow!
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Mencoder: Question about average bitrate... black prince Video Encoding and Conversion 3 06-02-2004 06:53 PM
Mencoder: Mencoder two-pass encoding questions Prodater64 Video Encoding and Conversion 13 05-05-2004 03:33 PM
Mencoder: Changing/Setting field order in mencoder tuco1979 Video Encoding and Conversion 1 04-17-2004 09:06 AM
Mencoder: MEncoding DivXs/DVDs using 2 pass VBR vmesquita Video Encoding and Conversion 53 04-16-2004 04:07 PM
FFMPEG: Mencoder 2-pass japie Video Encoding and Conversion 9 11-04-2003 09:20 AM




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