Open JoePilliner opened 2 years ago
you can add your video to the image folder demo/videos
and then change the range value so the script can process it:
video_tab.children = [ipywidgets.HBox([create_video(i) for i in range(5)])] # so here change 5 to 6 if you added a video
Nice to see that the UI is working again but I'm getting this error when I try to generate from uploaded videos:
Error Traceback (most recent call last)
[<ipython-input-2-c6ecbcc6e5a1>](https://localhost:8080/#) in generate(button)
432 if selected_video.startswith('user/') or selected_video == 'demo/videos/0.mp4':
433 with NamedTemporaryFile(suffix='.mp4') as output:
--> 434 ffmpeg.output(ffmpeg.input('output.mp4').video, ffmpeg.input(selected_video).audio, output.name, c='copy').overwrite_output().run()
435 with open('output.mp4', 'wb') as result:
436 copyfileobj(output, result)
[/usr/local/lib/python3.7/dist-packages/ffmpeg/_run.py](https://localhost:8080/#) in run(stream_spec, cmd, capture_stdout, capture_stderr, input, quiet, overwrite_output)
323 retcode = process.poll()
324 if retcode:
--> 325 raise Error('ffmpeg', out, err)
326 return out, err
Error: ffmpeg error (see stderr output for detail)