It will encode video to null (or /dev/null
).
ffmpeg -v error -i problem_video.mp4 -f null -
#!/bin/sh | |
# | |
# Based on the TheFrenchGhosty's Ultimate YouTube-DL Scripts Collection: The ultimate collection of scripts for YouTube-DL | |
# https://github.com/TheFrenchGhosty/TheFrenchGhostys-Ultimate-YouTube-DL-Scripts-Collection | |
# Version: 3.2.2 | |
# | |
STORAGE_PATH="~/youtube/" | |
SUBSCRIPTIONS_FILE="youtube-subscriptions.lst" | |
DOWNLOAD_ARCHIVE="downloaded-videos.lst" | |
LOG_FILE="yt-dlp.log" |
# Prerequisite | |
pip install git+https://github.com/FlyingWolFox/Netscape-Bookmarks-File-Parser.git | |
python # Snippet 1 | |
cd ~/storage/downloads | |
mkdir tmp/th && cd tmp/th | |
# Download descs | |
yt-dlp --skip-download --write-description --no-mtime $(cat ../../bookmarks_pure.txt) |
Keep in mind that if you're not careful when selecting the settings, not only will it remove the preinstalled TikTok app but also the default photo viewer. Other than that works great.
I recently received an Intel A750 from an Intel run contest. My idea for it was to replace the GTX 1660 in my media server with it, as it has AV1 encode/decode and faster encoding. Before installing my A750 in my media server, I had to make sure it will actually work, and work well with ffmpeg.
This took some time spanning a couple of days to figure out, but I managed to get it almost completely working thanks to coming across this post, and the very helpful user who wrote it (u/Mr_Deathproof): https://www.reddit.com/r/Tdarr/comments/yvsq3n/got_my_intel_arc_a380_dg2_to_work_with_booshs_qsv/iwhsezk/
I've adapted this to include solutions to issues I faced, and following method should work on a fresh install of Ubuntu 22.04.
Disclaimer: I'm not proficient at Linux, and there may be a much simpler method of doing this. This will also be using a "bleeding edge" kernel.
Make sure your user is in the render
and video
groups:
#!/bin/bash | |
# curl -fsSL https://gist.github.com/chthollyphile/d2a09d2b38483800439280cc82ccf943/raw/e67fce260037cee50ad82628b711c6987e5227b0/alist-download-env.bash | bash -s install | |
apt install -y python-is-python3 | |
apt install -y pip | |
apt install -y ffmpeg | |
pip install yt-dlp | |
pip install ffmpeg | |
ufw disable | |
ips=`ifconfig -a|grep inet|grep -v 127.0.0.1|grep -v inet6|awk '{print $2}'|tr -d "addr:"` | |
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install |
#!/bin/bash # any bash-script should start with "shebang"-lint | |
# after #! indicate path to the bash interpetator | |
############################################# | |
# get updates | |
sudo apt update | |
apt list --upgradable | |
sudo apt upgrade | |
sudo apt dist-upgrade |
# https://www.smarthomebeginner.com/install-docker-on-ubuntu-22-04/ | |
# This is my current / up-to-date list of bash aliases. | |
# This is the exact same file that is on all of my hosts - synced using Synthing. | |
# Aliases will automatically adapt slightly based on the host. | |
# SOURCE ENVIRONMENTAL VARIABLES FOR BASH_ALIASES | |
# Sensitive information goes into the .env file - this allows me to share my bash aliases with the community | |
# Rename shared/config/bash_aliases.env.example and use it as a starter | |
source ~/.bash_aliases.env |
The following was adapted from: