Would still be interested to learn more about how to use subprocesses on Streamlit Cloud, but my app is working again for now. input/backgrounds/background_5.jpg'ĮTA #2: I ended up “fixing” it by just removing this step and instead processing the images so that they’re all 512x512 so that I can make more assumptions later on. I still see: FileNotFoundError: No such file or directory: 'ffprobe -v error -select_streams v:0 -show_entries stream=width -of csv=s=x:p=0. Selected_image = image_select("Background choices", backgrounds)ĮTA: Adding ffmpeg to packages.txt did not change the error. If os.path.isfile(os.path.join(background_input_path, path)):īackgrounds.append(background_input_path + path) They don't need to be the same size, but ideally they're square # Check if current path is a file and add it to a list background_input_path = "./input/backgrounds/"įor path in os.listdir(background_input_path): I’m using this custom image selector module to let the user pick from a set of images that live together in a folder. Use pip install ffmpeg (or ffmpeg-python if thats what youre trying to install) Try uninstalling FFmpeg and reinstalling with ffmpeg-python If all else. Some additional information in case it’s helpful.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |