FFmpeg Assistance - convert, trim media files

Discuss and share scripts and script files...
Post Reply
binocular222
Posts: 1416
Joined: 04 Nov 2008 05:35
Location: Hanoi, Vietnam

FFmpeg Assistance - convert, trim media files

Post by binocular222 »

FFmpeg Assistance
Base on 40k idea here: http://www.xyplorer.com/xyfc/viewtopic. ... lit=ffmpeg
I made a script to easily pass command-line parameters to FFmpeg, so that you can easily convert (re-encode); trim; save screenshot... with your video/audio files:
1) Download FFmpeg here: http://ffmpeg.zeranoe.com/builds/
2) Customize the last line of this script to reflect actual path to ffmpeg.exe
3) Select a few audio/video files
4) Run this script
5) Select a few actions from this dialog
1.png
1.png (69.78 KiB) Viewed 2696 times
6) Manually edit the parameters; file name; extension; location (all options have explanations). Question mark "?" are removed by default, which means, if you do not change it to a for Audio; v for Video; s for subtitle... then the options will be applied to all streams.
This below screen trim the original files from beginning to 12min 8sec 120ms without re-encoding (no quality loss at all!)
2.png
2.png (40.12 KiB) Viewed 2696 times
Done!

Note: I only listed out the most frequently used options. You should read FFmpeg manual for a lot more functionality.
If you find any good options, feel free to post here so that I will update the list (I am not expert at FFmpeg or media encoding at all!).

Update:
v1.0 [7-Sep-13]: Initial release
v1.1 [8-Sep-13]: Separate options for input and output; update the list
v1.2 beta [10-Sep-13]: Attempt to add option to join files; there's still something wrong with concat filter
Attachments
FFmpeg Assistance 1.2 beta.xys
(14.65 KiB) Downloaded 305 times
FFmpeg Assistance 1.1.xys
(10.18 KiB) Downloaded 271 times
Last edited by binocular222 on 10 Sep 2013 04:03, edited 1 time in total.
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

40k
Posts: 234
Joined: 09 Dec 2011 21:25

Re: FFmpeg Assistance - convert, trim media files

Post by 40k »

I'm going to check this out when I get back to my Windows machine.
Thought about implementing something similar but got flooded with work shortly after and did not think about it thereafter.

One remark about the option list: Most Windows users will use the Zeranoe binaries. So your userbase is largely universal. FFmpeg needs to be compiled using special options for it to support certain features. So depending on which binary the user has installed, some options may not work for them.
I develop scripts that integrate media functionality into Xyplorer.
Hash - Twitch.tv in VLC (NEW 2.0!) - FFmpeg GUI - Youtube downloading
XYplorer for Linux! Tutorial

Post Reply