Closed amarCosmospace closed 4 years ago
Not a youtube-dl issue, but a FFmpeg one. Also, instead of using -x, it is often better to choose some of the audio formats available, for example:
youtube-dl -f'bestaudio[acodec=opus]' <URL>
i'm not sure, but using your format i cant download it on mp3 format, it's webm format. Any idea ?
I'm having this issue too. I ran youtube-dl --verbose -x --audio-format mp3 --embed-thumbnail 'https://youtu.be/MShbP3OpASA'
to get the ffmpeg command used. Here is the output of that exact ffmpeg command, if it helps:
$ ffmpeg -y -loglevel repeat+info -i 'file:Aalto Talk with Linus Torvalds [Full-length]-MShbP3OpASA.mp3' -i 'file:Aalto Talk with Linus Torvalds [Full-length]-MShbP3OpASA.webp' -c copy -map 0 -map 1 -metadata:s:v 'title="Album cover"' -metadata:s:v 'comment="Cover (Front)"' 'file:Aalto Talk with Linus Torvalds [Full-length]-MShbP3OpASA.temp.mp3'
ffmpeg version n4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 10.1.0 (GCC)
configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Input #0, mp3, from 'file:Aalto Talk with Linus Torvalds [Full-length]-MShbP3OpASA.mp3':
Metadata:
encoder : Lavf58.29.100
Duration: 01:03:55.92, start: 0.000000, bitrate: 79 kb/s
Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 79 kb/s
Metadata:
encoder : Lavc58.54
Input #1, webp_pipe, from 'file:Aalto Talk with Linus Torvalds [Full-length]-MShbP3OpASA.webp':
Duration: N/A, bitrate: N/A
Stream #1:0: Video: webp, yuv420p(tv, bt470bg/unknown/unknown), 1280x720, 25 tbr, 25 tbn, 25 tbc
Output #0, mp3, to 'file:Aalto Talk with Linus Torvalds [Full-length]-MShbP3OpASA.temp.mp3':
Metadata:
TSSE : Lavf58.29.100
Stream #0:0: Audio: mp3, 48000 Hz, stereo, fltp, 79 kb/s
Metadata:
encoder : Lavc58.54
Stream #0:1: Video: webp, yuv420p(tv, bt470bg/unknown/unknown), 1280x720, q=2-31, 25 tbr, 25 tbn, 25 tbc
Metadata:
title : "Album cover"
comment : "Cover (Front)"
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mp3 @ 0x55cb85e842c0] No mimetype is known for stream 1, cannot write an attached picture.
av_interleaved_write_frame(): Invalid argument
[mp3 @ 0x55cb85e842c0] No packets were sent for some of the attached pictures.
frame= 1 fps=0.0 q=-1.0 Lsize= 0kB time=00:00:00.04 bitrate= 95.4kbits/s speed= 188x
video:38kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
I can confirm that the youtube-dl operation works on version 2020.06.06
but not on 2020.06.16
. Thanks.
Verbose log
Description
Since the last update to youtube-dl is up-to-date (2020.06.16.1) this appears.
The version of ffmpeg has not changed.
And i've tested with another tiktok video it worked well