Closed AcarBurak closed 5 years ago
for video I assume you want a screenshot and on audio I assume you want cover art. That's at last how it work now.
This can be easily adjusted later ;)
Sorry,
for video I assume you want a screenshot
no. Please see the attachment.
Try latest commit, I default to always prefer coverart first (I don't have any video files with covertart to test with).
I will also add a setting.
you will need to clear the icon cache
To clarify, I've embedded dvd cover art images to my movies and my ffmpegthumbnailer.thumbnailer thumbnails those covers (Exec=ffmpegthumbnailer -m -i %i -o %o -s %s). Doublecmd on the left shows them and qtfm doesn't –for the time being! Thanks anyway.
I've just cleared the cache, but without any difference.
Ok, I will need to get a video file with embedded coverart so I can see what fails.
Well, I've compiled again and then cleared the cache, but there're no thumbnails now.
I know, will be fixed.
Ok, the coverart feature I added was for `` /*
Sorry, I can only say how I've embedded cover arts some years ago.
For mkv movies:
mkvpropedit SHIP_OF_FOOLS.mkv --add-attachment cover.jpg
For m4v movies:
./AtomicParsley file.m4v --artwork JPEG-File.jpg --overWrite
And as for the ffmpegthumbnailer, from ffmpegthumbnailer --help:
-m : prefer embedded image metadata over video content
I used:
ffmpeg -i video.mp4 -i cover.jpg -c:a copy -c:v copy -map 0 -map 1:0 video+cover.mp4
works with latest commit, please try.
Not working here.
ok, will test mkvpropedit when I get the time and see what kind of file I get.
Would be nice with a documented standard for these kind of things :)
btw, if you run `ffprobe`` on a mkv with coverart what do you get? an extra MJPEG stream? or some other meta data related to the cover?
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55edf2da94c0] stream 0, timescale not set Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'AMADEUS.mp4': Metadata: major_brand : isom minor_version : 512 compatible_brands: isomiso2avc1mp41 encoder : Lavf58.9.100 Duration: 03:00:25.74, start: 0.000000, bitrate: 2275 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x784 [SAR 1:1 DAR 120:49], 2149 kb/s, 23.98 fps, 23.98 tbr, 27021 tbn, 47.95 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 120 kb/s (default) Metadata: handler_name : SoundHandler Stream #0:2: Video: png, rgb24(pc), 200x257 [SAR 2834:2834 DAR 200:257], 90k tbr, 90k tbn, 90k tbc
ahh, it's a PNG. Should be easy to fix.
Glad to hear that!
should work now.
Before building again, I've written a PKGBUILD and build qtfm by it and it compiles twice. Either my PKGBUILD is not right or it's normal behaviour for qtfm, second compilation is for libfm?
please post the PKGBUILD if possible.
pkgname=qtfm pkgver=1 pkgrel=1 pkgdesc="A lightweight file manager" arch=('i686' 'x86_64') url="https://github.com/rodlie/qtfm/releases" license=('GPL') depends=('qt5-base' 'desktop-file-utils' 'hicolor-icon-theme') provides=('qtfm' 'qtfm-git') conflicts=('qtfm' 'qtfm-git') sha256sums=('SKIP')
build() { rm -Rf build && mkdir build && cd build qmake CONFIG+=with_magick CONFIG+=magick7 CONFIG+=with_ffmpeg PREFIX=/usr $srcdir/$pkgname/ make }
package() { cd build make INSTALL_ROOT=$pkgdir install
Looks ok, note that qtfm 6.2 builds with shared library as default so you either need to add LIBSUFFIX=64
if target is /usr/lib64 etc or add CONFIG+=staticlib
.
All right, thanks. … Waiting for the compilation to end.
also add depends for ImageMagick and FFmpeg.
I will, thanks. … But, no joy, no thumbs, sorry! Perhaps I'd better compile it manually without PKGBUILD.
Odd...
I added a PNG to a test mkv:
Stream #0:2: Video: png (MPNG / 0x474E504D), rgb24(pc), 1920x1080 [SAR 2834:2834 DAR 16:9], 1k fps, 1k tbr, 1k tbn, 1k tbc Metadata: DURATION : 00:00:00.040000000
And I get the thumbnail, but notice MPNG, your file has only PNG ..... I will need to do some reading about this, or see what ffmpegthumbnailer etc does. But I'm off to work, will look at this later tonight.
Thank you for enabling video thumbnails, but qtfm (contrary to some other file managers) does not show embedded cover arts (of mkv and mp4 files) as thumbnails which is the expected behavior according to my /usr/share/thumbnailers/ffmpegthumbnailer.thumbnailer:
And this is my qmake config:
qmake CONFIG+=with_magick CONFIG+=magick7 CONFIG+=with_ffmpeg PREFIX=/usr