View Full Version : H.264 profile for new 5.5G Ipod?
migrena
9th February 2007, 21:41
so the problem is in rounding fps to >30? if so using 25fps should also work
Theliel
10th February 2007, 18:33
interesting:
When I try convert video > 30FPS i have problems, perfect for FPS < 30
640*480, 1.5Mb with deblocking -1 -1 work perfectly!! no video/audio delay.
B. W.
10th February 2007, 23:40
@shanman99 and B. W.
try adding the command nicefps() at the end of the script when converting xvid or divx files. it worked for me. let me know if it helps.
you'll need this plugin:
http://fileho.com/download/492945569467/NiceFPS.dll.html
Could you upload that plugin again? It seems to have been removed.
Pookie
11th February 2007, 07:39
I have 23.976 working perfectly. Same with 29.97 .
http://www.bestsharing.com/files/50EBGQ223245/example.rar.html
"x264.exe" --pass 1 --bitrate 1000 --stats ".stats" --level 3 --keyint 240 --min-keyint 24 --no-fast-pskip --nf --no-cabac --subme 6 --analyse p8x8,b8x8,i4x4,p4x4 --vbv-maxrate 10000 --qcomp 0 --scenecut 50 --me umh --progress --no-psnr --output "ipod_vid.mp4" "ipod.avs"
"x264.exe" --pass 2 --bitrate 1000 --stats ".stats" --level 3 --keyint 240 --min-keyint 24 --no-fast-pskip --nf --no-cabac --subme 6 --analyse p8x8,b8x8,i4x4,p4x4 --vbv-maxrate 10000 --qcomp 0 --scenecut 50 --me umh --progress --no-psnr --output "ipod_vid.mp4" "ipod.avs"
IPOD.AVS has ConverttoYV12() in it.
Audio
neroaacenc_sse2 -br 96000 -if IN.WAV -of ipod_aud.m4a
Mux
NicMP4Box -add ipod_aud.m4a -add ipod_vid.mp4 Output.mp4
memberako
11th February 2007, 08:55
Could you upload that plugin again? It seems to have been removed.
http://rapidshare.com/files/15947245/NiceFPS.zip
B. W.
11th February 2007, 20:22
http://rapidshare.com/files/15947245/NiceFPS.zip
That didn't do it for me. The files still won't transfer to my iPod.
Pookie
11th February 2007, 22:33
Post a short clip of one of your mp4 files that doesn't work
foxyshadis
12th February 2007, 01:30
@shanman99 and B. W.
try adding the command nicefps() at the end of the script when converting xvid or divx files. it worked for me. let me know if it helps.
you'll need this plugin:
http://fileho.com/download/492945569467/NiceFPS.dll.html
Avisynth 2.5.7 integrates the functionality of NiceFPS in all their framerate changes, now.
migrena
12th February 2007, 22:57
@Pookie
ipod wont choke with maxrate 10000?
Pookie
13th February 2007, 00:13
Hasn't for me. I've transcoded half a dozen movies with those settings. Give it a shot on a short clip. 640x352 works great for 16x9 AR
Theliel
13th February 2007, 01:07
Hasn't for me. I've transcoded half a dozen movies with those settings. Give it a shot on a short clip. 640x352 works great for 16x9 AR
even you can choose a higher options. My profile:
x264.exe --pass 2 --bitrate 1000 --stats ".stats" --ref 5 --mixed-refs --no-fast-pskip --filter -2,-1 --no-cabac --subme 6 --analyse p8x8,b8x8,i4x4,p4x4 --qpmin 16 --vbv-maxrate 1500 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output "Video.mp4" "video.avs"
I'd use a --bitrate 1500 and perfect too, so you can choose all options you want for Level 3 and a max bitrate of 1500. No delay, work perfectly for 640x352 :). The only 'problems' are now a more slower encoder :)
migrena
13th February 2007, 01:40
i will try higher maxrate tomorrow, but i dont expect miracles, also i have 30GB model so 32MB ram might be not enough
@Theliel your profile wont work, because only 2 reference frames are supported, and disabling deblocking would be a good idea, it wont make any resonable difference on that small screen and on crt tv you dont need this, you will gain instead increased playback time
Theliel
13th February 2007, 11:14
Sorry, but for me work perfectly with five reference frames :). With deblocking IQ are improve a little, but yes, the playblack time are much less
B. W.
13th February 2007, 22:37
Post a short clip of one of your mp4 files that doesn't work
Now this is weird. I just cut a 11 second clip of video in VirtualDubMod, re-encoded the file with MeGUI using the same settings I had used before, and the file played on my iPod and iTunes without any problems.
The videos I'm trying to encode are variable framerate videos (VirtualDubMod gave me a warning), but the audio is in sync at 23.976.
So does anyone know why shorter clips work while longer one's don't? :scared:
migrena
14th February 2007, 00:35
@Theliel
what ipod model do you have?
i have uploaded my test files, can you test if my encode will transfer with your itunes?
source file ~700kB (http://www.megaupload.com/?d=NDC7HVMS) (avi xvid 1.2.127 25fps 640x426)
output ~700kB (http://www.megaupload.com/?d=5XW7GNGU)
i used your settings:
x264.exe --pass 1 --bitrate 1000 --stats "tst.stats" --ref 5 --mixed-refs --no-fast-pskip --filter -2,-1 --no-cabac --subme 6 --analyse p8x8,b8x8,i4x4,p4x4 --qpmin 16 --vbv-maxrate 1500 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output NUL "tst.avs"
x264.exe --pass 2 --bitrate 1000 --stats "tst.stats" --ref 5 --mixed-refs --no-fast-pskip --filter -2,-1 --no-cabac --subme 6 --analyse p8x8,b8x8,i4x4,p4x4 --qpmin 16 --vbv-maxrate 1500 --me umh --threads auto --thread-input --progress --no-psnr --no-ssim --output "tst.mp4" "tst.avs"
NicMP4Box -add tst.mp4 vid.mp4
x264 v622, directshowsource from avisynth 2.5.7 and ffdshow (cccp build) as decoder
with "--ref 2" encoded file can be transfered to ipod
@B. W.
some part of your file might have fps >30, maybe even average fps is >30, i dont know how ipod is handling vfr files but probably not very well
NWDaniels91
14th February 2007, 01:33
@migrena: The vid.mp4 file you provided will not transfer to the iPod with iTunes.
B. W.
14th February 2007, 02:05
@B. W.
some part of your file might have fps >30, maybe even average fps is >30, i dont know how ipod is handling vfr files but probably not very well
I change the FPS under the AVI Options section in the AviSynth script creator to 23.976, and the clips I create average around 23fps (read by using MPC's Video Mixing Render 9 filter).
Theliel
14th February 2007, 02:11
its very rare. I go to sleep now, tomorrow I'll tell you and I'll post a cut scene and test your file.
Pookie
14th February 2007, 05:43
Guys - how about finding your favorite compatible settings with a CFR file first, then get fancy trying to convert a VFR file... You're introducing too many unknown variables.
B. W.
14th February 2007, 15:06
Guys - how about finding your favorite compatible settings with a CFR file first, then get fancy trying to convert a VFR file... You're introducing too many unknown variables.
That's the thing - I'm not doing anything else with the profile other than decreasing the bitrate to 500kbps. The outputted files are always 23.976 FPS.
I'll try to convert a CFR file and report back.
memberako
26th February 2007, 18:43
Avisynth 2.5.7 integrates the functionality of NiceFPS in all their framerate changes, now.
got a question. i tried making an avisynth script without loading nicefps plugin and putting nicefps() at the end. why wasn't i able to load it in itunes? do i have to add another command or something? thanks.
@B.W.
before, i almost gave up on encoding videos (xvid, divx) using megui. but when i found out about this nicefps thing, all videos which i encoded using megui worked.
foxyshadis
27th February 2007, 05:56
Open everything in virtualdub as a first step - it'll usually tell you the error. If you didn't load nicefps, it's probably complaining that the function doesn't exist. By integrated, I mean that all calls to assumefps, convertfps, and changefps internally integrate nicefps now, it doesn't exist as a separate function.
You can use AssumeFPS(framerate) at the end, or directly use AssumeFPS(23.976). Or just keep using nicefps, I suppose it doesn't make any real difference.
memberako
27th February 2007, 16:00
Open everything in virtualdub as a first step - it'll usually tell you the error. If you didn't load nicefps, it's probably complaining that the function doesn't exist. By integrated, I mean that all calls to assumefps, convertfps, and changefps internally integrate nicefps now, it doesn't exist as a separate function.
You can use AssumeFPS(framerate) at the end, or directly use AssumeFPS(23.976). Or just keep using nicefps, I suppose it doesn't make any real difference.
thanks for the info!
addit
23rd March 2007, 01:19
First and foremost I'd like to thank everyone in this thread for allowing me to put x264 encodes on my ipod!
I too am suffering from the colour banding problem with any content sized above 320x240 (i.e. anything that seems to require scaling by the ipod). If it is the scaling of the ipod itself i'm perplexed as to why this isn't a more talked about problem? So if anyones been able to get around this please do tell because its DRIVING ME NUTS...
Thanks again,
Adam
migrena
23rd March 2007, 13:10
plug ipod to your tv, there is no other way unless you can hack ipod and replace 66K-color lcd with 17M one ;)
==============================================
also i wanted to ask about this
http://forum.doom9.org/showpost.php?p=875459&postcount=6
if its true then using jack-rca cable for clips with higher resolutions is usless... but dock connector specification states that there is possibility of outputing Y and V signals from ipod, will using this give me more than 240 scanlines?
addit
23rd March 2007, 17:38
Heres the strange thing though, the ipod can produce non-colour banded video when it has been pre-resized to 320x[whatever pixels here], so I don't think its the screen... in fact i'm almost convinced now its the method in which the ipod scale video content. Still... I wonder if high-resolution mpeg-4 content also shows banding?
Adam
migrena
23rd March 2007, 23:38
its because ipod uses very sharp downscaler to make the high res videos look "better", but in result you might end with more visible banding
try this with animated source, you will have excellent contures but you might end with horrible colour gradients
lowering brightness might help a bit reduce this, at least it looks a bit better to my eyes
ps please note that when you are recompressing to ipod compatibile format you are increasing banding that was already present in your source
addit
26th March 2007, 16:52
Ok, I suppose I can live with the colour banding :rolleyes:
However I have a new problem now with longer clips such as a 40 minute TV episode. For some reason my encoded videos have the last few seconds repeated causing a progressively worse audio sync when muxed into the final .mp4.
My AVS script is:
import("source.avs")
DirectShowSource(s,audio=true)
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools.dll")
import("C:\Program Files\AviSynth 2.5\plugins\Deblock_QED.avs")
Deblock_QED_MT2()
BilinearResize(320,Round((Height*320)/Width))
assumefps(framerate,sync_audio=true)
And my x264 command line is:
264.exe --pass 1 --bitrate 400 --stats ".stats" --level 3 --ref 5 --mixed-refs --no-fast-pskip
--filter -1,-1 --no-cabac --subme 7 --analyse p8x8,b8x8,i4x4,p4x4 --qpmin 16
--vbv-maxrate 1500 --me umh --deadzone-inter 4 --deadzone-intra 6 --threads auto --thread-input
--progress --no-dct-decimate --no-psnr --no-ssim --output "video.mp4" "filter.avs"
x264.exe -pass 2 ...
I'm using the latest version of avisynth and the source is 23.976023 fps, so I figure its something to do with the niceFPS integration. Side note, it transfers to the ipod fine :cool:
*UPDATE* I also tried using the niceFPS() plugin alone and I still get the same problem. Argh, this is really annoying me... it happens with all the longer videos I try...
Adam
migrena
26th March 2007, 21:02
you have a very odd way of loading source files...
maybe assumefps with sync_audio and dss as source is creating such effect, try encoding audio and video with different scripts
ps1 if you use resizing in such way you may end with height not divisible by 2
ps2 i have no idea why when i encode with 5 reference frames any ipod is not accepting those files
addit
29th March 2007, 17:15
After almost ripping my hair out (thank god I didn't!) I finally found a solution to my audio sync. In case anyone was wondering there seemed to be some conflict between my build of ffdshow (and indeed all of the ffdshow tryouts on sourceforge...) and avisynth. The solution, well to use a different decoder which worked a treat. No more are the last few seconds of my video repeated!
TheOne0908
9th April 2007, 04:22
Only recently did I begin having trouble with encoding video files for my iPod. For some reason, the files will play on i-tunes just won't transfer to the iPod. Now, I have followed the wiki-guide to get videos to run on the 5.0 updated generation of iPod. Anyone else been having trouble getting videos with 640 by 272 pixel to work on the iPod. If so what settings are you using? Thanks Again.
--pass 2 --bitrate 1000 --stats ".stats" --level 3 --nf --no-cabac --subme 6 --analyse none --qpmin 16 --vbv-maxrate 1500 --me umh --merange 12 --thread-input --progress --no-psnr --no-ssim --output ""
These are my video profile settings above.
DGDecode_mpeg2source("")
#Not doing anything because the source is progressive
crop( 0, 58, -2, -64)
LanczosResize(640,272) # Lanczos (Sharp)
#denoise
These are my avisynth settings above.
I am not sure which is causing the trouble.
migrena
11th April 2007, 00:08
try adding convertfps/assumefps/whatewerfps or even nicefps at the end of the script
hiteck
13th April 2007, 18:16
try adding convertfps/assumefps/whatewerfps or even nicefps at the end of the script
I've been having the same issue, I added AssumeFPS(), but the result is the same. Here is my avs script:
DGDecode_mpeg2source("D:\mov.d2v",info=3)
ColorMatrix(hints=true)
#deinterlace
#crop
LanczosResize(640,480) # Lanczos (Sharp)
#denoise
AssumeFPS(30000,1001)
The file will play fine in iTunes (7.1.1.5) or quicktime but it complains that the bitrate is too high and won't copy to my iPod (firmware 1.2.1)
Also in megui, if i try to config the iPod 5.5g profile i get the following:
"Sorry, the selected profile exceeds the maximum AVC level you have specified"
"Maximum bitrate is too high"
NWDaniels91
13th April 2007, 18:39
So MeGUI and iTunes are both reporting that your bitrate is too high. Are you absolutely sure that the bitrate setting is correct? I've never had MeGUI or iTunes report a bitrate problem with iPod encodes.
hiteck
13th April 2007, 19:55
So MeGUI and iTunes are both reporting that your bitrate is too high. Are you absolutely sure that the bitrate setting is correct? I've never had MeGUI or iTunes report a bitrate problem with iPod encodes.
I am using the PD-iPod 5.5G profile with megui. MeGUI only complains if I select the 5.5G profile and click config, but it encodes without any problems, iTunes only complains when I try to sync my iPod :confused:.
this is what i'm passing to x264
--pass 2 --bitrate 1000 --stats ".stats" --level 3 --nf --no-cabac --subme 6 --analyse none --qpmin 16 --vbv-maxrate 1500 --me umh --merange 12 --threads auto --thread-input --progress --no-psnr --no-ssim --output "" ""
b0b0b0b
14th April 2007, 00:21
:thanks: :thanks: :thanks:
Nic, thanks for your hacked mp4box.
migrena
14th April 2007, 16:53
i believe this message is megui bug (reporting this on sourceforge would be good idea), to avoid this select ipod profile in config menu, not in main window
itunes have only one message when something is wrong with encoded file - "<insert filename> was not copied to the ipod <your ipod name> because it canot be played on this ipod"
the amount of information it gives is stunning ;)
sazoki
16th April 2007, 22:19
i'm using megui to encode sample avi movies with 500 fr no audio dely but when i try 5000 frames it will be audio delay
my avs script looks :
DirectShowSource("G:\mov\mov.xvid-imbt.avi",fps=23.9759856527702,audio=false)
#deinterlace
#crop
BilinearResize(576,240) # Bilinear (Soft)
#denoise
and my megui profile for ipod 5 g is :
--pass 2 --bitrate 1000 --stats ".stats" --level 3 --nf --no-cabac --subme 6 --analyse none --qpmin 16 --vbv-maxrate 1500 --me umh --merange 12 --thread-input --progress --no-psnr --no-ssim --output "" ""
migrena
17th April 2007, 13:38
why not avisource for avi?
but more importantly try using common 23.976 for fps
sazoki
17th April 2007, 16:26
thanks migrena for replying,but where can i get the avisource and where can i put to manage with megui
and i try another mov sample it there is no audio delay
i understand know that the problem begin from the movie i select so what do you think
migrena
18th April 2007, 22:34
avisource is in every avisynth build that i can think of, just try replaceing replace directshowsource with avisource
note that you wont need fps parameter then
http://avisynth.org/AviSource
agilpwc
19th April 2007, 17:06
I just successfully played a 688x384 resolution video on the Ipod. 704x400 didn't work.
Had to transfer it with Anapod Explorer though, Itunes wouldn't transfer it.
buzzqw
19th April 2007, 19:02
hi all!
i haven't a ipod so i cannot make test.. could someone test automkv with ipod profiles and tell me if is all ok ?
thanks!
BHH
migrena
20th April 2007, 21:59
@agilpwc good news, now if someone could just confirm that ipod can transmit such resolution with s-video output...
@buzzqw i will try, but i had some issues with number of allowed reference frames and transfering with itunes (see my previous posts) so results may not be 100% correct
buzzqw
20th April 2007, 22:28
thanks anyway migrena !
BHH
migrena
21st April 2007, 14:40
i did short test, input file - first 71s from elephants dream
win2k, athlon 2500, 512MB
input file:
Format : Matroska
File size : 29.6 MiB
PlayTime : 1mn 10s
Bit rate : 3525 Kbps
Video #0
Codec : MPEG-4 AVC
Codec/Info : MPEG4 ISO advanced profile
PlayTime : 1mn 11s
Width : 1024 pixels
Height : 576 pixels
Aspect ratio : 16/9
Frame rate : 23.394 fps
Audio #0
Codec : A_AAC
Channel(s) : 2 channels
Sampling rate : 48 KHz
output file:
File size : 20.4 MiB
PlayTime : 1mn 10s
Bit rate : 2428 Kbps
StreamSize : 22.0 KiB
Video #0
Codec : H.264
PlayTime : 1mn 10s
Bit rate : 2337 Kbps
Width : 640 pixels
Height : 368 pixels
Aspect ratio : 16/9
Frame rate : 23.394 fps
Bits/(Pixel*Frame) : 0.415
StreamSize : 19.6 MiB
Audio #0
Codec : AAC LC
Codec/Info : AAC Low Complexity
PlayTime : 1mn 10s
Bit rate : 90 Kbps
Bit rate mode : VBR
Channel(s) : 2 channels
Sampling rate : 48 KHz
Resolution : 16 bits
StreamSize : 779 KiB
and the log from automkv:
14:51:32 0.81 - - - - - - - - - - - - - START JOBS - - - - - - - - - - - - - -
14:51:32 Selected Input file: ElephantsDream.mkv
14:51:32 Selected Output dir: temp\
14:51:32 Selected Final Name: ElephantsDream
14:51:32 Selected Container type: MP4
14:51:32 Selected Encoder: X264
14:51:32 Selected Size: 1 CD
14:51:32 Selected Slice: 1
14:51:32 Selected Profile: iPod 5.5G.xml
14:51:32 Selected Width: 640
14:51:32 Selected Resizer: SimpleResize (neutral soft)
14:51:32 Selected Filters: RemoveGrain(mode=2)
14:51:32 Selected Deinterlacer: AUTO
14:51:32 Selected Field Order: AUTO
14:51:32 Enabled CRF/CQ AutoRes at 18 value
14:51:32 Track Language 1: ElephantsDream.mkv
14:51:32 Audio Codec 1: Nero AAC
14:51:32 Audio Quality 1: 0.35
14:51:32 Audio Channel 1: Stereo
14:51:32 Advanced Audio Settings DUMP Track 1
14:51:32 Nero Option Profiles: AUTO --- Encoding Mode: Quality
14:51:32 CCT Option Profiles: AUTO --- Channel Options: AUTO
14:51:32 Lame Settings: ABR
14:51:32 Audio Normalization: 1
14:51:32 Frequency: AUTO --- Tempo : NONE
14:51:32 Pitch: NONE --- Other Add :
14:51:32 Advanced Audio Settings DUMP Track 2
14:51:32 Nero Option Profiles: AUTO --- Encoding Mode: Quality
14:51:32 CCT Option Profiles: AUTO --- Channel Options: AUTO
14:51:32 Lame Settings: ABR
14:51:32 Audio Normalization: 1
14:51:32 Frequency: AUTO --- Tempo : NONE
14:51:32 Pitch: NONE --- Other Add :
14:51:32
14:51:35 Avi engage mode not corrected, switched to DirectShowSource
14:51:47 Number of Frames: 1649
14:51:47 Framerate: 23.394276
14:51:47 Movie length in Seconds: 71
14:51:47 Movie Width/Height: 1024/576
14:51:47 Number of Frames: 1649
14:51:47 Framerate: 23.394276
14:51:47 Movie length in Seconds: 71
14:51:47 Movie Width/Height: 1024/576
14:52:47 Processing completed. Type is determined to be progressive.
14:52:47 Order: unk
14:52:47 Encoding temp\ to NeroAAC with 0.35 quality
14:53:05 Encoded 1' Audio Track: 816275 bytes
14:53:05 Starting X264
14:53:06 Command Line 1' Pass X264: AutoMKV081\exe\encoder\x264.exe --pass 1 --bitrate 82621 --stats "temp\.stats" --ref 0 --no-b-adapt --progress --keyint 250 --bframes 0 --qpmin 16 --qpmax 51 --no-psnr --filter 0,0 --direct none --vbv-maxrate 1500 --me umh --no-ssim --level 30 --merange 12 --nf --no-cabac --no-b-adapt --threads 2 --sar 1:1 --output NUL "temp\movie.avs"
14:53:06 Command Line 2' Pass X264: AutoMKV081\exe\encoder\x264.exe --pass 2 --bitrate 82621 --stats "temp\.stats" --progress --keyint 250 --bframes 0 --qpmin 16 --qpmax 51 --no-psnr --ref 1 --filter 0,0 --direct none --vbv-maxrate 1500 --me umh --no-ssim --level 30 --merange 12 --nf --no-cabac --no-b-adapt --threads 2 --sar 1:1 --output "temp\movie.mp4" "temp\movie.avs"
14:57:45 Only Movie Size: 20602995 bytes
14:57:45 "AutoMKV081\exe\matroska\NicMP4Box.exe" -normal-mode -add "temp\movie.mp4":par=1.000000 -add "temp\audio.mp4:lang=und" -fps 23.394276 "temp\ElephantsDream_full.mp4"
14:57:47 Final Muxed size: 21415207 bytes
14:57:47 Encoding finished: 00:06:15 elapsed time
14:57:47 -----------------------------------------------------------------------
14:57:47 Script AutoCrop.log
14:57:47
14:57:47 Crop(14,0,996,576)
14:57:47 -----------------------------------------------------------------------
14:57:47 Script Resmovie.avs
14:57:47 -----------------------------------------------------------------------
14:57:47 Script movie.avs
14:57:47
14:57:47 LoadPlugin("AutoMKV081\exe\filter\AddGrain.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\autocrop.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\BicublinResize.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\blockbuster.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\cnr2.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\ColorMatrix.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\Convolution3D.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\corrector.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\DctFilter.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\Decomb.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\Deen.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\degrainmedian.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\DGDecode.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\EEDI2.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\fft3dfilter.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\FluxSmooth.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\frfun7.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\hqdn3d.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\LeakKernelDeint.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\MaskTools.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\medianblur.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\MipSmooth.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\MSharpen.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\mt_masktools.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\mvtools.dll")
14:57:47 LoadPlugin("AutoMKV081\exe\filter\NicAudio.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\RemoveGrainS.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\RepairS.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\SangNom.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\SimpleResize.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\SoundOut.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\TBilateral.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\TDeint.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\TIVTC.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\TomsMoComp.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\TTempSmooth.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\UnDot.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\UnFilter.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\VSFilter.dll")
14:57:48 LoadPlugin("AutoMKV081\exe\filter\warpsharp.dll")
14:57:48 #loadpluginstart
14:57:48
14:57:48 #test1
14:57:48
14:57:48 Import("AutoMKV081\exe\filter\HybridFuPP.avsi")
14:57:48 Import("AutoMKV081\exe\filter\LimitedSharpenFaster.avsi")
14:57:48 Import("AutoMKV081\exe\filter\MCBob_v03c.avsi")
14:57:48 Import("AutoMKV081\exe\filter\mvbob.avsi")
14:57:48 Import("AutoMKV081\exe\filter\seesaw.avsi")
14:57:48 Import("AutoMKV081\exe\filter\spresso.avsi")
14:57:48 #importstart
14:57:48
14:57:48 #test2
14:57:48
14:57:48 movie = directshowsource("ElephantsDream.mkv",audio=false)
14:57:48 movie = isRGB(movie) ? ConvertToYV12(movie,interlaced=true) : movie
14:57:48 movie = isYUY2(movie) ? ConvertToYV12(movie,interlaced=true) : movie
14:57:48 function getOrder(clip c) {
14:57:48 order = GetParity(c) ? 1 : 0
14:57:48 Return order }
14:57:48 #filter1start
14:57:48
14:57:48 #test3
14:57:48
14:57:48 last = movie
14:57:48 movie = last
14:57:48 #cropstart
14:57:48
14:57:48 cropclip = autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=0,threshold=34,samplestartframe=0)
14:57:48 fixed_aspect = 1
14:57:48 c_width = width(cropclip)
14:57:48 c_height = Round(height(cropclip) / fixed_aspect)
14:57:48 input_par = float(float(c_width)/float(c_height))
14:57:48 input_par = input_par > 1.4 ? input_par : (4.0/3.0)
14:57:48 out_width = 640
14:57:48 out_height = Round(float(out_width) / input_par)
14:57:48 hmod = out_height - (floor(out_height / 16 ) * 16)
14:57:48 out_height = (hmod > 4) ? (out_height + (16 - hmod)) : (out_height - hmod)
14:57:48 new_aspect = (float(out_width) / float(out_height)) / fixed_aspect
14:57:48 autocrop(movie,mode=0,wmultof=4,hmultof=4,samples=40,aspect=new_aspect,threshold=34,samplestartframe=0)
14:57:48
14:57:48 #resizestart
14:57:48
14:57:48 #test4
14:57:48
14:57:48 SimpleResize(out_width,out_height)
14:57:48 #filter2start
14:57:48
14:57:48 #test5
14:57:48
14:57:48 RemoveGrain(mode=2)
14:57:48 -----------------------------------------------------------------------
14:57:48 Script mkvmaudio.avs
14:57:49
14:57:49 LoadPlugin("AutoMKV081\exe\filter\NicAudio.dll")
14:57:49 LoadPlugin("AutoMKV081\exe\filter\SoundOut.dll")
14:57:49 DirectShowSource("ElephantsDream.mkv",video=false)
14:57:49 #Applying STEREO downmixing routines
14:57:49 function stereo(clip a)
14:57:49 {
14:57:49 flr = GetChannel(a, 1, 2)
14:57:49 fcc = GetChannel(a, 3)
14:57:49 lfe = GetChannel(a, 4)
14:57:49 lfc = MixAudio(fcc, lfe, 0.2071, 0.2071)
14:57:49 mix = MergeChannels(lfc, lfc)
14:57:49 lrc = MixAudio(flr, mix, 0.2929, 1.0)
14:57:49 blr = GetChannel(a, 5, 6)
14:57:49 Return MixAudio(lrc, blr, 1.0, 0.2929)
14:57:49 }
14:57:49 #
14:57:49 6==Audiochannels() ? stereo() : last
14:57:49 Normalize()
14:57:49 Soundout(output="cmd",type=1,format=3,autoclose=true,executable="AutoMKV081\exe\besweet\neroaacenc.exe",prefilename=" -ignorelength -q 0.35 -if - -of audio.mp4",postfilename="",nofilename=true,showoutput=false)
14:57:49 -----------------------------------------------------------------------
14:57:49 Script mkvmaudio.bat
14:57:49
14:57:49 "AutoMKV081\exe\BeSweet\vdub.exe" /x "temp\mkvmaudio.avs"
14:57:49 -----------------------------------------------------------------------
14:57:49 Script mkvmaudio2.avs
14:57:49 -----------------------------------------------------------------------
14:57:49 Script mkvmaudio2.bat
14:57:49
14:57:49 - - - - - - - - - - - - FINISHED JOBS - - - - - - - - - - - - - - - - -
warnings from x264 commandline:
x264 [warning]: frame MB size (63x36) > level limit (1620)
x264 [warning]: MB rate (53058) > level limit (40500)
x264 [warning]: max bitrate less than average bitrate, ignored.
why it assumed so high bitrate, is it because "disc settings" was set to "1cd"? it would be very inconvenient to calculate filesize manually
ps if i did sth wrong in automkv please correct me as it was the first time i was using it
buzzqw
21st April 2007, 17:06
thanks migrena!
first of all try updating to this build (just download this exe and use it...) http://www.64k.it/andres/data/a/AutoMKV081b-ipod.exe
and yes the bitrate issue was caused because you haven't set the final wanted size, and as default goes for 1 CD
would be very inconvenient to calculate filesize manually
why ? you have a source file (dvd) want a 1cd rip ? select 1cd
have a small trailer (80mb) ? and want reducing ? ok, write 40mb...
this behavior isn't changeable... you must select the final size, 10 mb, 40, mb or what ever :)
thanks again and report any problem!
BHH
migrena
21st April 2007, 21:40
and yes the bitrate issue was caused because you haven't set the final wanted size, and as default goes for 1 CD
i assumed that profiles are like those in megui - bitrate based, for portables with limited bitrate this way is just more convinient, and alculating target size is a bit tricky if you do not know target height and when you want to keep bit/px*frame ratio optimal (but i'm probably the only preson with ipod who is pays attention to this value :))
also if i understand how taret height is calculated you limited it by fixing aspect ratio to 4/3 when its smaller, wouldnt it be better to do sth like adding horizontal borders to source before whole calculations that it will result in 4/3 aspect ratio? you wouldnt mess proportions this way
buzzqw
22nd April 2007, 00:22
not like megui... in automkv the profile are for settings codec options... not for bitrate...
if you want specific bitrate encoding, not aiming to fixed final size, you can check in advanced settings the "specify bitrate" option
about resize and aspect ratio: automkv will not enfoce any AR, it will encode and mux with AR of movie file
you can specify the muxing AR (not encoding) in advanced settings
thanks and report if playing :)
BHH
migrena
22nd April 2007, 15:23
ok now that i set properly target size everything seems fine, it transfers to ipod in itunes and plays correctly :)
about aspect ratio - clips with ar <4/3 will be cropped, but its very marginal situation and i can use manual croping/resizing
[edit] i forgot to ask - why only one reference frame?
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.