vaise 340 Posted August 31, 2019 Posted August 31, 2019 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.
Happy2Play 9780 Posted August 31, 2019 Posted August 31, 2019 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. So the issue has to be raised with ffmpeg as we are dependent on information provided by them.
rbjtech 5284 Posted August 31, 2019 Posted August 31, 2019 (edited) 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 August 31, 2019 by rbjtech
vaise 340 Posted August 31, 2019 Author Posted August 31, 2019 i did this with mediainfo cli. I was just hoping emby could do it, Sometime for the future maybe.
rbjtech 5284 Posted August 31, 2019 Posted August 31, 2019 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.
vaise 340 Posted August 31, 2019 Author Posted August 31, 2019 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. 1
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now