georgmartius / vid.stab

Video stabilization library
http://public.hronopik.de/vid.stab/
Other
843 stars 108 forks source link

doesn't work with jpeg sequences as input #13

Open simonbuehler opened 10 years ago

simonbuehler commented 10 years ago

Hi, got this error here, any way to fix this?

ffmpeg.exe -i %3d.jpg -vf vidstabdetect=show=1 test.mp4
ffmpeg version N-60572-gccc48b3 Copyright (c) 2000-2014 the FFmpeg developers
  built on Feb 12 2014 22:01:44 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 63.101 / 52. 63.101
  libavcodec     55. 52.101 / 55. 52.101
  libavformat    55. 32.100 / 55. 32.100
  libavdevice    55.  9.100 / 55.  9.100
  libavfilter     4.  1.102 /  4.  1.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, image2, from '%3d.jpg':
  Duration: 00:00:01.92, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj422p(pc), 1920x1080 [SAR 72:72 DAR 16:9], 25
fps, 25 tbr, 25 tbn, 25 tbc
File 'test.mp4' already exists. Overwrite ? [y/N] y
[swscaler @ 04241400] deprecated pixel format used, make sure you did set range
correctly
[Parsed_vidstabdetect_0 @ 025c9f40] pixel-format error: wrong bits/per/pixel, pl
ease report a BUGFailed to configure input pad on Parsed_vidstabdetect_0
Error opening filters!
simonbuehler commented 10 years ago

actually the same error with a mp4 as input generated from the image sequence

georgmartius commented 10 years ago

Hi Simon,

thanks, I need to take a look, but it will take some time. I am pretty busy at the moment. In the meantime you can try to change the pixelformat use -pix_fmts to get info and try -pix_fmt yuv420p which should work for sure. you can also try yuv444p which should not loose so much quality.

Regards, Georg

On Thursday 13 February 2014 06:10:13 simonbuehler wrote:

Hi, got this error here, any way to fix this?

ffmpeg.exe -i %3d.jpg -vf vidstabdetect=show=1 test.mp4
ffmpeg version N-60572-gccc48b3 Copyright (c) 2000-2014 the FFmpeg
developers built on Feb 12 2014 22:01:44 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads
--enable-av isynth --enable-bzlib --enable-fontconfig --enable-frei0r
--enable-gnutls --enab le-iconv --enable-libass --enable-libbluray
--enable-libcaca --enable-libfreetyp e --enable-libgsm --enable-libilbc
--enable-libmodplug --enable-libmp3lame --ena ble-libopencore-amrnb
--enable-libopencore-amrwb --enable-libopenjpeg --enable-l ibopus
--enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab
--enable-libvo-aa cenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavp ack --enable-libx264 --enable-libxavs
--enable-libxvid --enable-zlib libavutil      52. 63.101 / 52. 63.101
  libavcodec     55. 52.101 / 55. 52.101
  libavformat    55. 32.100 / 55. 32.100
  libavdevice    55.  9.100 / 55.  9.100
  libavfilter     4.  1.102 /  4.  1.102
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, image2, from '%3d.jpg':
  Duration: 00:00:01.92, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: mjpeg, yuvj422p(pc), 1920x1080 [SAR 72:72 DAR 16:9],
25 fps, 25 tbr, 25 tbn, 25 tbc
File 'test.mp4' already exists. Overwrite ? [y/N] y
[swscaler @ 04241400] deprecated pixel format used, make sure you did set
range correctly
[Parsed_vidstabdetect_0 @ 025c9f40] pixel-format error: wrong
bits/per/pixel, pl ease report a BUGFailed to configure input pad on
Parsed_vidstabdetect_0 Error opening filters!

Reply to this email directly or view it on GitHub:

https://github.com/georgmartius/vid.stab/issues/13


Dr. Georg Martius Phone: +49 (0)341 9959 535 Fax: +49 (0)341 9959 658 EMail: martius@mis.mpg.de Max Planck Institute for Mathematics in the Sciences Inselstraße 22, 04103 Leipzig, Germany

simonbuehler commented 10 years ago

thanks, the workaround helps for now!

marton78 commented 8 years ago

The workaround helps me, too, however: Is there any chance you could get this to work with other pixel formats, too?

For posterity:

ffmpeg -framerate 5 -i '%*.jpg' -pix_fmt yuv420p -vf vidstabdetect -c:v libx264 -preset ultrafast -crf 0 show.mp4