Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs

Reply
 
Thread Tools Search this Thread Display Modes
Old 1st February 2021, 04:39   #9101  |  Link
tp9192
Registered User
 
Join Date: Jan 2021
Posts: 2
Hello, I used to encode videos to x264 with One Click Encoder, Constant Quality, in x264 config page, of around 22.0, and this 30 minute tv recording used to come out to around 900+ kbps and 200-250 MB. I encode the same exact show and now the end result is 600 kbps video and 70-80 MB and the video looks super bad.

Was there a recent change to the profiles or something? I ask because I recently upgraded MeGUI from 2828 to 2913. First time I upgraded it in like 2+ years I think. I am wondering if this related.
tp9192 is offline   Reply With Quote
Old 1st February 2021, 16:14   #9102  |  Link
jlw_4049
Registered User
 
Join Date: Sep 2018
Posts: 391
Quote:
Originally Posted by tp9192 View Post
Hello, I used to encode videos to x264 with One Click Encoder, Constant Quality, in x264 config page, of around 22.0, and this 30 minute tv recording used to come out to around 900+ kbps and 200-250 MB. I encode the same exact show and now the end result is 600 kbps video and 70-80 MB and the video looks super bad.



Was there a recent change to the profiles or something? I ask because I recently upgraded MeGUI from 2828 to 2913. First time I upgraded it in like 2+ years I think. I am wondering if this related.
Probably the x264 version change

Sent from my SM-G986U1 using Tapatalk
jlw_4049 is offline   Reply With Quote
Old 1st February 2021, 16:42   #9103  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
Quote:
Originally Posted by tp9192 View Post
Hello, I used to encode videos to x264 with One Click Encoder, Constant Quality, in x264 config page, of around 22.0, and this 30 minute tv recording used to come out to around 900+ kbps and 200-250 MB. I encode the same exact show and now the end result is 600 kbps video and 70-80 MB and the video looks super bad.

Was there a recent change to the profiles or something? I ask because I recently upgraded MeGUI from 2828 to 2913. First time I upgraded it in like 2+ years I think. I am wondering if this related.
Last year someone at VideoHelp upgraded to 2913 and complained about inconsistent file sizes when encoding the same video more than once.
https://forum.videohelp.com/threads/...rent-filesizes

Maybe the bundled x264 is broken, or whatever MeGUI uses to pipe the script output to the encoder these days (ffmpeg?).
I'm still on XP and for 32 bit windows there's no middle man. The script output is piped directly to the encoder. I'm using MeGUI 2913 though, and the file sizes are fine (although I think I rolled x264 back to the previous version as the bundled one no longer runs on XP).

I'd suggest rolling x264 back to the previous version and if that doesn't fix it, try rolling back ffmpeg or whatever MeGUI uses these days, assuming you're running a 64 bit version of Windows. 32 bit MeGUI encodes with 64 bit x264 on 64 bit Windows, and I think it uses ffmpeg to pipe the video to the encoder. I've no idea if the same applies to the 64 bit version of MeGUI.

Last edited by hello_hello; 1st February 2021 at 16:44.
hello_hello is offline   Reply With Quote
Old 3rd February 2021, 07:56   #9104  |  Link
Go
Registered User
 
Join Date: Jan 2021
Posts: 1
Hi,

1) I want to re-encode a lot of video files (FROM mpeg2-mkv TO avc-mkv). The only requirement is: output bitrate should be half of original (i.e. twice smaller).
All original files has different bitrate, so output bitrate should be calculated somehow. But how?

2) How to preserve tags (Movie name, Released date, Comment, DIRECTOR, Url, WRITTEN_BY) from original mkv-files? New encoded files doesn't contain these tags.

Thank you in advance!
Go is offline   Reply With Quote
Old 8th February 2021, 17:40   #9105  |  Link
StainlessS
HeartlessS Usurer
 
StainlessS's Avatar
 
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
Go,
This don't comply with your requirements, but as no-one else replied I thought might be something to play with.
Maybe you can make some use of it.

