Archenar commited on
Commit
9fd40c2
Β·
unverified Β·
1 Parent(s): c7ac3f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -50,8 +50,8 @@ def cmdb_fb(a, b, c):
50
  # Command Builder: Advanced
51
  def cmdb_adv(a, b):
52
  tuning = b.split(" –")[0]
53
- gr.Textbox.update(value=f"-preset {a} -tune {b}")
54
- # return f"-preset {a} -tune {b}"
55
 
56
  with gr.Blocks(title="FFmo - FFmpeg Online", theme=gr.themes.Soft()) as main:
57
  with gr.Tabs():
@@ -94,8 +94,8 @@ with gr.Blocks(title="FFmo - FFmpeg Online", theme=gr.themes.Soft()) as main:
94
  with gr.Column() as inp_main:
95
  input_preset3 = gr.Dropdown(["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow"], value=["veryslow"], label="Preset (Required)", info="Semakin lama (slow), semakin bagus hasilnya.")
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:
 
50
  # Command Builder: Advanced
51
  def cmdb_adv(a, b):
52
  tuning = b.split(" –")[0]
53
+ #gr.Textbox.update(value=f"-preset {a} -tune {b}")
54
+ return f"-preset {a} -tune {b}"
55
 
56
  with gr.Blocks(title="FFmo - FFmpeg Online", theme=gr.themes.Soft()) as main:
57
  with gr.Tabs():
 
94
  with gr.Column() as inp_main:
95
  input_preset3 = gr.Dropdown(["ultrafast", "superfast", "veryfast", "faster", "fast", "medium", "slow", "slower", "veryslow"], value=["veryslow"], label="Preset (Required)", info="Semakin lama (slow), semakin bagus hasilnya.")
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_video3 = gr.Video(label="Input Video")
98
+ input_textbox3 = gr.Textbox(label="FFMPEG Command")
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: