Log in

View Full Version : MeGUI: General Questions and Troubleshooting Thread


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 [127] 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186

mario87
15th August 2011, 09:28
Someone delete my post? It's impolite :angry:
My post is not spam
I'm not a spamer !
I've just joined this forum for a few days and I only ask what I don't know. I don't find the answer in FAQs so I want to ask for helping. Is it difficult to answer my question?
All right, maybe my question is rather difficult to understand because my English is bad but instead of deleting my reply, you should explain why :mad:

maohsama
18th August 2011, 10:48
Since the recent version, whenever I choose a file in the AviSynth script creator, a dialog pops up asking whether I want to use the One-Click, File Indexer or continue with this method. How can I disable this annoying dialog? I never choose those two other options, because One-Click always messes up my encoding(missing sounnd or missing subtitle) and file indexer is not necessary.

Cornelis
21st August 2011, 21:05
I encoded a video to Xvid and I found out that MeGui is still using Xvid version 1.2.1 and we are at version 1.3.2 already.

Is anyone aware of this?

Zathor
21st August 2011, 21:29
I encoded a video to Xvid and I found out that MeGui is still using Xvid version 1.2.1 and we are at version 1.3.2 already.

Is anyone aware of this?

http://forum.doom9.org/showthread.php?p=1493546#post1493546

forum king
26th August 2011, 07:55
its been a long time :)
and am happy to see master Zathor still helping the community. :) kudos bro !!!
ok well till date i have not been able to convert a dts or ac3 5.1 audio in a aac 5.1 format , no matter what i do ,
i tried extracting the audios , not using directshow and stuff , but 90% of the cases there is error at the end of the encoding process or it wont start, or if at all with this is that settings it finishes it is always 2 channel.

i wonder if i need to make some changes to klite codec pack ,
or if there is ant simple smallish pgm which can do that for me.

god bless
regards

darkside40
26th August 2011, 08:42
Take eac3to, the Arcsoft DTS Codec and NeroAACEnc. Note you need a patched checktivate.dll to register the Arcsoft Codec. I use this combo since months and have no Problem with it.

tebasuna51
26th August 2011, 11:25
...
ok well till date i have not been able to convert a dts or ac3 5.1 audio in a aac 5.1 format , no matter what i do...

Please put your log files:logfile:

dc0yy
26th August 2011, 13:06
hi guys... can you help me please

i always get this error on some files

http://i56.tinypic.com/5tw30o.jpg

thank you

forum king
26th August 2011, 13:28
here u go , i can see that channel shown here are 2 , but even then it doesnt finish , precisely at 100% it gives error , i donno why .
the source has got 5.1 audio in DTS , tried another one with ac3 audio same results in that too

-[Error] Log for job11 (audio, reunion.mkv -> reunion.mp4)
--[Information] [8/26/2011 7:37:55 AM] Started handling job
--[Information] [8/26/2011 7:37:55 AM] Preprocessing
--[Information] Avisynth script
---[NoImage] DirectShowSource("D:\mine\ALL\A.reunion22\reunion.mkv", video=false)
---[NoImage] EnsureVBRMP3Sync()
---[NoImage] Normalize()
---[NoImage] return last
--[Information] Commandline used: -ignorelength -he -br 128000 -if - -of "{0}"
--[Information] [8/26/2011 7:37:55 AM] Encoding started
--[Information] [8/26/2011 7:37:55 AM] Encode thread started
--[Information] [8/26/2011 7:37:55 AM] Avisynth script environment opened
--[Information] [8/26/2011 7:37:56 AM] Script loaded
--[Information] Output Decoder
---[Information] Channels: 2
---[Information] Bits per sample: 16
---[Information] Sample rate: 48000
--[Information] Commandline: D:\mine\All Stuff\Nero codecs\win32\neroAacEnc.exe -ignorelength -he -br 128000 -if - -of "D:\mine\ALL\A.reunion22\reunion.mp4"
--[Information] [8/26/2011 7:37:56 AM] Encoder process started
--[Error] An error occurred
---[Error] Exception message: Abnormal encoder termination 1
---[Error] Stacktrace: at MeGUI.AviSynthAudioEncoder.encode()
---[Error] Inner exception: null
--[Information] Output from encoder via stderr
---[NoImage] *************************************************************
---[NoImage] * *
---[NoImage] * Nero AAC Encoder *
---[NoImage] * Copyright 2009 Nero AG *
---[NoImage] * All Rights Reserved Worldwide *
---[NoImage] * *
---[NoImage] * Package build date: Feb 18 2010 *
---[NoImage] * Package version: 1.5.4.0 *
---[NoImage] * *
---[NoImage] * See -help for a complete list of available parameters. *
---[NoImage] * *
---[NoImage] *************************************************************

ok here is another one : this time 6 channel


