This thread has piqued my interest in youtube-dl.  I'm trying to get
best audio and video together in a 1920x1080 video for Youtube URL
https://www.youtube.com/watch?v=A9tKncAdlHQ

My config file is...

-f bestvideo[width<=1920]+bestaudio
--merge-output-format mp4
--no-mtime
--no-playlist
-o ~/ytdl/%(title)s.%(ext)s
--restrict-filenames

  If I use "-f bestvideo[width<=1920]" I get a 1920x1080 video...with no
sound.  If I use "-f best[width<=1920]" I get a 1280x720 video with
sound.  That works, but I want the best of both worlds.  With
"-f bestvideo[width<=1920]+bestaudio", ffmpeg fails...

[i660][waltdnes][~/ytdl] youtube-dl https://www.youtube.com/watch?v=A9tKncAdlHQ
[youtube] A9tKncAdlHQ: Downloading webpage
[youtube] Downloading just video A9tKncAdlHQ because of --no-playlist
[download] Destination: 
/home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.f137.mp4
[download] 100% of 31.55MiB in 00:17
[download] Destination: 
/home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.f251.webm
[download] 100% of 6.65MiB in 00:03
[ffmpeg] Merging formats into 
"/home/waltdnes/ytdl/Double_Slit_Experiment_explained_by_Jim_Al-Khalili.mp4"
ERROR:   Stream #1:0 -> #0:1 (copy)

  Any idea what's wrong?

  "emerge -pv ffmpeg" gives...
[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

-- 
Walter Dnes <[email protected]>
I don't run "desktop environments"; I run useful applications

Reply via email to