1 |
This thread has piqued my interest in youtube-dl. I'm trying to get |
2 |
best audio and video together in a 1920x1080 video for Youtube URL |
3 |
https://www.youtube.com/watch?v=A9tKncAdlHQ |
4 |
|
5 |
My config file is... |
6 |
|
7 |
-f bestvideo[width<=1920]+bestaudio |
8 |
--merge-output-format mp4 |
9 |
--no-mtime |
10 |
--no-playlist |
11 |
-o ~/ytdl/%(title)s.%(ext)s |
12 |
--restrict-filenames |
13 |
|
14 |
If I use "-f bestvideo[width<=1920]" I get a 1920x1080 video...with no |
15 |
sound. If I use "-f best[width<=1920]" I get a 1280x720 video with |
16 |
sound. That works, but I want the best of both worlds. With |
17 |
"-f bestvideo[width<=1920]+bestaudio", ffmpeg fails... |
18 |
|
19 |
[i660][waltdnes][~/ytdl] youtube-dl https://www.youtube.com/watch?v=A9tKncAdlHQ |
20 |
[youtube] A9tKncAdlHQ: Downloading webpage |
21 |
[youtube] Downloading just video A9tKncAdlHQ because of --no-playlist |
22 |
[download] Destination: /home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.f137.mp4 |
23 |
[download] 100% of 31.55MiB in 00:17 |
24 |
[download] Destination: /home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.f251.webm |
25 |
[download] 100% of 6.65MiB in 00:03 |
26 |
[ffmpeg] Merging formats into "/home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.mp4" |
27 |
ERROR: Stream #1:0 -> #0:1 (copy) |
28 |
|
29 |
Any idea what's wrong? |
30 |
|
31 |
"emerge -pv ffmpeg" gives... |
32 |
[ebuild R ] media-video/ffmpeg-3.4.5:0/55.57.57::gentoo USE="X bzip2 encode gpl hardcoded-tables network opengl postproc threads truetype vaapi vpx webp x264 x265 zlib -alsa (-altivec) -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -chromium -cpudetection -debug -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gnutls -gsm -iconv -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libass -libcaca -libdrm -libilbc -librtmp -libsoxr -libv4l -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -mp3 -nvenc -openal -opencl -openh264 -openssl -opus -oss -pic -pulseaudio -rubberband -samba -sdl -snappy -speex -ssh -static-libs -svg -test -theora -twolame -v4l -vdpau -vorbis -wavpack -xcb -xvid -zeromq -zimg -zvbi" CPU_FLAGS_X86="aes avx mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -avx2 -fma3 -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" 0 KiB |
33 |
|
34 |
-- |
35 |
Walter Dnes <waltdnes@××××××××.org> |
36 |
I don't run "desktop environments"; I run useful applications |