[FFmpeg-user] Image2 demuxer on Synology

Stuart Bruce stuartrbruce at gmail.com
Fri Jan 4 13:31:43 EET 2019


Hello

Out of nowhere I've been tasked with getting a small PHP script running on
a Synology server to generate JPEG thumbnails from h.264 MOV files.

The Synology is about 18 months old and completely 'vanilla', with no
maintenance or updates, and it's still running the 2015-era version of
FFmpeg that was preinstalled on it.

The problem I'm hitting appears to be identical to this one:
https://superuser.com/questions/1375270/ffmpeg-waveform-png-invalid-argument
My own output is posted below- apologies for the formatting- but the key
point seems to be that "--disable-muxer=image2" is in the output, so any
attempt to output a JPEG or PNG file is failing with "not a suitable output
format".

So my questions are...
- On a Synology system, what do I need to do to get the image2 muxer
enabled? Can I change the config of the existing set-up, or do I need to do
a re-install or update of the FFmpeg build?
- If I need to reinstall or update, I'm not familiar with Synology systems-
is there such a thing as a simple guide for FFmpeg installations on
Synology? Google didn't show me any.
- With the image2 demuxer disabled, is there a method for getting the
preinstalled version of FFmpeg to export a JPEG file anyway?

Thanks in advance

Stuart



ffmpeg version 2.7.1 Copyright (c) 2000-2015 the FFmpeg developers built
with gcc 4.9.3 (crosstool-NG 1.20.0) 20150311 (prerelease) configuration:
--prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686
--target-os=linux
--cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-
--enable-cross-compile --enable-optimizations --enable-pic --enable-gpl
--enable-shared --disable-static --enable-version3 --enable-nonfree
--enable-libfaac --enable-encoders --enable-pthreads --disable-bzlib
--disable-protocol=rtp --disable-muxer=image2 --disable-muxer=image2pipe
--disable-swscale-alpha --disable-ffserver --disable-ffplay
--disable-devices --disable-bzlib --disable-altivec
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame
--disable-vaapi --disable-decoder=amrnb --disable-decoder=ac3
--disable-decoder=ac3_fixed --disable-encoder=zmbv --disable-encoder=dca
--disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3
--disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd
--cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-ccache-gcc
--enable-yasm --enable-libx264 --enable-encoder=libx264 libavutil 54.
27.100 / 54. 27.100 libavcodec 56. 41.100 / 56. 41.100 libavformat 56.
36.100 / 56. 36.100 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 16.101
/ 5. 16.101 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 2.100 / 1.
2.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2,
from
'../fromAnima/Shots/animation_213_20181224/E202_SEQ220_SH0160_anim_r003.mov':
Metadata: major_brand : qt minor_version : 512 compatible_brands: qt
encoder : Lavf56.40.101 Duration: 00:00:01.52, start: 0.000000, bitrate:
1873 kb/s Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661),
yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 1094 kb/s, 25 fps, 25 tbr,
10k tbn, 50 tbc (default) Metadata: handler_name : DataHandler Stream
#0:1(eng): Audio: pcm_s16be (twos / 0x736F7774), 48000 Hz, mono, s16, 768
kb/s (default) Metadata: handler_name : DataHandler [NULL @ 0x1cda520]
Requested output format 'image2' is not a suitable output format
../assets/editreader_data/Thumbnails/shots_internal/E202_SEQ220_SH0160_anim_r003_0020.jpg:
Invalid argument

-- 
Stuart Bruce - stuart at stuartbruce.co.uk - www.stuartbruce.co.uk


More information about the ffmpeg-user mailing list