digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Mencoder: Question about MEncoder 1 pass (http://www.digitalfaq.com/archives/encode/9849-mencoder-question-mencoder.html)

black prince 05-24-2004 07:48 PM

Question about MEncoder 1 pass
 
The purpose for pass 1 is to create "divx2pass.log" file for pass 2 to apply
bitrate more accurately. My question then is can the output file of pass 1
"KSVCD.m2v" be suppressed to speedup the encoding time or will it
make any difference.

Quote:

Mencoder.exe -include temp.conf -lavcopts vbitrate=1112:vpass=1 "F:\Temp\KSVCD.avi" -o "F:\Temp\KSVCD.m2v"
Mencoder.exe -include temp.conf -lavcopts vbitrate=1112:vpass=2 "F:\Temp\KSVCD.avi" -o "F:\Temp\KSVCD.m2v"
BeSweet.exe -core( -input "F:\Temp\Movie.ac3" -output "F:\Temp\KSVCD.mp2" -be ) -ssrc(--rate 44100 ) -mp2enc( -s 48 -m d -b 128 -e ) -profile( ~~~~~ Default Profile ~~~~~ )
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
Above is my encode.bat which works quite well except for mplex which
after 15 dropped frames just quit multiplexing. I can't figure out why :?:

The final picture quality is excellent and everything fit on 1 80min
CDR :mrgreen:

-BP

vmesquita 05-24-2004 09:07 PM

i tried redirecting the first pass to NUL (with corresponds to /dev/null in linux) and the encode goes slower :!: :D

Hydeus 05-25-2004 05:29 AM

@VM
Is it possible to redirect output mpv to null under windows :?: Is there a command to do this :?: Thx.

vmesquita 05-25-2004 05:38 AM

Just use -o NUL in command-line. :wink:

black prince 06-02-2004 03:08 PM

@vm,

I used -o /dev/null for redirecting output in pass=1 and it worked,
plus Mencoder increased by 2fps 8)

-BP

vmesquita 06-02-2004 05:10 PM

Interesting... :? I must have done something wrong then. :D

Dialhot 06-02-2004 05:58 PM

Do not mistakn /dev/null that is a true UNIX device that point to nowhere and NUL that is a emulate device created by M$ because people need to have it in their batches.

Prodater64 06-02-2004 06:52 PM

Quote:

Originally Posted by Dialhot
Do not mistakn /dev/null that is a true UNIX device that point to nowhere and NUL that is a emulate device created by M$ because people need to have it in their batches.

But i'm trying /dev/null in mi XP sistem and it is working fine!!!



--------------------------
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.
--------------------------

http://www.digitalfaq.com/archives/error.gif

Dialhot 06-02-2004 06:58 PM

Quote:

Originally Posted by Prodater64
But i'm trying /dev/null in mi XP sistem and it is working fine!!!

Hummm... may be an intenal optimization of mencoder ? Hum... That can explain the speed gain :idea:
(if output == "/dev/null" then do_not_do_any_output...)

vmesquita 06-02-2004 07:05 PM

Quote:

Originally Posted by Prodater64
But i'm trying /dev/null in mi XP sistem and it is working fine!!!

Are you sure it's not writing in a "null" file in a "dev" folder in root? I know it sounds stupid but maybe you didn't check. :wink:

Dialhot 06-02-2004 07:18 PM

Quote:

Originally Posted by vmesquita
Are you sure it's not writing in a "null" file in a "dev" folder in root? I know it sounds stupid but maybe you didn't check. :wink:

It doesn't. I'm currently using the trick ;-)

vmesquita 06-02-2004 07:21 PM

Great! :D :D :D :D
Is it going faster, Dialhot? 8)

Dialhot 06-02-2004 07:24 PM

Speed is around 18 fps and that is quite the same I had yesterday for an other movie using the same script. But for sure it does not slow down !

Prodater64 06-03-2004 07:24 AM

Maybe the limitation is in the encode processing and not when writing in HD. This would explain why we don't see speed improvements.



--------------------------
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.
--------------------------

http://www.digitalfaq.com/archives/error.gif

Dialhot 06-03-2004 07:53 AM

Quote:

Originally Posted by Prodater64
Maybe the limitation is in the encode processing and not when writing in HD. This would explain why we don't see speed improvements.

