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