Unfortunately, as noted in the prior post, FFmpeg and its sidekick FFprobe were not inclined to output the filename on the same line as its duration. That was OK: as described in another post, I had already installed and used FFmpeg for several different purposes, and I welcomed the opportunity to learn more about it. There was also the problem that this command was limited to the specified filetypes I would have preferred to obtain a listing of durations of all media files in a folder.Īfter spending a few hours trying to figure out how to do that, I decided to try FFmpeg instead. Unfortunately, some of the items in the foregoing command were not clearly explained in either such location. Presumably the syntax was mostly the same as in the Ubuntu version, and I could get some information by running mediainfo -h. One source said that, at least in 2011, there was no manual for MediaInfo’s CLI in Windows. mp3 file in a single folder: mediainfo -output=General %FileName%.%FileExtension%^|%Duration/String3%\r\n *.mp3 *.wav With that in place, I was able to run a modification of the MediaInfo command specified in the previous post to get file-by-file duration information for each. (In a Windows 7 VM, I would instead have to make sure the exiting path ended with a semicolon ( ), and then type or paste the additional path after that.) Then OK out of there and reboot. I put that MediaInfo folder in the place where I wanted it, and then added MediaInfo.exe to the system’s PATH variable. To do that, I used Win-R > SystemPropertiesAdvanced > Advanced tab > Environment Variables button > System variables > select Path > Edit > New. I unzipped the download and saw that it contained, among other things, MediaInfo.exe. I didn’t see the command-line interface (CLI) version listed among the many versions of MediaInfo on the list of official Windows downloads, and the SourceForge page had an older version, so I got it from Softpedia instead. One way to do that would be to install MediaInfo and use its command line options. A better solution might leave the files where they are, and calculate their duration there. It could take a while to copy the files in question to a separate folder, if indeed you even have enough drive space to accommodate it. Of course, video files can become voluminous, and so can MP3s if you have enough of them. I wasn’t sure which media players might offer an option to output that information to a file. If not, I could run a Linux virtual machine, or boot a different computer with a Linux live USB drive, and give it access to that folder (housed, for instance, on a different USB drive). No doubt various Windows players would do the same. In Linux, I knew Audacious would do this, at least for audio files. This post describes how I found the answer.Ī simple solution was to put copies of those files, from different folders, into a single folder, and then add that folder to a playlist in a media player that showed duration of individual files and total duration of the playlist. I wondered how long they were, individually and collectively. Graphical user interface, command line interface, or library (.dll/.so/.I had a bunch of audio files, in different folders on a Windows 10 system. View information in different formats (text, sheet, tree, HTML.) Subtitles: CEA-608, CEA-708, DTVCC, SCTE-20, SCTE-128, ATSC/53, CDP, DVB Subtitle, Teletext, SRT, SSA, ASS, SAMI. Video: MPEG-1/2 Video, H.263, MPEG-4 Visual (including DivX, XviD), H.264/AVC, H.265/HEVC, FFV1.Īudio: MPEG Audio (including MP3), AC3, DTS, AAC, Dolby E, AES3, FLAC. Tags: Id3v1, Id3v2, Vorbis comments, APE tags. Text: format, codec id, language of subtitle.Ĭhapters: count of chapters, list of chapters.Ĭontainer: MPEG-4, QuickTime, Matroska, AVI, MPEG-PS (including unprotected DVD), MPEG-TS (including unprotected Blu-ray), MXF, GXF, LXF, WMV, FLV, Real. Video: format, codec id, aspect, frame rate, bit rate, color space, chroma subsampling, bit depth, scan type, scan order.Īudio: format, codec id, sample rate, channels, bit depth, language, bit rate. A convenient unified display of the most relevant technical and tag data (shared libs version)ĬLI tool - autmoatically add in $PATH Mediainfo command lineĬontainer: format, profile, commercial name of the format, duration, overall bit rate, writing application and library, title, author, director, album, track number, date, duration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |