[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1027468: ffmpeg: 2-pass libaom-av1 enconding error independently of the video source or resolution



Package: ffmpeg
Version: 7:5.1.2-1
Severity: important
X-Debbugs-Cc: iwillnogiveyoumy@email.com

Dear Maintainer,

-map 0:0 selects the default video stream
source.mkv is a generic name for the file described later, or the chuncks containing the conflicting section.
source video is 23'98 fps.

All commands and error messages are typed by hand via nano, typing errors may occur.

The english is not my native language.

USED COMMANDLINE:
ffmpeg -i source.mkv -map 0:0 -pix_fmt yuv420p10le -colorspace bt709 -color_primaries bt709 -color_trc bt709 -b:v 1000k -minrate 500k -maxrate 1450k -tile-columns 1 -tile-rows 1 -row-mt 1 -threads 8 -frame-parallel 1 -g 240 -auto-alt-ref 1 -lag-in-frames 48 -cpu-used 3 -crf 31 -passlogfile logfilename -pass 1 -c:v libaom-av1 -y output.mkv &&\
ffmpeg -i source.mkv -map 0:0 -pix_fmt yuv420p10le -colorspace bt709 -color_primaries bt709 -color_trc bt709 -b:v 1000k -minrate 500k -maxrate 1450k -tile-columns 1 -tile-rows 1 -row-mt 1 -threads 8 -frame-parallel 1 -g 240 -auto-alt-ref 1 -lag-in-frames 48 -cpu-used 3 -crf 31 -passlogfile logfilename -pass 2 -c:v libaom-av1 -y output.mkv

   * What led up to the situation?
	When transcoding "The wolf of Wall Street", independently of the source codec (I found sources encoded with VP9, h264 and h265) between 00h 42m 00s and 00h 43m 00s (the chunk between the blowjob in the elevator and the father of the main character watching the tv), the next error appears:

	ffmpeg: .av1/encoder/tpl_model.c:1596: av1_tpl_stats_ready: Assertion 'gf_frame_index < MAX_TPL_FRAME_IDX && "Invalid gf_frame_index\n"' failed.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

	single pass works.

	two pass fails.

	disabling alternate references, threads, varying tile rows and cols ammount or the distance between keyframes or any other parameter do not work.

	segmenting the video in different duration chunks does not avoid the error when reaching the conflicting point.

	I transcoded other films and the only one giving problems has been this one in the described chunk.


-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.0.0-6-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=es_ES.UTF-8, LC_CTYPE=es_ES.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages ffmpeg depends on:
ii  libavcodec59    7:5.1.2-1
ii  libavdevice59   7:5.1.2-1
ii  libavfilter8    7:5.1.2-1
ii  libavformat59   7:5.1.2-1
ii  libavutil57     7:5.1.2-1
ii  libc6           2.36-7
ii  libpostproc56   7:5.1.2-1
ii  libsdl2-2.0-0   2.26.1+dfsg-1
ii  libswresample4  7:5.1.2-1
ii  libswscale6     7:5.1.2-1

ffmpeg recommends no packages.

Versions of packages ffmpeg suggests:
pn  ffmpeg-doc  <none>

-- no debconf information


Reply to: