-
After installing the latest version of username@computername:~/Videos/YouBit_Test$ python3 -m youbit encode --help
Usage: python -m youbit encode [OPTIONS] INPUT [OUTPUT]
Arguments:
INPUT A path to the file you wish to encode. [required]
[OUTPUT] The directory in which to save the output. [default:
/home/unsername/Videos/YouBit_Test]
Options:
--ecc INTEGER Set the number of ECC symbols to use for FEC
encoding. Set to 0 to disable ECC. Max 255.
[default: 32]
--res TEXT Set the video resolution. Can be 'hd', '2k',
'4k' or '8k'. [default: hd]
--bpp INTEGER The 'bpp' or 'Bits Per Pixel' value to
use.Determines how many bits to store in
each pixel of the video. 1, 2 or 3.
[default: 1]
--crf INTEGER The 'crf' or 'Constant Rate Factor' to use
during video encoding. 0 - 52 inclusive.
[default: 18]
--zero-frame / --no-zero-frame Whether or not to use a zeroframes. See the
README.md for more information. [default:
no-zero-frame]
--help Show this message and exit. I, then, locally encoded a file by writing … python3 -m youbit encode ~/Videos/YouBit_Test/testFile.txt …, uploaded it to YouTube, downloaded it once again and now tried to decode it. First, I took a look at the help page of username@computername:~/Videos/YouBit_Test$ python3 -m youbit decode --help
Usage: python -m youbit decode [OPTIONS] INPUT [OUTPUT] ECC BPP ZERO_FRAME
Arguments:
INPUT A path to the file you wish to decode. [required]
[OUTPUT] A path to where you want to save the decoded file. [default:
/home/username/Videos/YouBit_Test]
ECC The number of ECC symbols that were used during encoding.
[required]
BPP The 'bpp' or 'Bits Per Pixel' value that was used during
encoding. [required]
ZERO_FRAME Whether ot not a 'zeroframe' was used during encoding.
[required]
Options:
--help Show this message and exit. Following the rules listed on this help page, however, did not help and I got an error message: username@computername:~/Videos/YouBit_Test$ python3 -m youbit decode ~/Videos/YouBit_Test/video.mp4 ~/Videos/YouBit_Test/ 32 1 false
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/username/.local/lib/python3.10/site-packages/youbit/__main__.py", line 237, in <module>
main()
File "/home/username/.local/lib/python3.10/site-packages/youbit/__main__.py", line 233, in main
app()
File "/home/username/.local/lib/python3.10/site-packages/typer/main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/home/username/.local/lib/python3.10/site-packages/typer/main.py", line 532, in wrapper
return callback(**use_params) # type: ignore
File "/home/username/.local/lib/python3.10/site-packages/youbit/__main__.py", line 202, in decode_local
decoder.decode(output=output, ecc=ecc, bpp=bpp, zero_frame=zero_frame)
TypeError: Decoder.decode() got an unexpected keyword argument 'output' What went wrong? If a do not write username@computername:~/Videos/YouBit_Test$ python3 -m youbit decode ~/Videos/YouBit_Test/video.mp4 32 1 false
Usage: python -m youbit decode [OPTIONS] INPUT [OUTPUT] ECC BPP ZERO_FRAME
Try 'python -m youbit decode --help' for help.
Error: Invalid value for 'BPP': 'false' is not a valid integer. It seems to be the case that Downloading and decoding a video in one step, however, does work. Why is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You're definitely on an older version of YouBit. Please upgrade to 2.0.0 first, the CLI should be more straightforward as well. |
Beta Was this translation helpful? Give feedback.
You're definitely on an older version of YouBit. Please upgrade to 2.0.0 first, the CLI should be more straightforward as well.