Archenar
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -94,9 +94,7 @@ 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 |
-
input_tune3.change(fn=cmdb_adv, inputs=[input_preset3, input_tune3], outputs=input_textbox3)
|
99 |
-
|
100 |
with gr.Column() as out_main:
|
101 |
output_textbox3 = gr.Textbox(label="Output Logs", interactive=False)
|
102 |
output_video3 = gr.Video(label="Output Video", interactive=False)
|
|
|
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 |
+
buildcmd = gr.Button("Build FFMPEG Command", variant="primary").click(fn=cmdb_adv, inputs=[input_preset3,input_tune3], outputs=[input_textbox3])
|
|
|
|
|
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)
|