[FFmpeg-devel] Broken libnpp (was working with git snapshot 0779396)

Ali KIZIL alikizil at gmail.com
Mon Nov 7 14:15:19 EET 2016


Hi All,

I was trying libnpp on Big Bunny video by below command:

./ffmpeg -loglevel debug -y -hwaccel cuvid -c:v h264_cuvid -vsync 0 -i
/root/root/bunny.mp4 -vf scale_npp=1920:1072 -vcodec h264_nvenc
/tmp/tmp0.264 -vf scale_npp=1280:720 -vcodec h264_nvenc /tmp/tmp1.264

This command is working with below Git version:
https://git.ffmpeg.org/gitweb/ffmpeg.git/snapshot/077939626eeaa0c1364065414c18ab9b3a072281.tar.gz

However, today I pulled the latest git updates and noticed now FFmpeg gives
error:

ffmpeg version N-82274-g34aeb5d Copyright (c) 2000-2016 the FFmpeg
developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
  configuration: --prefix=/opt/ffmpeg --enable-nonfree --enable-gpl
--extra-cflags='-march=corei7-avx -I/opt/ffmpeg/include
-I/usr/local/include -fno-builtin-memcpy' --extra-ldflags=-L/opt/ffmpeg/lib
--bindir=/opt/ffmpeg/bin --extra-libs=-ldl --enable-libx264
--enable-libx265 --enable-nonfree --enable-gpl --enable-nvenc
--enable-libzvbi --enable-libfdk-aac --enable-libzimg --enable-avresample
--enable-libzmq --enable-libfreetype --disable-shared
--enable-hardcoded-tables --enable-cuda --enable-cuvid --enable-libnpp
--enable-version3
  libavutil      55. 35.100 / 55. 35.100
  libavcodec     57. 66.101 / 57. 66.101
  libavformat    57. 57.100 / 57. 57.100
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 66.100 /  6. 66.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.100 /  4.  3.100
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Splitting the commandline.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging
level) with argument 'debug'.
Reading option '-y' ... matched as option 'y' (overwrite output files) with
argument '1'.
Reading option '-hwaccel' ... matched as option 'hwaccel' (use HW
accelerated decoding) with argument 'cuvid'.
Reading option '-c:v' ... matched as option 'c' (codec name) with argument
'h264_cuvid'.
Reading option '-vsync' ... matched as option 'vsync' (video sync method)
with argument '0'.
Reading option '-i' ... matched as input file with argument
'/root/root/bunny.mp4'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with
argument 'scale_npp=1920:1072'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec
('copy' to copy stream)) with argument 'h264_nvenc'.
Reading option '/tmp/tmp0.264' ... matched as output file.
Reading option '-vf' ... matched as option 'vf' (set video filters) with
argument 'scale_npp=1280:720'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec
('copy' to copy stream)) with argument 'h264_nvenc'.
Reading option '/tmp/tmp1.264' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Applying option y (overwrite output files) with argument 1.
Applying option vsync (video sync method) with argument 0.
Successfully parsed a group of options.
Parsing a group of options: input file /root/root/bunny.mp4.
Applying option hwaccel (use HW accelerated decoding) with argument cuvid.
Applying option c:v (codec name) with argument h264_cuvid.
Successfully parsed a group of options.
Opening an input file: /root/root/bunny.mp4.
[file @ 0x35597a0] Setting default whitelist 'file,crypto'
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3558f80] Format mov,mp4,m4a,3gp,3g2,mj2 probed
with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3558f80] ISO: File Type Major Brand: isom
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3558f80] Unknown dref type 0x08206c7275 size 12
    Last message repeated 2 times
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3558f80] Before avformat_find_stream_info()
pos: 673223828 bytes read:446246 seeks:1 nb_streams:3
[h264 @ 0x355b120] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x355b120] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x355b120] nal_unit_type: 6, nal_ref_idc: 0
[h264 @ 0x355b120] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x355b120] user data:"x264 - core 120 - H.264/MPEG-4 AVC codec -
Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1
ref=4 deblock=1:1:1 analyse=0x3:0x133 me=tesa subme=11 psy=1
psy_rd=0.40:0.00 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1
cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=-2 threads=12
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0
constrained_intra=0 bframes=16 b_pyramid=2 b_adapt=2 b_bias=0 direct=3
weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40
intra_refresh=0 rc_lookahead=60 rc=2pass mbtree=1 bitrate=8000 ratetol=1.0
qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.40
aq=1:0.60"
[h264 @ 0x355b120] Reinit context to 3840x2160, pix_fmt: yuv420p
[h264 @ 0x355b120] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3558f80] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x3558f80] After avformat_find_stream_info()
pos: 544489 bytes read:577318 seeks:2 frames:53
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/root/root/bunny.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 1
    compatible_brands: isomavc1
    creation_time   : 2013-12-17T16:40:26.000000Z
    title           : Big Buck Bunny, Sunflower version
    artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
    comment         : Creative Commons Attribution 3.0 -
