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 22nd April 2024, 01:36   #41  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
The rest of encoders have diferent behaviour, sometimes show error or say nothing or for instance read the mask but ignore it like oggenc2:

Quote:
WARNING: Unknown WAV surround channel mask: 165391
blindly mapping speakers using default SMPTE/ITU ordering.
Then only some channel layouts can be encoded safely:

Code:
NumCh MaskCh  Name       Present Channels                  qaac  nero  fdk.  ffm.  opus  ogg
----- ------  ---------- --------------------------------- ----  ----  ----  ----  ----  ----
  3        7  3.0        FL FR FC                            S     S     S     S     S     S  
  4      263  4.0        FL FR FC BC                         S     S     S     S     -     -  
  4       51  quad       FL FR BL BR (SL SR)                 S     S     -     S     S     S  
  5       55  5.0        FL FR FC BL BR (SL SR)              S     S     S     S     S     S  
  6       63  5.1        FL FR FC LF BL BR (SL SR)           S     S     S     S     S     S  
  6      311  hexagonal  FL FR FC BL BR BC (SL SR)           S     -     -     -     -     -  
  7      319  6.1(back)  FL FR FC LF BL BR BC (SL SR)        S     S     -     -     S     S  
  7     1591  7.0        FL FR FC BL BR SL SR                S     -     -     -     -     -  
  8      255  7.1(wide)  FL FR FC LF BL BR FLC FRC (SL SR)   S     S     S     -     -     -  
  8     1599  7.1        FL FR FC LF BL BR SL SR             S     -     S     S     S     S  
  8     1847  octagonal  FL FR FC BL BR BC SL SR             S     -     -     -     -     -
Like we can see the qaac encoder have more options (and best quality for me)
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 22nd April 2024, 09:35   #42  |  Link
Kurt.noise
Registered User
 
Join Date: Nov 2022
Posts: 31
Thanks for your tests Tebasuna.

You did them with wav as source, right ? because LWLibavAudioSource does not support some multichannel lossy format (7.1 eac3 for instance)
Kurt.noise is offline   Reply With Quote
Old 22nd April 2024, 21:05   #43  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
LWLibavAudioSource can support 7.1 eac3 and work recoding them to flac with MeGUI 6666, but the channel mask is the default, the same for 8w341.eac3 and for 8w3D.eac3.

Without recognize the channelmask detected by LWLibavAudioSource:
Attached Images
 
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 26th April 2024, 09:48   #44  |  Link
Kurt.noise
Registered User
 
Join Date: Nov 2022
Posts: 31
https://github.com/Kurtnoise-zeus/me.../tag/6666.2604

Please, report any issues regarding audio transcoding in this release. Probably, that needs to be polished here and there. Enjoy.
Kurt.noise is offline   Reply With Quote
Old 26th April 2024, 18:38   #45  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
Sorry, but recoding the attached 4 ac3's, with different channel mask, output the same default channelmask.
Seems the WAVE_FORMAT_EXTENSIBLE header is not sended to ffmpeg when do:
ffmpeg.exe -i - -y -acodec ac3 -ab 384k "4_3.1.ac3"

About flac encode:
Quote:
[Information] [26/04/2024 17:47:36] Job command line: C:\Portablz\MeGUI_66\tools\flac\flac.exe --force --force-raw-format --endian=little --sign=signed -5 - -o "C:\tmp\8w3D.flac" --channels=8 --bps=24 --sample-rate=48000
If you use --force-raw-format for flac encode the channelmask is ignored, only pcm samples are sended.
That command line is used before than flac support --ignore-chunk-sizes parameter or w64/rf64 headers

Use: - --ignore-chunk-sizes --silent -o "X.flac"
Or better use w64/rf64 header to avoid some warnings of flac:

Quote:
#### Encoder StdErr ####
INFO: Make sure you know what you're doing when using --ignore-chunk-sizes.
Improper use can cause flac to encode non-audio data as audio.
-: WARNING: 'data' chunk has non-zero size, using --ignore-chunk-sizes is probably a bad idea
-: INFO: hit EOF with --ignore-chunk-sizes, got 958464 samples
Tested with BeHappy and Flac 1.4.3 and work fine.
Attached Files
File Type: 7z ac3_4c.7z (184.2 KB, 11 views)
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 11th May 2024, 10:32   #46  |  Link
Kurt.noise
Registered User
 
