home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
Need thumbnails for MPG files?
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Bleazle" data-source="post: 420443" data-attributes="member: 53582"><p>Hi All</p><p></p><p>If you've got any "home videos" recorded in MPG format from your average digital camera you're probably wishing you could have a thumbnail preview in MediaPortal - well now you can <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> I've been looking for a way to do this for ages and I finally came across the answer last night <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> Note: I have only tested this on my XP MCE HTPC. </p><p></p><p>1. You need to have FFmpeg installed in order to create the thumbnails. The easiest thing to do is to unzip and paste the attached ffmpeg.exe into your \windows\system32 directory</p><p></p><p>2. Open a command-prompt window & navigate to the folder where your videos are located. If you don't know how to do this (I didn't!) this guide will tell you what to do: <a href="http://www.pcstats.com/articleview.cfm?articleid=1723&page=3" target="_blank">Beginners Guides: WindowsXP Command Prompt - PCSTATS.com</a></p><p></p><p>3. Then type the following (everything in <span style="color: Blue">blue</span>) Make sure you get it right!:</p><p><span style="color: Blue">for %i in (*.mpg) do ffmpeg -i "%i" -f mjpeg -t 0.001 -ss 3 -y "%~ni.tbn"</span></p><p></p><p>4. Click "enter". </p><p></p><p>That's it. This will go through all of the mpg files in the folder and create a jpeg-file (with a .tbn extension) of the frame 3 seconds in, with the same name as the mpg file. Because the files are created by FFmpeg you get a pretty decent quality thumb (well it's as good as your original clip was anyway).</p><p></p><p>If you want to create preview-thumbnails of the current folder and all of its subfolders, use the following command:</p><p><span style="color: Blue">for /r %i in (*.mpg) do ffmpeg -i "%i" -f mjpeg -t 0.001 -ss 3 -y "%~di%~pi%~ni.tbn"</span></p><p>(NOTE: I haven't tried the method listed in #3 - this is the method I used, even when I was testing/creating thumbs for a directory that didn't have any subfolders.)</p><p></p><p>You can change the number after <span style="color: Blue">-ss</span> from 3 to whatever you want to change how far (in seconds) from the beginning you want the preview-screenshot to be taken.</p><p></p><p>Obviously this could be improved upon by someone that knows about this sort of stuff. If nothing else it would be handy to have a batch file which could be run whenever new files are added files to the "Videos" folder to create thumbs for the new clip(s). I had a go at doing that but I don't know what I'm doing ( <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite10" alt=":oops:" title="Oops! :oops:" loading="lazy" data-shortname=":oops:" /> ). Also it would be good if say the first image could be copied and renamed "folder.jpg". I'm sure if I spent a bit of time trying to work out how to do this I'd get it done but I'm also sure that there's someone out there that already knows how to do this stuff - if that's you don't forget to share it with the rest of us!!...</p><p></p><p>Hopefully this helps someone else out.</p><p></p><p>Bleazle</p><p></p><p>PS. I didn't work out how to do this - I came across it after doing a lot of searching online so don't ask me any technical questions because I won't know the answers!!!! <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite8" alt=":D" title="Big Grin :D" loading="lazy" data-shortname=":D" /></p><p></p><p>EDIT: I forgot to say that this should work for any file type supported by FFmpeg. So if you want to use it for AVI files for example simply replace <span style="color: Blue">mpg</span> with <span style="color: Blue">avi</span>. You would be better off using the thumbnailer plugin created by <strong>Mophat</strong> though: <a href="https://forum.team-mediaportal.com/plugins-47/thumbnailer-creates-automaticly-thumbnails-videos-tv-recordings-41250/" target="_blank">https://forum.team-mediaportal.com/plugins-47/thumbnailer-creates-automaticly-thumbnails-videos-tv-recordings-41250/</a></p></blockquote><p></p>
[QUOTE="Bleazle, post: 420443, member: 53582"] Hi All If you've got any "home videos" recorded in MPG format from your average digital camera you're probably wishing you could have a thumbnail preview in MediaPortal - well now you can :) I've been looking for a way to do this for ages and I finally came across the answer last night :) :) Note: I have only tested this on my XP MCE HTPC. 1. You need to have FFmpeg installed in order to create the thumbnails. The easiest thing to do is to unzip and paste the attached ffmpeg.exe into your \windows\system32 directory 2. Open a command-prompt window & navigate to the folder where your videos are located. If you don't know how to do this (I didn't!) this guide will tell you what to do: [url=http://www.pcstats.com/articleview.cfm?articleid=1723&page=3]Beginners Guides: WindowsXP Command Prompt - PCSTATS.com[/url] 3. Then type the following (everything in [COLOR="Blue"]blue[/COLOR]) Make sure you get it right!: [COLOR="Blue"]for %i in (*.mpg) do ffmpeg -i "%i" -f mjpeg -t 0.001 -ss 3 -y "%~ni.tbn"[/COLOR] 4. Click "enter". That's it. This will go through all of the mpg files in the folder and create a jpeg-file (with a .tbn extension) of the frame 3 seconds in, with the same name as the mpg file. Because the files are created by FFmpeg you get a pretty decent quality thumb (well it's as good as your original clip was anyway). If you want to create preview-thumbnails of the current folder and all of its subfolders, use the following command: [COLOR="Blue"]for /r %i in (*.mpg) do ffmpeg -i "%i" -f mjpeg -t 0.001 -ss 3 -y "%~di%~pi%~ni.tbn"[/COLOR] (NOTE: I haven't tried the method listed in #3 - this is the method I used, even when I was testing/creating thumbs for a directory that didn't have any subfolders.) You can change the number after [COLOR="Blue"]-ss[/COLOR] from 3 to whatever you want to change how far (in seconds) from the beginning you want the preview-screenshot to be taken. Obviously this could be improved upon by someone that knows about this sort of stuff. If nothing else it would be handy to have a batch file which could be run whenever new files are added files to the "Videos" folder to create thumbs for the new clip(s). I had a go at doing that but I don't know what I'm doing ( :ooops: ). Also it would be good if say the first image could be copied and renamed "folder.jpg". I'm sure if I spent a bit of time trying to work out how to do this I'd get it done but I'm also sure that there's someone out there that already knows how to do this stuff - if that's you don't forget to share it with the rest of us!!... Hopefully this helps someone else out. Bleazle PS. I didn't work out how to do this - I came across it after doing a lot of searching online so don't ask me any technical questions because I won't know the answers!!!! :D EDIT: I forgot to say that this should work for any file type supported by FFmpeg. So if you want to use it for AVI files for example simply replace [COLOR="Blue"]mpg[/COLOR] with [COLOR="Blue"]avi[/COLOR]. You would be better off using the thumbnailer plugin created by [B]Mophat[/B] though: [URL="https://forum.team-mediaportal.com/plugins-47/thumbnailer-creates-automaticly-thumbnails-videos-tv-recordings-41250/"]https://forum.team-mediaportal.com/plugins-47/thumbnailer-creates-automaticly-thumbnails-videos-tv-recordings-41250/[/URL] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Need thumbnails for MPG files?
Contact us
RSS
Top
Bottom