digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   HOW TO Use avisynth with mencoder! (http://www.digitalfaq.com/archives/encode/8163-how-avisynth-mencoder.html)

rds_correia 02-14-2004 02:48 PM

8O 8O 8O 8O 8O
Pal, are you talking to me :?:
Didn't catch up with you VM :oops:
Sorry but most of the times I'm a big noob...
C ya

incredible 02-14-2004 02:52 PM

When encoding THE CORE no matter if 2 1 or 3 B frames used, but with TRUMAN SHOW I have to use 1 bframe cause at 2bframes this comes out:


######################################

C:\Programme\MPlayer>cd C:\Programme\MPlayer\

C:\Programme\MPlayer>C:

C:\Programme\MPlayer>mencoder -of mpeg -ovc lavc -lavcopts vcodec=mpeg2video:int
ra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,3 4,37,12,14,18,27,29,34,37,38,2
2,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_matri x=16,18,20,22,24,26,28,30,18,2
0,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=1:vqscale=3:vrc_minrate=300:vrc_maxrate=50 00:vrc_buf_size=1835:keyint=15
:vlelim=-4:vcelim=7:lumi_mask=0.05:dark_mask=0.01:aspect=4/3:vmax_b_frames=2 "H:
\truman.avi" -o "H:\truman_2b.mpg" -ofps 25
MEncoder 1.0pre3-3.2.3 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 2267 MHz (Family: 6, Stepp
ing: 1)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading C:/Programme/MPlayer/mplayer/codecs.conf: 61 audio & 170 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file C:/Programme/MPlayer/mplayer/mencoder: No such file or direc
tory
font: can't open file: C:/Programme/MPlayer/mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0 data: 0x0 - 0xAA00
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO: [AVIS] 352x576 16bpp 25.000 fps 0.8 kbps ( 0.1 kbyte/s)
[V] filefmt:3 fourcc:0x53495641 size:352x576 fps:25.00 ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
================================================== ========================
Opening video decoder: [vfw] Win32/VfW video codecs
Loaded DLL driver ffvfw
VDec: vo config request - 352 x 576 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (352x576 fourcc=3267706d [mpg2])
High quality encoding selected (non real time)!
Using constant qscale = 3.000000 (VBR)
Selected video codec: [makeavis] vfm:vfw (FFvfw makeavis)
================================================== ========================
Writing AVI header...
Limiting audio preload to 0.4s
Increasing audio density to 4
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
Unknown block type, possibly non-MPEG stream!
Unknown block type, possibly non-MPEG stream! 0mb A-V:0.000 [0:0]
Error in stream: PTS to SCR delay 8986 is too little!A-V:0.000 [983:0]
Error in stream: PTS to SCR delay 8753 is too little!A-V:0.000 [1007:0]
Error in stream: PTS to SCR delay 8179 is too little!
Error in stream: PTS to SCR delay 7606 is too little!
Error in stream: PTS to SCR delay 8921 is too little!A-V:0.000 [1013:0]
Error in stream: PTS to SCR delay 8351 is too little!
Error in stream: PTS to SCR delay 7782 is too little!
Error in stream: PTS to SCR delay 8751 is too little!A-V:0.000 [1032:0]
Error in stream: PTS to SCR delay 8188 is too little!
Error in stream: PTS to SCR delay 7626 is too little!
Error in stream: PTS to SCR delay 7065 is too little!
Error in stream: PTS to SCR delay 6505 is too little!
Error in stream: PTS to SCR delay 5946 is too little!
Error in stream: PTS to SCR delay 8988 is too little!A-V:0.000 [1038:0]
Error in stream: PTS to SCR delay 8431 is too little!
Error in stream: PTS to SCR delay 7874 is too little!
Error in stream: PTS to SCR delay 7317 is too little!
Error in stream: PTS to SCR delay 6760 is too little!
Error in stream: PTS to SCR delay 6204 is too little!
Error in stream: PTS to SCR delay 5649 is too little!
Error in stream: PTS to SCR delay 8977 is too little!A-V:0.000 [1045:0]
Error in stream: PTS to SCR delay 8424 is too little!
Error in stream: PTS to SCR delay 7872 is too little!
Error in stream: PTS to SCR delay 7321 is too little!A-V:0.000 [1055:0]
Error in stream: PTS to SCR delay 6771 is too little!
Error in stream: PTS to SCR delay 6222 is too little!
Error in stream: PTS to SCR delay 5674 is too little!
Error in stream: PTS to SCR delay 5127 is too little!
Error in stream: PTS to SCR delay 4581 is too little!
Error in stream: PTS to SCR delay 4035 is too little!
Error in stream: PTS to SCR delay 3490 is too little!
Error in stream: PTS to SCR delay 6546 is too little!A-V:0.000 [1065:0]
Error in stream: PTS to SCR delay 6003 is too little!
Error in stream: PTS to SCR delay 5460 is too little!
Error in stream: PTS to SCR delay 4917 is too little!
Error in stream: PTS to SCR delay 4374 is too little!
Error in stream: PTS to SCR delay 3832 is too little!
Error in stream: PTS to SCR delay 3291 is too little!
Error in stream: PTS to SCR delay 2751 is too little!
Error in stream: PTS to SCR delay 2212 is too little!
Error in stream: PTS to SCR delay 1673 is too little!
Error in stream: PTS to SCR delay 8335 is too little!A-V:0.000 [1073:0]
Pos: 58.8s 1470f (99%) 24fps Trem: 0min 7mb A-V:0.000 [1061:0]
Writing AVI index...
Fixing AVI header...

Video stream: 1061.646 kbit/s (132705 bps) size: 7803101 bytes 58.800 secs 1
470 frames

C:\Programme\MPlayer>pause
Drücken Sie eine beliebige Taste . . .

vmesquita 02-14-2004 02:55 PM

rds_correia,

Basically I was saying that you could look for 2-pass-VBR, but that would be very slow for you. So it would be better for you stick with quality based encodes, but make the optimal script more aggressive in it's motion adaptative caracteristics. That means: make it blur a lot more than it does when there's a lot of motion, so less bitrate is needed and the peaks of bitrate would be lower. Of course, this is just an idea, I don't know if this can work. And I don't know right now exactly how to do this, but it's not hard for someone with scripting knowledge.

rds_correia 02-14-2004 03:02 PM

Thanks for the thought VM.
And I know someone that is very resourcefull in the scripting business.
And guess what he's been around mencoder 4 windows thread.
Hey Inc pal. Wanna give a hint on one of your GREAT scripts that would do what VM just told me to do?
I'm just so sad that we couldn't keep vhelp in the team...
But everything he was doing was supposed to work...
Did somebody else try mencoder under win98 yet?
The guy could be right :roll:
His probl could be winversion based...
C ya

Hydeus 02-14-2004 05:07 PM

I see guys tha you have done youre homework :)
Great stuff Vmesquita :twisted:

I only got roblem with force this to work. I've made everythin as you writes in first post: all in one line, registered reg file, copy codecs.conf to mplayer, and I come out with the same error as first Incredible posted:
Quote:

Cannot find codec matching selected -vo and video format 0x53495641.
:roll: help :roll:

EDIT: No need ;) It was diferend build issue.

EDIT2: ... and I must say, it is good as is fast, and is fast as hell :)
I've made test with my self builded script (specialy for ffvfw), and I get bitrate 10% lower, with lower max peeks (but not respected by vrc_maxrate), with lot of mosquito noise (but I think that I can beat this, and even lower bitrate). I'll do more tests tomorow.

PS: I do my test on cartoons, while I think that they are harder to clean and compress. I'm righ or wrong (I mean: I make test right or wrong way?)

EDIT3: And what are this Error in stream: PTS to SCR delay 7874 is too little! :?:

bilu 02-14-2004 07:15 PM

Quote:

Originally Posted by rds_correia
You see to do constant quality you can even drop the vrc_minrate & vrc_maxrate because it seams it's not doing anything.
That is the same with ffvfw. Both don't respect min and MAX bitrates when working in constant quality...
So now I dropped qscale and am only working with vrc_minrate & vrc_maxrate. It works. The encoding gets inside the min and MAX figures.