-[Information] [8/26/2011 1:35:49 PM] Commandline used: -ignorelength -he -br 128000 -if - -of "{0}"
--[Information] [8/26/2011 1:35:49 PM] Encoding started
--[Information] [8/26/2011 1:35:49 PM] Avisynth script environment opened
--[Information] [8/26/2011 1:35:49 PM] Script loaded
--[Information] Output Decoder
---[Information] [8/26/2011 1:35:49 PM] Channels: 6
---[Information] [8/26/2011 1:35:49 PM] Bits per sample: 32
---[Information] [8/26/2011 1:35:49 PM] Sample rate: 48000
--[Information] [8/26/2011 1:35:49 PM] Commandline: D:\mine\All Stuff\Backup.stUFF\megui.new.\tools\nero\win32\neroAacEnc.exe -ignorelength -he -br 128000 -if - -of "D:\mine\ALL\A.reunion22\reunion.mp4"
--[Information] [8/26/2011 1:35:49 PM] Encoder process started
--[Error] [8/26/2011 1:56:36 PM] An error occurred
---[Error] [8/26/2011 1:56:36 PM] Exception message: The pipe has been ended.
---[Error] [8/26/2011 1:56:36 PM] Stacktrace
----[NoImage] at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
----[NoImage] at System.IO.FileStream.WriteCore(Byte[] buffer, Int32 offset, Int32 count)
----[NoImage] at System.IO.FileStream.Write(Byte[] array, Int32 offset, Int32 count)
----[NoImage] at MeGUI.AviSynthAudioEncoder.encode()
---[Error] [8/26/2011 1:56:36 PM] Inner exception: null
--[Information] [8/26/2011 1:56:36 PM] Output from encoder via stderr
---[NoImage] *************************************************************
---[NoImage] * *
---[NoImage] * Nero AAC Encoder *
---[NoImage] * Copyright 2009 Nero AG *
---[NoImage] * All Rights Reserved Worldwide *
---[NoImage] * *
---[NoImage] * Package build date: Feb 18 2010 *
---[NoImage] * Package version: 1.5.4.0 *
---[NoImage] * *
---[NoImage] * See -help for a complete list of available parameters. *
---[NoImage] * *
---[NoImage] *************************************************************
--[Information] [8/26/2011 1:56:36 PM] Output from encoder via stdout: ERROR: error while encoding frame
--[Information] [8/26/2011 1:56:36 PM] Job completed

flebber
26th August 2011, 13:29
@dc0yy
Whats with blanking out the filename, rule 6 ?

dc0yy
26th August 2011, 13:33
@flebber i just feel like blanking it

any answer for my error?

Carpo
26th August 2011, 17:02
@dc0yy
Whats with blanking out the filename, rule 6 ?

He missed a line ;)

Chudz
31st August 2011, 12:09
I am encoding to XviD AVI, I have splitting off but it keeps spliting my video into 2 files? Anyone know how I can stop it from splitting them? I am using the latest version of MeGUI the update from last night.

LigH
31st August 2011, 12:47
Did you set up a target size of more than 2 GB? Or ... what are the sizes of the segments exactly, in relation to the wanted result?

Chudz
31st August 2011, 13:07
I set a custom size to 3.5GB and setting splitting to "No Splitting" It seems to split at 2GB

Music Fan
31st August 2011, 14:55
AVI v1.0 is limited to 2 Go, that's perhaps the explanation.

Chudz
31st August 2011, 15:12
Is there a better for version of XviD AVI I should be using or somthing then?

Music Fan
31st August 2011, 15:20
For Xvid, you should maybe encode with Virtual Dub.
If you prefer MeGui because it creates avisynth scripts, you could maybe avoid the encoding step in MeGui and use this script with Virtual Dub.
But I don't know if it's possible.

Kurtnoise
31st August 2011, 16:08
I set a custom size to 3.5GB and setting splitting to "No Splitting" It seems to split at 2GB
http://forum.doom9.org/showthread.php?p=1522376#post1522376

Zathor
31st August 2011, 22:10
here u go , i can see that channel shown here are 2 , but even then it doesnt finish , precisely at 100% it gives error , i donno why .
the source has got 5.1 audio in DTS
Try to demux the DTS file from your MKV container.

I am encoding to XviD AVI, I have splitting off but it keeps spliting my video into 2 files? Anyone know how I can stop it from splitting them?
Please post your log!
If it splits the file during the mux try switching the device type in the AVI muxer to PC. The default setting will split at 2GB as standalone players most of the time have problems with avi files > 2GB.

kartikoli
1st September 2011, 03:08
I have 2 problems

1- How do i use filters while creating avisynth script .. i can load .dll files but it gives me error that i have to convert colorspace to YUY12
If i dont use any filter then MEGUI convert colorspace to YUY12 itself but it distort the video

2- There are many .avs scripts as well how do i use them

NOTE: These are FRAPS recorded videos in raw form of avi and colorspace is rgb

flebber
1st September 2011, 06:28
I have 2 problems

1- How do i use filters while creating avisynth script .. i can load .dll files but it gives me error that i have to convert colorspace to YUY12
If i dont use any filter then MEGUI convert colorspace to YUY12 itself but it distort the video

2- There are many .avs scripts as well how do i use them

NOTE: These are FRAPS recorded videos in raw form of avi and colorspace is rgb

Some avisynth scripts only work with certain colorpsaces. See http://avisynth.org/oldwiki/index.php?page=Section+3%3A+Filters%2C+plugins+and+colorspaces

Sci-Fi-Fan
1st September 2011, 17:44
Hi

Megui just auto updated some of its files including mkvnerge to version 4.9.1.

Since updating it appears that mkvmerge is recompressing / altering the audio track during an audio/video multiplex using tools/muxer/mkv muxer.

This never happened with the previous version.

Is there anyway to rolback to the previous working version? or workaround for this issue?

Help apreciated

Thanks

Heres a log of the last multiplex. Video + Audio should be 1.80 GB but is coming out at 1.58GB.

-[Information] Log for job1 (mux, 00002.track_4113.mkv -> 00002.track_4113-muxed.mkv)
--[Information] [01/09/2011 17:18:12] Started handling job
--[Information] [01/09/2011 17:18:12] Preprocessing
--[Information] [01/09/2011 17:18:12] MediaInfo
---[Information] File: D:\Tv Archive\Dexter\00002.track_4113.mkv
---[Information] General
----[Information] Format: Matroska
----[Information] FormatString: Matroska
----[Information] FileSize: 1044451552
----[Information] PlayTime: 00:54:09.288
---[Information] Video
----[Information] ID: 1
----[Information] Width: 1920
----[Information] Height: 1080
----[Information] FrameCount: 77905
----[Information] FrameRate: 23.976
----[Information] ScanType: Progressive
----[Information] Codec: V_MPEG4/ISO/AVC
----[Information] CodecString: AVC
----[Information] Format: AVC
----[Information] AspectRatio: 1.778
----[Information] AspectRatioString: 16:9
----[Information] Delay: 0
----[Information] Title:
----[Information] Language: en
----[Information] LanguageString: English
--[Information] [01/09/2011 17:18:12] MediaInfo
---[Information] File: D:\Tv Archive\Dexter\00002.track_4352.ac3
---[Information] General
----[Information] Format: AC-3
----[Information] FormatString: AC-3
----[Information] FileSize: 886714174
----[Information] PlayTime:
---[Information] Audio
----[Information] ID:
----[Information] Format: AC-3
----[Information] FormatProfile: TrueHD / Core
----[Information] FormatSettingsSBR:
----[Information] FormatSettingsPS:
----[Information] SamplingRate: 48000
----[Information] SamplingRateString: 48.0 KHz
----[Information] Channels: 6
----[Information] ChannelsString: 6 channels
----[Information] ChannelPositionsString2: 3/2/0.1
----[Information] BitRateMode: VBR / CBR
----[Information] Delay:
----[Information] Title:
----[Information] Language:
----[Information] LanguageString:
--[Information] [01/09/2011 17:18:13] Job commandline: "C:\Program Files\MeGUI_2008_x86\tools\mkvmerge\mkvmerge.exe" -o "D:\Tv Archive\Dexter\00002.track_4113-muxed.mkv" --engage keep_bitstream_ar_info --default-duration 1:24000/1001fps "--compression" "1:none" -d 1 --no-chapters -A -S "D:\Tv Archive\Dexter\00002.track_4113.mkv" --language 0:eng "--compression" "0:none" -a 0 --no-chapters -D -S "D:\Tv Archive\Dexter\00002.track_4352.ac3" --ui-language en
--[Information] [01/09/2011 17:18:13] Muxing started
--[Information] [01/09/2011 17:19:53] Standard output stream
---[NoImage] mkvmerge v4.9.1 ('Ich will') built on Jul 11 2011 23:53:15
---[NoImage] 'D:\Tv Archive\Dexter\00002.track_4113.mkv': Using the Matroska demultiplexer.
---[NoImage] 'D:\Tv Archive\Dexter\00002.track_4352.ac3': Using the TrueHD/MLP demultiplexer.
---[NoImage] 'D:\Tv Archive\Dexter\00002.track_4113.mkv' track 1: Using the MPEG-4 part 10 (AVC) video output module.
---[NoImage] 'D:\Tv Archive\Dexter\00002.track_4352.ac3' track 0: Using the TrueHD/MLP output module.
---[NoImage] The file 'D:\Tv Archive\Dexter\00002.track_4113-muxed.mkv' has been opened for writing.
---[NoImage] The cue entries (the index) are being written...
---[NoImage] Muxing took 97 seconds.
--[Information] [01/09/2011 17:19:53] Standard error stream
--[Information] [01/09/2011 17:19:53] MediaInfo
---[Information] File: D:\Tv Archive\Dexter\00002.track_4113-muxed.mkv
---[Information] General
----[Information] Format: Matroska
----[Information] FormatString: Matroska
----[Information] FileSize: 1697937679
----[Information] PlayTime: 00:54:15.294
---[Information] Video
----[Information] ID: 1
----[Information] Width: 1920
----[Information] Height: 1080
----[Information] FrameCount: 78049
----[Information] FrameRate: 23.976
----[Information] ScanType: Progressive
----[Information] Codec: V_MPEG4/ISO/AVC
----[Information] CodecString: AVC
----[Information] Format: AVC
----[Information] AspectRatio: 1.778
----[Information] AspectRatioString: 16:9
----[Information] Delay: 0
----[Information] Title:
----[Information] Language: en
----[Information] LanguageString: English
---[Information] Audio
----[Information] ID: 2
----[Information] Format: TrueHD
----[Information] FormatProfile:
----[Information] FormatSettingsSBR:
----[Information] FormatSettingsPS:
----[Information] SamplingRate: 48000
----[Information] SamplingRateString: 48.0 KHz
----[Information] Channels: 6
----[Information] ChannelsString: 6 channels
----[Information] ChannelPositionsString2: 3/2/0.1
----[Information] BitRateMode: VBR
----[Information] Delay: 0
----[Information] Title:
----[Information] Language: en
----[Information] LanguageString: English
--[Information] [01/09/2011 17:19:53] Postprocessing
---[Information] Deleting intermediate files
--[Information] [01/09/2011 17:19:53] Job completed

