Piwigo / piwigo-videojs

Videojs port for piwigo. Play your videos on your web gallery!
http://piwigo.org/ext/extension_view.php?eid=610
GNU General Public License v3.0
64 stars 45 forks source link

Debian 8, ffmpeg/avconv: rawvideo is not a suitable output format #100

Open Jarno-G opened 7 years ago

Jarno-G commented 7 years ago

When trying to make posters using both ffmpeg and avconv, I get an error. They are correctly detected (the icon is green), but returns the following error:

Error poster running ffmpeg/avconv, try it manually, check your webserver error log: avconv -ss 4 -i "./[file].mp4" -vcodec mjpeg -vframes 1 -an -f rawvideo -y "./[file].jpg"

When I manually try to run the command, both ffmpeg and avconv give an error that "rawvideo" is not a valid format:

Requested output format 'rawvideo' is not a suitable output format

I first installed the plugin using the piwigo interface and already had ffmpeg installed. After the error I followed the guide on the wiki with no improvement.

PS. I'm running it on my Netgear NAS with ReadyNASOS 6.6.0 which is based on Debian 8 Jessie

xbgmsharp commented 7 years ago

Hello, The green icon is to check you have the binary install correctly. ffmpeg -formats to see all formats and ffmpeg -codecs to see all supported codecs You are more likely missing a package. https://github.com/xbgmsharp/piwigo-videojs/wiki/Synchronize

Poster/Thumbnail support for MP4 file require 'libfaac' 'libvo-aacenc' or 'libx264' to be installed on the system.
Poster/Thumbnail support for WebM file require 'libvorbis' or 'libvpx' to be installed on the system.
Poster/Thumbnail support for OGG file require 'libvorbis' or 'libtheora' to be installed on the system.
Jarno-G commented 7 years ago

Hi, thanks for the reply. rawvideo is not in the list of formats.

I tried installing the packages you mention, but that didn't work. Running the line you mention in the installation guide: apt-get install libav-tools mediainfo libfaad2 libx264-142 libvorbis0a libvorbisenc2 libvorbisfile3 libvpx1 libxvidcore4 results in the message that I already installed all of those. As far as I could find, 'libfaac' is part of the 'libfaad2' package and installing 'libvo-aacenc0' did not give me any improvements. I could not find any other package related to the ones you mention.

The result of avconv - formats: avconv version 11.8-6:11.8-1~deb8u1, Copyright (c) 2000-2016 the Libav developers built on Oct 1 2016 07:16:29 with gcc 4.9.2 (Debian 4.9.2-10) File formats: D. = Demuxing supported .E = Muxing supported

D aac D ac3 D aiff DE alsa ALSA audio output D asf D avi D dts D dv D dv1394 DV1394 A/V grab D eac3 D fbdev Linux framebuffer D flac D flv D h261 D h263 D h264 D jack JACK Audio Connection Kit D libcdio D libdc1394 dc1394 v.2 A/V grab D m4v D matroska,webm D mjpeg D mov,mp4,m4a,3gp,3g2,mj2 DE mp3 D mpeg D mpegts D mpegtsraw D mpegvideo D ogg DE oss OSS (Open Sound System) playback D pulse Pulse audio input D rm D rtsp E s16be E s16le D vc1 D video4linux2 Video4Linux2 device grab D wav D x11grab X11grab