ffmpeg [buffer @ 0x247b4c0] Invalid parameters provided error when trying to convert video

Installed ffmpeg & now, when I am trying to convert something I am getting next error:


[buffer @ 0x247b4c0] Invalid parameters provided.
Error opening filters!
Conversion failed!

On 2014-09-21 19:56, badcoder wrote:
>
> Installed ffmpeg & now, when I am trying to convert something I am
> getting next error:
>
> Code:
> --------------------
>
> [buffer @ 0x247b4c0] Invalid parameters provided.
> Error opening filters!
> Conversion failed!
>
> --------------------

Please give a full example, including the command given and full response. Like this:


cer@Telcontar:~> ffmpeg -i capture.avi
ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 29 2014 12:04:05 with gcc 4.8 (SUSE Linux)
configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libx265 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc --enable-gnutls
libavutil      52. 66.100 / 52. 66.100
libavcodec     55. 52.102 / 55. 52.102
libavformat    55. 33.100 / 55. 33.100
libavdevice    55. 10.100 / 55. 10.100
libavfilter     4.  2.100 /  4.  2.100
libavresample   1.  2.  0 /  1.  2.  0
libswscale      2.  5.102 /  2.  5.102
libswresample   0. 18.100 /  0. 18.100
libpostproc    52.  3.100 / 52.  3.100
[avi @ 0x2126760] Could not find codec parameters for stream 0 (Video: mjpeg (MJPG / 0x47504A4D), 640x480): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
capture.avi: could not find codec parameters
Conversion failed!
cer@Telcontar:~>


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

ffmpeg -i 8f_Sherlock.s1.e02-.a1.24.06.12.mp4 -target pal-dvd sherlock_s1_e2.mpg

On 2014-09-21 21:36, badcoder wrote:
>
> Code:
> --------------------
> ffmpeg -i 8f_Sherlock.s1.e02-.a1.24.06.12.mp4 -target pal-dvd sherlock_s1_e2.mpg
> --------------------

Please repeat the post complete, same as I did in my example.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