tebasuna51
1st September 2011, 21:41
mkv don't support a track TrueHD / Core (TrueHD + AC3), if you want both you must extract first the TrueHd and the AC3 audio and mux like 2 independent tracks.

goldensun87
10th September 2011, 22:01
Hello everyone :) . A while ago, I had asked about quality settings for H.264 encoding. And thank you to the person who suggested the CRF mode, I love it.

But unfortunately, the Xvid encoding doesn't have a CRF mode, only CQ :( . So I need to know, what is a good CQ range for encoding to Xvid 640x480?

Jisana
11th September 2011, 04:27
Hi, I have some problems in linux when I try to open a video 720p resolution.
The problem that megui says me is " Value was either too large or too small for a Decimal."

Megui Log:
[Error] Log
-[Information] Versions
--[Information] [11/09/2011 5:01:41] MeGUI Version : 2050 (svn)
--[Information] [11/09/2011 5:01:41] OS : Windows XP Professional x86 SP3 (5.1.196608.2600)
--[Information] [11/09/2011 5:01:41] Latest .Net Framework installed : 4.0 (4.0.30319)
--[Information] [11/09/2011 5:01:41] Avisynth Version : 2.5.8.5 (21/12/2008 21:46:54)
-[Information] Update detection
--[Information] [11/09/2011 5:01:41] Connecting to server: http://megui.org/auto/stable/
--[Information] [11/09/2011 5:01:42] All files are up to date
-[Error] Unhandled error
--[Information] [11/09/2011 5:18:22] Exception message: Value was either too large or too small for a Decimal.
--[Information] [11/09/2011 5:18:22] Stacktrace
---[NoImage] at System.Decimal.FCallRound(Decimal& result, Decimal d, Int32 decimals)
---[NoImage] at System.Decimal.Round(Decimal d, Int32 decimals)
---[NoImage] at System.Math.Round(Decimal d)
---[NoImage] at MeGUI.VideoPlayer.SetMaxZoomWidth()
---[NoImage] at MeGUI.VideoPlayer.loadVideo(MainForm mainForm, String path, PREVIEWTYPE type, Boolean hasAR, Boolean inlineAvs, Int32 startFrame, Boolean originalSize)
---[NoImage] at MeGUI.VideoPlayer.loadVideo(MainForm mainForm, String path, PREVIEWTYPE type, Boolean hasAR)
---[NoImage] at MeGUI.VideoEncodingComponent.openAvisynthScript(String fileName)
---[NoImage] at MeGUI.VideoEncodingComponent.openVideoFile(String fileName)
---[NoImage] at MeGUI.VideoEncodingComponent.videoInput_FileSelected(FileBar sender, FileBarEventArgs args)
---[NoImage] at MeGUI.FileBar.triggerEvent()
---[NoImage] at MeGUI.FileBar.setFilename(String filename)
---[NoImage] at MeGUI.FileBar.openButton_Click(Object sender, EventArgs e)
---[NoImage] at System.Windows.Forms.Control.OnClick(EventArgs e)
---[NoImage] at System.Windows.Forms.Button.OnClick(EventArgs e)
---[NoImage] at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
---[NoImage] at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
---[NoImage] at System.Windows.Forms.Control.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.ButtonBase.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.Button.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
---[NoImage] at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--[Information] [11/09/2011 5:18:22] Inner exception: null
-[Information] Log for job19 (video, L_G_1280X720 (copia).avs -> L_G_1280X720 (copia).mp4)
--[Information] [11/09/2011 5:18:39] Started handling job
--[Information] [11/09/2011 5:18:39] Preprocessing
--[Information] [11/09/2011 5:18:39] Avisynth input script
---[NoImage] #Encodeo a 1050
---[NoImage] LoadPlugin("/fansub/ffms2.dll")
---[NoImage] LoadPlugin("/fansub/VSFilter.dll")
---[NoImage] Import("/fansub/ffms2.avsi")
---[NoImage] #CARGANDO VIDEO RAW
---[NoImage] video=FFVideoSource("06.mkv")
---[NoImage] #CARGANDO OPENINGS/ENDINGS/EFFECTOS
---[NoImage] #Repartiendo PARTES
---[NoImage] a=video.trim(0,3474)
---[NoImage] Logo=video.trim(3475,3531)
---[NoImage] b=video.trim(0,40715)
---[NoImage] #Juntando PARTES
---[NoImage] final=b
---[NoImage] #TWEAKS Y SUBS
---[NoImage] final = final.ConvertToYV12().Tweak(sat=1.2,cont=1.1, bright=-12)
---[NoImage] final = final.Textsub("06.ass")
---[NoImage] final = final.Lanczos4Resize(1280,720)
---[NoImage] return final
-[Error] Unhandled error
--[Information] [11/09/2011 5:18:40] Exception message: Value was either too large or too small for a Decimal.
--[Information] [11/09/2011 5:18:40] Stacktrace
---[NoImage] at System.Decimal.FCallRound(Decimal& result, Decimal d, Int32 decimals)
---[NoImage] at System.Decimal.Round(Decimal d, Int32 decimals)
---[NoImage] at System.Math.Round(Decimal d, Int32 decimals)
---[NoImage] at MeGUI.packages.video.x264.x264SettingsHandler.getKeyInt(Int32 fps_n, Int32 fps_d)
---[NoImage] at MeGUI.x264Encoder.genCommandline(String input, String output, Nullable`1 d, Int32 hres, Int32 vres, Int32 fps_n, Int32 fps_d, x264Settings xs, Zone[] zones, LogItem log)
---[NoImage] at MeGUI.x264Encoder.get_Commandline()
---[NoImage] at MeGUI.CommandlineJobProcessor`1.start()
---[NoImage] at MeGUI.core.gui.JobWorker.startEncoding(TaggedJob job)
---[NoImage] at MeGUI.core.gui.JobWorker.startNextJobInQueue()
---[NoImage] at MeGUI.core.gui.JobWorker.StartEncoding(Boolean showMessageBoxes)
---[NoImage] at MeGUI.core.details.JobControl.StartAll(Boolean restartStopping)
---[NoImage] at MeGUI.core.details.JobControl.jobQueue_StartClicked(Object sender, EventArgs e)
---[NoImage] at MeGUI.core.gui.JobQueue.startStopButton_Click(Object sender, EventArgs e)
---[NoImage] at System.Windows.Forms.Control.OnClick(EventArgs e)
---[NoImage] at System.Windows.Forms.Button.OnClick(EventArgs e)
---[NoImage] at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
---[NoImage] at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
---[NoImage] at System.Windows.Forms.Control.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.ButtonBase.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.Button.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
---[NoImage] at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
---[NoImage] at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
--[Information] [11/09/2011 5:18:40] Inner exception: null

I'm trying with virtualdubmod and I can perfectly open the .avs without any problems, and I have tried to open with avidemux (avsproxy (wine) and avidemux(linux)) and it opened without any problems.

¿How I can resolve this problem?¿Can you help me? Thanks :D

Sharktooth
11th September 2011, 14:55
What preset you used? Please load the default settings and try again. It seems you have messed up the key-frame interval value.

Jisana
11th September 2011, 15:23
Thanks for reply. ^^

I used the "x264: Unrestricted 2pass Anime_Toons HQ" preset.

program --level 4.2 --tune animation --pass 2 --bitrate 1168 --stats ".stats" --qpmin 10 --qpmax 51 --vbv-bufsize 31250 --vbv-maxrate 31250 --me umh --direct auto --subme 6 --partitions p8x8,b8x8,i4x4,p4x4 --no-8x8dct --trellis 2 --output "output" "input"

I'm using now "Simple X264 Launcher" with this parameters and I don't have any problems, it's only when I use MeGui and I don't known why.

---
I have put the defaults settings and it says the same XD

Zathor
11th September 2011, 15:58
Add Info() to the end of your AVS script, open it with e.g. virtualdub and post the output. I am especially interested in the line frames per second.

Jisana
11th September 2011, 16:17
http://img268.imageshack.us/img268/8792/pantallazo6f.png (http://imageshack.us/photo/my-images/268/pantallazo6f.png/)



My .avs

##########################Encodeo a 1168

######WINDOWS

#LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\Vsfilter.dll") LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\asharp.dll") LoadPlugin("C:\Program Files (x86)\Aegisub\csri\Vsfiltermod.dll")

######LINUX

LoadPlugin("/fansub/ffms2.dll") LoadPlugin("/fansub/Vsfiltermod.dll") LoadPlugin("/fansub/VSFilter.dll") Import("/fansub/ffms2.avsi")

##########################LOADING VIDEO RAW

#video=directshowSource("224_720.mkv",fps=23.976,convertfps=true,audio=false)

video=FFVideoSource("224_720.mkv")

#CARGANDO OPENINGS/ENDINGS/EFFECTOS


#Repartiendo PARTES

a=video.trim(0,3474)

Logo=video.trim(3475,3531)

b=video.trim(0,40715)


#Juntando PARTES

final=b

#TWEAKS && SUBS
final = final.ConvertToYV12().Tweak(sat=1.2,cont=1.1, bright=-12)

final = final.Textsub("224.ass")

final = final.Textsubmod("OpeningJP.ass")

final = final.Textsubmod("ED2Japan.ass")

final = final.Info()

return final



My problem is when I try to open a video in 16:9 (1.7777777), megui CRASH.


I can open any resolution except 16:9 like 1280x720. If I put in my avs "final = final.lanczos4resize(1260,720)" (1260:720 = 1.75) . Megui runs OK. But If i try to open a video in 1280x720 megui crash.
The framespeed is OK
The megui preset is Ok
Avisynth is ok
Virtualdubmod Ok
Simple x264 launcher OK
Megui (loading video which not is in 16:9) OK
Megui (loading video in 16:9) no ok XDDD
Why i don't know but this is a mistery XD

hello_hello
12th September 2011, 15:59
Hello everyone :) . A while ago, I had asked about quality settings for H.264 encoding. And thank you to the person who suggested the CRF mode, I love it.

