打开/关闭搜索
搜索
打开/关闭菜单
通知
打开/关闭个人菜单
查看“You-get”的源代码
来自OSSmedia
查看
阅读
查看源代码
查看历史
associated-pages
页面
讨论
更多操作
←
You-get
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
==batch download== <pre> #!/bin/bash # Base URL of the playlist or video base_url="https://example.com/video?p=" # Path to the cookie file cookie_file="cookies.txt" # folder output_folder="output" # Loop from part 15 to part 44 for i in {15..44} do # Construct the full URL url="${base_url}${i}" # Use you-get with the cookie file to download the video you-get -o "$output_folder" -c "$cookie_file" "$url" done </pre> ==create filelist == <pre> generate_filelist() { # Create or overwrite the filelist.txt > filelist.txt # Loop through all .mp4 files in the current directory for file in *.mp4 do # Escape single quotes in filenames and append to filelist.txt echo "file '$(echo "$file" | sed "s/'/'\\\\''/g")'" >> filelist.txt done echo "filelist.txt has been created with the list of MP4 files." } </pre> == merge them == ffmpeg -f concat -safe 0 -i filelist.txt -c copy output.mp4
返回
You-get
。