ffmpeg -i 8f_Sherlock.s1.e02-.a1.24.06.12.mp4 -target pal-dvd sherlock_s1_e2.mpg
ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jun 29 2014 12:04:05 with gcc 4.8 (SUSE Linux)
  configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libx265 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc --enable-gnutls
  WARNING: library configuration mismatch
  avfilter    configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables' --optflags='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables' --enable-pic --enable-shared --disable-static --enable-runtime-cpudetect --enable-gpl --disable-openssl --enable-frei0r --enable-gnutls --enable-libcdio --enable-libdc1394 --enable-libfreetype --enable-libgsm --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-pic --enable-pthreads --enable-vaapi --enable-vdpau --enable-x11grab --disable-encoders --disable-decoders --disable-muxers --disable-demuxers --enable-encoder='flac,gif,jpegls,libopenjpeg,libtheora,libvorbis,libvpx,png' --enable-decoder='flac,gif,jpegls,ljpeg,libopenjpeg,libtheora,libvpx,png,vorbis,vp3,vp5,vp6,vp6a,vp6f,vp8,vp9,webp' --enable-muxer='flac,gif,image2,image2pipe,matroska,matroska_audio,null,webm' --enable-demuxer='flac,gif,image2,image2pipe,matroska'
  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.  0
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '8f_Sherlock.s1.e02-.a1.24.06.12.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 1970-01-01 00:00:00
    title           : Sherlock S01E02 - Release by DiamonD
    encoder         : Lavf52.93.0
  Duration: 01:28:25.64, start: 0.000000, bitrate: 566 kb/s
    Chapter #0.0: start 0.000000, end 609.360000
    Metadata:
      title           : 00:00:00.000
    Chapter #0.1: start 609.360000, end 1176.000000
    Metadata:
      title           : 00:10:09.360
    Chapter #0.2: start 1176.000000, end 1850.840000
    Metadata:
      title           : 00:19:36.000
    Chapter #0.3: start 1850.840000, end 2361.920000
    Metadata:
      title           : 00:30:50.840
    Chapter #0.4: start 2361.920000, end 3137.000000
    Metadata:
      title           : 00:39:21.920
    Chapter #0.5: start 3137.000000, end 3736.600000
    Metadata:
      title           : 00:52:17.000
    Chapter #0.6: start 3736.600000, end 4498.800000
    Metadata:
      title           : 01:02:16.600
    Chapter #0.7: start 4498.800000, end 5305.640000
    Metadata:
      title           : 01:14:58.800
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x406 [SAR 255:254 DAR 45900:25781], 500 kb/s, SAR 361:360 DAR 361:203, 25 fps, 25 tbr, 25 tbn, 50 tbc (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : VideoHandler
    Stream #0:1(rus): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 60 kb/s (default)
    Metadata:
      creation_time   : 1970-01-01 00:00:00
      handler_name    : SoundHandler
[buffer @ 0x15da7c0] Invalid parameters provided.
Error opening filters!
Conversion failed!

On 2014-09-21 22:26, badcoder wrote:
>
> Code:
> --------------------
> ffmpeg -i 8f_Sherlock.s1.e02-.a1.24.06.12.mp4 -target pal-dvd sherlock_s1_e2.mpg
> ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
> built on Jun 29 2014 12:04:05 with gcc 4.8 (SUSE Linux)
> configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags=’-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm’ --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libx265 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc --enable-gnutls
> WARNING: library configuration mismatch

That may be a problem. But I don’t see what mismatch it is talking about :-?

> Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘8f_Sherlock.s1.e02-.a1.24.06.12.mp4’:
> Metadata:
> major_brand : isom

> [buffer @ 0x15da7c0] Invalid parameters provided.
> Error opening filters!
> Conversion failed!
> --------------------

Ok, I understand now. I’ll try your command here.


cer@Telcontar:~> ffmpeg -i Videos/Temporales/6x02-AnatomiaGrey-ESP.avi -target pal-dvd o.mpeg
ffmpeg version 2.2.4 Copyright (c) 2000-2014 the FFmpeg developers
built on Jun 29 2014 12:04:05 with gcc 4.8 (SUSE Linux)
configuration: --shlibdir=/usr/lib64 --prefix=/usr --mandir=/usr/share/man --libdir=/usr/lib64 --enable-shared --disable-static --enable-debug --disable-stripping --extra-cflags='-fmessage-length=0 -grecord-gcc-switches -fstack-protector -O2 -Wall -D_FORTIFY_SOURCE=2 -funwind-tables -fasynchronous-unwind-tables -g -fPIC -I/usr/include/gsm' --enable-gpl --enable-x11grab --enable-version3 --enable-pthreads --enable-avfilter --enable-libpulse --enable-libvpx --enable-libopus --enable-libass --enable-libx265 --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libxvid --enable-libx264 --enable-libschroedinger --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-postproc --enable-libdc1394 --enable-librtmp --enable-libfreetype --enable-avresample --enable-libtwolame --enable-libvo-aacenc --enable-gnutls
libavutil      52. 66.100 / 52. 66.100
libavcodec     55. 52.102 / 55. 52.102
libavformat    55. 33.100 / 55. 33.100
libavdevice    55. 10.100 / 55. 10.100
libavfilter     4.  2.100 /  4.  2.100
libavresample   1.  2.  0 /  1.  2.  0
libswscale      2.  5.102 /  2.  5.102
libswresample   0. 18.100 /  0. 18.100
libpostproc    52.  3.100 / 52.  3.100
Input #0, avi, from 'Videos/Temporales/6x02-AnatomiaGrey-ESP.avi':
Metadata:
encoder         : VirtualDubMod 1.5.10.2 (build 2540/release)
Duration: 00:41:01.92, start: 0.000000, bitrate: 2129 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 704x400 [SAR 1:1 DAR 44:25], 25 tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 320 kb/s
Stream #0:2: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 320 kb/s
Output #0, dvd, to 'o.mpeg':
Metadata:
encoder         : Lavf55.33.100
Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 176:125 DAR 44:25], q=2-31, 6000 kb/s, 90k tbn, 25 tbc
Stream #0:1: Audio: ac3, 48000 Hz, stereo, fltp, 448 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mpeg4 -> mpeg2video)
Stream #0:1 -> #0:1 (mp3 -> ac3)
Press [q] to stop, ?] for help
frame= 6088 fps=221 q=2.0 size=   95748kB time=00:04:04.15 bitrate=3212.6kbits/s dup=6 drop=0
....
frame=61548 fps=228 q=2.0 Lsize=  876244kB time=00:41:01.91 bitrate=2915.7kbits/s dup=54 drop=0
video:718034kB audio:134636kB subtitle:0 data:0 global headers:0kB muxing overhead 2.764700%
cer@Telcontar:~>

It works here…


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

And? Cant understood what you trying to say. Cant convert any video. During install there was vendor change for some package to a packman. Maybe this?

No, you need the ffmpeg from Packman as it provides codecs that are not included in the default openSUSE ffmpeg due to patent / license restrictions.

Remove the “-” from the filename of the original file or encase the filename in “”'s - I’m guessing it tries to parse the - as a start for a new parameter, so like this;

ffmpeg -i "8f_Sherlock.s1.e02-.a1.24.06.12.mp4" -target pal-dvd sherlock_s1_e2.mpg

Or rename the original as a test to not have the - in it.

The mismatch/conflict is here:


  libavutil      52. 66.100 / 52. 66.100
  libavcodec     55. 52.102 / 55. 52.102
  libavformat    55. 33.100 / 55. 33.100
  libavdevice    55. 10.100 / 55. 10.100
  libavfilter     4.  2.100 /  4.  2.  0
  libavresample   1.  2.  0 /  1.  2.  0
  libswscale      2.  5.102 /  2.  5.102
  libswresample   0. 18.100 /  0. 18.100
  libpostproc    52.  3.100 / 52.  3.100

You have libavfilter 4.2.0 installed, but ffmpeg expects 4.2.100.
So please verify that your libavfilter4 is the one from Packman. If not, switch it to the Packman version (use YaST’s “Versions” tab for this).

A “full repository vendor change update” should fix the problem in any way:
https://en.opensuse.org/SDB:Vendor_change_update#Full_repository_Vendor_change

O! Thanks. This helped.

What did? Fixing the avfilter to the proper version?