Join Date: Nov 2022
Posts: 31
Hi,

Back from vacations...

Quote:
Originally Posted by tebasuna51 View Post
Sorry, but recoding the attached 4 ac3's, with different channel mask, output the same default channelmask.
Which output format did you select ? which nb channels did you select as output ?

Will fix the remaining issues you've listed. Thanks again.
Kurt.noise is offline   Reply With Quote
Old 11th May 2024, 21:18   #47  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
Quote:
Originally Posted by Kurt.noise View Post
Which output format did you select ? which nb channels did you select as output ?
Only AC3 to AC3 without modify nothing, to avoid problems on encoders.

When you modify the flac encode we can use also it, with the best performance preserving the channelmask.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 14th May 2024, 13:10   #48  |  Link
Kurt.noise
Registered User
 
Join Date: Nov 2022
Posts: 31
Guys, lets try latest release : https://github.com/Kurtnoise-zeus/me.../tag/6666.1405
Kurt.noise is offline   Reply With Quote
Old 17th May 2024, 12:19   #49  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
Thanks Kurt.

- Now the flac encodes preserve fine the channelmask with the simple command line, do you send W64/RF64 headers or check if size > 4 GB to add the parameter --ignore-chunk-sizes ?

- Direct ac3 encodes preserve also the channelmask but I have a doubt, recoding a 3.1 ac3 the relevant log lines show:
Code:
--[Information] [17/05/2024 11:55:00] MediaInfo
---[Information] File: C:\tmp\wav\4_3.1.ac3
----[Information] ChannelLayout: L R C LFE
...
--[Information] [17/05/2024 11:55:03] AviSynth script
---[NoImage] LoadPlugin("C:\Portablz\MeGUI_66\tools\lsmash\LSMASHSource.dll")
---[NoImage] LWLibavAudioSource("C:\tmp\wav\4_3.1.ac3", drc_scale=0)
---[NoImage] # Detected Channels: 4
---[NoImage] # Detected Channels Layout: L R C LFE
---[NoImage] cm=GetChannelMask(last)
---[NoImage] # Detected Channel Mask: cm=15
---[NoImage] # Applied Channel Mask
---[NoImage] SetChannelMask("15")
---[NoImage] 32==Audiobits(last)?ConvertAudioTo24bit(last):last
---[NoImage] return last
...
--[Information] [17/05/2024 11:55:04] MediaInfo
----[Information] ChannelLayout: L R C LFE
The output is correct, but for what you SetChannelMask("15") if it's already correct?:
cm=GetChannelMask(last)
# Detected Channel Mask: cm=15

I saved the precedent avs and I try encode it:
Code:
--[Information] [17/05/2024 12:22:42] MediaInfo
---[Information] File: C:\tmp\wav\0new_avsac3.avs
---[Information] AVS input file detected. Getting media information from AviSynth.
----[Information] ChannelsString: 4 channels
...
--[Information] [17/05/2024 12:22:45] AviSynth script
---[NoImage] Import("C:\tmp\wav\0new_avsac3.avs")
---[NoImage] # Detected Channels: 4
---[NoImage] # Detected Channels Layout:
---[NoImage] cm=GetChannelMask(last)
---[NoImage] # Detected Channel Mask: cm=3
---[NoImage] # Applied Channel Mask
---[NoImage] SetChannelMask("3")
---[NoImage] 32==Audiobits(last)?ConvertAudioTo24bit(last):last
---[NoImage] return last
...
--[Information] [17/05/2024 12:22:46] MediaInfo
----[Information] ChannelLayout: L R C Cb
1) MediaInfo can't extract the ChannelLayout from an avs
2) # Detected Channel Mask: cm=3 can't be obtained from cm=GetChannelMask(last) it's "15"
3) Seems apply stereo default L R, I don't know for what with 4 channels
4) ffmpeg ignore that channelmask and apply the default for 4 channels 4.0 instead the correct 3.1

Seems you trust in MediaInfo and ignore the cm=GetChannelMask(last)
I think you must trust in cm=GetChannelMask(last) unless it is invalid.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 17th May 2024, 14:42   #50  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
To know if a channelmask is valid for the Detected channels I can use:
Code:
cm = GetChannelMask(last)
nc = AudioChannels(last)
cm0 = cm
nc0 = 0  #AudioChannels
for (i=1, 18) {
  nc0 = nc0 + cm0 % 2
  cm0 = int(cm0 / 2)
}
if (nc0 != nc ) {
  cm = Select(nc, 3, 4, 3, 7, 263, 55, 63, 319, 1599)
  SetChannelMask(String(cm))
}
If it's invalid (nc0 != nc ) we select the default for the Detected channels
__________________
BeHappy, AviSynth audio transcoder.

Last edited by tebasuna51; 17th May 2024 at 14:45.
tebasuna51 is offline   Reply With Quote
Old 19th May 2024, 07:38   #51  |  Link
Kurt.noise
Registered User
 
Join Date: Nov 2022
Posts: 31
Right, I missed avs input part...I'll check out. It's stereo by default when nothing is found.

Quote:
do you send W64/RF64 headers or check if size > 4 GB to add the parameter --ignore-chunk-sizes ?
w64 is sent but I didn't update the settings for 4+Gb size.
Kurt.noise is offline   Reply With Quote
Old 19th May 2024, 08:20   #52  |  Link
edison
Registered User
 
Join Date: Dec 2005
Posts: 108
The updater told:
Cannot use update server http://megui.org/auto/stable/. Reason: Update XML is invalid

How can I fix this problem?
edison is offline   Reply With Quote
Old 19th May 2024, 09:13   #53  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
Quote:
Originally Posted by Kurt.noise View Post
w64 is sent but I didn't update the settings for 4+Gb size.
If sent w64 header is OK, you not need check the size.

Quote:
Originally Posted by edison View Post
The updater told:
Cannot use update server http://megui.org/auto/stable/. Reason: Update XML is invalid

How can I fix this problem?
No problem here, BTW never use the stable server with MeGUI 6666, it have very old software versions. Also the development server need changes.

Help us checking the actual versions of software used from here:
https://forum.doom9.org/showthread.p...82#post1981982
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 19th May 2024, 13:38   #54  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
About the software used by MeGUI here is a list of actual versions, and links to last versions.
In the folder ...\update_cache there are the actual versions, if you have troubles with a tool try replace it with last version (in ...\tools folders) and comment if work fine now.

Code:
MeGUI_6666-14/05/2024      Last    Date      Download
-------------------------  -----   --------  ----------------
SYSTEM
megui-core-2944            MeGUI
megui-data_2443            MeGUI
megui-libs-2847            MeGUI
megui-update_2680          MeGUI
redist-4-64                MeGUI
mediainfo-18.05            24.04   20240418  https://mediaarea.net/es/MediaInfo/Download/Windows

DEMUX-DECODE
dgindexnv-250-231115       255     20240411  https://www.rationalqm.us/dgdecnv/binaries/
dgmpgdec-2.0.0.8           3.0.0.0 20240402  https://www.rationalqm.us/dgmpgdec/
eac3to-3.36-32             3.51    20240312  https://www.rationalqm.us/eac3to/
ffmpeg-5.0-64              7.0     20240518  https://github.com/BtbN/FFmpeg-Builds/releases
pgcdemux_1.2.0.5           last know 2014    https://www.videohelp.com/software/PgcDemux

AVISYNTH
avisynth-plugin-13-64      many plugins      pending check
avisynthplus-3.5.1-64      3.7.3   20240131  https://forum.doom9.org/showthread.p...98#post1909698
ffms2-230707-64            r2390   20240306  https://codeberg.org/StvG/ffms2/releases
lsmash-231117-64           r1194   20240408  https://github.com/HomeOfAviSynthPlu...Works/releases

