Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ import gradio as gr
|
|
9 |
os.system("chmod +x fdkaac") # Ensure fdkaac is executable
|
10 |
|
11 |
accel = 'auto'
|
12 |
-
video_base_opts = ['-crf', '63', '-c:v', 'libx264', '-tune', 'zerolatency']
|
13 |
|
14 |
UPLOAD_FOLDER = 'uploads'
|
15 |
CONVERTED_FOLDER = 'converted'
|
@@ -156,7 +156,7 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="rose")) as demo:
|
|
156 |
|
157 |
with gr.Group():
|
158 |
with gr.Row():
|
159 |
-
use_youtube = gr.Checkbox(label="π Use YouTube URL (
|
160 |
youtube_url = gr.Textbox(label="YouTube URL", placeholder="Paste YouTube URL here")
|
161 |
video_file = gr.File(label="π Upload Video File")
|
162 |
|
|
|
9 |
os.system("chmod +x fdkaac") # Ensure fdkaac is executable
|
10 |
|
11 |
accel = 'auto'
|
12 |
+
video_base_opts = ['-crf', '63', '-c:v', 'libx264', '-tune', 'zerolatency', '-movflags', '+faststart']
|
13 |
|
14 |
UPLOAD_FOLDER = 'uploads'
|
15 |
CONVERTED_FOLDER = 'converted'
|
|
|
156 |
|
157 |
with gr.Group():
|
158 |
with gr.Row():
|
159 |
+
use_youtube = gr.Checkbox(label="π Use YouTube URL (If ran locally, then it works.)", value=False)
|
160 |
youtube_url = gr.Textbox(label="YouTube URL", placeholder="Paste YouTube URL here")
|
161 |
video_file = gr.File(label="π Upload Video File")
|
162 |
|