Opened 9 months ago

#7354 new defect

when use rkmpp error :Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scaler_0'

Reported by: martos Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

In RK3328 device in linux
Kernel 4.4.132 Ubuntu 18.04.1 LTS
mmp device ok (/dev/dri/card0 and /dev/vpu_service )

ffmpeg versionN-91592-g87cc7e8 Copyright (c) 2000-2018 the FFmpeg developers

built with gcc 7 (Ubuntu/Linaro? 7.3.0-16ubuntu3)
configuration: --prefix=/home/rock64/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/rock64/ffmpeg_build/include --extra-ldflags=-L/home/rock64/ffmpeg_build/lib --extra-libs='-lpthread -lm' --bindir=/home/rock64/bin --enable-hardcoded-tables --enable-gpl --enable-libaom --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libvpx --enable-libx264 --enable-rkmpp --enable-version3 --enable-libdrm --enable-libx265 --enable-nonfree
libavutil 56. 18.102 / 56. 18.102
libavcodec 58. 22.101 / 58. 22.101
libavformat 58. 17.101 / 58. 17.101
libavdevice 58. 4.101 / 58. 4.101
libavfilter 7. 26.100 / 7. 26.100
libswscale 5. 2.100 / 5. 2.100
libswresample 3. 2.100 / 3. 2.100
libpostproc 55. 2.100 / 55. 2.100

( i test ffmpeg 3.4 with same result)

Summary of the bug:
Video Source file
https://download.blender.org/durian/trailer/Sintel_Trailer1.720p.DivX_Plus_HD.mkv
(but all h264 video file make the same)
i use :
ffmpeg -c:v h264 -i Sintel_Trailer.720p.DivX_Plus_HD.mkv -vcodec h264 /tmp/test.mkv
or
ffmpeg -i Sintel_Trailer.720p.DivX_Plus_HD.mkv /tmp/test.mkv
It's work
if i use the HW decoder i can not transcode only copy and i have error
So works ( quickly and perfectly ) with :

/home/rock64/bin/ffmpeg -c:v h264_rkmpp -i Sintel_Trailer.720p.DivX_Plus_HD.mkv -vcodec copy /tmp/test.mkv

but don't work with :

/home/rock64/bin/ffmpeg -c:v h264_rkmpp -i Sintel_Trailer.720p.DivX_Plus_HD.mkv -vcodec h264 /tmp/test.mkv -loglevel trace

[h264_rkmpp @ 0x55b9846490] RKMPP decoder initialized successfully.
Stream mapping:

Stream #0:0 -> #0:0 (h264 (h264_rkmpp) -> h264 (libx264))
Stream #0:1 -> #0:1 (aac (native) -> vorbis (libvorbis))
Stream #0:2 -> #0:2 (subrip (srt) -> ass (ssa))

Press [q] to stop, ? for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264_rkmpp @ 0x55b9846490] Wrote 43 bytes to decoder
[h264_rkmpp @ 0x55b9846490] Wrote 941 bytes to decoder
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
detected 4 logical cores
[graph_1_in_0_1 @ 0x55b981dbe0] Setting 'time_base' to value '1/48000'
[graph_1_in_0_1 @ 0x55b981dbe0] Setting 'sample_rate' to value '48000'
[graph_1_in_0_1 @ 0x55b981dbe0] Setting 'sample_fmt' to value 'fltp'
[graph_1_in_0_1 @ 0x55b981dbe0] Setting 'channel_layout' to value '0x3'
[graph_1_in_0_1 @ 0x55b981dbe0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x3
[format_out_0_1 @ 0x55b981e280] Setting 'sample_fmts' to value 'fltp'
[AVFilterGraph @ 0x55b9818c80] query_formats: 4 queried, 9 merged, 0 already done, 0 delayed
cur_dts is invalid (this is harmless if it occurs once at the start per stream)

Last message repeated 7 times

[h264_rkmpp @ 0x55b9846490] Wrote 33 bytes to decoder
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264_rkmpp @ 0x55b9846490] Wrote 38 bytes to decoder
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264_rkmpp @ 0x55b9846490] Wrote 38 bytes to decoder
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
[h264_rkmpp @ 0x55b9846490] Wrote 39 bytes to decoder
[h264_rkmpp @ 0x55b9846490] Decoder noticed an info change (1280x544), format=0
[h264_rkmpp @ 0x55b9846490] Received a frame.
[graph 0 input from stream 0:0 @ 0x55b98d5db0] Setting 'video_size' to value '1280x544'
[graph 0 input from stream 0:0 @ 0x55b98d5db0] Setting 'pix_fmt' to value '181'
[graph 0 input from stream 0:0 @ 0x55b98d5db0] Setting 'time_base' to value '1/1000'
[graph 0 input from stream 0:0 @ 0x55b98d5db0] Setting 'pixel_aspect' to value '1/1'
[graph 0 input from stream 0:0 @ 0x55b98d5db0] Setting 'sws_param' to value 'flags=2'
[graph 0 input from stream 0:0 @ 0x55b98d5db0] Setting 'frame_rate' to value '24/1'
[graph 0 input from stream 0:0 @ 0x55b98d5db0] w:1280 h:544 pixfmt:drm_prime tb:1/1000 fr:24/1 sar:1/1 sws_param:flags=2
[format @ 0x55b99a51f0] Setting 'pix_fmts' to value 'yuv420p|yuvj420p|yuv422p|yuvj422p|yuv444p|yuvj444p|nv12|nv16|nv21'
[auto_scaler_0 @ 0x55b98e7870] Setting 'flags' to value 'bicubic'
[auto_scaler_0 @ 0x55b98e7870] w:iw h:ih flags:'bicubic' interl:0
[format @ 0x55b99a51f0] auto-inserting filter 'auto_scaler_0' between the filter 'Parsed_null_0' and the filter 'format'
Impossible to convert between the formats supported by the filter 'Parsed_null_0' and the filter 'auto_scaler_0'
Error reinitializing filters!
Failed to inject frame into filter network: Function not implemented
Error while processing the decoded data for stream #0:0

I test lot of file with same result if i use -vcodec h264_rkmpp works only with -vcodec copy but not work with other .

I open a ticket on https://github.com/rockchip-linux/mpp/issues/ but the reply is "It is not us adding the support for ffmpeg." so i open ticket here.

Thank's a lot for your help

Change History (0)

Note: See TracTickets for help on using tickets.