shaka-project / shaka-streamer

A simple config-file based approach to preparing streaming media, based on FFmpeg and Shaka Packager.
https://shaka-project.github.io/shaka-streamer/
Apache License 2.0
198 stars 62 forks source link

Type error using shaka streamer #99

Closed upanitag closed 3 years ago

upanitag commented 3 years ago

% ./shaka-streamer -i input.yaml -p pipeline.yaml -o output/ Traceback (most recent call last): File "./shaka-streamer", line 125, in sys.exit(main()) File "./shaka-streamer", line 107, in main not args.use_system_binaries): TypeError: start() takes from 4 to 7 positional arguments but 8 were given

input.yaml inputs:

pipeline.yaml

video_codecs:

joeyparrish commented 3 years ago

Do you have more than one version of shaka-streamer? Say, one from source and another installed through pip?

mariocynicys commented 3 years ago

@upanitag I believe you most probably have downloaded the latest version of shaka-streamer script and placed it in your working directory, while still having the old version of the project installed through pip. The script alone won't do, you need to pull the latest version of the whole project either through pip or GitHub.

Running this should fix your error:

pip3 install --upgrade shaka-streamer

And you should not move the shaka-streamer script anywhere, you should be able to run the command like this:

shaka-streamer -i input.yaml -p pipeline.yaml -o output/

Notice shaka-streamer not ./shaka-streamer, this will invoke the script's latest version pulled through pip.

upanitag commented 3 years ago

Thanks @joeyparrish & @meryacine. It worked!