Archenar commited on
Commit
bf5e03b
Β·
unverified Β·
1 Parent(s): 0c3bab8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
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
- input_preset3.change(fn=cmdb_adv, inputs=[input_preset3, input_tune3], outputs=input_textbox3)
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)