Log in

View Full Version : dmMediaConverter v2.4.1


Pages : 1 2 3 4 [5] 6

manolito
12th January 2023, 07:59
Hi!
Just to be clear, we are talking about Bulk mode, right?
Thanks!

Sorry, no we donīt. I have never used Bulk Mode, I simply have no use for it...


Cheers
manolito

mdalacu
12th January 2023, 09:27
Sorry, no we donīt. I have never used Bulk Mode, I simply have no use for it...


Cheers
manolito

A..ok. Auto gain in bulk mode was requested some posts up. It basically normalize all the audio files and you can put an offset to it if you want.

Regarding chapters i will think of something...
Until then you can edit an text file and add the metadata to the output file.

The file should be formated like the one from attachment.
Addit to source files and then put in "More" at "Other Out", "map_chapters 1" Where 1 is the index of the source file, the metadata txt file that you add it.
It is convoluted, i know.

mdalacu
12th January 2023, 16:09
I have a small request:

When batch transcoding, would it be possible to set "autogain" so every audio is normalized?

Thanx for considering !

Hi. Could you test the requested functionality and provide some feedback please?
Use the file from a couple of posts up.
Thanks.

manolito
13th January 2023, 12:23
Regarding chapters i will think of something...
Until then you can edit an text file and add the metadata to the output file.

The file should be formated like the one from attachment.
Addit to source files and then put in "More" at "Other Out", "map_chapters 1" Where 1 is the index of the source file, the metadata txt file that you add it.
It is convoluted, i know.

Thanks, but your attachment has not been approved so far. Please correct me if I am wrong, but AFAIK FFmpeg uses a very different method to name chapter points than most othere methods I am aware of.

The FFmpeg chapter points are based on frame numbers while all other methods I am aware of are based on absolute time codes. This makes the FFmpeg method hard to use, the chapter point values will change whenever source and target fps are not identical, and for variable frame rate clips this is a total nightmare.

The other methods I am aware of use absolute time stamps for the chapters which are independent from the frame rate. Much easier to handle.

MkvToolNix can use either fixed chapters at a defined time distance, or it can use chapter files in either the OGM or the XML format. For my needs the simple OGM format is all I need.

So I think that you should not waste any time on implementing chapters in dmMediaConverter, use the existing implementations instead...

Cheers
manolito

mdalacu
13th January 2023, 14:15
Thanks, but your attachment has not been approved so far. Please correct me if I am wrong, but AFAIK FFmpeg uses a very different method to name chapter points than most othere methods I am aware of.

The FFmpeg chapter points are based on frame numbers while all other methods I am aware of are based on absolute time codes. This makes the FFmpeg method hard to use, the chapter point values will change whenever source and target fps are not identical, and for variable frame rate clips this is a total nightmare.

The other methods I am aware of use absolute time stamps for the chapters which are independent from the frame rate. Much easier to handle.

MkvToolNix can use either fixed chapters at a defined time distance, or it can use chapter files in either the OGM or the XML format. For my needs the simple OGM format is all I need.

So I think that you should not waste any time on implementing chapters in dmMediaConverter, use the existing implementations instead...

Cheers
manolito

Hi!
This was in atachment:

;FFMETADATA1
[CHAPTER]
TIMEBASE=1/1000000000
START=0
END=1200000000
title=TitleXXX
[CHAPTER]
TIMEBASE=1/1000000000
START=1200000000
END=25500000000
title=title2
[CHAPTER]
TIMEBASE=1/1000000000
START=25500000000
END=60200000000
title=title3

So, it is time based in ffmpeg, no worry here.
As far as i can see ffmpeg does not support sub chapters...Chapters in chapters. Is something that is used in real world?
Another thing that does not make sense for me is end time of a chapter.
Can chapter be interlaced and not sequential?
Thx

mdalacu
17th January 2023, 14:59
I do need chapters to make up for some stupid players which provide no way to navigate within longer clips.

Cheers
manolito

Hi manolito.
I have implemented a basic chapter editor.
Please test it an tell me how it fits your workflow. Is it any good?
You can
1. Drop chapter information
2. Copy chapters from another file or the same file
3. Manual add chapters or import them from a source file and than edit them.
FFMPEG does not support sub-chapters.

Just redownload dmMediaConverter.exe from here:
https://drive.google.com/file/d/1g93HGhtJWNc4pr4w_fIQ6LA-DeYLf6jh/view?usp=sharing

Thank you.

manolito
18th January 2023, 13:00
Hi Marius,

spent some time this morning with your latest test version, a little rough at the edges, but much potential... :D

I did not test the first option "Drop Chapters Information". Which format does this option expect for the chacters?

The second option did not do much for my needs, too.

