mevimo / youbit

Host any type of file on YouTube
MIT License
673 stars 27 forks source link

Support for 8k resolution videos (dav1d codec) #7

Open LinuxUserGD opened 2 years ago

LinuxUserGD commented 2 years ago

Currently decoding fails with

Traceback (most recent call last):
  File "/home/user/.local/lib/python3.10/site-packages/youbit/__main__.py", line 226, in decode_url
    filepath = decoder.decode(output)
  File "/home/user/.local/lib/python3.10/site-packages/youbit/yb.py", line 338, in decode
    with youbit.video.VideoDecoder(vid=file, zero_frame=zero_frame) as decoder:
  File "/home/user/.local/lib/python3.10/site-packages/youbit/video.py", line 169, in __init__
    raise RuntimeError(
RuntimeError: Unsupported codec: libdav1d
mevimo commented 2 years ago

Adding support for the dav1d codec might be trivial or not so much depending on the GOP structure. Might look into this sometime.