But unfortunately, the Xvid encoding doesn't have a CRF mode, only CQ :( . So I need to know, what is a good CQ range for encoding to Xvid 640x480?

A quantizer of 2 is as good as it gets with Xvid. The higher the quantizer, the lower the quality. I probably wouldn't go any higher than a target quantizer of 3.

Zathor
12th September 2011, 19:57
Megui (loading video which not is in 16:9) OK
Megui (loading video in 16:9) no ok XDDD
I have send you a PM with a special build.

goldensun87
14th September 2011, 04:46
A quantizer of 2 is as good as it gets with Xvid. The higher the quantizer, the lower the quality. I probably wouldn't go any higher than a target quantizer of 3.

Thanks! I look forward to experimenting :) !

LigH
14th September 2011, 08:15
The MPEG4-ASP quantization steps are quite coarse, using the defaults (H.263 parametric quantization, or MPEG matrix quantization with the standard matrix); using a different matrix for the MPEG quantization may be the only way for Xvid to achieve finer steps and better control, but may have side effects...

hello_hello
14th September 2011, 10:43
I still use AutoGK for Xvid encoding because it tells you what quality to expect when running 2 pass encodes, although that's probably a discussion for a different thread.
AutoGK uses a quality setting of 75% for single pass encoding by default. Depending on who you ask, 70% to 75% is supposed to be the optimum quality, file size ratio for Xvid. Looking at the way AutoGK configures the Xvid encoder, a 70% quality single pass encode equates to a quantizer of 2.86, while a 75% quality single pass encode equates to a quantizer of 2.67
If you're only going to be running single pass encoding (I run 2 pass encoding only to maintain 100% standalone player compatibility... although again that's a different discussion) and if file size isn't really an issue for you, I'd just use a quantizer of 2 and be done with it.

