[Libav-user] Fwd: Re: [Cin] Hang on trimming audio tracks?

Andrew Randrianasulu randrianasulu at gmail.com
Sun Jun 7 12:05:33 EEST 2020


Hello all!

Sorry for forwarding this message, but apparently some change in ffmpeg.git
made this assertion fire (Assertion fctx->async_lock failed
at libavcodec/pthread_frame.c:155)

I see few threading changes in https://git.ffmpeg.org/gitweb/ffmpeg.git/history/HEAD:/libavcodec/pthread_frame.c
but I sadly don't understand how they can inteact with CinelerraGG's internals in such catastrophic way
(assertion lead to abnormal program termination on video file load).

While ffmpeg 4.3 is not about to be branched 'tomorrow' I still think
I better to  report error here, so it will have some more visibility, 
and more head scratching on what can be done about it. 

----------  Пересланное сообщение  ----------

Тема: Re: [Cin] Hang on trimming audio tracks?
Дата: Воскресенье 07 июня 2020
Отправитель: Phyllis Smith <phylsmith2017 at gmail.com>
Получатель:  "Cinelerra.GG" <cin at lists.cinelerra-gg.org>

Today gg was able to get the error of:    Assertion fctx->async_lock failed
at libavcodec/pthread_frame.c:155
by using the ffmpeg version from GIT.  The error is not in the ffmpeg
version used with the static tar builds for Cinelerra.  He has determined
that this is a bug in the new ffmpeg on the website in conjunction with
Cinelerra.  So anyone using the non-provided ffmpeg on their Operating
System that has this current GIT version with Cinelerra could potentially
have this error.  At some point in time when Cinelerra upgrades to this
ffmpeg version, a patch will have to be generated to avoid the error.

So thanks to Andrew for this early warning so we can be prepared for it.

On Fri, Jun 5, 2020 at 8:45 AM Andrew Randrianasulu <randrianasulu at gmail.com>
wrote:

> Hello, I tried to edit simple  video in CinGG
>
> Bascally put video track over music track, taken from two
> separate videos, downloaded from Youtube.
>
> videos:
> https://yadi.sk/d/-9mV7v-4dZ8l7Q
>
> Unfortunately, when I opened both files as 'resources only',
> loaded them both on timeline by drag and  drop from Resources window
> deleted unneded video and audio tracks and tried to trim audio from
> Two\ Steps\ From\ Hell\ -\ Star\ Sky\ \(\ EXTENDED\ Remix\ by\
> Kiko10061980\ \)-KgQCgqUe3LE.mp4
> by selecting sound region at the tail of project  and hitting 'del'
> (I also tried to select same action from menu)
>
> I got hang! I mean I can't press anything in main window, or anywhere in
> Cin.
>
> I can repeat few times and it will hang reliably.
>
>
>
>
>  cin
> Cinelerra Infinity - built: Jun  3 2020 09:43:41
> git://git.cinelerra-gg.org/goodguy/cinelerra.git
> (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
> 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy
> Cinelerra is free software, covered by the GNU General Public License,
> and you are welcome to change it and/or distribute copies of it under
> certain conditions. There is absolutely no warranty for Cinelerra.
>
> RenderFarmClient::main_loop: client started
> FileSystem::update /home/guest/MLP FIM 3 Karusel Нет такого файла или
> каталога
> FileSystem::update /home/guest/MLP FIM 4 Gala Нет такого файла или каталога
> FileSystem::update /home/guest/MLP_FIM_Season4 Нет такого файла или
> каталога
> FileSystem::update /home/guest/MLP FIM 5 RUS ENG 720p Нет такого файла или
> каталога
> FileSystem::update /home/guest/My Little Pony - Friendship is Magic S02
> 720p Нет такого файла или каталога
> FileSystem::update /home/guest/MLP FIM 1 Karusel Нет такого файла или
> каталога
> FFMPEG::open_decoder: some stream times estimated:
> /home/guest/New_hdd/KARA (Quantic Dream) [HD]-wxVyeSfE6p8.mkv
> FFMPEG::open_decoder: some stream times estimated:
> /home/guest/New_hdd/KARA (Quantic Dream) [HD]-wxVyeSfE6p8.mkv
> FFMPEG::open_decoder: some stream times estimated:
> /home/guest/New_hdd/KARA (Quantic Dream) [HD]-wxVyeSfE6p8.mkv
> FFMPEG::open_decoder: some stream times estimated:
> /home/guest/New_hdd/KARA (Quantic Dream) [HD]-wxVyeSfE6p8.mkv
> FFMPEG::open_decoder: some stream times estimated:
> /home/guest/New_hdd/KARA (Quantic Dream) [HD]-wxVyeSfE6p8.mkv
> FFMPEG::open_decoder: some stream times estimated:
> /home/guest/New_hdd/KARA (Quantic Dream) [HD]-wxVyeSfE6p8.mkv
> ** seek fail 12474, 416215
> ** seek fail 12474, 416215
> ** seek fail 12474, 416215
> ** seek fail 12474, 416215
> ** seek fail 12474, 416215
> ^Csignal_entry: got SIGINT my pid=2970 execution table size=0:
> ** intr at 0xf7b3e829 in pid 2939, tid 2939
> writing debug data to /tmp/cinelerra_2939.dmp
> signal_entry: lock table size=1
> lock_items: 0
> lock_frees: 1
> SigHandler::signal_handler total files=0
> lock_items: 25
> lock_frees: 3
> ^C
>
> Once I got
>
> cin
> Cinelerra Infinity - built: Jun  3 2020 09:43:41
> git://git.cinelerra-gg.org/goodguy/cinelerra.git
> (c) 2006-2019 Heroine Virtual Ltd. by Adam Williams
> 2007-2020 mods for Cinelerra-GG by W.P.Morrow aka goodguy
> Cinelerra is free software, covered by the GNU General Public License,
> and you are welcome to change it and/or distribute copies of it under
> certain conditions. There is absolutely no warranty for Cinelerra.
>
> RenderFarmClient::main_loop: client started
> FileSystem::update /home/guest/MLP FIM 3 Karusel Нет такого файла или
> каталога
> FileSystem::update /home/guest/MLP FIM 4 Gala Нет такого файла или каталога
> FileSystem::update /home/guest/MLP_FIM_Season4 Нет такого файла или
> каталога
> FileSystem::update /home/guest/MLP FIM 5 RUS ENG 720p Нет такого файла или
> каталога
> FileSystem::update /home/guest/My Little Pony - Friendship is Magic S02
> 720p Нет такого файла или каталога
> FileSystem::update /home/guest/MLP FIM 1 Karusel Нет такого файла или
> каталога
> Assertion fctx->async_lock failed at libavcodec/pthread_frame.c:155
> Аварийный останов
>
>
>
> but this may be due to ffmpeg from git.. ...
>
> I can try to recompile CinGG with ffmpeg 4.2, but it will take some time
>
> I also tried few previous version of CinGG
>  from May and they also hang on those files if I repeat same actions
>
> I can workaround this by trimming audio before
> adding video, but then edit will be unprescie ...
> --
> Cin mailing list
> Cin at lists.cinelerra-gg.org
> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>

-------------------------------------------------------


More information about the Libav-user mailing list