"Error: avcodec_send_packet_failed" when adding video

Anything and everything to do with DCP-o-matic.
Hes
Posts: 5
Joined: Wed Sep 09, 2015 7:44 pm

"Error: avcodec_send_packet_failed" when adding video

Post by Hes »

Hi all,
I'm running the current beta version of DCP-o-matic (2.5.187 git 969546a2b5), and that one gives me errors whenever I want to add a video that I downloaded from YouTube:

Image

The file is not added to the asset list, and nothing else can be done.

Can anybody tell me what is going on here and how to fix this? Is this a known error of the current beta?

I have uploaded a small sample file that throws this error to

New Link:
https://jmp.sh/50zcJdl

Any help is appreciated.

Cheers, Michael.
Last edited by Hes on Tue Feb 15, 2022 1:10 pm, edited 1 time in total.
carl
Site Admin
Posts: 2338
Joined: Thu Nov 14, 2013 2:53 pm

Re: "Error: avcodec_send_packet_failed" when adding video

Post by carl »

When I try to download that file I get a 403 error. Can you send it to me instead? carl@dcpomatic.com
Hes
Posts: 5
Joined: Wed Sep 09, 2015 7:44 pm

Re: "Error: avcodec_send_packet_failed" when adding video

Post by Hes »

Hi,
that seems to be a problem with UDrop - even though the file is listed as shared I cannot download it either. :evil:

I will look into using another file sharing service, in the meantime, I just sent you the sample directly.

Cheers, Michael.
carl
Site Admin
Posts: 2338
Joined: Thu Nov 14, 2013 2:53 pm

Re: "Error: avcodec_send_packet_failed" when adding video

Post by carl »

Hi,
This test version should fix the error when loading the file, but our decoder library FFmpeg does not seem to want to decode the sample video at all... perhaps it's to do with how you cut the segment out? Could you try that build with your full file and see what happens?
Hes
Posts: 5
Joined: Wed Sep 09, 2015 7:44 pm

Re: "Error: avcodec_send_packet_failed" when adding video

Post by Hes »

Hi Carl,
i downloaded and installed the test version

Image

But adding the clip still fails. I've tried it with both the small sample and the larger file (plus a third, completely different clip also downloaded from youtube) - all three just report a slightly different error than before:

Image

So, I still can't load the files in question.

Cheers, Michael.
Hes
Posts: 5
Joined: Wed Sep 09, 2015 7:44 pm

Re: "Error: avcodec_send_packet_failed" when adding video

Post by Hes »

Just a quick addendum: all three clips run without problems when using ffplay.exe (ffplay version 4.4.1-essentials_build-www.gyan.dev) running on Windows 10, so it does not seem to be a general compatibility issue with ffmpeg.

Cheers, Michael.
carl
Site Admin
Posts: 2338
Joined: Thu Nov 14, 2013 2:53 pm

Re: "Error: avcodec_send_packet_failed" when adding video

Post by carl »

Thanks, yes it looks like the DoM builds are missing the dav1d library.
Carsten
Posts: 2648
Joined: Tue Apr 15, 2014 9:11 pm
Location: Germany

Re: "Error: avcodec_send_packet_failed" when adding video

Post by Carsten »

Another option to solve this is to load the videoclip from youtube again in MP4 format. There seem to be a lot of decent free online Youtube-MP4 converters around now that support also HD.
carl
Site Admin
Posts: 2338
Joined: Thu Nov 14, 2013 2:53 pm

Re: "Error: avcodec_send_packet_failed" when adding video

Post by carl »

It would be great if you could give this build a try.
Hes
Posts: 5
Joined: Wed Sep 09, 2015 7:44 pm

Re: "Error: avcodec_send_packet_failed" when adding video

Post by Hes »

Hi,
I quickly scanned a few files previously downloaded from YouTube, and the parsing errors seem to have vanished. So, it looks good, I will report back if I encounter any errors further down the DCP creation pipeline.

Thank you very much for your efforts! :D

Cheers, Michael.
Post Reply