Closed1
Streamlitで動画をダウンロードするボタン
if uploaded_file:
with open("temp.mp4", "wb") as f:
f.write(uploaded_file.getvalue())
# FPS変更処理
output_filename = f"output_{fps}fps.mp4"
change_fps("temp.mp4", output_filename, fps)
# ダウンロードボタン
st.download_button(
label="Download mp4",
data=open(output_filename, "br"),
file_name=output_filename,
mime="video/mp4",
)
このスクラップは2024/07/18にクローズされました