Personally I prefer the default H.263 quantization.... as long as you use a low enough quantizer anyway. No doubt custom matrices can achieve similar results with higher quantizers or lower bitrates etc, but I've not experimented with them all that much.

LigH
14th September 2011, 12:21
Do not confuse "higher" and "lower" regarding quantization.

To achieve similar bitrates, the product of matrix coefficients and overall quantization factor (or quotient) shall be about equal. If you use a matrix with smaller coefficients than the default, the overall quantization will have a bigger average value for the same target size.

hello_hello
14th September 2011, 14:07
Do not confuse "higher" and "lower" regarding quantization.

To achieve similar bitrates, the product of matrix coefficients and overall quantization factor (or quotient) shall be about equal. If you use a matrix with smaller coefficients than the default, the overall quantization will have a bigger average value for the same target size.

Whoops, I appear to have posted a dumb, dumb there. I've corrected my previous post.

vale25
15th September 2011, 14:33
Hi,

I kindly ask you for two short questions, thanks in advance!

My clip sources are .MOV clips of photo cameras, at 33 Mbps.

A) I found comparable media info output between a single pass with CRF 21, and a 2 pass insane with bitrate selected to 11 Mbps (one third of the original bitrate). Should I prefer the 2 pass?

B) Do I loose something decreasing to 11 Mbps? My 1080p TV sees both (original and encoded) files and I cannot distinguish any difference.

Note that I used for both the same preset, the veryslow

Here the relevant media info:

x264.exe --preset veryslow --pass 2 --bitrate 11000 --stats "file.stats" --deblock -1:-1 --qpmin 10 --qpmax 51 --no-dct-decimate --sar 1:1 --output "file.264" "file.avi.avs"


Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.1
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1mn 8s
Bit rate : 11.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.221
Stream size : 88.6 MiB (96%)
Writing library : x264 core 116 r2074 2641b9e
Encoding settings : cabac=1 / ref=16 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=11000 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00

LigH
16th September 2011, 07:54
A) The more important it is for you to reach a certain file size (e.g. get media filled to the brim), the more probably you will decide to use 2-pass instead of 1-pass CRF.

B) Using lossy technologies, you always lose quality (objective loss = any measurable difference). That doesn't mean that you can spot the difference at all, or would rate it annoying (subjective quality loss).

The slowest presets are already "pacebo" if you have a convenient bitrate (hard to rate certainly, but a pixel bitrate around 0.2 bppf is already quite convenient for x264). They may only give an edge for really tight cases.

The 1-pass constant bitrate mode is the one with the least certain quality, only useful for transmissions with tight bitrate specifications. For storage and playback from fast media, you should always prefer either 1-pass constant quality (CRF) if you have no important filesize constraints, or 2-pass mode if a filesize limit is more important than a quality level.

Note: CRF mode encodes to a fixed grade of objective quality loss. If the source is easily compressable (e.g. little details, little motion), the result may become smaller but will still look good compared to the original. If the source is hard to compress (a lot of details, noise, motion, etc.), it will use more bitrate to ensure that the copy will look good compared to the original. The smaller the CRF factor, the smaller the objective loss accepted by the encoder, the higher the possible bitrates. Average viewers may find a CRF around 21 acceptable; cineasts may agree that a CRF around 18 almost guarantees a "transparent result" (hardly noticable differences to the original).

vale25
19th September 2011, 13:57
Vielen dank LigH

I have learned something new about the pixel rate. You meant that 0.2 bpf would be good for x264. I re-encoded my sample with CRF 18 and with the 2 pass of bitrate 18 Mbps. Please have a look on the table below:

https://docs.google.com/leaf?id=0BxK6VmqKqXslZmExYjkwZmEtMzFhOC00MDAyLThjZGMtNDNmYjU4YWY2MTE4&hl=en_GB

I see that the pixel increased from 0.2 to 0.36, which must be good (I hope :-)

