Master Troll
kiwifarms.net
- Joined
- Apr 22, 2020
Thread for solving problems and exploring features of this editing tool
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
youtube-dl --get-url -f best --no-cache "<Video URL>"
ffmpeg -ss <Start Time> -t <End Time> -i <URL From youtube-dl> out.mp4
ffmpeg -safe 0 -f concat -i list.txt -c copy output.mp4
file 'path/to/file.ext'
ffmpeg -i input.avi -c:v libx264 -preset slow -crf 22 -c:a copy output.mkv |
ffmpeg -i input.avi -c:v libx264 -preset slow -crf 22 -map 0:0 -map 0:1 -map 0:2 -c:a copy output.mp4 |
youtube-dl --write-auto-sub --sub-lang en '<URL From youtube-dl>' |
youtube-dl --all-subs --write-auto-sub --skip-download <URL From youtube-dl> |
youtube-dl -o '%(upload_date)s %(title)s.%(ext)s' --write-description --write-thumbnail <Video URL>
did youtube-dl ever get downloading on twitch for content you needed a subscription for? It used to let you feed in a login/pass but then twitch put in some hidden captcha thing
-u, --username USERNAME |
-p, --password PASSWORD |
-2, --twofactor TWOFACTOR |
-n, --netrc |
--video-password PASSWORD |
touch $HOME/.netrc |
chmod a-rwx,u+rw $HOME/.netrc |
machine youtube login myaccount@gmail.com password my_youtube_password |
machine twitch login my_twitch_account_name password my_twitch_password |
Yep! Just a slight thing. SpecifyingPaste the URL you got from the above command into this ffmpeg command:
ffmpeg -ss <Start Time> -t <End Time> -i <URL From youtube-dl> out.mp4
Parameters:
- The -ss parameter is the time you want to start downloading the video at for example 00:00:30 starts at 30 seconds
- The -t parameter is the time you want to stop downloading the video at for example 00:01:40 stops downloading at 1 minute and 40 seconds
- The -i parameter it the URL you got from youtube-dl from the first command
-t
gives the duration for the clip, not the end time. For the end time you want -to
instead.ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 output.mp4 |
ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f alsa -ac 2 -i hw:0 output.mkv |
ffmpeg -video_size 1024x768 -framerate 25 -f x11grab -i :0.0+100,200 -f pulse -ac 2 -i default output.mkv |
ffmpeg -f [audio-driver] -i default -f x11grab -s [resolution] -i :0.0+[point-X],[point-Y] -r 25 -vcodec libx264 output.mkv |
ffmpeg -f alsa -i default -f x11grab -s 720x480 -i :0.0+180,120 -r 25 -vcodec libx264 output.mkv |
If I'm not mistake youtube-dl does not currently have an option to download a section of a video without downloading the entire video first, however ffmpeg allowed me to fix that problem:
Use youtube-dl to get the actual URL of the video first:
youtube-dl --get-url -f best --no-cache "<Video URL>"
Parameters:
The -g tells youtube-dl to get the actual URL for the video The -f specifies the format you can change this to whatever you want but I chose best here The --no-cache parameter means youtube-dl will request a new URL instead of relying on a cached one
Paste the URL you got from the above command into this ffmpeg command:
ffmpeg -ss <Start Time> -t <End Time> -i <URL From youtube-dl> out.mp4
Parameters:
- The -ss parameter is the time you want to start downloading the video at for example 00:00:30 starts at 30 seconds
- The -t parameter is the time you want to stop downloading the video at for example 00:01:40 stops downloading at 1 minute and 40 seconds
- The -i parameter it the URL you got from youtube-dl from the first command
Probably pretty basic, but the only ffmpeg command I have saved is to combine multiple mp4's into one.
ffmpeg -safe 0 -f concat -i list.txt -c copy output.mp4
If you don't set -safe 0, it'll find reasons to not work.
list.txt is just a list of the mp4s to be joined:
file 'path/to/file.ext'
Unless...Converting an animated gif to mp4 video which reduces the filesize to a fraction of that of a gif.
ffmpeg -i animated.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" video.mp4
Your settings work way better than mine, so thanks! What I meant with "unless..." was that heavily dithered gifs can make the mp4 larger than the gif.Koala.gif is 23.4 MB
Koala.mp4 is 1.7 MB
Massive savings in bandwidth.
ffmpeg -i koala.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" koala.mp4
View attachment 1874141