Archenar
commited on
Update app.py
Browse files
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 |
-
|
| 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:
|