Could anyone tell why Canon/Nikkon, etc., prefer shooting with the avc1 codec on the original .MOV file? Do I really make the good thing to convert with x264?

I know that x264 is a multiple award winning sw, and is the best we have in compression by now, probably the preference for avc1 is given by the limitations of the CPU times of the photo cameras.

vale25
19th September 2011, 17:19
It was impossible to load an image, the link to an URL did not show-up, columns are not aligned. Sorry. I hope you understand my ideea, having the original and the two encodings side by side.

MediaInfo Specification Original .MOV x264 1 pass CRF 18 x264 2 pass 18000 bitrate
Format : AVC : AVC : AVC
Format/Info : Advanced Video Codec : Advanced Video Codec : Advanced Video Codec
Format profile : Baseline@L5.0 : High@L5.1 : High@L5.1
Format settings, CABAC : No : Yes : Yes
Format settings, ReFrames : 1 frame : 16 frames : 16 frames
Format settings, GOP : M=1, N=12
Codec ID : avc1 : V_MPEG4/ISO/AVC : V_MPEG4/ISO/AVC
Codec ID/Info : Advanced Video Coding
Duration : 1mn 8s : 1mn 8s : 1mn 8s
Bit rate : 33.8 Mbps : 17.7 Mbps : 18.0 Mbps
Width : 1 920 pixels : 1 920 pixels : 1 920 pixels
Height : 1 080 pixels : 1 080 pixels : 1 080 pixels
Display aspect ratio : 16:9 : 16:9 : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps : 23.976 fps : 23.976 fps
Color space : YUV : YUV : YUV
Chroma subsampling : 4:2:0 : 4:2:0 : 4:2:0
Bit depth : 8 bits : 8 bits : 8 bits
Scan type : Progressive : Progressive : Progressive
Bits/(Pixel*Frame) : 0.680 : 0.355 : 0.362
Stream size : 296.2 MiB (95%) : 145 MiB (97%) : 145 MiB (97%)
Writing library : x264 core 116 r2074 2641b9e : x264 core 116 r2074 2641b9e
Color primaries : BT.709-5, BT.1361,
IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.601-6 525, BT.1358 525,
BT.1700 NTSC, SMPTE 170M

LigH
20th September 2011, 06:54
Putting this in a CODE block to use a monospaced font and preformatted whitespaces:
MediaInfo Specification Original .MOV x264 1 pass CRF 18 x264 2 pass 18000 bitrate
Format : AVC : AVC : AVC
Format/Info : Advanced Video Codec : Advanced Video Codec : Advanced Video Codec
Format profile : Baseline@L5.0 : High@L5.1 : High@L5.1
Format settings, CABAC : No : Yes : Yes
Format settings, ReFrames : 1 frame : 16 frames : 16 frames
Format settings, GOP : M=1, N=12
Codec ID : avc1 : V_MPEG4/ISO/AVC : V_MPEG4/ISO/AVC
Codec ID/Info : Advanced Video Coding
Duration : 1mn 8s : 1mn 8s : 1mn 8s
Bit rate : 33.8 Mbps : 17.7 Mbps : 18.0 Mbps
Width : 1 920 pixels : 1 920 pixels : 1 920 pixels
Height : 1 080 pixels : 1 080 pixels : 1 080 pixels
Display aspect ratio : 16:9 : 16:9 : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps : 23.976 fps : 23.976 fps
Color space : YUV : YUV : YUV
Chroma subsampling : 4:2:0 : 4:2:0 : 4:2:0
Bit depth : 8 bits : 8 bits : 8 bits
Scan type : Progressive : Progressive : Progressive
Bits/(Pixel*Frame) : 0.680 : 0.355 : 0.362
Stream size : 296.2 MiB (95%) : 145 MiB (97%) : 145 MiB (97%)
Writing library : x264 core 116 r2074 2641b9e : x264 core 116 r2074 2641b9e
Color primaries : BT.709-5, BT.1361,
IEC 61966-2-4, SMPTE RP177
Transfer characteristics : BT.709-5, BT.1361
Matrix coefficients : BT.601-6 525, BT.1358 525,
BT.1700 NTSC, SMPTE 170M

Of course - a camera needs to encode the video in realtime. Therefore it has to use a less complex encoder setup, creating only the Baseline profile and a lower number of reference frames (but your 16 for x264 are exaggerated, ~5 are usually efficient enough but a lot faster).

Therefore, because the hardware encoder creates AVC video with limited complexity and limited encoding efficiency, it prefers to put more bitrate in it to ensure a good quality even in complicated scenes.

x264 instead has all the time you allow it to take via your speed preset choice. It can (hopefully) use a powerful CPU with several cores for code parallelization and efficient Streaming SIMD Extension instructions for further data manipulation parallelization, along with (up to) Gigabytes of RAM to store frames to compare and search for redundancies (similar areas which can be used to spare bitrate by storing only smaller differences instead of plain values).

So there is no surprise that x264 is able to preserve a similar amount of video quality already with a smaller file, and, divided by the pixels per frame and the frames per second, a smaller "pixel bitrate". Its unit is bppf = "bits per pixel and frame"; think about this meaning.

vale25
20th September 2011, 11:52
LigH thanks again.