The last option "Manual Add Chapters" is probably the one I need. Scrolling through source video and select chapter points visually is very useful and works well. The feature I miss is a very simple option "Create Chapter every XX minutes". Should be easy to add such an option.


Otherwise there are some stability issues, it was easy to crash the software by clicking an option which was not supported in this mode. But the worst what happened was that the software shut itself down, no corrupted HDD or worse.

Also a few times after the conversion had finished, the software shut itself down. But the conversion result was fine, so I am not sure if this new behavior is intentional...

One cosmetic thing I noticed was an incomplete chapter result in MediaInfo. The chapter times were displayed, but the fields for the chapter numbers were empty. No big deal.


I believe this chapters feature will be very useful, thanks again.

Cheers
manolito

mdalacu
18th January 2023, 15:47
Hi Marius,

spent some time this morning with your latest test version, a little rough at the edges, but much potential... :D

I did not test the first option "Drop Chapters Information". Which format does this option expect for the chacters?

The second option did not do much for my needs, too.

The last option "Manual Add Chapters" is probably the one I need. Scrolling through source video and select chapter points visually is very useful and works well. The feature I miss is a very simple option "Create Chapter every XX minutes". Should be easy to add such an option.


Otherwise there are some stability issues, it was easy to crash the software by clicking an option which was not supported in this mode. But the worst what happened was that the software shut itself down, no corrupted HDD or worse.

Also a few times after the conversion had finished, the software shut itself down. But the conversion result was fine, so I am not sure if this new behavior is intentional...

One cosmetic thing I noticed was an incomplete chapter result in MediaInfo. The chapter times were displayed, but the fields for the chapter numbers were empty. No big deal.


I believe this chapters feature will be very useful, thanks again.

Cheers
manolito

Hi! Thank you for testing this!
Drop means that ffmpeg will not do the default behavior and copy chapter information from the first source file, but discard all chapters, basically output file will have no chapters information.
Please redownload from the same source and test it again, if this stability of the software is ok now.
I will think of something in the following weeks about adding this option to add chapters every X seconds.
There is no field in ffmpeg regarding chapter number, it is done automatically by ffmoeg.
Thanks and waiting four your feedback. ;)

manolito
19th January 2023, 14:32
Hi! Thank you for testing this!
Drop means that ffmpeg will not do the default behavior and copy chapter information from the first source file, but discard all chapters, basically output file will have no chapters information.


Thanks for the clarification, I completely misinterpreted the meaning of this option. When I saw the word "Drop" I saw it as "Drag and Drop" and looked for information how to take chapter information from a separate file and drop it on the "Drop" field. Sorry for my misinterpretation.

Otherwise the previous instability has been fixed, thanks. I believe that the last "Manual Add Chapters" could be simplified a little bit. IMO chapter end points should be omitted, a chapter always ends when the next chapter begins or EOF is reached. And the "Chapter Name" field could be populated automatically with something like "Chapter 01" where the chapter number is generated automatically.


Cheers
manolito

ReinerSchweinlin
23rd January 2023, 13:17
Hi. Could you test the requested functionality and provide some feedback please?
Use the file from a couple of posts up.
Thanks.

Hi,

sorry, mail notification does not work, so I did see the post just now...
I will check and get back :)

Thanx!
Regards

mdalacu
23rd January 2023, 17:03
Thanks for the clarification, I completely misinterpreted the meaning of this option. When I saw the word "Drop" I saw it as "Drag and Drop" and looked for information how to take chapter information from a separate file and drop it on the "Drop" field. Sorry for my misinterpretation.

Otherwise the previous instability has been fixed, thanks. I believe that the last "Manual Add Chapters" could be simplified a little bit. IMO chapter end points should be omitted, a chapter always ends when the next chapter begins or EOF is reached. And the "Chapter Name" field could be populated automatically with something like "Chapter 01" where the chapter number is generated automatically.


Cheers
manolito
Hi Manolito! :-)
I will not remove END times column but it is not required to be completed. The app will do it automatically.
I have added the option to auto add chapter names.
If you insert new chapters, since the list is sorted, chapter names could become mangled. So right click on the list and choose "Remove chapter names" and then choose "Auto complete chapter names" and all will be in proper order.
Also, there you will find two new functions. ;)
The beauty of it is that all of this can be use in Bulk mode!
Please, test it and provide me some much appreciated feedback.
Thank you!
Just redownload the exe file.

mdalacu
23rd January 2023, 17:09
Hi,

sorry, mail notification does not work, so I did see the post just now...
I will check and get back :)

Thanx!
Regards

Hey! No problem! :-)
Waiting for your feedback ;)
Thank you!

manolito
23rd January 2023, 23:39
Hi Marius,

