Go SECAM :!:
Hey Hydeus: are you using both ffvfw an ffdshow or just ffvfw? How about the speed and quality compared to tmpgenc without Notch Matrix? Regards |
Hi RDS.
Read edit above :( I use only ffvfw. And as for test with TMPwithout notch matrix, I'll do the test. |
:idea: :idea: :idea: :idea: :idea: :idea: :idea: :idea: :idea: :idea:
:!: :!: BREAKING NEWS :!: :!: You can't seem to be able to use custom matrixes... But that's only with MPEG1! Try changing to MPEG2 codec, use quantization type MPEG, check custom matrixes box, and voilá! The custome matrixes options are now customizable. So, now I only have 1 problem to solve: min and MAX bitrate... Cheers |
You can change max bitrate if you set two pass - 2nd pass option. But when I try to preform two pass encodeing my VDMod crash at all time :(
EDIT: As for encoding speed. On short sample avi (without any filters) ffvfw: 41 sek TMPG: 64 sek |
Quote:
Edit: This is an ffmpeg thread. Let's continue on a ffvfw thread, which I'm just creating right now :!: -kwag |
So we both bombarded him with emails ;) I've inform him that doc page is down, and asked hov to change matrixes. I hope that he will not get mad at us ;)
For test: Quality equal. |
Ok guys lets get back to the topic, shall we?
|
Hya guys,
Thanks for the lesson Hydeus. I think I'll give it a shot one of these days. Now to the bad news: I can't match the quality I experienced a few weeks ago with mencoder :cry: Tried different builds, tried different command lines even including IBBP command that Tuco told us, but no go. I wonder if you guys have quality issues with mencoder... Don't get me wrong because it's quite watchable but looks like DivX and it didn't when I first tried it :? I think it's time you guys post your command lines here. BTW here it's mine: Code:
C:\VIDEO\mencoder>mencoder -sws 2 -vf denoise3d,crop=712:552,scale=688:400,expan FitCD says it should be cropped as 712x576 so I did using crop. Using a wonderful explanation by Inc. on how to set FitCD or Moviestacker for manually resizing, FitCD finally said that I should resize to 688x400. So I did with scale. Note that I used 1 block overscan! Since I need to get to 704x576 with black band added I used expand. This gives me (at least to my eyes) a perfect AR and should help compressability... Now this is all ok using mencoder parameters but I really think there should be an option to use avisynth. The Mplayer team doesn't pay attention to this because Mplayer is basically for Linux and they don't have avisynth. And I feel so sorry for them... Hey Kwag are you running some tests also? What about quality? Does it level with the one you saw on ffmpeg? Cheers guys Note: sorry for the double post by i think this belongs here |
Quote:
Haven't tried it yet :!: Where's that link to the windows binary of mencoder :?: -kwag |
@ rds,
Can you post on the first page, a: * Latest working mencoder script, and a * BETA-Testing (or work-in-progress) script that you all are currently working on during these threads ?? Yes, I'd like to copy/paste the lastest working script to test out mencoder, but I'm not sure which script to use 8O Just so that it makes it easy to go to one place for a working script, instead of having to read through all the threads :wink: BTW, and FWIW.. I thought the Spiderman movie was great!! Even if the young spidy guy really did suck in his acking, the movie was great!! And, it's a movie I can actually watch over and over. Like I said, FWIW.. :mrgreen: @ kvc, Are you refering to ??? * ftp://ftp.mplayerhq.hu/MPlayer/releases/win32-beta/old/ Thanks for understanding (considering) -vhelp |
Sorry guys,
Now I need to ask a dumb question.. Is there an already made thread here, for DUMMIES sticky somewheres ?? my mencoder is giving me headackes :roll: BTW.. pasting this script inside my DOS box didn't quite work either. Must be a better way. BAT file ?? What's your method for windows. Thanks, -vhelp Code:
C:\mencoder -sws 2 -vf denoise3d,eq2,scale=704:-3,expand=0:576 -ofps 25 -for |
My test with mencodet stops when I could not pass through his ".. didn't find ..." infos :( For now I'm starting tests with only notch matrixes and bitrate limiter. I think that using any of filters for now is only suitable when we could get good quality withouth them.
@vhelp Using BAT files is always best way to test any CLI aplication. I always do this way, while I can change single function withouth repasting and editing whole instruction in CMD window. EDIT: I've made small test, and I can say that there is need to set quantizers values. Picture is screaming witch large blocks (so I guest they values are freely arranged form 2 to 31; ~13 was max in BR viewer) and I think this must be set sharp, for instance: min3 and max4 or 5. Small problem -> I don't know how to do that :roll: I think that this option is common fr windows and linux version, so maybe some "mencoder linux master" will help us with that. |
Hi Hydeus,
Thanks for your response. Ok, so if I use a .BAT file, and paste the (what I'm assujing to be) the latest script file (above) into a .BAT file, and then Start the .BAT file, all should work ?? Yes.. I know.. I'll have to try this, but it would be nice to know what the answers are prior too, just in case there are other things to be aware of. Well, I'll try this .BAT thing out soon enough - pfew! -vhelp |
Yes, this is the way. Only make sure to have proper paths of mencoder and input/output files.
|
Hello everyone!
I just got my hands on this new toy! :D I still can't comment the quality of the encoder, but I can agree that's very fast! The latest windows compile can be downloaded here: ftp://ftp.mplayerhq.hu/MPlayer/relea...32-1.0pre3.zip I tried to compile the latest cvs in cygwin, but couldn't make it... I got the command-line rds_correia suggested, with some modifications: mencoder -sws 9 -vf pp=hb/vb/dr,hqdn3d,noise=lumaa50,scale=704:-3,expand=0:480 -ofps 23.976 -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,3 0,32,34,36,38,42,42,30,32,34,36,38,40,42,4 4:mbd=1:vqscale=2:vrc_minrate=300:vrc_maxrate=5000 :vrc_buf_size=3660:keyint=18:vlelim=-4:vcelim=7:lumi_mask=0.05: dark_mask=0.01:aspect=4/3:vmax_b_frames=1 "D:\Videos\my movie.avi" -o encoded.mpg Not let me explain what this stuff means. You can find complete explanations in the manpage that comes with the binary, but I thought that explain the main stuff would be useful. -sws controls the resizer type. In this case we're using lanczos, bilinear and lanczos are also available. -vf controls the filters being applicated. I added a post-processing filter and a noise one, and changed to 480 the resizer (NTSC) vrc_buf_size-This value controls the VBV buffer size. The value I used produces a VBV 224. -keyint controls the GOP size, I changed to 18. EDIT: Changed the command-line, with some new interesting stuff: hqdn3d is a hi-quality version of denoise3d, but incredibly, works faster! Here in my atlhon 2000+ encoding goes from 28 fps to 34 in this exchange. mbd=1 : manpage says this method yelds better quality. vqscale=2 : This is the Mencoder constant quality mode. Very interesting. You can use values from 2 to 31 to vary the quality. Quality is much better than 1 pass VBR. Float point numbers can be used. vmax_b_frames: enable B-Frames (default disabled). This causes tons of errors to me... :? edit2: vmax_b_frames:1 doesn't give errors, 2 or 3 will give tons of "PTS earlier than SCR". Also using 2 or 3 makes the GOP setting don't work anymore |
hi,
I'm still having trouble executing anything w/ mencoder :( I copied your scrip above, and saved in a text file, and named my source and directory locations accordingly (using a frameserved .vdr as my source) But, all I get is a dos window w/ what looks like an infinate looping of the same text screen (the mencoder.bat) and flickers. Filename: mencoder.bat File contents: (copied your above script and pasted into mencoder.bat) Execute: doubl-clicked mencoder.bat to run 8O -vhelp |
@vhlep
None frameservering (VD, VFAFI, makeAVIS, ASV) work with mencoder :( You must use pure video files (AVI, VOB, MPG, ....) |
I did some quality compare againts CCE. Without avisynth filters, this encoder definatelly loses by far, picture is very blocky when encoding DivX files. I tried to tweak the internal filter but couldn't make it better.
So I decided to create a huffyuuv lossless file from my avs script, and encode in CCE and Mencoder. This time mencoder did much better. Of course, I was just testing, transcoding to huffyuv then encode with mencoder is not practical to me because I don't have too much HD space, and it makes the process much slower. I know most people uses DVD sources. But I like my DivX. :D Also post-processing is very aggressive, takes away all the noise! :( And the noise filter seems to be doing nothing. I'll keep testing the internal filters. :!: |
Hya vmesquita,
Good to see some more Portuguese speaking guys here at mencoder discussian :D . Some considerations about your tests: Quote:
Quote:
Quote:
For VCD use 40*1024*8/1000 and for SVCD use 112*1024*8/1000. Don't trust what you see in bitrate viewer! Quote:
Quote:
About vqscale. Agree that it is a constant quality command ranging from 2 to 31 to vary quality, but I tried floating point numbers and it seams the encoder rounds the figure... Quote:
Cheers |
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Error in stream: PTS earlier than SCR! Error in stream: PTS to SCR delay 0 is too little! when I use 3, GOP starts with 19 and subsequent GOPs are 16 (and I am using a GOP of 18) Also: are you able to use huffyuv? I wanted to test the filters output by using huffyuv, so I could understand them better. Unfortunatelly, huffyuv and lossless jpeg don't work for me. I am using MJPEG with quantisizer 1 for this tests, but I don't think it's completelly lossless. |
Quote:
perhaps, if I recommeber correctly (and my wanting t give it a try) what a dummy I am :lol: -vhelp |
Quote:
Quote:
Quote:
Also I have never tried huffyuv, so I wouldn't know. Maybe one of the guys have tried it? Hey guys, give "v" a hand will you? BTW and a bit OT: I just saw a week ago Jorel posting in the Ptg forum about you being a genious. Why haven't him showed up again since? And yes I agree with Jorel: I also think you're a genious :lol: Cheers guys |
Hey,
Just thought about one thing I don't know if it's been said here. The encoded stream produce by mencoder is just like the one that ffmpeg produced when we were testing. Thus even though we're encoding with -nosound we are forced to demux it. Only then we can mux with our mp2 or ac3, ok? At least until we find out how to encode like in ffvfw with "raw frames". Cheers |
Quote:
Quote:
Quote:
EDIT: I just tried the pipe thing with mpgtx and it doesn't work. Maybe using the port of bash? :D |
I'm forever having trouble getting mc to work. anyways..
But, to add in your mux 'ness :lol: .. Isn't muxing the prefered way to go anyways. I mean, this is an MPEG encoder, is it not ? Audio quality is always on everyone's mind. Unless, there are other reasons to just encode/w video :roll: -vhelp |
I just found out how to make avisynth work with mencoder. Check it out:
http://www.kvcd.net/forum/viewtopic.php?t=9078 The downside is that it works a lot slower than without avisynth... In the other hand, it's 37% faster than FFVFW, and very close to CCE in speed with the DialHot v4 DivX FFVFW: 0.8 realtime (8 fps) Mencoder: 0.45 realtime (11 fps) CCE: 0.51 realtime EDIT: My script wasn't very well optimized, I was applying filters in the black borders. I let mencoder resize instead of avisynth, and now it reached 16 fps. But I have to try cce again to make a fair comparisson. |
@ all (or Hydeus, rds, vmes, russianexpinant etc)
As you all know about my W98 and it's DOS limitation w/ SET command, when writing .BAT script files to process for mencoder.. Can anyone provider a working variation of the script (or two) sample, but does not need the Matrix part. The W98 dos version of SET does not like to process anything in between it's "" that has an equal sine (ie, "=") in it. It give me an "Syntax error" message if it finds an "bla bla bla=" sign in the .bat script. Please, if anyone can provide a few mencoder command-line parameter examples, but w/out the Matrix (hopefully, it does no need to have it) I would be very greatful. I'm still testing mencoder for windows :roll: Thanks very much all, -vhelp |
Hi V.
I don't thik I quite follow you, but here are mencoder encoding options: GENERAL ENCODING OPTIONS (MENCODER ONLY) CODEC SPECIFIC ENCODING OPTIONS (MENCODER ONLY) (skip divx and lame section till lavc). And the simply comand line could look like this: Quote:
Quote:
|
@ Hydeus,
Thanks. However, the snip you posted just won't work!! I get error messages (see below) . . But, this one works like a charm, but it encodes to divX: * mencoder.exe -vfm huffyuv -ovc lavc 5.avi -o 5_encoded.avi and I didn't need to provide a folder name for it either :mrgreen: Here is your snip (cut and pasted as is, from your prev post) I copied it from my GUI app's window, and pasted it here (below) Quote:
Quote:
I'm trying to narrow down the "param" that is bailing out of mencoder :!: Thanks, -vhelp |
The simpliest cmd I can imagine is:
Quote:
Now you can put previos mpeg param's one by one after vcodec=mpeg1video:, this way you find the "exploding" parameter. |
@ Hydeus,
You post came, while I was typing this message.. anyways.. YAHOO !! It worked. I had to do a little debugging around. It turns out that those snips that you post, somehome you have :confused: spaces :confused: in them :confused: . . So, I took them out, and re-ran from my GUI, and bingo, it workd :mrgreen: Now however, there's another problem. Mencoder, after encoding fine, is pushing a bunch of "Error in stream: PTS ... " etc etc error messages. Here is a snip of when mencoder first encodes: Quote:
below: Quote:
-vhelp |
Yes, I also can sell error screens at lower prices :lol: And I have no idea even what this PTC to SCR, and other combination of this leters, with errors, mean ;)
|
Oh, althought the source mpeg is MPEG-1, it looked great in my vdub's window :mrgreen:
Now, to encode to mpeg-2, I would just change to -lavcopts vcodec=mpeg2video ?? -vhelp |
Yes, only this change. But, as always Phil says, for lower bitrates MPEG1 is beter, no mater with what encoder, and I can confirm this. So dont be afraid if quality will be worst with MPEG2.
|
Ok guys,
Here are my 2 cents. It seams that those f!ck!ng PTS SCR messages are only coming up when we use constant quality. That's probably because either: -we don't try to restrain the bitrate with vrc_minrate&vrc_maxrate -or because for instance our vrc_maxrate is too low for the vqscale of 2 that will sometimes produce peaks above 8000. If you're using vrc_maxrate=5000 then it will either "buffer overflow" or PTS SCR. Try vqscale=5 and vrc_minrate=300 and vrc_maxrate=5000. That shouldn't present us any wrongful messages. Though the quality will suffer a lot. Also, try vrc_minrate=300, vrc_maxrate=3000 and vbitrate=2200. That's almost constant bitrate of 2200. But the Q curve is going crazy as there is many flaws in the picture in high motion slices... Hell I don't think we can tweak this baby because it's too damn like ffvfw. It has almost all the flaws present in ffvfw, though there is more documentation to it. Cheers |
@ rds, Hydeus, vmes, russianxxx (if you're still around) and others..
I found out how to write configuration files, but I am having trouble w/ the proper param setting (or syntax usage) Here is how I have my scripts layed out: DOS BAT script: Quote:
our external settings. Next, we have the following script that I'm working on: Filename: men.ini Quote:
At the moment, I've now modified my GUI to include another editor for the configuration scripts. I'm calling (or refering to my scripts) as *.INI files. They could probably be anything you like, but I'm shooting for consistancy, I think :roll: I'm sorry, but the .html hep docs just arent clear enough to me, to understand and properly write the configuration syntax. Actually, the docs do not have an actual working copy of a configuration file. It would be nice if it did so that we could have a framework of how things are layed out. Also, my take is like this. Once we get over the hurdle of DOS limitations, through the use of scripting, then there will probably be more flexibility or less errors to work with :mrgreen: Any assistance to my new finding would be greatly appreciated :mrgreen: -vhelp |
Some notes..
from the .html docs, under General Notes heading: Quote:
N1, The above is the best I could come up w/ in setting up a config file. N2, I noticed mencoder is lacking an "include" param for our INPUT soure 8O ......that's why you sat the 5.avi in my BAT script file, and in the first ......line. N3, How I know that the men.ini script works.. ?? .. ?? well, for one, I started ......including single params and worked my way around. I started w/ the ......-ofps param. If you put the opfs=23.976 all by itself, in your *.INI ......config file, and run the BAT script file :confused: you'll get no errors, ......other than those related to mencoder's internal lack of an Encoder source, ......as noted by the (-ovc) line. I do hope that the above made some sense :confused: I have ben drilling my head w/ this damn mencoder vs. DOS batch scripting limitation all weekend long - Pfew! -vhelp |
I don't understand how it works. I only get No video encoder (-ovc) selected. Select one (see -ovc help).
Exiting... :( :oops: |
@ Hydeus,
Sorry, but I ended up copying more than I should have in my prev post. Once again... :mrgreen: Here is how I have my scripts layed out: DOS BAT script: Quote:
our external settings. ** The above is my DOS batch file. the -include is the param used for calling .....up the ..\..men.ini file. Next, we have the following INI script that I'm working on: Filename: men.ini Quote:
get if all goes well (substitute your .AVI source file) Quote:
line. I think I figured out why the other likes (linux error lines) show up. They only show up when there is something wrong. At least, I'm thinking :roll: that this is he reason why. Also, does anyone know where I can find the font.desc files. I figure, if I can find this, and copy it to my ..\mplayer\ folder, that even this error will go away. And, the less garbadge on ones screen, the better it is :!: @ Hydeus, I see you noticed that (-ovc) line. I can't figure this out. Even when I use it the same in in command-line mode, it bails out w/ the error message. However, if I use my original batch script, that creates a divX file, this configuration file (men.ini) works fine, I think :roll: - - more testing. -vhelp |
@Hydeous
I was using the latest FFVFW build. So I guess mencoder and ffvfw speed can be about the same (what actually makes a lot of sense, since they come from the same code. @vhelp Nice you found out about a config file, even for WinXP users, editing the command-line can be very confusing sometimes! It's also great to know you're writing a GUI. @rds_correia I think the conclusion is that constant quantisizer is not that great thing we believed. Like bilu pointed in the other thread, if you need to discard half of 20.000 kbps, you'll never be able to obey the max and min bitrate. Quantisizer must vary the encoder doesn't go beyond max bitrate or below min bitrate. But I think the great power we have in our hands is that the rate control of mencoder can be tweaked. Maybe this can lead us somewhere. |
Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.