digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Mencoder: Mencoder for Windows (http://www.digitalfaq.com/archives/encode/7740-mencoder-mencoder-windows.html)

rds_correia 01-18-2004 05:13 AM

Mencoder for Windows
 
Edit-I moved this topic from KDVD to ffmpeg. I forgotten where I had written it...Sorry guys :oops:

Hi guys,
@all windows users
I've recently found ffmpeg/mplayer/mencoder and after some tests I can say we could get some really good results with it.
You can find some topics about it in our forums but I cannot find any information on windows users only.
From what I have learnt until now this (m)encoder is a very powerful command line tool only lacking
compatibility with avisynth scripts and dvd2avi projects. We can only do AVI (including DivX/XviD) and VOB files to name the more popular...
But still, I think we should try more than we did so far and I think we should post our doubts, workarounds and results with it.
There's no point in making comparisons with tmpgenc, cce or mce because these are script compatible.
@all linux users
Hey, you guys have a script made up by russiansexpat. Why don't you give us some help and advise?

Here are some links:

mencoder for windows - http://armory.nicewarrior.org/projects/cygmp/

Home for mplayer project - http://www.mplayerhq.hu/

I suspect I still don't know how to use the arguments (especially vrc_buf_size, scale and expand) but here is the latest command line I used for KVCD notch matrix on MPEG2 704x576:
Code:

mencoder -sws 2 -vf denoise3d,eq2,scale=704:-3,expand=0:576 -ofps 25 -forceidx -of mpeg -nosound -ovc lavc -lavcopts vcodec=mpeg2video:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27,29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79:inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44:mbd=2:vbitrate=2200:vrc_minrate=300:vrc_maxrate=3000:vrc_buf_size=917:keyint=25:vlelim=-4:vcelim=7:lumi_mask=0.05:dark_mask=0.01 'D:\BTTF\VOBS\VTS_01_1.vob' -o 'd:\bttf\m2v\encoded.mpg'

Hydeus 01-18-2004 05:50 AM

Wow 8O
This is (almost) exactly what i was lookin for. Thx RDS. I'm no mencoder expert, but in near future I'll doo some test and experiments with this.
Still big inconvenience is lack of using AVS scripts. Maybe someone find another solution for this (mayby another type of script). I was wondering if it is possible to use VD frame server as input for mencoder. Any ideas?

rds_correia 01-18-2004 09:21 AM

Hi Hydeus,
In fact it is a big inconvenience the avs thing.
But I think that the guys are not giving it the attention it deserves.
I remember Karl on his toes when he first tried ffmpegx on his Mac. By then he was all excited.
The same goes for a lot of guys when they first tried ffmpeg for windows compiled by Karl. The talking endured for weeks.
But things got going and after a few months we get to see the community divided because of this M$ vs *nix, mine is bi**er than yours thing...
You know, they're not excited anymore and you can see that Phil raised a question on how is the development right now and everybody started off-topic conversations.
The only guys that could give us some help right now because they're all turned on with it, are russiansexpat and the
*nix guys, but they don't waste much of their time thinking about how a M$ guy would solve his problem with M$ OS.
For them the guy simply should avoid M$ and he should join *nix brotherhood.
It's simply a shame because we really don't know how fast mencoder is against tmpg, cce or mce because it cannot read avs but we sure know it is a hell lot faster than those 3 when encoding from avi. And the quality is just great.
I guess I'm just going to keep using tmpg and having to wait 24H of encoding LOTR-TT to KDVD...
C ya

Hydeus 01-18-2004 05:46 PM

VirtualDub frame server file vdr is not a valid input file for mencoder :( Does anybody know a diferent frame server, with read of AVS files?
I found one solution, "very simple but very stupid" :lol: :
create a uncompresed (or almost loseless compression) avi file, from source file, worked out by avs script, and then feed the mencoder with that avi file. :banghead: But who wants to play with that? :screwy: ;) I give you a hint -> not me 8)
Beter search for another solution :crashed: (like temporal ignorance of low quality ;) ) -> :drink:

rds_correia 01-18-2004 06:29 PM

Hi Hydeus,
It's seams that nothing will work: VFAPI, VDub, makeAVIS.
Tried with the above 3 and it didn't work.
But that doesn't mean that there is no way we can make it work.
TMPGEnc didn't work also but someone built ReadAVS.dll and we started playing.
From my point of view tmpgenc is not an option. I know that the average PC is a 1,5Ghz CPU nowadays but I must remind us all that some guys are still stuck with <=1Ghz PCs, they use mencoder and *nix and they have superior MPEG files for their KVCDs faster than tmpgenc on M$.
More, FFMPEG and Mencoder are both free.
There's got to be a way for us to use AVS scripts with Mencoder...
Will someone help us here?

Dano 01-18-2004 07:07 PM

This might help people on their way to mencoder on windows.

GuiMencoder

http://www.vdsworld.com/~vuks/bin2/gulmencoder.cab

rds_correia 01-18-2004 07:19 PM

Thanks a lot Dano
I think I'll d/l it right now and tell you how it went tomorrow.
Cheers

Hey Hydeus,
Wanna play with me? :D
I swear I only mean with mencoder gui :wink:

Hydeus 01-19-2004 09:58 AM

Ok ;) What are the rules of the game? ;)
I just downloaded gui file but in couple of hours I'll have not time to test it.

