VideoHelp Forum
+ Reply to Thread
Results 1 to 7 of 7
Thread
  1. Hi.

    I have 100s of video files.

    I'd like to have a tool that shows me (in a list for example) the number of audio tracks (or the specific audio tracks) of all the video files at the same time.

    Any ideas how I can accomplish that?
    Quote Quote  
  2. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    A batch script using MediaInfo command line outputting/piped to a text file?

    Scott
    Quote Quote  
  3. Some GUIs can do it also, including probably MediaInfo.
    Quote Quote  
  4. Originally Posted by Cornucopia View Post
    A batch script using MediaInfo command line outputting/piped to a text file?

    Scott
    No need to use a script for a simple and not predefined or filtered list. Window GUI allows to browse all files in a folder including sub directories. Then created list can be exported to i.e. txt, html or csv file.
    Quote Quote  
  5. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    If I understand you correctly, this works for me. You can also list other audio data by adding other %%{items}%%. You just need to drag one item and drop on this .CMD file in order to clear the Tracks.txt file automatically instead of manually clearing or deleting the file.

    Code:
    ::echo off
    chcp 1252
    set SDL_AUDIODRIVER=directsound
    for %%a in ("%~dpnx1") Do (
    cd %%~dpa
    @echo. > "%%~dpa_Tracks.txt"
    )
    for %%a in (*.mp4,*.mpg,*.flv) Do (
    echo %%~dpnxa >> "%%~dpa_Tracks.txt"
    MediaInfo.exe "--Output=Audio;%%Channel(s)%%" "%%~dpnxa" >> "%%~dpa_Tracks.txt"
    @echo. >> "%%~dpa_Tracks.txt"
    )
    Yields the following quick and dirty:


    C:\Users\Bud\Desktop\20SecXInstagram.mp4
    2

    C:\Users\Bud\Desktop\Wham_Last Christmas.mp4
    2
    Quote Quote  
  6. Yet another way: use ffastrans. Your Workflow would look like this (i opened the settings of the "Generate Text File Node" so you see how i set this:
    Image
    [Attachment 59022 - Click to enlarge]


    Of course the "monitor Folder" Component is set up to watch the subfolder structure where your videos are.
    In the generated text file you see this:

    C:\temp\Sony_MXF.mxf;Tracks: 4; Channels: [2,2,2,2]
    C:\temp\PXL_20210514_111131810.mp4;Tracks: 1; Channels: [2]

    Quote Quote  
  7. Thanks everyone for their support & effort.
    I believe Mediainfo is a good solution if I set the view to Sheet! : )
    Image
    [Attachment 59046 - Click to enlarge]
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!