Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -77,8 +77,6 @@ def convert_video(use_youtube, youtube_url, video_file, downscale, faster, use_m
|
|
77 |
# Build the FFmpeg command.
|
78 |
ffmpeg_cmd = ['./ffmpeg', '-hwaccel', accel, '-y', '-i', input_path] + extra.split()
|
79 |
|
80 |
-
if downscale:
|
81 |
-
ffmpeg_cmd.extend(['-vf', 'scale=144:-2'])
|
82 |
if faster:
|
83 |
ffmpeg_cmd.extend(['-preset', 'ultrafast'])
|
84 |
|
@@ -108,9 +106,6 @@ with gr.Blocks() as demo:
|
|
108 |
youtube_url = gr.Textbox(label="YouTube URL", placeholder="Enter YouTube URL here")
|
109 |
video_file = gr.File(label="Upload Video")
|
110 |
|
111 |
-
with gr.Row():
|
112 |
-
downscale = gr.Checkbox(label="Downscale Video (144p)", value=False)
|
113 |
-
faster = gr.Checkbox(label="Faster Conversion (more pixelated)", value=False)
|
114 |
with gr.Row():
|
115 |
use_mp3 = gr.Checkbox(label="Use MP3 (video audio compression)", value=False)
|
116 |
audio_only = gr.Checkbox(label="Only Audio (no video)", value=False)
|
|
|
77 |
# Build the FFmpeg command.
|
78 |
ffmpeg_cmd = ['./ffmpeg', '-hwaccel', accel, '-y', '-i', input_path] + extra.split()
|
79 |
|
|
|
|
|
80 |
if faster:
|
81 |
ffmpeg_cmd.extend(['-preset', 'ultrafast'])
|
82 |
|
|
|
106 |
youtube_url = gr.Textbox(label="YouTube URL", placeholder="Enter YouTube URL here")
|
107 |
video_file = gr.File(label="Upload Video")
|
108 |
|
|
|
|
|
|
|
109 |
with gr.Row():
|
110 |
use_mp3 = gr.Checkbox(label="Use MP3 (video audio compression)", value=False)
|
111 |
audio_only = gr.Checkbox(label="Only Audio (no video)", value=False)
|