Skip to content
Advertisement

Tag: youtube-dl

youtube-dl change output path only for converted videos (–recode-video)?

I want to download a video with bestvideo+bestaudio quality and save the converted video to a different location. for example command below produces this: but I want something like this: Can I change the location for ffmpeg output? Answer I read the documentation here. The solution was to use –exec flag youtube-dl -f bestvideo+bestaudio -k –exec ‘mv {} ./output/{}’ 1G4isv_Fylg

youtube-dl sometime hangs with “[ffmpeg] Correcting container”

Ubuntu 16.04 I have a bash script that attemts to download a youtube video. The output is below. The problem is that sometimes it works perfectly (completes quickly). But most of the time it hangs on “Correcting container….”. Does anyone know why? Answer I installed the latest ffmpeg and use the following: /usr/local/bin/youtube-dl -q –no-warnings –fixup –prefer-ffmpeg — ffmpeg-location /usr/local/bin

Add id to the downloaded youtube playlist

I’ve downloaded a youtube playlist with youtube-dl is there any way i can rename the files i’ve downloaded to the appended id of the file in playlist. e.g. now xyz.mp4 abc.mkv want 1 – xyz.mp4 2 – abc.mkv (which is according to the number in the youtube playlist) Answer If the files are sortable by date (check if the following

Advertisement