so far I only had time for a couple of test conversions using my preferred mode of one chapter every 300 or 360 seconds (every 5 or 6 minutes), and this worked perfectly for a couple of source files. Output was either MKV or MP4, no problems with either of these formats.

I believe that this version is a winner, IMO ready for prime time. Maybe others will find some issues, but for me it is time to remove MkvToolNix from my standard conversion chain.


Thank you so much from a happy customer.

Cheers
manolito

ReinerSchweinlin
25th January 2023, 08:28
Hey! No problem! :-)
Waiting for your feedback ;)
Thank you!
I took a DVD out of the shelf with a few audiotracks on them, commentary being very low on volume and AC3 Formats. Good candidate for a test. So tossed it into batch mode window.

All went well. Scanning the Audio Tracks takes a little, after that the job is added to the qeue and is good to go and finishes as expected:
https://forum.doom9.org/attachment.php?attachmentid=18299&stc=1&d=1674631436

I was wondering about the speed, it was roughly 9x realtime on a 1950 Threaripper with a SATA SSD - with the video simply copied and three AC3 Audio Streams being converted to AAC. This could be faster I guess, but if any, thats an ffmpeg issue and at the end it doesnīt matter a lot. Its working :)

Thanx for this great addition !! It makes batch encoding even more useful on your nice tool :)

I just got a new GEN30 Nvidia Card and was toying with the NVENC Encoders. I am used to NVENCC user interfaces and options - not sure about the ffmpeg options, which I beleive are different syntax and settings. Could you take a look at the dropdown options for nvenc encoding ? AFAIK the options listed are outdated.

Thanx!

ReinerSchweinlin
25th January 2023, 10:26
I did prepare a preset for batch encoding with x264 set to Q=23. While encoding, the status line shows "Q=28". Some mixup with my ffmpeg versions?
https://forum.doom9.org/attachment.php?attachmentid=18300&stc=1&d=1674638634

Addition: Checked the resulting file with mediainfo - it reports Q crf=23 .....

Name=V. Dimension20
V_CB_Encoder_index=0
V_CB_Framerate_index=0
V_RG_Enc_Type_index=0
V_TB_RF_position=23
V_ChkB_2pass_checked=0
V_ChkB_Turbo1P_checked=0
V_h264_Preset_index=8
V_h264_Tune_index=0
V_h264_Profile_index=0
V_h264_Level_index=0
V_h264_Params_text=
V_SE_Bitrate_Value=800
V_Filter=scale=-2:720
PS_ChkB_Deinterlace_Checked=0
PS_ChkB_Deshake_Checked=0
PS_ChkB_Grayscale_Checked=0
PS_ChkB_Crop_Checked=0
PS_SE_Crop_UP_Value=0
PS_SE_Crop_DOWN_Value=0
PS_SE_Crop_LEFT_Value=0
PS_SE_Crop_RIGHT_Value=0
PS_ChkB_Scale_Checked=1
PS_SE_Scale_Height_Value=720
PS_SE_Scale_Width_Value=-2
PS_CB_Rotate_ItemIndex=0
PS_TB_Screenshot_Position=33
PS_Edt_MoreFilters_Text=
PS_Sub_ChkB_Burn_Checked=0
PS_Sub_SG_Row=0
PS_Sub_CB_Charenc_ItemIndex=0
PS_Sub_Edt_original_size_Text=
PS_Sub_Edt_force_style_Text=
PS_WM_ChkB_Burn_Checked=0
PS_WM_SG_Row=0
PS_WM_Edt_seek_Text=
PS_WM_Edt_loop_Text=
PS_WM_SE_overlayTop_Value=0
PS_WM_SE_overlayLeft_Value=0
PS_WM_SE_scaleWidth_Value=-1
PS_WM_SE_scaleHeight_Value=-1
PS_EQ_ChkB_EQ_Checked=0
PS_EQ_TB_Contrast_Position=100
PS_EQ_TB_Brightness_Position=0
PS_EQ_TB_Saturation_Position=100
PS_EQ_TB_Gamma_Position=100
PS_EQ_TB_GammaR_Position=100
PS_EQ_TB_GammaG_Position=100
PS_EQ_TB_GammaB_Position=100
PS_EQ_TB_GammaWeight_Position=100

mdalacu
25th January 2023, 15:26
Hi Marius,

so far I only had time for a couple of test conversions using my preferred mode of one chapter every 300 or 360 seconds (every 5 or 6 minutes), and this worked perfectly for a couple of source files. Output was either MKV or MP4, no problems with either of these formats.

I believe that this version is a winner, IMO ready for prime time. Maybe others will find some issues, but for me it is time to remove MkvToolNix from my standard conversion chain.


Thank you so much from a happy customer.

Cheers
manolito
Thank you again Manolito! :-)

mdalacu
25th January 2023, 15:27
I took a DVD out of the shelf with a few audiotracks on them, commentary being very low on volume and AC3 Formats. Good candidate for a test. So tossed it into batch mode window.

All went well. Scanning the Audio Tracks takes a little, after that the job is added to the qeue and is good to go and finishes as expected:
https://forum.doom9.org/attachment.php?attachmentid=18299&stc=1&d=1674631436

I was wondering about the speed, it was roughly 9x realtime on a 1950 Threaripper with a SATA SSD - with the video simply copied and three AC3 Audio Streams being converted to AAC. This could be faster I guess, but if any, thats an ffmpeg issue and at the end it doesnīt matter a lot. Its working :)

Thanx for this great addition !! It makes batch encoding even more useful on your nice tool :)

I just got a new GEN30 Nvidia Card and was toying with the NVENC Encoders. I am used to NVENCC user interfaces and options - not sure about the ffmpeg options, which I beleive are different syntax and settings. Could you take a look at the dropdown options for nvenc encoding ? AFAIK the options listed are outdated.

Thanx!
Hi. I can not see the picture...attachment pending approval ... since this morning.

mdalacu
25th January 2023, 15:27
I did prepare a preset for batch encoding with x264 set to Q=23. While encoding, the status line shows "Q=28". Some mixup with my ffmpeg versions?
https://forum.doom9.org/attachment.php?attachmentid=18300&stc=1&d=1674638634

Addition: Checked the resulting file with mediainfo - it reports Q crf=23 .....

I think it is the difference between quantization and CRF

ReinerSchweinlin
27th January 2023, 09:39
Hi. I can not see the picture...attachment pending approval ... since this morning.
Its only a screenshot of two audiotracks, one being louder than the other :)
bottom Line: Auto gain of multiple channels in batch mode works :)

mdalacu
27th January 2023, 14:23
Its only a screenshot of two audiotracks, one being louder than the other :)
bottom Line: Auto gain of multiple channels in batch mode works :)

Great!

manolito
31st January 2023, 11:45
Hi Marius,

after testing this latest version I believe that I found a nasty little bug. Took me a while to get a grip on it... :rolleyes:

It happens whenever I encode more than 1 source file in one job, video is copied, audio is reencoded. And I create simple chapters spaced at a 6 minute distance. It does not matter which audio encoder I use. It also makes no difference if I work in normal mode or in bulk mode.

The problem always occurs when the next source file in the queue is shorter than the previous file (so it will end up with less chapter points than the previous file). In such cases the number of created chapters will be the same for the first (longer) file as the number of chapters for the next (shorter) file.

What fixes this is to change the order of the files in the queue so that the shortest files will be processed before the longer files.

I hope that my explanation is clear enough. A short screenshot video would be easier to understand, but my computer skills are no longer up to this.


Cheers
manolito

mdalacu
31st January 2023, 12:55
Hi Marius,

after testing this latest version I believe that I found a nasty little bug. Took me a while to get a grip on it... :rolleyes:

It happens whenever I encode more than 1 source file in one job, video is copied, audio is reencoded. And I create simple chapters spaced at a 6 minute distance. It does not matter which audio encoder I use. It also makes no difference if I work in normal mode or in bulk mode.

The problem always occurs when the next source file in the queue is shorter than the previous file (so it will end up with less chapter points than the previous file). In such cases the number of created chapters will be the same for the first (longer) file as the number of chapters for the next (shorter) file.

What fixes this is to change the order of the files in the queue so that the shortest files will be processed before the longer files.

I hope that my explanation is clear enough. A short screenshot video would be easier to understand, but my computer skills are no longer up to this.


Cheers
manolito
You are right and it just hit me why it behaves like this..
I will try to find an workaround since it is indeed nasty ..to solve!
Thanks for this!

mdalacu
31st January 2023, 13:21
@Manolito,
Please redownload and test the same scenario.
Does the problem persist?
Thanks!

manolito
31st January 2023, 21:42
Thanks for the new version, that was fast...

Did a few tests, clever idea to change the internal file sort order temporarily. Could not break it so far, very clever.

In normal Convert mode it can get a little confusing when after the settings for the first file are done and I load the next source file, all of a sudden the file order in the "Load File" dialog has changed. But I can live with this.

I tried to confuse the software in the standard "Convert" mode by manually changing the chapter distance for the last (longer) source file to a much higher distance between chapters so creating much less chapters. But this did not break the chapter creating for the other source files at the beginning of the queue.


Thanks very much for the quick fix... :D

Cheers
manolito

