[FFmpeg-user] Image2 demuxer on Synology

Stuart Bruce stuartrbruce at gmail.com
Mon Jan 7 16:43:28 EET 2019


On Sun, 6 Jan 2019 at 12:23, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> You can use the rawvideo muxer as a replacement for image2 as long
> as you only write one frame:
> -vcodec mjpeg -f rawvideo
> -vcodec png -f rawvideo
>

Perhaps I'm misunderstanding you, but unfortunately this seems to have had
no effect. I've added the -vcodec flag so my command line looks like this:
"ffmpeg -i ..[input].mov -c:v png -vframes 1 -vcodec png -f rawvideo
[output].png 2>&1"
but the bottom line (literally) is still:
"Error while opening decoder for input stream #0:0 : Operation not
permitted"
I've pasted the full output below.

On Sun, 6 Jan 2019 at 12:21, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> Does this happen for every input file or only for this one?
>

I had tried a selection of files from the same source.


> Does the following succeed?
> $ ffmpeg -i input -f null -
>

After looking into this, it appears that the problem may be broader than I
first thought. Trying to throughput an MP4 to a different MP4 also fails,
also creating the output file but exiting while the file contains 0 bytes.
So for example if I try this simple query:
"ffmpeg -i [input].mp4 -y [output].mp4 2>&1"
it's also failing, but with a different error message:
"Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height"

So perhaps the image extraction specifics aren't the problem and there's a
broader issue with FFmpeg being unable to encode anything?

Please understand that there is a reason why we require you
> to test current FFmpeg git head...


I absolutely appreciate that and if it were easy to do so, I would update
straight away. My tests have been on the latest version, but I'm not the
sysadmin of the server in question, and the sysadmin is nervous about
making changes on a live and very active server, so I need to exhaust all
the possibilities for what might work with the 2015 build before I can say
it has to be updated.

Thanks again

Stuart



Full output from first set of parameters above:
(from ffmpeg -i ..[input].mov -c:v png -vframes 1 -vcodec png -f rawvideo
[output].png 2>&1)

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_194_20181204/E113_SEQ070_SH0070_anim_r002.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf56.40.101
  Duration: 00:00:06.40, start: 0.000000, bitrate: 1364 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661),
yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 590 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
Output #0, rawvideo, to
'../assets/editreader_data/Thumbnails/shots_internal/Screengrabs/E113_SEQ070_SH0070_anim_r002_0069.png':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf56.40.101
    Stream #0:0(eng): Video: png, rgb24, 1280x720 [SAR 1:1 DAR 16:9],
q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
    Metadata:
      handler_name    : DataHandler
      encoder         : Lavc56.41.100 png
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> png (native))
Error while opening decoder for input stream #0:0 : Operation not permitted




Second output: (from ffmpeg -i [input].mp4 -y [output].mp4 2>&1)

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
'../assets/editreader_data/Thumbnails/shots_internal/Screengrabs/EP202_TFS_V079_02Jan19_MM_WM.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2019-01-03 15:04:12
  Duration: 00:22:25.60, start: 0.000000, bitrate: 10106 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661),
yuv420p(tv, bt709), 1920x1080, 9785 kb/s, 25 fps, 25 tbr, 25k tbn, 50
tbc (default)
    Metadata:
      creation_time   : 2019-01-03 15:04:12
      handler_name    : Alias Data Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 317 kb/s (default)
    Metadata:
      creation_time   : 2019-01-03 15:04:12
      handler_name    : Alias Data Handler
Output #0, mp4, to
'../assets/editreader_data/Thumbnails/shots_internal/Screengrabs/nullOutput.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    Stream #0:0(eng): Video: h264, none, q=2-31, 128 kb/s, 25 fps (default)
    Metadata:
      creation_time   : 2019-01-03 15:04:12
      handler_name    : Alias Data Handler
      encoder         : Lavc56.41.100 libx264
    Stream #0:1(eng): Audio: aac, 0 channels, 128 kb/s (default)
    Metadata:
      creation_time   : 2019-01-03 15:04:12
      handler_name    : Alias Data Handler
      encoder         : Lavc56.41.100 libfaac
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac (native) -> aac (libfaac))
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height


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


More information about the ffmpeg-user mailing list