Feature : Please add a command line option (--no-OPTION) to disable one parameter already set in the "youtube-dl.conf" file (--OPTION value). #4991

Open
opened 2026-02-21 00:29:36 -05:00 by deekerman · 4 comments
Owner

Originally created by @sebma on GitHub (Jun 23, 2015).

Hi,

I have the "--embed-thumbnail" option set in my "youtube-dl.conf".

The problem is when I download the audio of a youtube stream, youtube-dl embeds the thumbnail but I don't want the thumbnails in my audio files otherwise my hardware won't be to play them, see the last line of this output :

$ youtube-dl -f best -x -k https://www.youtube.com/watch?v=NLYggpNyQuo
[youtube] NLYggpNyQuo: Downloading webpage
[youtube] NLYggpNyQuo: Extracting video information
[youtube] NLYggpNyQuo: Downloading DASH manifest
[info] Writing video description to: Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.description
[youtube] NLYggpNyQuo: Downloading thumbnail ...
[youtube] NLYggpNyQuo: Writing thumbnail to: Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.jpg
[download] Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.mp4 has already been downloaded
[download] 100% of 377.53MiB
[ffmpeg] Adding metadata to 'Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.mp4'
[avconv] Destination: Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a
[ffmpeg] Subtitles can only be embedded in mp4 or mkv files
[atomicparsley] Adding thumbnail to "Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a"

$ avprobe Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a 2>&1 | egrep "Input|Duration:|Stream"
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a':
Duration: 02:28:30.14, start: 0.000000, bitrate: 194 kb/s
Stream #0.0(und): Audio: aac, 44100 Hz, stereo, fltp, 191 kb/s (default)
Stream #0.1: Video: mjpeg, yuvj420p, 1440x1080 [PAR 1:1 DAR 4:3], 90k tbn

A work around would be to specify another configuration file dedicated to audio downloads, such as :

--config=FILE Specify the location of a startup file you wish to use.

Can you help ?

Originally created by @sebma on GitHub (Jun 23, 2015). Hi, I have the "--embed-thumbnail" option set in my "youtube-dl.conf". The problem is when I download the audio of a youtube stream, youtube-dl embeds the thumbnail but I don't want the thumbnails in my audio files otherwise my hardware won't be to play them, see the last line of this output : $ youtube-dl -f best -x -k https://www.youtube.com/watch?v=NLYggpNyQuo [youtube] NLYggpNyQuo: Downloading webpage [youtube] NLYggpNyQuo: Extracting video information [youtube] NLYggpNyQuo: Downloading DASH manifest [info] Writing video description to: Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.description [youtube] NLYggpNyQuo: Downloading thumbnail ... [youtube] NLYggpNyQuo: Writing thumbnail to: Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.jpg [download] Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.mp4 has already been downloaded [download] 100% of 377.53MiB [ffmpeg] Adding metadata to 'Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.mp4' [avconv] Destination: Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a [ffmpeg] Subtitles can only be embedded in mp4 or mkv files [atomicparsley] Adding thumbnail to "Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a" $ avprobe Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a 2>&1 | egrep "Input|Duration:|Stream" Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Kacou_Severin_-Le_secret_de_l_onction_1__22__NLYggpNyQuo.m4a': Duration: 02:28:30.14, start: 0.000000, bitrate: 194 kb/s Stream #0.0(und): Audio: aac, 44100 Hz, stereo, fltp, 191 kb/s (default) Stream #0.1: Video: mjpeg, yuvj420p, 1440x1080 [PAR 1:1 DAR 4:3], 90k tbn A work around would be to specify another configuration file dedicated to audio downloads, such as : --config=FILE Specify the location of a startup file you wish to use. Can you help ?
Author
Owner

@yan12125 commented on GitHub (Jun 23, 2015):

You should remove --embed-thumbnail from youtube-dl.conf if it's not always used.

Note there are already some options starting with '--no-', for example --no-playlist and --no-check-certificate. Introducing such a feature can be a problem.

@yan12125 commented on GitHub (Jun 23, 2015): You should remove `--embed-thumbnail` from youtube-dl.conf if it's not always used. Note there are already some options starting with '--no-', for example `--no-playlist` and `--no-check-certificate`. Introducing such a feature can be a problem.
Author
Owner

@sebma commented on GitHub (Jun 23, 2015):

Actually, I can't remove the "--embed-thumbnail" option because I want all my MP4 videos to have a thumbnail.

Can you propose a "--no-embed-thumbnail" or a "--config=FILE" option ?

@sebma commented on GitHub (Jun 23, 2015): Actually, I can't remove the "--embed-thumbnail" option because I want all my MP4 videos to have a thumbnail. Can you propose a "--no-embed-thumbnail" or a "--config=FILE" option ?
Author
Owner

@yan12125 commented on GitHub (Jun 23, 2015):

Just a clarification. You want embedded thumbnails in all videos but not in audios?

@yan12125 commented on GitHub (Jun 23, 2015): Just a clarification. You want embedded thumbnails in all videos but not in audios?
Author
Owner

@sebma commented on GitHub (Jun 23, 2015):

Yes, that's it :)

@sebma commented on GitHub (Jun 23, 2015): Yes, that's it :)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#4991
No description provided.