Open LionelBino opened 8 years ago
I'm also experiencing the "wrong bits/per/pixel" error with current versions of ffmpeg and vid.stab (ffmpeg 3.3.1, vid.stab 1.1). It seems to occur when using YUV444 video in my case. In the detection phase, the "config_input" function in "vf_vidstabdetect.c" of the ffmpeg plugin checks whether "bytesPerPixel" is equal to the number of bits per pixel divided by 8 as reported by ffmpeg. Could it be that the meaning of "bytesPerPixel" as used internally by vid.stab is different from what ffmpeg reports (maybe this is the number of bits per pixel summed over all planes? See function "av_get_bits_per_pixel" in https://github.com/FFmpeg/FFmpeg/blob/master/libavfilter/vf_vidstabtransform.c). I haven't tried YUV422 video yet; with YUV420 video, it seems to work although I'm not sure whether it only works by luck.
ffmpeg -i DNxHD-1-CUT-1-0097.MOV.mxf -vf vidstabdetect dummy.avi
ffmpeg version N-81071-g9264bb7 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 5.3.1 (Ubuntu 5.3.1-14ubuntu2.1) 20160413 configuration: --enable-gpl --enable-libvidstab --enable-libx264 --enable-nonfree --enable-libmp3lame --enable-libopus libavutil 55. 28.100 / 55. 28.100 libavcodec 57. 50.100 / 57. 50.100 libavformat 57. 44.100 / 57. 44.100 libavdevice 57. 0.102 / 57. 0.102 libavfilter 6. 47.100 / 6. 47.100 libswscale 4. 1.100 / 4. 1.100 libswresample 2. 1.100 / 2. 1.100 libpostproc 54. 0.100 / 54. 0.100 [dnxhd @ 0x306de00] frame size changed: 1920x1088 -> 1920x1080 Guessed Channel Layout for Input Stream #0.1 : stereo Input #0, mxf, from 'DNxHD-1-CUT-1-0097.MOV.mxf': Metadata: uid : adab4424-2f25-4dc7-92ff-29bd000c0000 generation_uid : adab4424-2f25-4dc7-92ff-29bd000c0001 company_name : FFmpeg product_name : OP1a Muxer product_version : 56.40.101 product_uid : adab4424-2f25-4dc7-92ff-29bd000c0002 modification_date: 0-01-01 00:00:00 material_package_umid: 0x060A2B340101010501010D0013D7BA535294713415D7BA53005294713415D700 timecode : 00:00:00:00 Duration: 00:00:05.04, start: 0.000000, bitrate: 147194 kb/s Stream #0:0: Video: dnxhd (DNXHD), yuv422p(bt709/unknown/unknown), 1920x1080, SAR 1:1 DAR 16:9, 29.97 fps, 29.97 tbr, 29.97 tbn, 29.97 tbc Metadata: file_package_umid: 0x060A2B340101010501010D0013D7BA535294713415D7BA53005294713415D701 Stream #0:1: Audio: pcm_s16le, 48000 Hz, 2 channels, s16, 1536 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D0013D7BA535294713415D7BA53005294713415D701 [Parsed_vidstabdetect_0 @ 0x3096500] pixel-format error: wrong bits/per/pixel, please report a BUGFailed to configure input pad on Parsed_vidstabdetect_0 Error opening filters!