AUDIO
besplit-0.9b8              last know 2005    https://www.videohelp.com/software/Besplit
fdk-aac 0.6.3              1.0.6   20240510  https://www.mediafire.com/file/w2o5fmp2mmypuhg
flac-1.4.3-64              1.4.3   20230622  https://ftp.osuosl.org/pub/xiph/releases/flac/
lame-3.100-64              3.100.1 20200908  https://www.rarewares.org/mp3-lame-bundle.php
oggenc2.87-aoTuVb6.03_x64  2.88    20200817  https://www.rarewares.org/ogg-oggenc.php
opus-0.2.29-230614-64      0.2-34  20231211  https://www.videohelp.com/software/OpusTools
qaac-2.80-64               2.82    20240322  https://github.com/nu774/qaac/releases
NeroAacEnc 1.5.4.0         last know 2010    https://www.videohelp.com/software/Nero-AAC-Codec

VIDEO
vsrip_1007                 last know 2011    https://www.videohelp.com/software/VSRip
x264-3164-64               3191    20240514  https://www.videohelp.com/software/x264-Encoder
x265-3.5+104-64            v3.6+12 20240511  http://msystem.waw.pl/x265/
xvid-1.4.0-64              ok for me

MUXERS
avi-mux_gui-1.17.8.3       last know 2010    https://www.videohelp.com/software/AVIMux-GUI
haali_2859                 last know 2013    https://www.videohelp.com/software/Haali-Media-Splitter
mkvtoolnix-80.0.0-64       84.0    20240428  https://mkvtoolnix.download/windows/releases/
mp4box-2.3-DEV-rev349-64   2.4     20240417  https://www.videohelp.com/software/MP4Box
tsmuxer-20230319-32                20240512  https://github.com/justdan96/tsMuxer/releases
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 19th May 2024, 18:25   #55  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
I'm not a expert about video AviSynth plugins but maybe someones are obsolete. I let to video experts suggest some changes.

About audio AviSynth plugins:

- BassAudio and NicAudio like decoders are obsolete, we have lsmash and ffms2 for audio/video decoders.
- Timestretch is a internal fuction of AviSynth 2.6 and is included with Avs+ releases, we don't need the external plugin.
- AudioLimiter don't have a 64 bit version but we can use instead the http://avisynth.nl/index.php/Soxfilter
Then only the SoxFilter v2.2 20240104 must be included for audio management.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 20th May 2024, 13:55   #56  |  Link
Kurt.noise
Registered User
 
Join Date: Nov 2022
Posts: 31
I would pick up ffmpeg binaries from here instead of https://github.com/BtbN/FFmpeg-Builds/releases

Libraries used in these builds are more updated than the ones from BtbN. No difference for megui though.
Kurt.noise is offline   Reply With Quote
Old 20th May 2024, 23:54   #57  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
No problem, is the other repository recommended in ffmpeg web. The essentials build is enough most the times.
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Old 21st May 2024, 09:08   #58  |  Link
tormento
Acid fr0g
 
tormento's Avatar
 
Join Date: May 2002
Location: Italy
Posts: 2,616
Quote:
Originally Posted by Kurt.noise View Post
I would pick up ffmpeg binaries from
Btbn releases shared ffmpeg too, while Gyan builds them on major release only. Plus Gyan release them once a week (almost) while Btbn releases almost everyday.
__________________
@turment on Telegram
tormento is offline   Reply With Quote
Old 21st May 2024, 10:49   #59  |  Link
Kurt.noise
Registered User
 
Join Date: Nov 2022
Posts: 31
Quote:
Originally Posted by tormento View Post
while Gyan builds them on major release only. .
nope...there are also the git master builds.
Kurt.noise is offline   Reply With Quote
Old 21st May 2024, 12:42   #60  |  Link
tebasuna51
Moderator
 
tebasuna51's Avatar
 
Join Date: Feb 2005
Location: Spain
Posts: 6,983
Maybe we can try also x265 with AVS input: https://github.com/Patman86/x265-Mod-by-Patman/releases
__________________
BeHappy, AviSynth audio transcoder.
tebasuna51 is offline   Reply With Quote
Reply

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 06:11.


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