Closed effleurager closed 7 years ago
I've run into this and it's bad input. If I run youtube-dl -v
it tells me:
...
[download] 100% of 2.41GiB
[ffmpeg] Adding metadata to 'Pilot-705e9452-4156-4f98-8cea-21372097ad05.mp4'
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i file:Pilot-705e9452-4156-4f98-8cea-21372097ad05.mp4 -i file:Pilot-705e9452-4156-4f98-8cea-21372097ad05.meta -c copy -metadata title=Pilot -metadata date=20210408 -metadata 'description=A quarter-life crisis causes a young Chinese American woman, Nicky Shen, to drop out of college and go on a life-changing journey to an isolated monastery in China.' -metadata 'comment=A quarter-life crisis causes a young Chinese American woman, Nicky Shen, to drop out of college and go on a life-changing journey to an isolated monastery in China.' -metadata 'purl=https://www.cwtv.com/shows/kung-fu/pilot/?play=705e9452-4156-4f98-8cea-21372097ad05' -metadata artist=CWTV -metadata 'show=Kung Fu' -metadata season_number=1 -metadata 'episode_id=Episode 1' -metadata episode_sort=1 -map_metadata 1 file:Pilot-705e9452-4156-4f98-8cea-21372097ad05.temp.mp4
ERROR: file:Pilot-705e9452-4156-4f98-8cea-21372097ad05.meta: Cannot allocate memory
Running that command myself gives:
...
[ffmetadata @ 0x55e583d5cea0] Chapter end time 0 before start 2204000
file:Pilot-705e9452-4156-4f98-8cea-21372097ad05.meta: Cannot allocate memory
The error isn't super useful/accurate but the message before it is.
$ tail -n 4 Pilot-705e9452-4156-4f98-8cea-21372097ad05.meta
[CHAPTER]
TIMEBASE=1/1000
START=2204000
END=0
The chapter metadata should be validated/cleaned before passing it to ffmpeg.
Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add
-v
flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):Description of your issue, suggested solution and other information
youtube-dl outputs a malformed metadata file, which avconv responds to with:
[ffmetadata @ 0xf796a0] Chapter end time 283000 before start 810000
Metadata file
From the youtube extractor, only 1 time_point is extracted: 13:30, or 810 seconds.
● LCS Spring finals: Saturday and Sunday from 13:30 outside the venue!
This is beyond the duration of the video, 283 seconds. A validation test should be added, which makes sure that start_time < end_time, before adding an object to the chapters list.