algoo / preview-generator

generates previews of files with cache management
https://pypi.org/project/preview-generator/
MIT License
228 stars 50 forks source link

Vid to JPG #189

Open MattGalvis opened 4 years ago

MattGalvis commented 4 years ago

I was trying to use VideoPreviewBuilderFFMPEG and it doesn't seem to be working

Duration: 00:00:27.68, start: 0.000000, bitrate: 876 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1152x720 [SAR 1:1 DAR 8:5], 801 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s (default) Metadata: handler_name : SoundHandler [NULL @ 0x559293820e40] Unable to find a suitable output format for '/tmp/tmp87yj8jx4.jpgvideo/mp4' /tmp/tmp87yj8jx4.jpgvideo/mp4: Invalid argument

maybe an example on how to use it in docs and adding to managers would help.

raphj commented 4 years ago

Hi @MattGalvis! Thanks for your report.

Could your provide us with a minimal code snippet that reproduces this issue, ideally with the video?

Can you also tell us:

From the output you gave, there seem to be a missing space somewhere, either in your code or in preview-generator: /tmp/tmp87yj8jx4.jpgvideo/mp4 should probably read /tmp/tmp87yj8jx4.jpg video/mp4