Archenar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -63,11 +63,12 @@ with gr.Blocks(title="FFmo - FFmpeg Online", theme=gr.themes.Soft()) as main:
|
|
63 |
input_tune = gr.Radio(["film β use for high quality movie content; lowers deblocking", "animation β good for cartoons; uses higher deblocking and more reference frames", "grain β preserves the grain structure in old, grainy film material", "stillimage β good for slideshow-like content", "fastdecode β allows faster decoding by disabling certain filters", "zerolatency β good for fast encoding and low-latency streaming", "psnr β ignore this as it is only used for codec development", "ssim β ignore this as it is only used for codec development"], value=["film β use for high quality movie content; lowers deblocking"], label="Tune (Required)", info="Tuning Setting")
|
64 |
input_video = gr.Video(label="Input Video")
|
65 |
input_textbox = gr.Textbox(label="FFMPEG Command")
|
|
|
66 |
|
67 |
with gr.Column() as out_si:
|
68 |
output_textbox = gr.Textbox(label="Output Logs", interactive=False)
|
69 |
output_video = gr.Video(label="Output Video", interactive=False)
|
70 |
-
|
71 |
startconv = gr.Button("Start", variant="primary").click(fn=convert, inputs=[input_video,input_textbox], outputs=[output_textbox, output_video])
|
72 |
clear_button = gr.ClearButton([input_fps, input_preset, input_tune, input_video, input_textbox, output_textbox, output_video])
|
73 |
|
@@ -79,11 +80,12 @@ with gr.Blocks(title="FFmo - FFmpeg Online", theme=gr.themes.Soft()) as main:
|
|
79 |
input_tune2 = gr.Radio(["film β use for high quality movie content; lowers deblocking", "animation β good for cartoons; uses higher deblocking and more reference frames", "grain β preserves the grain structure in old, grainy film material", "stillimage β good for slideshow-like content", "fastdecode β allows faster decoding by disabling certain filters", "zerolatency β good for fast encoding and low-latency streaming", "psnr β ignore this as it is only used for codec development", "ssim β ignore this as it is only used for codec development"], value=["film β use for high quality movie content; lowers deblocking"], label="Tune (Required)", info="Tuning Setting")
|
80 |
input_video2 = gr.Video(label="Input Video")
|
81 |
input_textbox2 = gr.Textbox(label="FFMPEG Command")
|
|
|
82 |
|
83 |
with gr.Column() as out_fb:
|
84 |
output_textbox2 = gr.Textbox(label="Output Logs", interactive=False)
|
85 |
output_video2 = gr.Video(label="Output Video", interactive=False)
|
86 |
-
|
87 |
startconv2 = gr.Button("Start", variant="primary").click(fn=convert, inputs=[input_video2,input_textbox2], outputs=[output_textbox2, output_video2])
|
88 |
clear_button2 = gr.ClearButton([input_fps2, input_preset2, input_tune2, input_video2, input_textbox2, output_textbox2, output_video2])
|
89 |
|
@@ -94,7 +96,8 @@ with gr.Blocks(title="FFmo - FFmpeg Online", theme=gr.themes.Soft()) as main:
|
|
94 |
input_tune3 = gr.Radio(["film β use for high quality movie content; lowers deblocking", "animation β good for cartoons; uses higher deblocking and more reference frames", "grain β preserves the grain structure in old, grainy film material", "stillimage β good for slideshow-like content", "fastdecode β allows faster decoding by disabling certain filters", "zerolatency β good for fast encoding and low-latency streaming", "psnr β ignore this as it is only used for codec development", "ssim β ignore this as it is only used for codec development"], value=["film β use for high quality movie content; lowers deblocking"], label="Tune (Required)", info="Tuning Setting")
|
95 |
input_textbox3 = gr.Textbox(label="FFMPEG Command")
|
96 |
input_video3 = gr.Video(label="Input Video")
|
97 |
-
|
|
|
98 |
with gr.Column() as out_main:
|
99 |
output_textbox3 = gr.Textbox(label="Output Logs", interactive=False)
|
100 |
output_video3 = gr.Video(label="Output Video", interactive=False)
|
|
|
63 |
input_tune = gr.Radio(["film β use for high quality movie content; lowers deblocking", "animation β good for cartoons; uses higher deblocking and more reference frames", "grain β preserves the grain structure in old, grainy film material", "stillimage β good for slideshow-like content", "fastdecode β allows faster decoding by disabling certain filters", "zerolatency β good for fast encoding and low-latency streaming", "psnr β ignore this as it is only used for codec development", "ssim β ignore this as it is only used for codec development"], value=["film β use for high quality movie content; lowers deblocking"], label="Tune (Required)", info="Tuning Setting")
|
64 |
input_video = gr.Video(label="Input Video")
|
65 |
input_textbox = gr.Textbox(label="FFMPEG Command")
|
66 |
+
buildcmd = gr.Button("Build FFMPEG Command", variant="primary").click(fn=cmdb_si, inputs=[input_fps,input_preset,input_tune], outputs=[input_textbox])
|
67 |
|
68 |
with gr.Column() as out_si:
|
69 |
output_textbox = gr.Textbox(label="Output Logs", interactive=False)
|
70 |
output_video = gr.Video(label="Output Video", interactive=False)
|
71 |
+
|
72 |
startconv = gr.Button("Start", variant="primary").click(fn=convert, inputs=[input_video,input_textbox], outputs=[output_textbox, output_video])
|
73 |
clear_button = gr.ClearButton([input_fps, input_preset, input_tune, input_video, input_textbox, output_textbox, output_video])
|
74 |
|
|
|
80 |
input_tune2 = gr.Radio(["film β use for high quality movie content; lowers deblocking", "animation β good for cartoons; uses higher deblocking and more reference frames", "grain β preserves the grain structure in old, grainy film material", "stillimage β good for slideshow-like content", "fastdecode β allows faster decoding by disabling certain filters", "zerolatency β good for fast encoding and low-latency streaming", "psnr β ignore this as it is only used for codec development", "ssim β ignore this as it is only used for codec development"], value=["film β use for high quality movie content; lowers deblocking"], label="Tune (Required)", info="Tuning Setting")
|
81 |
input_video2 = gr.Video(label="Input Video")
|
82 |
input_textbox2 = gr.Textbox(label="FFMPEG Command")
|
83 |
+
buildcmd2 = gr.Button("Build FFMPEG Command", variant="primary").click(fn=cmdb_fb, inputs=[input_fps2,input_preset2,input_tune2], outputs=[input_textbox2])
|
84 |
|
85 |
with gr.Column() as out_fb:
|
86 |
output_textbox2 = gr.Textbox(label="Output Logs", interactive=False)
|
87 |
output_video2 = gr.Video(label="Output Video", interactive=False)
|
88 |
+
|
89 |
startconv2 = gr.Button("Start", variant="primary").click(fn=convert, inputs=[input_video2,input_textbox2], outputs=[output_textbox2, output_video2])
|
90 |
clear_button2 = gr.ClearButton([input_fps2, input_preset2, input_tune2, input_video2, input_textbox2, output_textbox2, output_video2])
|
91 |
|
|
|
96 |
input_tune3 = gr.Radio(["film β use for high quality movie content; lowers deblocking", "animation β good for cartoons; uses higher deblocking and more reference frames", "grain β preserves the grain structure in old, grainy film material", "stillimage β good for slideshow-like content", "fastdecode β allows faster decoding by disabling certain filters", "zerolatency β good for fast encoding and low-latency streaming", "psnr β ignore this as it is only used for codec development", "ssim β ignore this as it is only used for codec development"], value=["film β use for high quality movie content; lowers deblocking"], label="Tune (Required)", info="Tuning Setting")
|
97 |
input_textbox3 = gr.Textbox(label="FFMPEG Command")
|
98 |
input_video3 = gr.Video(label="Input Video")
|
99 |
+
buildcmd3 = gr.Button("Build FFMPEG Command", variant="primary").click(fn=cmdb_adv, inputs=[input_preset3,input_tune3], outputs=[input_textbox3])
|
100 |
+
|
101 |
with gr.Column() as out_main:
|
102 |
output_textbox3 = gr.Textbox(label="Output Logs", interactive=False)
|
103 |
output_video3 = gr.Video(label="Output Video", interactive=False)
|