Hi, this question is for the developer or those who know how video downloading works
I see that in the local state file there are such lines:
"video_download": these are video download services
"vd_tools_info": this is adding metadata to the downloaded video file (correct me if this is not true)
why not do everything with yt-dlp and ffmpeg? download and add metadata
why not give the user a choice of what to download in the settings? which service to download from the list or which program to download, since there is such an opportunity inside the browser code
maybe in the future you can still make it possible in the settings for yt-dlp to choose what quality to download with what codecs (on the same YouTube a lot of codecs) and post-processing settings in ffmpeg?
it would be convenient in the settings of the browser itself in the parameters field for the program (similar to the Run with command line switches field) to customize this button for yourself and also what kind of post-processing you personally need in ffmpeg
Update
that's it, I figured out how the browser downloads the video
in the lines:
and
downloads services, and everything else using yt-dlp with settings
if you remove YouTube from these lines, and block the file with read-only attributes, then YouTube will download from the site using yt-dlp with the settings of their file
so if there is already such functionality in the browser, then why is it not fully available to users?
from the entire community of fans of the cent browser, and from fans of yt-dlp, I ask you to add the ability in the settings to choose for which site than to download through this button in the floating menu, and with a choice of command line settings for yt-dlp and ffmpeg... plz
I see that in the local state file there are such lines:
Code:
"video_download":{"blocked_sites":["netflix.com"],"direct_sites":["youtube.com","facebook.com","twitter.com","tiktok.com","instagram.com","twitch.tv","afreecatv.com"],"disabled_level":"0","online_downloaders":{"g0":"https://save.tube/?video={URL}","g1":"https://getvideo.org/en?url={URL}","g2":"https://fdown.net/download.php?URLz={URL}","g3":"https://twittervideodownloader.com/","g4":"https://www.flvcd.com/parse.php?format=&kw={URL}","g5":"https://www.videofk.com/douyin-video-download/search?url={URL}","g6":"https://en.savefrom.net/","g7":"https://toolzu.com/downloader/tiktok/","g8":"https://igram.io/"},"supported_sites":{"facebook.com":"g2","instagram.com":"g8","tumblr.com":"g4","twitter.com":"g3","vimeo.com":"g0","youtube.com":"g0"},"vd_tools_info":{"direct_cmd":"{TOOL_PATH} -o {OUTPUT_PATH} --no-check-certificates --force-overwrites --proxy \"{PROXY_SERVER}\" --add-header \"User-Agent:{USER_AGENT}\" --add-header \"Cookie:{COOKIES}\" --merge-output-format mp4 {URL_OR_PLAYLIST}","ff_name":"ffmpeg.exe","ff_pull_cmd":"{TOOL_PATH} -y -reconnect_on_network_error 1 -protocol_whitelist file,http,https,tcp,tls,crypto -referer \"{REFERRER}\" -user_agent \"{USER_AGENT}\" -cookies \"{COOKIES}\" -i {URL_OR_PLAYLIST} -codec copy {OUTPUT_PATH}","url":"https://static.centbrowser.cn/.misc_tools/win/vd_tools_x86.exe","v_merge_cmd":"{TOOL_PATH} -fflags +discardcorrupt -y -i {VIDEO_PATH} -codec copy -bsf:a aac_adtstoasc {OUTPUT_PATH}","va_merge_cmd":"{TOOL_PATH} -fflags +discardcorrupt -y -i {VIDEO_PATH} -i {AUDIO_PATH} -codec copy -bsf:a aac_adtstoasc {OUT_PATH}","version":"0.0","yd_name":"yt-dlp.exe","yd_pull_cmd":"{TOOL_PATH} -o {OUTPUT_PATH} --no-check-certificates --force-overwrites --proxy \"{PROXY_SERVER}\" --add-header \"User-Agent:{USER_AGENT}\" --add-header \"Cookie:{COOKIES}\" --add-header \"Referer:{REFERRER}\" --merge-output-format mp4
"vd_tools_info": this is adding metadata to the downloaded video file (correct me if this is not true)
why not do everything with yt-dlp and ffmpeg? download and add metadata
why not give the user a choice of what to download in the settings? which service to download from the list or which program to download, since there is such an opportunity inside the browser code
maybe in the future you can still make it possible in the settings for yt-dlp to choose what quality to download with what codecs (on the same YouTube a lot of codecs) and post-processing settings in ffmpeg?
it would be convenient in the settings of the browser itself in the parameters field for the program (similar to the Run with command line switches field) to customize this button for yourself and also what kind of post-processing you personally need in ffmpeg
Update
that's it, I figured out how the browser downloads the video
in the lines:
Code:
"direct_sites": ["youtube.com", "facebook.com", "twitter.com", "tiktok.com", "instagram.com", "twitch.tv", "afreecatv.com"]
Code:
"supported_sites": {
"facebook.com": "g2",
"instagram.com": "g8",
"tumblr.com": "g4",
"twitter.com": "g3",
"vimeo.com": "g0",
"youtube.com": "g0"
}
if you remove YouTube from these lines, and block the file with read-only attributes, then YouTube will download from the site using yt-dlp with the settings of their file
so if there is already such functionality in the browser, then why is it not fully available to users?
from the entire community of fans of the cent browser, and from fans of yt-dlp, I ask you to add the ability in the settings to choose for which site than to download through this button in the floating menu, and with a choice of command line settings for yt-dlp and ffmpeg... plz