manolito
1st February 2023, 18:00
...all of a sudden the file order in the "Load File" dialog has changed.

Sorry for the alarm, it turned out that this is a one-time thing... :o

It only happens after the first start. In the "Load File" dialog you can change back the sort order to your preferred setting, the change will stick (even survive a reboot), and entering a different sort order or changing it back to the previous setting will not reintroduce the old error of skipped chapter points.

So sorry for the false alarm, everything is cool... :D

Cheers
manolito

mdalacu
1st February 2023, 18:54
Thanks for the new version, that was fast...

Did a few tests, clever idea to change the internal file sort order temporarily. Could not break it so far, very clever.

In normal Convert mode it can get a little confusing when after the settings for the first file are done and I load the next source file, all of a sudden the file order in the "Load File" dialog has changed. But I can live with this.

I tried to confuse the software in the standard "Convert" mode by manually changing the chapter distance for the last (longer) source file to a much higher distance between chapters so creating much less chapters. But this did not break the chapter creating for the other source files at the beginning of the queue.


Thanks very much for the quick fix... :D

Cheers
manolito
I am glad that fix worked!
Thank you!

ReinerSchweinlin
10th February 2023, 11:53
Great!

Audio encoding: I just noticed one thing: When encoding from a 6.1 FLAC file to AAC, the bitrate in the stream still has the original value in the resulting file. After remuxing it with mkvtoolnix, the bitrate is written correctly in the header. Its just a minor thing, maybe easy to fix.

mdalacu
10th February 2023, 19:48
Audio encoding: I just noticed one thing: When encoding from a 6.1 FLAC file to AAC, the bitrate in the stream still has the original value in the resulting file. After remuxing it with mkvtoolnix, the bitrate is written correctly in the header. Its just a minor thing, maybe easy to fix.

Can you provide an small sample file to test?
What version of ffmpeg are you using?
Thanks.

mdalacu
14th February 2023, 09:47
New version is up and published! V2.5.5
Also there is a new site:
https://sites.google.com/site/dmsimpleapps/dmMediaConverter

Changelog:
- New Chapter Editor!
You can drop or copy chapter information form another source. Also you can manaully add chapters.
Chaptes autonaming.
End times are not needed.
Autocreate chapters by divide in X parts or evenly spaced (X seconds) using an offset.
It also works in Bulk mode!
- Split - create split points from embedded chapters
- Auto gain for audio stream in Bulk mode! An offset can be applied.
- A new Output window. Some colors added for better view of errors.
- AV1 STV encoder initial support.
- New About window.
- Added Donate button. I encourage you to use it! ;) Thank you! :-)
- Some bugs fixed.


I hope you will enjoy it and please, provide feedback!
Thank you!:D

manolito
15th February 2023, 08:57
Hi Marius,

thank you so much for the latest stable version. Took the time to test it with my usual tasks, no problem whatsoever (looks pretty much identical to the previous beta version)... :cool:

I took the occasion to update my personal edition of your software to the latest version, take a look here:
https://forum.doom9.org/showthread.php?p=1979037#post1979037

This is for older hardware, 32bit only, includes the libfdk encoder by Fraunhofer (plus a few tweaks). Scroll down a few posts from this one for more details...


Thanks again and cheers
Manolito

mdalacu
15th February 2023, 19:35
Thank you Manolito![emoji846]

Sent from my EVR-L29 using Tapatalk

ReinerSchweinlin
13th April 2023, 22:12
I need some help...

I wanted to batch encode some files with multiple different audio stream, different channel counts, etc... The implemented "bitrate per channel" and autogain for all channels comes in handy.

So far, so good.

Now I wanted to use AAC HE V2 with FDK... Enabled it in the .ini file - with AAC LC its running fine...

But I canīt get it to use HE V2... Where do I put which argument in what format? I tried all format styles, it always fails..

Edit: I recall you bundled ffmpeg with FDK included.... Maybe I am mistaken and I have to get a seperate compile? If so, any hints? Since I got an AVX512 CPU - I wouldnīt mind an AVX512 compile (but this is really only a very much nice to have thingy.... wouldnīt help with Audio encoding anyway...)

manolito
14th April 2023, 04:39
Hi Reiner,

to make LibFDK work under dmMediaConverter you need to edit its INI File first. Have a look at this post by mdalacu and waybe the following posts by myself:

https://forum.doom9.org/showthread.php?p=1979042#post1979042

Good luck
Manolito

mdalacu
14th April 2023, 15:18
I need some help...

I wanted to batch encode some files with multiple different audio stream, different channel counts, etc... The implemented "bitrate per channel" and autogain for all channels comes in handy.

So far, so good.

Now I wanted to use AAC HE V2 with FDK... Enabled it in the .ini file - with AAC LC its running fine...

