Bash-Script Implementation does not work properly [SOLVED]
Posted: 04 Aug 2021 06:40
Hello everybody,
I've been working on a mediainfo-Inform-template to better output certain information for different video files inside a folder. This is the template:
I used it by typing the following command on my Debian-Machine:
And this was one example output:
But when I try this with the exact same template on Windows although with a slightly different command:
I only get this output:
Does anyone know how I have to modify it to work? Since the template should (or am i wrong?) get handled by Mediainfo itself, I see no reason why the output is empty compared to me doing the same command in Debian
I've been working on a mediainfo-Inform-template to better output certain information for different video files inside a folder. This is the template:
Code: Select all
General;File-Name...............: %CompleteName%\nFile-Size...............: %FileSize/String%\nDuration................: %Duration/String%\nOverall-Bitrate.........: %OverallBitRate/String%\n
Video;Video-Codec.............: %Format/String%\nVideo-Bitrate...........: %BitRate_Maximum/String%\nVideo-Auflösung.........: %Width%x%Height%\nVideo-Size..............: %StreamSize/String%\n
Audio;Audio-Langauge 1........: %Language/String%\nAudio-Format 1..........: %Format/String%\nAudio-Codec 1...........: %CodecID%\nAudio-Bitrate 1.........: %BitRate/String%-->%SamplingRate/String%<--\nAudio-Size 1............: %StreamSize/String%\n
Text;Text-Bitrate 1..........: %Language/String%\nText-Codec 1............: %Format/String%\nText-Bitrate 1..........: %BitRate/String%\nText-Size 1.............: %StreamSize/String%\n
File_End;\n--------------------------------------------------------------------\n File X\n--------------------------------------------------------------------\n\n
Code: Select all
mediainfo --Inform=file://template.txt *.mkv
Code: Select all
File-Name...............: video1.mkv
File-Size...............: 79.0 MiB
Duration................: 1 min 36 s
Overall-Bitrate.........: 6 893 kb/s
Video-Codec.............: AVC
Video-Bitrate...........: 12.7 Mb/s
Video-Auflösung.........: 1920x1080
Video-Size..............: 71.7 MiB (91%)
Audio-Langauge 1........: English
Audio-Format 1..........: E-AC-3
Audio-Codec 1...........: A_EAC3
Audio-Bitrate 1.........: 256 kb/s-->48.0 kHz<--
Audio-Size 1............: 2.93 MiB (4%)
Audio-Langauge 1........: English
Audio-Format 1..........: AAC LC
Audio-Codec 1...........: A_AAC-2
Audio-Bitrate 1.........: 125 kb/s-->48.0 kHz<--
Audio-Size 1............: 1.44 MiB (2%)
Audio-Langauge 1........: German
Audio-Format 1..........: E-AC-3
Audio-Codec 1...........: A_EAC3
Audio-Bitrate 1.........: 256 kb/s-->48.0 kHz<--
Audio-Size 1............: 2.93 MiB (4%)
Text-Bitrate 1..........: English
Text-Codec 1............: UTF-8
Text-Bitrate 1..........: 12 b/s
Text-Size 1.............: 87.0 Bytes (0%)
Text-Bitrate 1..........: German
Text-Codec 1............: UTF-8
Text-Bitrate 1..........: 7 b/s
Text-Size 1.............: 44.0 Bytes (0%)
--------------------------------------------------------------------
File X
--------------------------------------------------------------------
Code: Select all
C:\System\Mediainfo\MediaInfo.exe --Inform=file://debug.txt *.mkv
Code: Select all
--------------------------------------------------------------------
File X
--------------------------------------------------------------------