Jump to content

Any way in emby of telling which media files have atmos sound ?


vaise

Recommended Posts

vaise

I notice mediainfo latest releases can see if they are atmos or not.

I have seen some people making batch files using a cli version of that to output to a file.

Be nice if emby new which releases had atmos sound.

Link to comment
Share on other sites

Happy2Play

With the information only appearing in the embedded title for the track I would say currently no as atmos is not a codec.  Emby does not read any existing mediainfo, it only records mediainfo provided from ffmpeg/ffprode directly to DB.  Technically it writes to nfo files also by that information is not used by Emby.

      <audio>
        <codec>truehd</codec>
        <micodec>truehd</micodec>
        <language>eng</language>
        <scantype>progressive</scantype>
        <channels>8</channels>
        <samplingrate>48000</samplingrate>
        <default>True</default>
        <forced>False</forced>
      </audio>

So Luke would have to attempt to parse the track Title and create a filter for atmos.  Assuming they all have track titles.

 

5d69c96e29e82_db.jpg

 

So the issue has to be raised with ffmpeg as we are dependent on information provided by them.

5d69d0ce7b925_info.jpg

Link to comment
Share on other sites

rbjtech

A crude windows batch script (save as .bat) to parse the output from ffprobe looking for title tag = "Atmos" and then output the filename to screen and dump to atmos.txt below ..  :)

 

Put the batch file in the root and run in a command window to scan all your MKV files - Obviously replace your location for ffprobe.exe ..

 

 

@@Echo off
setlocal ENABLEDELAYEDEXPANSION
 
if exist atmos.txt del atmos.txt
 
echo Scanning for Atmos Tag ..
echo.
 
FOR /F "delims=" %%x in ('dir /a-s /b /s *.mkv') DO (
 
"C:\Applications\RipBot264\Tools\ffmpeg\bin\ffprobe.exe" -loglevel quiet -show_entries stream_tags=title "%%x" | findstr "Atmos atmos" > nul
 
if !errorlevel! == 0 echo %%x >> atmos.txt
if !errorlevel! == 0 echo Found Atmos : %%x
)
 
.. but agree with Happy2Play - until ffmpeg/ffprobe includes a FIELD for Atmos - this is unreliable as it assumes a TAG has been set.
Edited by rbjtech
Link to comment
Share on other sites

vaise

i did this with mediainfo cli.

I was just hoping emby could do it,

Sometime for the future maybe.

Link to comment
Share on other sites

rbjtech

i did this with mediainfo cli.

I was just hoping emby could do it,

Sometime for the future maybe.

 

ok cool - could you share the script here ? - mediaInfo may have better functionality than ffprobe or it could be using tag's also .. I'd be interested to find out.

Link to comment
Share on other sites

vaise

no worries :

 

Download cli version of mediainfo and put in root of C

 

Create batch file with this :

 

C:\MediaInfoCLI\mediainfo.exe --Inform=file://template.txt M:\Movies4K\ > M:\Movies4K\audioresult.csv

 

template.txt has this :

 

General;%CompleteName%
Video;~%Format%~%Format_Profile%~%FrameRate%fps~%BitRate/String%~%Duration/String%
Audio;~%Format% %Format_Profile% %Title%~%Channels% channel(s)
File_End;\r\n
 
edit in excel.
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...