I wrote the code tags by hand, and selected Courier New font, I know that it is a fixed width letter font



Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L5.0
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1mn 8s
Bit rate : 16.0 Mbps
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.322
Stream size : 129 MiB (96%)
Writing library : x264 core 116 r2074 2641b9e



The encoding shown above used the preset slow reducing thus the ReFrames from 16 to 5. The encoding time decreased from around 70 to less than 20 minutes!

The 16 Mbps correspond to a CRF 19 and to a decrease of the size of the file from 300 to 130 MB, quite impressive.

It is even possible to go on youtube, etc., if not by 2011, but surely in a closer future.

To summarize then, x264 options used for the current run:

program --preset slow --pass 2 --bitrate 16000 --stats ".stats" --deblock -1:-1 --qpmin 10 --qpmax 51 --no-dct-decimate --output "output" "input"

LigH
20th September 2011, 12:28
Now you just have to understand:

For one movie, 16 Mbps may be a waste.
For another movie, 16 Mbps may be tight.

Find the CRF which creates a copy good enough for you not to spot annoying quality loss for several different movies. This will be your "threshold of transparency". From then on, always use this CRF value in 1-pass encodings, spare a 2nd pass you don't need, as well as bitrate calculations -- if you don't need to fill a disc to the edge.

vale25
20th September 2011, 13:24
Understood your point!

Then I would start with a CRF 19 with preset slow. For general purpose home made videos (with my 2 years old daughter) it is probably more than enough.

If I get lots of movement in the scenes (water in the pool, speedy movements) I should try first to decrease the preset to slower (keeping the same CRF 19). If still has defects I go to CRF 18 (enlarging the file).

What about night scenes, are they "more difficult" than by daylight? Could you generally recommend something for them?

I need to shoot more scenes to prove that this strategy is the "perfect" way. However, your support was essential, danke again (I come from the photographic world and learning about movies is not so easy, at least for those who establish for themselves higher quality standards :-)

LigH
20th September 2011, 14:21
Night scenes are more difficult, because a smaller dynamic range is usually interpreted as less important by a video encoder. But x264 has already quite good psychovisual features. Try to find more facts about the "Variance AQ" (adaptive quantization) modes and their relation to tunings (--aq-mode / --aq-strength).

forum king
12th October 2011, 09:02
Hey there mates !!!
could someone plz help
i donno i am not able t encode any dts file thru megui to aac mp4 :(
tried everything from extracting audio to changing the profile settings :(

[Error] Log for job1 (audio, TEST.mkv -> TEST.mp4)
-[Information] [10/12/2011 8:44:21 AM] Started handling job
-[Information] [10/12/2011 8:44:21 AM] Preprocessing
-[Information] Avisynth script
--[NoImage] DirectShowSource("D:\nickname\ALL\A.midnight\TEST.mkv", video=false)
--[NoImage] EnsureVBRMP3Sync()
--[NoImage] return last
-[Information] Commandline used: -ignorelength -he -br 42000 -if - -of "{0}"
-[Information] [10/12/2011 8:44:21 AM] Encoding started
-[Information] [10/12/2011 8:44:21 AM] Encode thread started
-[Information] [10/12/2011 8:44:22 AM] Avisynth script environment opened
-[Information] [10/12/2011 8:44:22 AM] Script loaded
-[Information] Output Decoder
--[Information] Channels: 2
--[Information] Bits per sample: 16
--[Information] Sample rate: 48000
-[Information] Commandline: D:\nickname\All Stuff\Backup.stUFF\megui.29.01.10.main-1400\megui\tools\win32\neroAacEnc.exe -ignorelength -he -br 42000 -if - -of "D:\nickname\ALL\A.midnight\TEST.mp4"
-[Information] [10/12/2011 8:44:22 AM] Encoder process started
-[Error] An error occurred
--[Error] Exception message: Abnormal encoder termination 1
--[Error] Stacktrace: at MeGUI.AviSynthAudioEncoder.encode()
--[Error] Inner exception: null
-[Information] Output from encoder via stderr
--[NoImage] *************************************************************
--[NoImage] * *
--[NoImage] * Nero AAC Encoder *
--[NoImage] * Copyright 2009 Nero AG *
--[NoImage] * All Rights Reserved Worldwide *
--[NoImage] * *
--[NoImage] * Package build date: Feb 18 2010 *
--[NoImage] * Package version: 1.5.4.0 *
--[NoImage] * *
--[NoImage] * See -help for a complete list of available parameters. *
--[NoImage] * *
--[NoImage] *************************************************************
-[Information] Output from encoder via stdout: ERROR: truncation error
-[Information] [10/12/2011 8:49:53 AM] Job completed

tebasuna51
12th October 2011, 10:06
@forum king
I never see this error with NeroAacEnc but you can try some test to evaluate the problem.

1) Try with bigger bitrate, maybe -br 64000, and see if work now.

2) Extract the DTS with Tools -> HD Streams Extractor and use NicAudio decoder instead DirectShow

luke83
12th October 2011, 13:52
Can someone help me with this problem? I posted in bug topic but I think that here is better

http://forum.doom9.org/showthread.php?p=1531178#post1531178

Zathor
12th October 2011, 16:50
Can someone help me with this problem? I posted in bug topic but I think that here is better

http://forum.doom9.org/showthread.php?p=1531178#post1531178

The bug thread is the correct one for your problem, but I had and have no time to look into the problem you posted.