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 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th August 2023, 18:27   #1  |  Link
ultradj83
Registered User
 
Join Date: May 2016
Posts: 4
Workflow to add a AAC compatibility track to MKV files

Dears,
I have 361 MKV files organized in a Artist / Title folder tree.
Such files usually have DTS or AC3 or LPCM or AAC audio tracks.
For those who don't have a AAC track, I need to add it to avoid compatibility issues with some players.

I'm in difficult in determining an automatic workflow for these.

Regards
ultradj83 is offline   Reply With Quote
Old 30th August 2023, 14:29   #2  |  Link
Kisa_AG
Registered User
 
Join Date: Sep 2005
Location: Moscow, Russia
Posts: 66
Quote:
Originally Posted by ultradj83 View Post
I'm in difficult in determining an automatic workflow for these.
Hello!

There is something very similar to what you are looking for in MediaInfo CLI help:

Quote:
Batch Processing Example

If a file C:\video\USA Holiday.mpg contains AC-3 audio, then this may be determined and used in the following C:\conversion.bat called using:

C:\conversion.bat C:\video\USA Holiday.mpg

---conversion.bat--------------------------------------------------
@echo off
: Get the codec
C:\Programs\mediainfo_cli\mediainfo.exe --Inform=Audio;%%Codec%% %1 > C:\value.txt
: Read it
for /f "tokens=*" %%A in ('type C:\miresult.txt') do set myVar=%%A
: Test for AC-3
if ".%myvar%" == ".AC-3" goto :AC3
: non-AC-3 processing follows
ffmpeg.....
goto :exit
:AC3
: AC-3 processing follows
ffmpeg....
:exit
---------------------------------------------------------------------
Hope this helps.
Kisa_AG 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 16:43.


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