It appears to be that mp4 file type is the only file type on youtube that can be copied, which does not result in a good file.
Therefore, making flv file with ffmpeg is better option.
Quote:
Originally Posted by j_cool
for /f %%a in ('dt.exe') do set d=%%a
youtube-dl.exe --get-url -f 94 --no-check-certificate https://www.youtube.com/watch?v=y60wDzZt8yg | clip
for /f %%b in ('clb.exe') do set url=%%b
ffmpeg -user-agent Mozilla/5.0 -i %url% -c:v h264 -c:a aac c:\SKY_%d%.flv
|
dt.au3
$dtime = @YEAR & '-' & @MON & '-' & @MDAY & '_' & @HOUR & '-' & @MIN & '-' & @SEC
consolewrite($dtime)
clb.au3
$var = ClipGet()
ConsoleWrite($var)
https://www.youtube.com/watch?v=y60wDzZt8yg
Code:
C:\MISC\~>youtube-dl.exe -v -F --no-check-certificate https://www.youtube.com/watch?v=y60wDzZt8yg
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '-F', '--no-check-certificate', 'https://www.youtube.com/watch?v=y60wDzZt8yg']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.07.30.1
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg 3.3.2, ffprobe 3.3.2, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] y60wDzZt8yg: Downloading webpage
[youtube] y60wDzZt8yg: Downloading video info webpage
[youtube] y60wDzZt8yg: Extracting video information
[youtube] y60wDzZt8yg: Downloading m3u8 information
[youtube] y60wDzZt8yg: Downloading MPD manifest
[info] Available formats for y60wDzZt8yg:
format code extension resolution note
91 mp4 256x144 HLS 197k , avc1.42c00b, mp4a.40.5@ 48k
92 mp4 426x240 HLS 338k , avc1.4d4015, mp4a.40.5@ 48k
93 mp4 640x360 HLS 829k , avc1.4d401e, mp4a.40.2@128k
94 mp4 854x480 HLS 1380k , avc1.4d401f, mp4a.40.2@128k
95 mp4 1280x720 HLS 2593k , avc1.4d401f, mp4a.40.2@256k
96 mp4 1920x1080 HLS 4715k , avc1.640028, mp4a.40.2@256k (best)