[FFmpeg-trac] #11066(undetermined:new): Aborted (core dumped) when converting from h265 to av1 with opus (4.4.2-0ubuntu0.22.04.1)

FFmpeg trac at avcodec.org
Fri Jun 21 23:37:00 EEST 2024


#11066: Aborted (core dumped) when converting from h265 to av1 with opus
(4.4.2-0ubuntu0.22.04.1)
-------------------------------------+-------------------------------------
             Reporter:  s12          |                    Owner:  (none)
                 Type:  defect       |                   Status:  new
             Priority:  minor        |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  crash        |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
Changes (by s12):

 * priority:  normal => minor


Old description:

> Summary of the bug:
>
> I get a `core dumped` when trying to do 2 pass encoding to av1 with opus
> in an mp4 container.
>
> How to reproduce:
>
> I took a quick obs screen recording of the "Bug Reports" page. I then ran
> `ffmpeg -i 2024-06-21\ 10-40-46.mkv -c:v libx265 ~/Videos/Bug\ Test.mp4`
> to get my test input file. I then did the following to recreate my issue
> (after changing directory):
>
> {{{
> % ffmpeg -i "Bug Test.mp4" -ss 00:00:03 -to 00:00:17 -c:v libaom-av1 -b:v
> 130576 -c:a libopus -b:a 40K -r 12 -g 4096 -cpu-used 5 -pass 1 -f null
> /dev/null && ffmpeg -i "Bug Test.mp4" -ss 00:00:03 -to 00:00:17 -c:v
> libaom-av1 -b:v 130576 -c:a libopus -b:a 40K -r 12 -g 4096 -cpu-used 5
> -pass 2 "Bug Test out.mp4"
> ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg
> developers
>   built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
> }}}
>

> I got
>
> {{{
> ffmpeg: ./av1/encoder/temporal_filter.c:973: tf_setup_filtering_buffer:
> Assertion `to_filter_buf != NULL' failed.
> Aborted (core dumped)
> }}}
> In the output.
>
> Initially, I had tried to simply do `ffmpeg -i 2024-06-21\ 09-30-17.mkv
> -c:v libx265 -an ~/Bug\ Test.mp4` then in home; `ffmpeg -i "Bug Test.mp4"
> -ss 00:00:03 -to 00:00:17 -c:v libaom-av1 -b:v 130576 -cpu-used 5 -pass 1
> -f null /dev/null && ffmpeg -i "Bug Test.mp4" -ss 00:00:03 -to 00:00:17
> -c:v libaom-av1 -b:v 130576 -cpu-used 5 -pass 2 "Bug Test out.mp4"` to
> try to recreate the bug, however this seemed to work just fine. Hence, I
> used audio and more options from my initial use case to recreate the
> issue.
>
> This is probably my first foss bug report, so apologies for not being
> able to follow the guide perfectly. I haven't used gdb before, and I
> couldn't find any resources on what `ffmpeg_g` is. I tried using gdb
> anyway, and got
>
> {{{
> ffmpeg: ./av1/encoder/temporal_filter.c:973: tf_setup_filtering_buffer:
> Assertion `to_filter_buf != NULL' failed.
>
> Thread 1 "ffmpeg" received signal SIGABRT, Aborted.
> __pthread_kill_implementation (no_tid=0, signo=6,
> threadid=140737088590656) at ./nptl/pthread_kill.c:44
> 44      ./nptl/pthread_kill.c: No such file or directory.
> (gdb)
> }}}
>
> I'll try to include my files with better names in case they help.
>
> Please do let me know if/when fixed versions are available, and what
> workarounds may exist in the mean time. Many thanks.
>
> I hope this helps!

New description:

 Summary of the bug:

 I get a `core dumped` when trying to do 2 pass encoding to av1 with opus
 in an mp4 container.

 How to reproduce:

 I took a quick obs screen recording of the "Bug Reports" page. I then ran
 `ffmpeg -i 2024-06-21\ 10-40-46.mkv -c:v libx265 ~/Videos/Bug\ Test.mp4`
 to get my test input file. I then did the following to recreate my issue
 (after changing directory):

 {{{
 % ffmpeg -i "Bug Test.mp4" -ss 00:00:03 -to 00:00:17 -c:v libaom-av1 -b:v
 130576 -c:a libopus -b:a 40K -r 12 -g 4096 -cpu-used 5 -pass 1 -f null
 /dev/null && ffmpeg -i "Bug Test.mp4" -ss 00:00:03 -to 00:00:17 -c:v
 libaom-av1 -b:v 130576 -c:a libopus -b:a 40K -r 12 -g 4096 -cpu-used 5
 -pass 2 "Bug Test out.mp4"
 ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg
 developers
   built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
 }}}


 I got

 {{{
 ffmpeg: ./av1/encoder/temporal_filter.c:973: tf_setup_filtering_buffer:
 Assertion `to_filter_buf != NULL' failed.
 Aborted (core dumped)
 }}}
 In the output.

 Initially, I had tried to simply do `ffmpeg -i 2024-06-21\ 09-30-17.mkv
 -c:v libx265 -an ~/Bug\ Test.mp4` then in home; `ffmpeg -i "Bug Test.mp4"
 -ss 00:00:03 -to 00:00:17 -c:v libaom-av1 -b:v 130576 -cpu-used 5 -pass 1
 -f null /dev/null && ffmpeg -i "Bug Test.mp4" -ss 00:00:03 -to 00:00:17
 -c:v libaom-av1 -b:v 130576 -cpu-used 5 -pass 2 "Bug Test out.mp4"` to try
 to recreate the bug, however this seemed to work just fine. Hence, I used
 audio and more options from my initial use case to recreate the issue.

 This is probably my first foss bug report, so apologies for not being able
 to follow the guide perfectly. I haven't used gdb before, and I couldn't
 find any resources on what `ffmpeg_g` is. I tried using gdb anyway, and
 got

 {{{
 ffmpeg: ./av1/encoder/temporal_filter.c:973: tf_setup_filtering_buffer:
 Assertion `to_filter_buf != NULL' failed.

 Thread 1 "ffmpeg" received signal SIGABRT, Aborted.
 __pthread_kill_implementation (no_tid=0, signo=6,
 threadid=140737088590656) at ./nptl/pthread_kill.c:44
 44      ./nptl/pthread_kill.c: No such file or directory.
 (gdb)
 }}}

 I'll try to include my files with better names in case they help.

 Please do let me know if/when fixed versions are available, and what
 workarounds may exist in the mean time. Many thanks.

 I hope this helps!

 Update:

 I had a go at compiling from source in a Debian vm, and it seems to be
 work fine in the source build, while still being broken in the package
 provided by Debian. This may mean that the issue is now beyond the scope
 of the ffmpeg devs, so I'll set the priority to minor. A simple
 explanation of what can cause the crash and when it is likely to be fixed
 in apt builds ''(if known)'' would be very much appreciated.

 Best of luck!

--
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11066#comment:2>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list