05-24-2004, 07:48 PM
|
Free Member
|
|
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
-BP
|
Someday, 12:01 PM
|
|
Site Staff / Ad Manager
|
|
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
|
|
|
05-24-2004, 09:07 PM
|
Invalid Email / Banned / Spammer
|
|
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
i tried redirecting the first pass to NUL (with corresponds to /dev/null in linux) and the encode goes slower
|
05-25-2004, 05:29 AM
|
Free Member
|
|
Join Date: Dec 2003
Location: Omicron Persei 8
Posts: 322
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
@VM
Is it possible to redirect output mpv to null under windows  Is there a command to do this  Thx.
__________________
Go for SECAM =)
|
05-25-2004, 05:38 AM
|
Invalid Email / Banned / Spammer
|
|
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Just use -o NUL in command-line.
|
06-02-2004, 03:08 PM
|
Free Member
|
|
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
@vm,
I used -o /dev/null for redirecting output in pass=1 and it worked,
plus Mencoder increased by 2fps
-BP
|
06-02-2004, 05:10 PM
|
Invalid Email / Banned / Spammer
|
|
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Interesting...  I must have done something wrong then.
|
06-02-2004, 05:58 PM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
06-02-2004, 06:58 PM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 
(if output == "/dev/null" then do_not_do_any_output...)
|
06-02-2004, 07:05 PM
|
Invalid Email / Banned / Spammer
|
|
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
06-02-2004, 07:18 PM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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. 
|
It doesn't. I'm currently using the trick
|
06-02-2004, 07:21 PM
|
Invalid Email / Banned / Spammer
|
|
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
06-02-2004, 07:24 PM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 !
|
06-03-2004, 07:24 AM
|
Free Member
|
|
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
|
06-03-2004, 07:53 AM
|
Free Member
|
|
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
06-03-2004, 07:56 AM
|
Free Member
|
|
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
@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.  In time I guess MEncoder process
will become more refined, but except for batch (great for automation)
MEncoder is showing less advantages.
-BP
|
06-03-2004, 01:04 PM
|
Free Member
|
|
Join Date: Jul 2002
Posts: 1,224
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
@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:
: VDDecrypter /MODE FILE /DEST "F:\dvd_video\Video_ts\" /START /CLOSE
:: Force Film
: VD2avi -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
: VD2avi -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"
: ulldown.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 recmp=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
|
06-03-2004, 01:11 PM
|
Invalid Email / Banned / Spammer
|
|
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
BP,
we can "see" it working, you're still a magician too!
|
06-03-2004, 02:15 PM
|
Free Member
|
|
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 recmp=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*44  :
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.
--------------------------
|
All times are GMT -5. The time now is 06:58 PM — vBulletin © Jelsoft Enterprises Ltd
|