home/ralphmichel/Dokumente/LTLYM_website/assets/images mov out.csvįile "/home/ralphmichel/Schreibtisch/script_test/av-survey.py", line 68, in Īll_file_data. The error message looks like this: python3 av-survey.py -d '/home/ralphmichel/Dokumente/LTLYM_website/assets/images' -e mov -o out.csv Print(args.directory, args.extension, args.output)įile_list = glob.glob(os.path.join(file_dir, '**', '*' + args.extension), recursive=True)Īll_file_data.append(general_data + video_data + audio_data) Help = "Path to the save the metadata as a CSV") Help = "Path to a directory of AV files") ![]() scription = "Survey a directory for AV files and report on technical metadata, Video Codec and Audio Codec" How can I tweak the script so that it exports me the audio stream information, but skips the video stream and goes to the next file? import os My problem now is that Python gives me an error message when an audio file in a MOV container does not contain a video stream. You can do this using the following command in a terminal:Īll three extensions are also available in a PPA, which you can use in Ubuntu, and Ubuntu-based Linux distributions like Linux Mint.I have a Python script that I want to use to export specific mediainfo information in multiple subfolders of video and audio files. If you install the extension from source, make sure you install the python-mediainfodll dependency, as well as the file manager Python bindings ( python-nautilus for Nautilus, etc.).Īfter installing the extension, make sure you restart the file manager to get it to work. Install MediaInfo Tab extension for Nautilus, Nemo or Cajaĭownload the Nautilus, Nemo or Caja MediaInfo Tab extension from these GitHub project pages (includes DEB packages and the Python source/script):įor Caja built with Gtk2 (Ubuntu 16.04 and Linux Mint 18 without some PPA that upgrades MATE / Caja to a Gtk3 version), download the caja-mediainfo-tab-gtk2_0.1_all.deb package, while for Caja built with Gtk3 (Ubuntu 18.04 / Linux Mint 19) use the caja-mediainfo-tab_0.1_all.deb package. from MediaInfo import MediaInfo info Mediainfo (filename '/media/test.ts') infoData info.getInfo () info Mediainfo (filename '/media/test.ts', cmd '/usr/bin/ffprobe') infoData info.getInfo () info Mediainfo (filename '/media/test.ts', cmd '/usr/bin/mediainfo') infoData info. MediaInfo Tab doesn't support translations, so you'll get media information in English only right now, but this is on the todo list.Īlso see: Download Subtitles Via Right Click From File Manager Or Command Line With OpenSubtitlesDownload.py (supports Nautilus, Nemo and Caja). MediaInfo Tab used with Caja (the default MATE file manager) MediaInfo Tab used with Nemo (the default Cinnamon file manager) MediaInfo tab in Nautilus (default Gnome file manager) ![]() Here's the extension in action using Nautilus, Nemo and Caja file managers: The extension add a new tab to the file manager properties dialog (accessible by right clicking on an audio or video file and selecting Properties). MediaInfo can display information like the format, codec, frame and bit rate, encoding settings, tags (id3v2, id3v2, etc.) like the artist, album or track name, subtitles format and compression, the writing application and library, and much more. The Nautilus / Nemo / Caja MediaInfo Tab extension makes use of the MediaInfo utility, which displays technical and tag data for audio and video files. If you want to see an in-depth media information directly from your file manager, be it Nautilus, Nemo, or Caja, there's an extension for each of these file managers that implements this functionality.
0 Comments
Leave a Reply. |