But I canīt get it to use HE V2... Where do I put which argument in what format? I tried all format styles, it always fails..

Edit: I recall you bundled ffmpeg with FDK included.... Maybe I am mistaken and I have to get a seperate compile? If so, any hints? Since I got an AVX512 CPU - I wouldnīt mind an AVX512 compile (but this is really only a very much nice to have thingy.... wouldnīt help with Audio encoding anyway...)

Hi! I am sorry but i don't have any ideea.
Trying to make their example just fails.
https://trac.ffmpeg.org/wiki/Encode/AAC
I have trying using one of the latest ffmpeg which has libfdk_aac without dmMediaConverter...it fails.
In dmmediaconverter you need to put this option "-profile:a aac_he_v2" in "More"..."Other Out". But it is not working.


D:\Filme\t>"D:\Programare\Lazarus\dmMediaConverter\bin\i386-win32\ffmpeg.exe" -i VID_20220713_222416.mp4 -vn -c:a libfdk_aac -profile:a aac_he_v2 -b:a 32k output.m4a
ffmpeg version 5.1.2-Jellyfin Copyright (c) 2000-2022 the FFmpeg developers
built with gcc 10-win32 (GCC) 20220324
configuration: --prefix=/opt/ffmpeg --arch=x86_64 --target-os=mingw32 --cross-prefix=x86_64-w64-mingw32- --pkg-config=pkg-config --pkg-config-flags=--static --extra-libs='-lfftw3f -lstdc++' --extra-cflags=-DCHROMAPRINT_NODLL --extra-version=Jellyfin --disable-ffplay --disable-debug --disable-doc --disable-sdl2 --disable-ptx-compression --disable-w32threads --enable-pthreads --enable-shared --enable-lto --enable-gpl --enable-version3 --enable-schannel --enable-iconv --enable-libxml2 --enable-zlib --enable-lzma --enable-gmp --enable-chromaprint --enable-libfreetype --enable-libfribidi --enable-libfontconfig --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libwebp --enable-libvpx --enable-libzimg --enable-libx264 --enable-libx265 --enable-libsvtav1 --enable-libdav1d --enable-libfdk-aac --enable-opencl --enable-dxva2 --enable-d3d11va --enable-amf --enable-libmfx --enable-ffnvcodec --enable-cuda --enable-cuda-llvm --enable-cuvid --enable-nvdec --enable-nvenc
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'VID_20220713_222416.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2022-07-13T19:24:16.000000Z
com.android.version: 10
Duration: 00:00:48.24, start: 0.000000, bitrate: 15879 kb/s
Stream #0:0[0x1](eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709, progressive), 1920x1080, 15552 kb/s, SAR 1:1 DAR 16:9, 29.68 fps, 29.75 tbr, 90k tbn (default)
Metadata:
creation_time : 2022-07-13T19:24:16.000000Z
handler_name : VideoHandle
vendor_id : [0][0][0][0]
Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 192 kb/s (default)
Metadata:
creation_time : 2022-07-13T19:24:16.000000Z
handler_name : SoundHandle
vendor_id : [0][0][0][0]
File 'output.m4a' already exists. Overwrite? [y/N] y
Stream mapping:
Stream #0:1 -> #0:0 (aac (native) -> aac (libfdk_aac))
Press [q] to stop, [?] for help
[libfdk_aac @ 000001c6ed87d6c0] Unable to set the AOT 29: Invalid config
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

manolito
15th April 2023, 04:52
To me this looks like a prime example of Newer not always being better... :D

If you do not care for 32-bit builds which work under WinXP I recommend the 64-bit builds by Shertya. The latest builds are from December 2022, get them here:

https://forum.doom9.org/showthread.php?p=1928433#post1928433

Scroll down to the lower third of the page to find the links. Download both the 64-bit versions of ffmpeg and libfdk.

On my Win7 computer this combination works perfectly.


Cheers
manolito

tebasuna51
15th April 2023, 11:24
... But it is not working.

...ffmpeg -i VID_20220713_222416.mp4 -vn -c:a libfdk_aac -profile:a aac_he_v2 -b:a 32k output.m4a
...
Stream #0:1[0x2](eng): Audio: aac (LC), 48000 Hz, stereo, fltp, 192 kb/s
...
[libfdk_aac @ 000001c6ed87d6c0] Unable to set the AOT 29: Invalid config
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Try with greater bitrate or -vbr 1

ReinerSchweinlin
16th April 2023, 16:44
Hi Manolito


to make LibFDK work under dmMediaConverter you need to edit its INI File first. ----

This I did of course, see my post. Without any parameters, libfdk runs fine with lc profile - turning on the HE and HE2 Profiles gives me trouble.