BTW: Did you noticed that I've been avanced to moderator by B2H :lol:

tuco1979 01-19-2004 02:25 PM

The problem with makeavis is that ffvfw codec is not recongised by mencoder. I have been reading the man_page that came with mencoder and the filters mencoder have are pretty good. I do more tv captures than anything else and with tmpgenc, I would only need to use fluxsmooth and resize from avisynth. Denoise3d is very similar to fluxsmooth and gives me excellent results. I haven't experimented much with the other filters but it seems that the quality of filters are very similar to avisynth. I am going to try out the gui later.

Hydeus 01-19-2004 07:00 PM

Thx Tuco for a hint. I'll keep that in mind.

tuco1979 01-20-2004 01:53 PM

I tried the gui out but I am confused about how to input a text file so I could just make some preset text files. It is a good first effort though. I probably need to muck around with it some more.

rds_correia 01-20-2004 05:00 PM

Hya all
I'm having the same problem as you tuco but then it may be that I need to grab my pillow for about 8 hours or so...
I feel like I can't get up from my chair...
See you guys tomorrow.

Hydeus 01-20-2004 05:31 PM

I don't know how you guys, but I think I don't fully understand how this gui works :? With video codec -ovc lavc and parametr -lavcopts vcodec=mpeg1video I get avi mpeg1 file, which of cource is not a valid mpeg file ;) Any small sugestion to move forward?
And could you explain me exacly what for are this text files you want to input?

russiansexpat 01-21-2004 07:45 AM

Both mplayer and mencoder sources can be file, device, network stream or pipe.
Mplayer can output into pipe (frame serve) for any other encoder, so initially I used mplayer to feed mpeg2enc
which is Linux variant of tmpgenc, see
http://dvdripping-guid.berlios.de/fo...opic.php?t=157
Mplayer/mencoder can process suntitles and vob, but I don't have experince with these, cause I don't do DVD authoring.
Also, mplayer has very powerful TV out support.
Unfortunately, mplayer/menocder man page and documentation are lacking explanation of many important parameters, so I had to test all parameters of my script and can explain them now.

Mencoder can be feed from pipe
(how it is called in windoze - bills vortex :lol: )
so most likely you can do pre-processing for mencoder by your tools.

rds_correia 01-21-2004 08:35 AM

Hi Russian friend.
Welcome to our humble M$ Mencoder topic :lol:

Quote:

Originally Posted by russiansexpat
...
Mplayer/mencoder can process suntitles and vob, but I don't have experince with these, cause I don't do DVD authoring.

Do know if I followed you correctly: did you mean suntitles or subtitles?
Because what I'm really doing is KDVD and DVD.
Quote:

Originally Posted by russiansexpat
Also, mplayer has very powerful TV out support.

On both Linux and M$ version or only for Penguins :?:
Quote:

Originally Posted by russiansexpat
Unfortunately, mplayer/menocder man page and documentation are lacking explanation of many important parameters, so I had to test all parameters of my script and can explain them now.

Gee! I really would like to get my hands on that man page you refer.
Anyway I can call it by cmd line arguments in M$ (like mencoder -h)?
Quote:

Originally Posted by russiansexpat
Mencoder can be feed from pipe
(how it is called in windoze - bills vortex :lol: )
so most likely you can do pre-processing for mencoder by your tools.

Now I got completely lost :roll:
You mean "bills vortex" is the same as pipe?
Hell, I don't even know what is pipe but I think it should be like "|" in M$ batch files, is it?
So I could I use DVD2AVI and/or Avisynth for pre-processing?
Using pipe/bills vortex?
Could you give us some more hints my friend?
Because I believe only you "Penguin" guys can bail us out on this one...
Hope to hear from you guys soon.
C ya

tuco1979 01-21-2004 09:32 AM

You can find the man_page here at http://www2.mplayerhq.hu/MPlayer/rel.../man_page.html. You should have had it when you downloaded mplayer I think. This should help you understand some of the filters more. For now I just make a .bat file with my presets since the GUI doesn't really do the things I would like it to.[/url]

rds_correia 01-21-2004 04:10 PM

Nice going tuco 8)
Unfortunately I won't have much time to test it before the weekend but I'll take a look at it as soon as I can.
Thks

Hydeus 01-21-2004 05:28 PM

Unfortunately putting avs script directly to mplayer for bill vortex (great name ;) ) is not as simple as it seems :( Or maybe I don't know some rule to do this work. It says LMLM4 stream format not found, no mater if it is avi source or d2v source in script.
One good plugin, only one .... is it so much to ask ;)

russiansexpat 01-21-2004 11:25 PM

Pipe is same as "|" in ms batch files. You can't put the code (script) through the pipe but you can put the result of your script into pipe and out of pipe to mencoder.
Consider pipe as virtual temporary file - one prorgram output into the pipe, and other program takes input from the pipe.

I briefly checked windoze mplayer/mencoder man page - your http link http://www2.mplayerhq.hu/MPlayer/rel.../man_page.html
and it looks the same as Lunix man page.

kwag 01-21-2004 11:36 PM

Quote:

Originally Posted by russiansexpat
and it looks the same as Lunix man page.

Is that a new distro :?: :arrow: Lunix :?:
Just kidding :mrgreen:

-kwag


All times are GMT -5. The time now is 04:27 PM  —  vBulletin Jelsoft Enterprises Ltd

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