Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo
mtn updated for ffmpeg 2012-11-25 (git-26c531c)
mtn.c - the source
mtn.c.diff.txt - patch for mtn-200808a
Updated for ffmpeg build 2012-11-25 (git-26c531c)
Zeranoe shared builds are kindly provided here: http://ffmpeg.zeranoe.com/builds/
bgd.dll 188.8.131.52 is provided with mtn-200808a and elsewhere
Added option -X : use full input filename (including extension) for output file
mtn.c, patch, mtn.exe SHA1:9d4c2d4250b3d991d479e950a1d4f6de4288e25e
A script you can drag and drop videos/folders on.
Should make it easy to tweak settings and keep different configs.
Open the script in text editor for details
I'm hoping that work on mtn hasn't completely stopped. If anyone is still working on it I was hoping they might consider the following...
Is there any way mtn (or mtn_drop) can be made to NOT process subdirectories? Sometimes it's desirable to only do the dropped directory.
It seems there's some sort of 14-sec. minimum timestep, or something, that results in short clips not being processed at all. I saw somewhere that there might be a patch for that, but it doesn't seem to be included in "abioj's" build. Perhaps some sort of log file would be useful to highlight what files were not processed, and maybe why?
.webm files are not processed if a folder containing them is dropped on mtn_drop. Those files ARE processed if the files themselves are dropped.
Is there a mtn version that will work with latest FFmpeg, preferably a static version for easy updates in the future?
Mtn (along with mtn_drop) is still the best thumbnailer I've come across, so it would be a shame if it lost support. I wish I was a programmer... ;-)
BTW, the latest FFmpeg that works with the current mtn is ffmpeg-1.2-win32-shared.7z, 27-Mar-2013 23:44 from here...
mtn.c 2014-05-15, diff,
built with the latest Zeranoe FFmpeg build: http://ffmpeg.zeranoe.com/builds/win32/shared/ffmpeg-20140515-git-09cd228-win32-shared.7z
Added .webm to the detected video extensions.
Added option -S # to select video stream (for videos with multiple streams).
Updated one of a few deprecated functions I had time to look into.
On the second issue, seek mode (default and -z) often misses shots on short videos. Non-seek mode (-Z) is slower but more accurate. Also, -v (verbose) may give more info. I would include other patches too if directed to them.
@abioj - Thanks very much for the update, and for keeping mtn alive!
I'm attempting to obtain the patch for the 'rounding' problem ( https://sourceforge.net/p/moviethumbnail/discussion/716527/thread/a2769b2b/ ) that may be the cause of the trouble mtn has with small clips. I'll post it here if I'm able to round it up. One of the strong aspects of mtn is its blazing fast speed (with the -z switch). I was hoping to maintain that advantage, and hopefully the patch will help do that.
On another point .. I tried using the -N switch and found it created a filename not as I expected. I was expecting video.ext.txt but, instead, the filename lacks the video extension, the .txt, and has a -B at the end? I wasn't sure if that was by design, or not.
While woking with -N I wondered if the results of an entire folder could be processed into a single file, e.g., foldername_vids.txt , with each clip info separated with a blank line. It would be a great tool for documenting and organizing many video clips.
Is there any hope for a switch to limit processing to a single folder? I'm not sure if that could be done via mtn_drop.cmd or if it needed to be done in mtn.exe...
BTW, adding the lines "%~d0" and "cd %~p0" (without the quotes) just above the drag-drop code in mtn_drop.cmd will assure that mtn.exe is always found in the same folder, regardless off where the mtn folder is located, spaces in the foldername, or on what drive, etc. Then, just call mtn.exe as: start "movie thumbnailer" /b /wait "mtn.exe" (with the quotes) in the cmd or bat file.
Many thanks again.
mtn.c 2014-05-16, diff, Makefile
Hope this works for you, and thanks for adding that info!
For cataloging, have you tried MediaInfo? It's infinitely better at things like that. http://mediaarea.net/en/MediaInfo
If you were to try in CMD script... Maybe each time through the loop append a blank line to the file (>>), then after the loop you could copy /b *.txt all.txt
Thanks for adding the video extension for -N. The -B I was seeing earlier is because I forgot to add the .txt info_suffix. Also, good hint about MediaInfo. I'll look into that.
Wow, the -d switch works great! That is a VERY useful option. When trying it out I wondered if there might be a way to drag&drop an entire drive to mtn_drop to process just the root directory (with -d 1), or even the whole thing (with -d 0). Well, unfortunately, neither one works .. nothing is processed. Sure would be a handy option... ;-)
SAR and PAR and DAR are actually quite important when doing video editing. Could there perhaps be an option to include, say, 0=none, 1=PAR-DAR, 2=SAR-DAR, 3=PAR-DAR & SAR-DAR ?
I used EnigmaVirtualBox to package mtn.exe and all the (UPX'd) dll files into a single 10-MB file. That file, along with my preferred font file (-f "%~d0\%~p0\DejaVuSansMono.ttf") and mtn_drop.cmd in the same folder is a compact, 'no-trace portable' solution that can be run from a flash drive on any Win-PC.
BTW, I've noticed that mtn does a very good job of selecting the best thumbnailing method by leaving off the -z or -Z switch. If that 'rounding error' patch can be located and implimented, I'm thinking -z might be all a person ever needs. ;-)
tuitfun: "for some formats, previous seek might over shoot pass this seek_target; is this a bug in libavcodec?"
FYI: The latest ffmpeg shared library that will work with mtn-20140524.7z is available here:
Newer versions won't work due to filename differences.
@abioj - thanks for the update making it possible to process x265
btw. have been using the windows SendTo folder for years;
acces multiple shortcuts/settings (without a mouse)