I of course also did try some different ffmpeg compiles, some of the ones you mentioned, old ones I found on my HD...


Hi! I am sorry but i don't have any ideea.
Trying to make their example just fails.
https://trac.ffmpeg.org/wiki/Encode/AAC
I have trying using one of the latest ffmpeg which has libfdk_aac without dmMediaConverter...it fails.
In dmmediaconverter you need to put this option "-profile:a aac_he_v2" in "More"..."Other Out". But it is not working.

Thanx for confirming - Just like you I put the argument in exactly that syntax in both places you mentioned - no luck.
The error I get is:

Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (flac (native) -> aac (libfdk_aac))
Stream #0:2 -> #0:2 (copy)
Press [q] to stop, [?] for help
[AVFilterGraph @ 0795b300] No such filter: '-profile:a aac_he_v2'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:1
Conversion failed!

no matter the input format - the error message always includes "no such filter".... So it looks like the argument was interpreted as a filter - thats why I thought I probably messed up some syntax first...

behaviour is the same, no matter the ffmpeg compile I use, whether I use batch or single...

thanx for your help !

ReinerSchweinlin
17th April 2023, 12:49
To me this looks like a prime example of Newer not always being better... :D

If you do not care for 32-bit builds which work under WinXP I recommend the 64-bit builds by Shertya. The latest builds are from December 2022, get them here:

https://forum.doom9.org/showthread.php?p=1928433#post1928433

Scroll down to the lower third of the page to find the links. Download both the 64-bit versions of ffmpeg and libfdk.

On my Win7 computer this combination works perfectly.


Thanx for the suggestions. I too remember that in previous versions this used to work (old installation not existing anymore, so I canīt look up how I did it in the past...).

Unfortunately, trying your linked compiles did not resolve the issue on my side.

I tried:

- enabling FDKAAC in the ini file.
- adding "-profile:a aac_he_v2" in the encode tab - or the settings "out" tab - or both....
- using the bundled ffmpeg that came with the latest windows version of dmmencoder (downloaded a few days ago).
- swapping it for several different compiles from your list, browsed the net for alterantives...

resulting in:

- FDK is being used - and as long as I donīt set any further arguments - its being used. AAC-LC working fine in al variants..
- as soon as "-profile:a aac_he_v2" is given - the jobs instantly crash with the same error message (filter not found).

Either I am missing something completely obvious - or something seems broken here.

manolito
18th April 2023, 07:48
So far I never used AAC-HE, but after you made me curious, I did try my luck. And despite my slightly crippled brain I got it workin on my first try... :p

I used Reinoīs latest 32 bit version, but I think it should work on other 64-bit versions.
(EDIT: Tested with the latest Shertya 64-bit version, works fine)
Here is what you need to do:

You already did enable FDKAAC in the INI file.

"-profile:a aac_he_v2" needs to be added under the "More" button at the lower right of the dmMediaEncodee main window.
Under the "Other OUT" tab the command "-profile:a aac_he_v2" needs to be added (without the quotes).

Do not enter the identical command into the "More" field under "Stream Settings" in the main window.

This worked for me without any issues for several files. I used "Bitrate" as well as "Constant Quality" modes, no problems whatsoever.


Good luck
manolito

ReinerSchweinlin
19th April 2023, 18:42
Thanx...

Thats exactly what I did before...

I get the same error messages like the ones in this post:
https://forum.doom9.org/showthread.php?p=1985831#post1985831

as soon as I do NOT set AAC-HE-V2 - its all fine..... FDK AAC LC is working ...

What version of DMM are u using? The latest one or yn older one or your modified "XP Build" ?

manolito
20th April 2023, 10:10
Tested again with different sources, still no problems...

I uploaded the results with all relevant information here:
Link expired...

If your audio is in any other format than stereo, see this note in the WIKI:
Note: HE-AAC version 2 only handles stereo. If you have mono, or want to down-mix to mono, use HE-AAC version 1.
In such cases you need to use the example from the file "Main Page 2.jpg".

My version of DMM is the latest official one. I just cleaned up the folder which has FFmpeg in it, I did not want to have any leftovers of the included FFmpeg version (which is the shared version). Look at the screenshot...

I think I already mentioned that I am under Win7, and this will not change any time soon.


Good luck
manolito

ReinerSchweinlin
16th May 2023, 08:25
Sorry for the late reply - I donīt get mail notifications, so I have to check manually for new responses and I am very busy at work at the moment - so I didnīt have time to investigate the issue further so far.
I appreciate your help, many thanx for aiding me! I will take a look at the issue once my schedule clears up and will get back then.