If you want to say that the HD is not the most limitating part of the encoding process you are right. With a 8Mb buffered / 7200 rpm disk, the processor must output the at the speed of 40 Mo/s to fill up entirely the bus. That give you up to approximatively 64 fps if you encode at the avg bitrate of 2000 Kb/s :-)

black prince 06-03-2004 07:56 AM

@prodater64,

prodater64 wrote:
Quote:

Maybe the limitation is in the encode processing and not when writing in HD. This would explain why we don't see speed improvements.
I've been getting from 1 to 2 fps increase, but the real slow down is
due to MEncoder's filters. I'm testing LOTR-ROTK and using Kwag's
temp.conf it's very slow (7fps). The Trem for each pass is 638min.
About 10+ hrs for each pass or 23 hrs for the whole process. The
picture quality is very good so far, but compared to CCE and
Tmpgenc this it taking longer. :roll: In time I guess MEncoder process
will become more refined, but except for batch (great for automation)
MEncoder is showing less advantages. :)

-BP

Prodater64 06-03-2004 09:51 AM

Quote:

Originally Posted by black prince
@prodater64,

prodater64 wrote:
Quote:

Maybe the limitation is in the encode processing and not when writing in HD. This would explain why we don't see speed improvements.
I've been getting from 1 to 2 fps increase, but the real slow down is
due to MEncoder's filters. I'm testing LOTR-ROTK and using Kwag's
temp.conf it's very slow (7fps). The Trem for each pass is 638min.
About 10+ hrs for each pass or 23 hrs for the whole process. The
picture quality is very good so far, but compared to CCE and
Tmpgenc this it taking longer. :roll: In time I guess MEncoder process
will become more refined, but except for batch (great for automation)
MEncoder is showing less advantages. :)

-BP

Could you post your encode.bat and you temp.conf (or your conf file if you dont use MencodeMe) please. I would like to check something in it.
Thank you.


--------------------------
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.
--------------------------

http://www.digitalfaq.com/archives/error.gif

black prince 06-03-2004 01:04 PM

@Prodater64,

Quote:

Could you post your encode.bat and you temp.conf (or your conf file if you dont use MencodeMe) please. I would like to check something in it.
Thank you.
encode.bat:
::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


temp.conf:
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
of=rawvideo=1
ovc=lavc=1
nosound=1
sws=9

lavcopts=vcodec=mpeg2video:vrc_eq=tex:vmax_b_frame s=2:
vrc_maxrate=2500:aspect=1.7777:keyint=18:vrc_buf_s ize=1835:
preme=2:precmp=2:
vstrict=-1:autoaspect=1:scplx_mask=0.3:vqblur=0:mbqmin=1:vq min=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,7 9:
inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,2 6,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,4 2,44
ofps=23.976


-BP

jorel 06-03-2004 01:11 PM

BP,
we can "see" it working, you're still a magician too!
8)

Prodater64 06-03-2004 02:15 PM

Quote:

Originally Posted by black prince
temp.conf:
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
of=rawvideo=1
ovc=lavc=1
nosound=1
sws=9

lavcopts=vcodec=mpeg2video:vrc_eq=tex:vmax_b_frame s=2:
vrc_maxrate=2500:aspect=1.7777:keyint=18:vrc_buf_s ize=1835:
preme=2:precmp=2:
vstrict=-1:autoaspect=1:scplx_mask=0.3:vqblur=0:mbqmin=1:vq min=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,7 9:
inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,2 6,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,4 2,44
ofps=23.976


-BP

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?

You can try (I suppose your film pixel is 672*448):
Code:

vf=yuvcsp,crop=672:448:-1:-1,
unsharp=l3x3:0.6,hqdn3d=3:6:2,unsharp=l3x3:-0.7:c3x3:
-1.5,noise=3th,expand=704:480
of=rawvideo=1
ovc=lavc=1
nosound=1
sws=9

lavcopts=vcodec=mpeg2video:vrc_eq=tex:vmax_b_frames=2:
vrc_maxrate=2500:aspect=1.7777:keyint=18: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=23.976

and see if in this way speed is improved.

If you still need "scale=720:480::0:9," put it just before "noise=3th".


--------------------------
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.
--------------------------

http://www.digitalfaq.com/archives/error.gif


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

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