Go.Bat [see REM's ie REMarks]
Code:
REM We DO NOT LIKE SPACES IN FILE NAMES (REM == REMark ie comment)
REM We DO NOT LIKE ACCENTS IN FILE NAMES.

setlocal

REM Where to Find ffmpeg
set FFMPEG="C:\BIN\ffmpeg.exe"

REM Where to get INPUT files, No terminating Backslash, "." = current directory (ie same as dir .bat file)
set INDIR="."


REM Where to place OUTPUT files, No terminating Backslash. "." would be same as .bat file, ".\OUTPUT" = OUTPUT folder in same directory as bat file.
set OUTDIR=".\OUTPUT"


REM OUTPUT:-  Video: codec=x264, Preset=Slow, CRF=23, Audio: aac 96Kb/s, Output in mkv container
SET VCODEC=libx264
SET PRESET=slow
SET CRF=23
SET ABITRATE=96K
SET CONTAINER=MKV

REM Below, can add INPUT extensions as eg *.avi (SPACE separated, Batch Processes all INPUT type files in INDIR)

FOR %%A IN (*.mpg *.mpeg *.mkv *.mp4) DO (
  %FFMPEG% -i "%INDIR%\%%A" -vcodec %VCODEC% -preset %PRESET% -crf %CRF%  -acodec aac -b:a %ABITRATE% "%OUTDIR%\%%~nxA.%CONTAINER%"
)

Pause
Try changing SET CRF=23 line, lower for higher quality and bitrate.
__________________
I sometimes post sober.
StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace

"Some infinities are bigger than other infinities", but how many of them are infinitely bigger ???

Last edited by StainlessS; 8th February 2021 at 23:04.
StainlessS is offline   Reply With Quote
Old 9th February 2021, 04:49   #9106  |  Link
LouieChuckyMerry
Registered User
 
LouieChuckyMerry's Avatar
 
Join Date: Feb 2014
Posts: 355
Quote:
Originally Posted by Kurtnoise View Post
Update the update.xml file in update_cache subfolder as
Code:
        <ffms type="file" requiredbuild="2624" build="64">
            <filepath date="2021-01-17" version="20201123">ffms2-20201123-64.7z</filepath>
        </ffms>
Thanks for that.
LouieChuckyMerry is offline   Reply With Quote
Old 14th March 2021, 17:23   #9107  |  Link
AOmundson
Registered User
 
Join Date: Dec 2017
Posts: 15
I keep getting a
Code:
Process exits with error: 0xC0000005 STATUS_ACCESS_VIOLATION(-1073741819)
message around two hours through rendering. This started happening after I installed FFmpeg into my C-drive in order to properly encode using VapourSynth, but I have its package disabled on MeGUI. In addition, this error only occurs with these two files I'm attempting to render (it successfully renders DVD files and smaller BD files), but I've succeeded in being able to render them previously, but in that case, I was rendering them into 10bit and here I'm rendering them into 8bit. I'm unsure if this is an issue where MeGUI will simply fail rendering if left running too long or what.

MediaInfo:
Code:
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 30 min 1 s
Bit rate mode                            : Variable
Bit rate                                 : 14.1 Mb/s
Maximum bit rate                         : 30.0 Mb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 59.940 (60000/1001) FPS
Original frame rate                      : 29.970 (30000/1001) FPS
Standard                                 : NTSC
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan type, store method                  : Separated fields
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 0.114
Stream size                              : 2.96 GiB (100%)
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
AVS File:
Code:
LoadPlugin("E:\MeGUI-2913-64\TDeint.dll")
LoadPlugin("E:\MeGUI-2913-64\RgTools.dll")
LoadPlugin("E:\MeGUI-2913-64\nnedi3.dll")
LoadPlugin("E:\MeGUI-2913-64\DePanEstimate.dll")
LoadPlugin("E:\MeGUI-2913-64\DePan.dll")
LoadPlugin("E:\MeGUI-2913-64\mvtools2.dll")
LoadPlugin("E:\MeGUI-2913-64\masktools2.dll")
LoadPlugin("E:\MeGUI-2913-64\tools\lsmash\LSMASHSource.dll")
LWLibavVideoSource("D:\Video\1 (1).mkv")
#deinterlace
crop(236, 4, -236, 0)
#resize
#denoise
import("E:\MeGUI-2913-64\SMDegrain.avsi")
import("E:\MeGUI-2913-64\QTGMC.avsi")
QTGMC( Preset="Slow", SourceMatch=3, Lossless=2, TR2=2 )
SelectEven()
x264 Config:

Last edited by AOmundson; 14th March 2021 at 17:54.
AOmundson is offline   Reply With Quote
Old 14th March 2021, 18:37   #9108  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Maybe memory access violation, I would take a look in Windows Event Viewer, maybe it has a log telling in which module it happened. It can be an avs or filter or hardware or source file issue.
stax76 is offline   Reply With Quote
Old 14th March 2021, 22:30   #9109  |  Link
AOmundson
Registered User
 
Join Date: Dec 2017
Posts: 15
Event Viewer didn't record anything, but it was able to finish rendering when I had deinterlacing turned off. This is fine except the whole reason I'm using the current script is that I'm trying to deinterlace the footage.

New Script:
Code:
LoadPlugin("E:\MeGUI-2913-64\TDeint.dll")
LoadPlugin("E:\MeGUI-2913-64\RgTools.dll")
LoadPlugin("E:\MeGUI-2913-64\nnedi3.dll")
LoadPlugin("E:\MeGUI-2913-64\DePanEstimate.dll")
LoadPlugin("E:\MeGUI-2913-64\DePan.dll")
LoadPlugin("E:\MeGUI-2913-64\mvtools2.dll")
LoadPlugin("E:\MeGUI-2913-64\masktools2.dll")
LoadPlugin("E:\MeGUI-2913-64\tools\lsmash\LSMASHSource.dll")
LWLibavVideoSource("D:\Video\1.mkv")
#deinterlace
crop(238, 6, -238, -2)
#resize
#denoise
import("E:\MeGUI-2913-64\SMDegrain.avsi")
import("E:\MeGUI-2913-64\QTGMC.avsi")
QTGMC( Preset="Slow", SourceMatch=3, InputType=1, Lossless=0, TR2=2 )
Should I just run it through the new script then re-render it through the deinterlacing script?
AOmundson is offline   Reply With Quote
Old 17th March 2021, 22:37   #9110  |  Link
LeXXuz
21 years and counting...
 
LeXXuz's Avatar
 
Join Date: Oct 2002
Location: Germany
Posts: 716
Just a wild guess, but some filters still don't like resolutions not divisible by 16 or at least by 8.

Try to crop(240,6,-240,-2) from your 1080p source and see if that may help.
LeXXuz is offline   Reply With Quote
Old 27th March 2021, 04:28   #9111  |  Link
chronis
Registered User
 
Join Date: Apr 2019
Posts: 20
Hi,
My source audio is AAC 128kbps VBR and I'd like to slow it down from 25 to 24 in MeGUI, but I want to preserve the original bitrate with VBR and MeGUI only offers "quality" adjuster for VBR. Is there no way to set the target bitrate?

I could just set it to 128 CBR, but I don't know if it's appropriate to re-encode VBR to CBR (not sure if there are drawbacks).

chronis is offline   Reply With Quote
Old 27th March 2021, 05:20   #9112  |  Link
jlw_4049
Registered User
 
Join Date: Sep 2018
Posts: 391
Quote:
Originally Posted by alexx View Post
Hi,

My source audio is AAC 128kbps VBR and I'd like to slow it down from 25 to 24 in MeGUI, but I want to preserve the original bitrate with VBR and MeGUI only offers "quality" adjuster for VBR. Is there no way to set the target bitrate?



I could just set it to 128 CBR, but I don't know if it's appropriate to re-encode VBR to CBR (not sure if there are drawbacks).



Encoding anything from 128k to anything else will have major draw backs. Slowing the audio down or speeding it up is impossible without re encoding.

Sent from my SM-G986U1 using Tapatalk
jlw_4049 is offline   Reply With Quote
Old 27th March 2021, 18:11   #9113  |  Link
chronis
Registered User
 
Join Date: Apr 2019
Posts: 20
Quote:
Originally Posted by jlw_4049 View Post
Encoding anything from 128k to anything else will have major draw backs. Slowing the audio down or speeding it up is impossible without re encoding.

Sent from my SM-G986U1 using Tapatalk
Yes, I'm aware that 128 is low quality to begin with, but let's say then that I have 384kbps audio instead. My question is can I set the target bitrate in MeGUI for VBR? If not, which other program can I use?

And my secondary question was, when converting from VBR, is it always best to convert to VBR, as opposed to CBR?

I'm doing these conversions because I care more about preserving the cinematic FPS (24) than dealing with a small loss in audio quality, which most people couldn't even hear.

Last edited by chronis; 27th March 2021 at 19:11.
chronis is offline   Reply With Quote
Old 27th March 2021, 23:17   #9114  |  Link
jlw_4049
Registered User
 
Join Date: Sep 2018
Posts: 391
Quote:
Originally Posted by alexx View Post
Yes, I'm aware that 128 is low quality to begin with, but let's say then that I have 384kbps audio instead. My question is can I set the target bitrate in MeGUI for VBR? If not, which other program can I use?

And my secondary question was, when converting from VBR, is it always best to convert to VBR, as opposed to CBR?

I'm doing these conversions because I care more about preserving the cinematic FPS (24) than dealing with a small loss in audio quality, which most people couldn't even hear.
You can do this with the program in my signature.

Sent from my SM-G986U1 using Tapatalk
jlw_4049 is offline   Reply With Quote
Old 28th March 2021, 00:33   #9115  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
The way recommended to encode aac at a fixed average bitrate is use the Constrained mode (CVBR) of qaac.

You need install the package in MeGUI, and Options -> External Programs -> Enable QAAC
Attached Images
 
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 28th March 2021 at 00:42.
tebasuna51 is offline   Reply With Quote
Old 28th March 2021, 03:17   #9116  |  Link
chronis
Registered User
 
Join Date: Apr 2019
Posts: 20
Quote:
Originally Posted by tebasuna51 View Post
The way recommended to encode aac at a fixed average bitrate is use the Constrained mode (CVBR) of qaac.

You need install the package in MeGUI, and Options -> External Programs -> Enable QAAC
Thank you for the recommendation. Are you sure I don't also need another program like iTunes? I installed the QAAC package and enabled QAAC, but it didn't appear the next time I opened MeGUI.
chronis is offline   Reply With Quote
Old 28th March 2021, 11:00   #9117  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by alexx View Post
... Are you sure I don't also need another program like iTunes?...
This is my MeGui64 qaac folder:

Code:
 Directorio de C:\Portable\MeGUI64\tools\qaac
27/09/2019  15:00    <DIR>          QTfiles64
11/12/2016  21:37               507 install.txt
14/10/2013  17:20            68.096 libsoxconvolver.dll
20/03/2018  15:45           268.288 libsoxr.dll
27/07/2020  13:58             4.372 makeportable.cmd
02/10/2020  12:50         2.017.280 qaac.exe
02/10/2020  12:50         1.908.736 refalac.exe
You can install the full iTunes or follow the 2º option in install.txt to obtain the portable folder QTfiles64 needed.

I recommend use this old version:
iTunes 12.9.3 (64-bit)
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 28th March 2021 at 11:26. Reason: add link to iTunes version
tebasuna51 is offline   Reply With Quote
Old 28th March 2021, 14:59   #9118  |  Link
chronis
Registered User
 
Join Date: Apr 2019
Posts: 20
Quote:
Originally Posted by tebasuna51 View Post
You can install the full iTunes or follow the 2º option in install.txt to obtain the portable folder QTfiles64 needed.

I recommend use this old version:
iTunes 12.9.3 (64-bit)
Thanks again, I managed to get it installed. However, I'm finding that the CVBR option does not produce a file with the targeted bitrate. When setting 128kbps as the target, the output is 104kbps. To get 128kbps, I have to set the target to 160kbps. Is this normal?
chronis is offline   Reply With Quote
Old 28th March 2021, 22:33   #9119  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,890
Quote:
Originally Posted by alexx View Post
Is this normal?
No, maybe is a very compressible audio (without high frequencies) and use less bitrate than preview.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 8th April 2021, 21:47   #9120  |  Link
Hotpocketdeath
Registered User
 
Join Date: Sep 2005
Posts: 57
Hello all,

Sorry in advance if this was answered already.

I've started dabbling with some 4K HDR10 movies and found MeGUI doesn't seem to be handling them properly. The color output looked dull and washed out.

Did some quick research and found some info that makes it seem as though the source isn't be treated as a full 10-bit source.

Is MeGUI even capable of handling these movies? I'm trying out another encoder, Fastflix, that seems to have been written primarily to deal with this issue.
Hotpocketdeath is offline   Reply With Quote
Reply

Tags
megui

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:44.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.