To use the script you will require:
1. Xyplorer 7.0 or later
2. FFmpeg and FFprobe. - http://ffmpeg.zeranoe.com/builds/
Any version should work. This link hosts the official Windows builds of the FFmpeg team. FFmpeg is 100% free software
Once you extract the zip file, you will find the ffmpeg.exe and ffprobe.exe in the "bin" folder
How to use:
1. Place FFmpeg.xys into the <xypath>\Data\Scripts folder
2. Create a catalog entry to load the script or make your own toolbar button
3. Select the files you want to use FFmpeg on.
4. With those files selected run the script and choose from one of the script functions
CURRENT VERSION: 0.5
Changelog:
Code: Select all
+ NEW script function "List selection Metadata"
Displays all relevant media file meta data on the currently selected media files
See example dump lower in this post
* Cleaned up certain subroutines
Script Functions:
Code: Select all
1. List selection Metadata
Analyze selected media files and display relevant information in a text box
2. Render selection - Specify bit rate
All selected files are converted to the file format you with options you specified.
3. Render selection - Copy bit rate
All selected files are converted using the exact same bitrate as the original file. This is useful to quickly convert a number of audio of video files to another codec without dramatically changing the file size
4. Books - Rename
This renames all audio files in an audio book folder selected provided the folder is named "Writer - Title"
example:
Folder name: Dan Brown - Da Vinci Code
001 Dan Brown - Da Vinci Code.mp3
002 Dan Brown - Da Vinci Code.mp3
003 Dan Brown - Da Vinci Code.mp3
etc...
5. Books - Convert
This function is rather complicated and was written for personal use but I'm including it anyway.
Basically, this function will convert all files in an audio book folder to the .m4a format. This format is used by Apple on their iOS devices. If you replace the .m4a extension with .m4b, Your iPod/iPhone will recognize the files as an audiobook in your media library. Additionally, the bitrate of the original file is maintain so no bloating happens.
6. Edit Configuration
Launches the automated configuration wizard
The general FFmpeg syntax for converting for example an .avi file to a .mp3 file:
Code: Select all
ffmpeg.exe -i OriginalMediaFile.avi -Option1 -Option2 -Option(n-1) -Option(n) ConvertedMediaFile.mp3
http://www.ffmpeg.org/ffmpeg.html
Code: Select all
1. -vn
Remove the video stream during conversion
2. -an
Remove the audio stream during conversion
3. -ab <bitrate>
Convert using the specified bitrate for audio. Accepts absolute values (e.g 128000) or deprecrated values (e.g. 196k)
4. -vb <bitrate>
Convert using the specified bitrate for video. Accepts absolute values (e.g 1024000) or deprecrated values (e.g. 1024k
5. -acodec or -vcodec
replace <codec> with a codec identifier found in the help file.
Conversion will be using the codec you specified
SPECIAL
-acodec or -vcodec copy
the copy identifier tells ffmpeg not to touch the specified stream codec. ffmpeg will copy bit for bit the content of the stream. use this in combination with -vn or -an to quickly remove the video stream from a music video and save the file as mp3 to create a song for your music library.
example:
ffmpeg -i OhFortunateLiveMoscow.avi -vn -acodec copy OhFortunateLiveMoscow.mp3
Here are some screenshots:
PREVIOUS VERSION: 0.4 - 8