http://bbb3d.renderfarming.net
    genre           : Animation
    composer        : Sacha Goedegebure
  Duration: 00:10:34.53, start: 0.000000, bitrate: 8487 kb/s
    Stream #0:0(und), 31, 1/60000: Video: h264 (High), 1 reference frame
(avc1 / 0x31637661), yuv420p(left), 3840x2160 [SAR 1:1 DAR 16:9], 0/1, 8002
kb/s, 60 fps, 60 tbr, 60k tbn, 120 tbc (default)
    Metadata:
      creation_time   : 2013-12-17T16:40:26.000000Z
      handler_name    : GPAC ISO Video Handler
    Stream #0:1(und), 21, 1/48000: Audio: mp3 (mp4a / 0x6134706D), 48000
Hz, stereo, s16p, 160 kb/s (default)
    Metadata:
      creation_time   : 2013-12-17T16:40:28.000000Z
      handler_name    : GPAC ISO Audio Handler
    Stream #0:2(und), 1, 1/48000: Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz,
5.1(side), fltp, 320 kb/s (default)
    Metadata:
      creation_time   : 2013-12-17T16:40:28.000000Z
      handler_name    : GPAC ISO Audio Handler
    Side data:
      audio service type: main
Successfully opened the file.
Parsing a group of options: output file /tmp/tmp0.264.
Applying option vf (set video filters) with argument scale_npp=1920:1072.
Applying option vcodec (force video codec ('copy' to copy stream)) with
argument h264_nvenc.
Successfully parsed a group of options.
Opening an output file: /tmp/tmp0.264.
[file @ 0x36e9040] Setting default whitelist 'file,crypto'
Successfully opened the file.
Parsing a group of options: output file /tmp/tmp1.264.
Applying option vf (set video filters) with argument scale_npp=1280:720.
Applying option vcodec (force video codec ('copy' to copy stream)) with
argument h264_nvenc.
Successfully parsed a group of options.
Opening an output file: /tmp/tmp1.264.
[file @ 0x36ec2a0] Setting default whitelist 'file,crypto'
Successfully opened the file.
Setting up CUVID transcoding
[Parsed_scale_npp_0 @ 0x3a5e600] Setting 'w' to value '1920'
[Parsed_scale_npp_0 @ 0x3a5e600] Setting 'h' to value '1072'
[graph 0 input from stream 0:0 @ 0x3a7d3a0] Setting 'video_size' to value
'3840x2160'
[graph 0 input from stream 0:0 @ 0x3a7d3a0] Setting 'pix_fmt' to value '0'
[graph 0 input from stream 0:0 @ 0x3a7d3a0] Setting 'time_base' to value
'1/60000'
[graph 0 input from stream 0:0 @ 0x3a7d3a0] Setting 'pixel_aspect' to value
'1/1'
[graph 0 input from stream 0:0 @ 0x3a7d3a0] Setting 'sws_param' to value
'flags=2'
[graph 0 input from stream 0:0 @ 0x3a7d3a0] Setting 'frame_rate' to value
'60/1'
[graph 0 input from stream 0:0 @ 0x3a7d3a0] w:3840 h:2160 pixfmt:yuv420p
tb:1/60000 fr:60/1 sar:1/1 sws_param:flags=2
[format @ 0x3a7e660] compat: called with
args=[yuv420p|nv12|p010le|yuv444p|yuv444p16le|bgr0|rgb0|cuda]
[format @ 0x3a7e660] Setting 'pix_fmts' to value
'yuv420p|nv12|p010le|yuv444p|yuv444p16le|bgr0|rgb0|cuda'
[auto-inserted scaler 0 @ 0x3a7f3a0] Setting 'flags' to value 'bicubic'
[auto-inserted scaler 0 @ 0x3a7f3a0] w:iw h:ih flags:'bicubic' interl:0
[Parsed_scale_npp_0 @ 0x3a5e600] auto-inserting filter 'auto-inserted
scaler 0' between the filter 'graph 0 input from stream 0:0' and the filter
'Parsed_scale_npp_0'
Impossible to convert between the formats supported by the filter 'graph 0
input from stream 0:0' and the filter 'auto-inserted scaler 0'
Error opening filters!
[AVIOContext @ 0x3585580] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0x36e9d00] Statistics: 0 seeks, 0 writeouts
[AVIOContext @ 0x3561ac0] Statistics: 577318 bytes read, 2 seeks

(configure paremeters are same for latest git version and ffmpeg-0779396
snapshot)

Kind Regards,
Ali


More information about the ffmpeg-devel mailing list