digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Mencoder: Ffmpeg with Avisynth support (http://www.digitalfaq.com/archives/encode/9463-mencoder-ffmpeg-avisynth.html)

Abond 05-13-2004 02:26 PM

Sorry everybody. Almost 5 hours I can't connect to the forum.
@milan
Source: MPEG-2 capture 720x576 (PVR 250) 12000 kbps CBR
moved through DVD2AVI 1.76 - d2v
Script:
Code:

Mpeg2source("blahblah.d2v")
Crop(16,76,-16,-76)
RemoveDirt()
HybridFupp(672,400,preset="very high")
AddBorders(16,88,16,88)

Command line:
Code:

Mencoder.exe -include temp.conf -lavcopts vbitrate=1447:vpass=1 "E:\Burton\burton.avs" -o "E:\Burton\burton.mpv"
And the include file:
Code:

of=rawvideo=1
ovc=lavc=1
nosound=1
sws=9
lavcopts=vcodec=mpeg2video:vrc_eq=tex:vmax_b_frames=2:vrc_maxrate=5000:
aspect=1.3333:keyint=15:vrc_buf_size=1835:preme=2:precmp=2:vstrict=-1:
autoaspect=1:scplx_mask=0.3:vqblur=0:mbqmin=1:vqmin=1:mbqmin=1:
lmin=1: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
ofps=25

In fact the command line and temp.conf were generated from MencodeMe.
Greetings.

digitall.doc 05-13-2004 04:07 PM

milan,
already downloaded your last mencoderAVS version. I did a 5 second test ( :lol: ) and stopped it to post.
Well, it loaded my avs script without a problem.
Related to speed, it was encoding at 22 fps when I stopped. The same script through makeAVIS run at max 21 fps. So it's faster.
When I closed the cmd window, it gave me a crash error (I guess the same you posted here).

Very good feelings 8)

yaz 05-14-2004 03:55 AM

wouv ... what a great app ! many many thx ! anyway ... as this thread seems to turn to a 'mencoder' related one would it be better to move it to there. or open a new one there for mencoderavs ? just a humble quest :-)
the bests
y

rds_correia 05-14-2004 08:34 AM

Topic moved to Forum Mencoder MencodeMe
 
@yaz,
Wish granted as I have the same opinion as you do.
We'll see us in the Mencoder Mencodeme forum
Cheers all

rds_correia 05-14-2004 08:36 AM

Hmm :roll: ,
BTW since I don't have rights on Mencoder forum can any Mod change this topic back to Sticky :?:
TIA :D
Cheers

vmesquita 05-14-2004 08:41 AM

@rds_correia
I don't think this topic should be a sticky, because it's an active topic right now, but as soon as milan completes adding avs support, there won't be much benefit in reading the thread for people coming later. Don't you agree? :D

rds_correia 05-14-2004 12:59 PM

@VM,
Hi Vê
Indeed, and as always, you are right pal.
This is a very active thread and either way, it's results will have to be implemented in our compilings available at the forum.
A bit OT, and since I touch the subject, I'm not quite sure if it's "legal" to make Mencoder compilings available at the forum.
Could someone clarify that?
Cheers

vmesquita 05-14-2004 02:33 PM

