Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def chamada():
|
|
60 |
height = vcap.get(4) # float `height`
|
61 |
fps = vcap.get(5)
|
62 |
|
63 |
-
|
64 |
os.system("ffmpeg -i /tmp/inputvideo -compression_level 10 -pred mixed -pix_fmt rgb24 -sws_flags +accurate_rnd+full_chroma_int -s 720x1280 -r 30 /tmp/_input/imagem-%4d.png")
|
65 |
percent_complete= percent_complete+ 30
|
66 |
with col1:
|
@@ -93,8 +93,8 @@ def chamada():
|
|
93 |
# with col1:
|
94 |
# st.write("recompilando video")
|
95 |
#ffmpeg -r 60 -f image2 -s 1920x1080 -i _output/restored_imgs/imagem-%4d.png -pix_fmt yuv420p ./videoSaida/output.mp4
|
96 |
-
os.system("ffmpeg -y -r 30 -f image2 -i /tmp/_output/restored_imgs/imagem-%4d.png -pix_fmt yuv420p /tmp/videoSaida/
|
97 |
-
|
98 |
os.system("ls /tmp/videoSaida")
|
99 |
#st.video("./videoSaida/output.mp4" )
|
100 |
with col1:
|
|
|
60 |
height = vcap.get(4) # float `height`
|
61 |
fps = vcap.get(5)
|
62 |
|
63 |
+
# os.system("ffmpeg -i /tmp/inputvideo -vn -acodec copy /tmp/inputvideo.acc")
|
64 |
os.system("ffmpeg -i /tmp/inputvideo -compression_level 10 -pred mixed -pix_fmt rgb24 -sws_flags +accurate_rnd+full_chroma_int -s 720x1280 -r 30 /tmp/_input/imagem-%4d.png")
|
65 |
percent_complete= percent_complete+ 30
|
66 |
with col1:
|
|
|
93 |
# with col1:
|
94 |
# st.write("recompilando video")
|
95 |
#ffmpeg -r 60 -f image2 -s 1920x1080 -i _output/restored_imgs/imagem-%4d.png -pix_fmt yuv420p ./videoSaida/output.mp4
|
96 |
+
os.system("ffmpeg -y -r 30 -f image2 -i /tmp/_output/restored_imgs/imagem-%4d.png -pix_fmt yuv420p /tmp/videoSaida/output.mp4")
|
97 |
+
# os.system("ffmpeg -i /tmp/videoSaida/outputp1.mp4 -i /tmp/inputvideo.acc -c:v copy -c:a aac /tmp/output.mp4")
|
98 |
os.system("ls /tmp/videoSaida")
|
99 |
#st.video("./videoSaida/output.mp4" )
|
100 |
with col1:
|