manolito
16th January 2024, 05:22
Looks like the current version 2.5.5 is no longer available for free, at least not for Windows...:mad: No idea if this is an oversight or if it was changed on purpose.

Whatever, for anyone who needs it, I still have it on my VideoHelp folder. Here is the link:

https://files.videohelp.com/u/172211/dmMediaConverter.zip


Cheers
manolito

mdalacu
19th January 2024, 06:29
Looks like the current version 2.5.5 is no longer available for free, at least not for Windows...:mad: No idea if this is an oversight or if it was changed on purpose.

Whatever, for anyone who needs it, I still have it on my VideoHelp folder. Here is the link:

https://files.videohelp.com/u/172211/dmMediaConverter.zip


Cheers
manolito

Hello manolito and a Happy New Year!
Why are you saying this, can you explain it? I haven't changed a thing on my site!
Of course it is still free.


EDIT: I have checked and indeed, the file was only visible to me since Google flag it as suspicious. It is shared from Google Drive.
I have asked for a human review of the file, this is the answer:

Google will review your file.
Someone from Google’s Trust & Safety team will review your file as soon as possible.

Meanwhile, i have posted a test version for Windows, so you can use it, v2.6.0.
Just overwrite your old exe file with it and rename it.
Look in About/Changelog for what's new. Small changes but i find them useful at least in my work flow.
As always, please, provide feedback! :-)

manolito
20th January 2024, 10:59
Thanks Marius for the prompt reply, and a Happy New Year to you, too...

I am still puzzeld about how badly Google treats their paying customers, their behavior is realy shabby. And their old motto used to be "Do no Evil". Long time ago...

Whatever, thanks for the new test version. It works well for my old conversion routines, but so far I did not test any of the new functions (simply because I never needed any of them, and I do not see the need in the future). Maybe you can tell me exactly which new funktions you want me to test...


Cheers
manolito

mdalacu
21st January 2024, 10:14
Thanks Marius for the prompt reply, and a Happy New Year to you, too...

I am still puzzeld about how badly Google treats their paying customers, their behavior is realy shabby. And their old motto used to be "Do no Evil". Long time ago...

Whatever, thanks for the new test version. It works well for my old conversion routines, but so far I did not test any of the new functions (simply because I never needed any of them, and I do not see the need in the future). Maybe you can tell me exactly which new funktions you want me to test...


Cheers
manolito

Hi!
Yes, Google is not the same as it was some years ago, unfortunately.
This new features are useful when converting media files from web ripping. Ex. episodes from Netflix which contains a lot of subtitle
and audio streams in languages that you don't need and you need to bulk converting them.
I am using like this "Keep only this subtitle streams "
default,forced,unknown,eng,rum
Or you have videos that have an external subtitle file (SRT) which does not have language id and it will automatically map unknown subtitle to your desired language.
Also if you have an AMD GPU now it can use it's AMF engine for HW encoding.
Cheers!

supersnakeyez
5th December 2024, 09:13
how can I convert an mkv file into an mp4 file? I'm trying to convert some movie files from mkv format to mp4 format

ReinerSchweinlin
5th December 2024, 11:39
MP4 in this context is a container format, such as MKV... As long as you only want to put your audio-and video streams into another container (=keep the quality, codecs, etc... the same), you can simply remux them...

set everything to copy (should be default anyway), select your new container and go for it... very fast...

some containers canīt handle every type of stream others can - MKV can do anything, is very robust, etc... MP4 cannot handle everything, but a lot... Something to keep in mind, depending on what kind of files you have.. Might work as MKV, but not as MP4. Without knowing what exactly you want to achieve and why and which files you have - this is speculation.

supersnakeyez
6th December 2024, 07:11
MP4 in this context is a container format, such as MKV... As long as you only want to put your audio-and video streams into another container (=keep the quality, codecs, etc... the same), you can simply remux them...

set everything to copy (should be default anyway), select your new container and go for it... very fast...

some containers canīt handle every type of stream others can - MKV can do anything, is very robust, etc... MP4 cannot handle everything, but a lot... Something to keep in mind, depending on what kind of files you have.. Might work as MKV, but not as MP4. Without knowing what exactly you want to achieve and why and which files you have - this is speculation.

I can't select mp4 as the new container as it only let's me select mkv

What I do is add mkv file to ADD FILES button and leave ENABLED and COPY as is. After that I click convert and it just makes another MKV file with no way to change container to MP4

manolito
6th December 2024, 13:42
This works fine here...:rolleyes:

leave ENABLED and COPY as is
Both options have to be enabled (no idea what your default status is).

Then to the lower right you need to enter a full target file name with the desired extension (MP4 in your case), then click "Run Now" under "Actions" to the far right of the program window. Works each and every time here...


Good luck
manolito