Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def chamada():
|
|
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 "+str(int(width/2))+"x"+str(int(height/2))+" -r 29 /tmp/_input/imagem-%4d.png")
|
65 |
percent_complete= percent_complete+ 30
|
66 |
with col1:
|
67 |
my_bar.progress(percent_complete )
|
@@ -93,7 +93,7 @@ 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 29 -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" )
|
|
|
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 "+str(int(width/2))+"x"+str(int(height/2))+" -r 29.97 /tmp/_input/imagem-%4d.png")
|
65 |
percent_complete= percent_complete+ 30
|
66 |
with col1:
|
67 |
my_bar.progress(percent_complete )
|
|
|
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 29.97 -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" )
|