@rds_correia
This is a very complex subject. I think mencoder binaries are illegal in countries where there are patent laws, like in the US. In Brasil thank god there are no patent laws. This depends on which country kvcd.net is hosted (what I don't know).

rds_correia 05-14-2004 02:53 PM

@VM,
Thanks Vê, I just hope we can make them available at the forum otherwise it's very unconfortable for newbies.
They'll have to grab the Cygwin/MinGW packages along with MPlayer CVS and DirectX headers, and we'll have to explain in full detail the steps to compile.
Not to mention that on older PCs like the one I had it takes ages to compile...
So let's all cross our fingers and hope KVCD.net or KVCD.org are in a "patentless issuable" country :wink:
Cheers

kwag 05-14-2004 03:01 PM

Quote:

Originally Posted by rds_correia
So let's all cross our fingers and hope KVCD.net or KVCD.org are in a "patentless issuable" country :wink:
Cheers

I'll check on that.
(MUTE is a wonderful virtual world :idea: )
So it would be the responsibiliy of whoever downloads it, to follow the local laws of it's country.
KVCD.Net is hosted in the U.S, and we are a U.S. company.

-kwag

digitall.doc 05-15-2004 10:30 AM

Well, in the meanwhile I keep encoding with it. I know we have the possibility to encode with mencoder and makeAVIS, but I prefer those 1-2 fps (or whatever) of speed.

I think you all know, but it crashes everytime on exit...

I already tested several resolutions, 1 or 2 pass, and several avisynth scripts, and works well.
We just need to solve ( :lol: "we", as if I was the one to do that :oops: ) this crash issue, and to know how to implement it in every mencoder update.

digitall.doc 05-15-2004 03:52 PM

Another irrelevant problem with mencoderAVS:
- It doesn´t show percentage of film encoded
- Time remanent is not shown (Trem:)
- Aproximate final file size is not predicted.

It's not that important, just don't know why this became screwed up, not even if I'm the only one that noticed this.

Koekies 05-16-2004 04:08 AM

Try clicking clear log it works for me :)

rds_correia 05-16-2004 05:05 AM

Quote:

Originally Posted by Koekies
Try clicking clear log it works for me :)

Hi Koekies :)
Stop eating so many cookies :wink:
Although this is MencodeME forum I bet digi.doc is still running MEncoder from his batch file 8)
And there, my friend, there is no clear log button to press :wink: .
What digi.doc means is that when using Mencoder with internal mod by milan for avs scripts, mencoder stops doing the statistics.
And that already happened before with command lines like:
Code:

type mencoder.exe options input output -
As input you would write the name of all your VOB files.
That was before we started doing long 5-7GB VOB files when extracting.
Cheers

digitall.doc 05-16-2004 05:07 AM

yeeeees Rui, your're right 8)

Koekies, :wink:

Fl0ppy 05-16-2004 05:54 AM

don't work for me i tried to downlaod the last mencoderavs and the result is:

libavformat file format detected.
LAVF_header: av_open_input_stream() failed
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.
Exiting...

and the script it' too easy:

Quote:

Avisource("c:\test\test.avi",false)
temp.conf
Quote:

of=rawvideo=1
ovc=lavc=1
nosound=1
sws=2
lavcopts=vcodec=mpeg2video:vrc_eq=tex:vmax_b_frame s=2:
vrc_maxrate=2500:aspect=1.3333:keyint=24:vrc_buf_s ize=917:preme=2:precmp=2:vstrict=-1:autoaspect=1:
scplx_mask=0.3:vqblur=0:mbqmin=1:vqmin=1:mbqmin=1: lmin=1:
intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,2 9,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
ofps=23.976
What's wrong ?? my cpu it's a p4 witjh sse2

digitall.doc 05-16-2004 10:33 AM

Never happened to me.

A silly question, does it open well in other encoder, or VirtuaDub?

yaz 05-17-2004 08:02 AM

hmmm ... still doesn't work for me :-( i simply changed my old bat files to do the job but no success. i used my avisynth scripts that were used before as (make)avis with success so no problem on this side. besides the problems digi.doc mentioned mencavs makes some quite strange things. on kickin in it starts to identify the source but it seems to fail. afterward it tries to make some inner filterings (???) but no success. then suddenly it recognises that the source is an avs script (what a great surprise :-)) here i got two way out. one is kickin off as mencavs does not finds a proper codec(???) for making the encoding. the other is a kinda encoding (with some fake screen output) but the result is always a 0(!)kbps stream.
what do i do wrong ???
the bests
y

Abond 05-17-2004 09:32 AM

I don't believe you do something wrong. I have the same output :D

incredible 05-17-2004 09:59 AM

Try adding a converttoYV12() or ConverttoYUY2() :!: at the end of you script and retry ... well test both possibilities.

Maybe I missed something but someone told that he got success if importing a HuffYUV file into avisynth??? :?: Would mean a YUY2 output of the avisynth script

Abond 05-17-2004 10:24 AM

Quote:

Originally Posted by incredible
Try adding a converttoYV12() or ConverttoYUY2() :!: at the end of you script and retry ... well test both possibilities.

Already tried - no change.

digitall.doc 05-17-2004 04:57 PM

Quote:

Originally Posted by incredible
Maybe I missed something but someone told that he got success if importing a HuffYUV file into avisynth??? :?: Would mean a YUY2 output of the avisynth script

Sorry guys, I cannot help you with your problems, since it works fine for me, apart from the "problems" I posted (the only real problem is the crash on exit).

So, why am I posting then?. Well, I'm encoding a home-made captured video. I used (first time) HuffYUV avi-codec (first time, pheeew 9 Gb for 13 minutes, really Gb consuming :? ). I used then the same avs scripts I was using earlier (with avi captures also, other codec). And to my surprise, didn't crash on exit. Don't know if the rest of problems went also away (I left mencoding alone), but didn't crash.

And doesn't seem a colorspace problem. As outputted from Premiere, it was in RGB, and I used in the avs script avisource("...",false).converttoyv12. So doesn't look to be this problem.

digitall.doc 05-22-2004 09:51 AM

Just a post to "refresh" this item :roll:

For those ot you doing nothing at the moment (VM, Inc,... :lol: :lol: ), and with compiling capabilities (no, I'm not one of those :oops: ): did you try to compile mencoder with avisynth, the way Milan advised? (if Milan advised any way...)

incredible 05-22-2004 10:22 AM

Could you just point me to a "clear" how to, ... how that should be done, as im right now in so much stuff, .. I havnt the time to "recover" everything which is needed in the wohle amount of postings here :)

digitall.doc 05-22-2004 11:10 AM

Sorry Inc, I can't.
Don't know if what Milan psoeted inthis same thread has any meaning for you all, and if can be of a help. Apart from this, there's no other info AFAIK. :?

rds_correia 05-22-2004 12:56 PM

Hi guys,
As far as I'm aware Milan just posted a mencavs executable/binary version.
I asked for the sources but wisely he doesn't want to do that until he finishes his work.
So we'll have to wait a bit more.
Cheers

black prince 06-03-2004 08:12 AM

I'm trying MencoderAVS using the following avs script:

LoadPlugin("c:\DVD BACKUP\4 - MOVIESTACKER\Filters25\MPEG2Dec3.dll")
Mpeg2Source("F:\Temp\movie.d2v")


Every frame was displayed as dup error :roll: Are there settings in
Mencoder that must be set to correct this :roll: Here's my batch
file:

::DVDDecrypter /MODE FILE /DEST "F:\dvd_video\Video_ts\" /START /CLOSE
:: Force Film
::DVD2avi -IA=1 -FO=1 -CS=2 -YR=1 -TN=1 -AIF=[F:\DVD_VIDEO\VIDEO_TS\vts_01_1.vob] -CF=4 -DD=1 -DRC=2 -OF=[F:\Temp\movie] -exit
:: Interlaced
::DVD2avi -IA=1 -FO=0 -CS=2 -YR=1 -TN=1 -AIF=[F:\DVD_VIDEO\VIDEO_TS\vts_01_1.vob] -CF=4 -DD=1 -DRC=2 -OF=[F:\Temp\movie] -exit
::BeSweet.exe -core( -input "f:\Temp\MOVIE.ac3" -output "f:\Temp\MOVIE.mp2" ) -azid( -c normal -g 0.95 -L -3db ) -ssrc( --rate 44100 ) -boost( /b2=5 ) -toolame( -m s -b 64 -e )
Mencoder.exe -include temp.conf -lavcopts vbitrate=1037:vpass=1 "F:\Temp\KSVCD.avi" -o /dev/null
Mencoder.exe -include temp.conf -lavcopts vbitrate=1037:vpass=2 "F:\Temp\KSVCD.avi" -o "F:\Temp\KSVCD.m2v"
::pulldown.exe "F:\Temp\KSVCD.m2v" "F:\Temp\movie.m2v"
::mplex.exe -f 5 -V -o F:\Temp\KSVCD.mpg F:\Temp\KSVCD.mp2 F:\Temp\movie.m2v
shutdown.exe


Thanks

-BP


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

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