Sheer luck or bitrate respected ? :roll:

Bilu

rds_correia 02-15-2004 04:41 PM

Hi Bilu,
Now, some time passed over the subject.
Maybe just pure luck my friend...
I'm going nuts to keep the bitrate inside min and MAX limits.
Eventually I will succeed but I think it will take too many time.
Cheers

ossionline 02-17-2004 07:15 AM

I have some probs with it too

Quote:

MEncoder dev-CVS-031124-01:43-3.3.1 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 1969 MHz (Family: 6, Stepp
ing: 1)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading E:\Videos\Mencoder\codecs.ini: Can't open 'E:\Videos\Mencoder\codecs.ini
': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file E:\Videos\Mencoder\mencoder.ini: No such file or directory
success: format: 0 data: 0x0 - 0xDC00
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO: [AVIS] 480x576 16bpp 25.000 fps 0.8 kbps ( 0.1 kbyte/s)
[V] filefmt:3 fourcc:0x53495641 size:480x576 fps:25.00 ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
================================================== ========================
Cannot find codec matching selected -vo and video format 0x53495641.
Read DOCS/HTML/en/codecs.html!
================================================== ========================
Exiting...
I executed the reg-file and i have an subfolder called mplayer including the conf-file

how can i solve this prob?

Hydeus 02-17-2004 07:45 AM

Try to work with mencoder build we all use. I have probem with differend builds. And yours MEncoder dev-CVS-031124-01:43-3.3.1 (C) 2000-2003 MPlayer Team is diferend than ours MEncoder 1.0pre3-3.2.3 (C) 2000-2003 MPlayer Team

ossionline 02-17-2004 08:00 AM

where can i find it?
on the mencoder-page i find only my version

Hydeus 02-17-2004 08:02 AM

Quote:

Originally Posted by vmesquita


ossionline 02-17-2004 08:22 AM

Quote:

MEncoder 1.0pre3-3.2.3 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Athlon MP/XP Thoroughbred 2461 MHz (Family: 6, Stepp
ing: 1)
Detected cache-line size is 64 bytes
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with Runtime CPU Detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading E:/Videos/Mencoder2/mplayer/codecs.conf: 61 audio & 170 video codecs
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file E:/Videos/Mencoder2/mplayer/mencoder: No such file or direct
ory
font: can't open file: E:/Videos/Mencoder2/mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0 data: 0x0 - 0xDC00
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
VIDEO: [AVIS] 480x576 16bpp 25.000 fps 0.8 kbps ( 0.1 kbyte/s)
[V] filefmt:3 fourcc:0x53495641 size:480x576 fps:25.00 ftime:=0.0400
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1 (-1=autodetect) osd: 1
================================================== ========================
Opening video decoder: [vfw] Win32/VfW video codecs
Loaded DLL driver ffvfw
VDec: vo config request - 480 x 576 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 9.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (480x576 fourcc=3267706d [mpg2])
High quality encoding selected (non real time)!
Using constant qscale = 3.000000 (VBR)
Selected video codec: [makeavis] vfm:vfw (FFvfw makeavis)
================================================== ========================
Writing AVI header...
Limiting audio preload to 0.4s
Increasing audio density to 4
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
than mencoder crashes :(

//Edit: another source -> avs -> avi works perfect
:(

//Edit2: Works now, changed in makeAVIS "store script file name in avi" to "store script in avi"


All times are GMT -5. The time now is 09:04 AM  —  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.