Форум программистов, компьютерный форум, киберфорум
Разработка и тестирование
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск  
 
 
Рейтинг 4.68/75: Рейтинг темы: голосов - 75, средняя оценка - 4.68
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755

Как парсить видео с Youtube и обрабатывать с ffmpeg?

03.08.2020, 16:54. Показов 15414. Ответов 74
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Попробовал некоторые бесплатные программы для скачивания видео с Youtube, в том числе метод в консоли в Линукс для получения видео уроков в разрешении 1080 (для скачивания уроков по программированию в высоком качестве) и если нету для выбранного, то в качестве 720 и так далее по нисходящей.

Единственно более менее работающая из этого у меня оказалась программа UmmyVideoDownloader (заархивировал установленную версию и выложил https://drive.google.com/file/... sp=sharing ). Последняя версия у меня не устанавливается в XP. Не скачиваются плейлисты и хочется больший функционал (кроме плейлистов, чтобы скачивать можно было по разным ссылкам из текстового файла например). Как понял, ffmpeg.exe от версии к версии был один и тот же, а менялся модуль закачки. Сейчас могу качать только одиночные файлы.

Как скачать видео с Ютуба и преобразовывать, какими командами? Программа скачивает два файла во временную папку, откуда они по окончанию закачки исчезают (эти файлы на скриншоте). Как думаю, это файл видео и файл звука.
Миниатюры
Как парсить видео с Youtube и обрабатывать с ffmpeg?   Как парсить видео с Youtube и обрабатывать с ffmpeg?  
0
Лучшие ответы (1)
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
03.08.2020, 16:54
Ответы с готовыми решениями:

Как заставить ffmpeg обрабатывать только новые файлы?
Доброго времени суток. Получилось собрать небольшой баш скрипт для поиска всех файлов .mp4 в каталоге и нанести на видео логотип с помощью...

Как парсить комменты на youtube.com?
Всем привет! Кто знает как парсить комменты на youtube.com? p.s. Поиском честно пользовался - ничего достойного не нашел

JQuery табы и видео с youtube, как остановить видео при переключении?
Дорогие друзья, нужна очень ваша помощь, ума не приложу как реализовать следующую задачу, есть JQUERY табы, список переключает табы, в...

74
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
19.08.2020, 17:35  [ТС]
Студворк — интернет-сервис помощи студентам
Code
1
2
3
4
C:\soft\youtube-dl>youtube-dl -f bestvideo+bestaudio --recode-video https://www.youtube.com/watch?v=vMS82GUSKik
Usage: youtube-dl [OPTIONS] URL [URL...]
 
youtube-dl: error: invalid video recode format specified
---
0
Просто Лис
Эксперт Python
 Аватар для Рыжий Лис
5973 / 3735 / 1099
Регистрация: 17.05.2012
Сообщений: 10,791
Записей в блоге: 9
19.08.2020, 17:37
У ключа --recode-video тоже есть значение mp4
0
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
19.08.2020, 17:38  [ТС]
А, потерял расширение.
0
Просто Лис
Эксперт Python
 Аватар для Рыжий Лис
5973 / 3735 / 1099
Регистрация: 17.05.2012
Сообщений: 10,791
Записей в блоге: 9
19.08.2020, 17:40
Это не расширение в значение ключа, формат, в который будет переконвертироваться видео.
1
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
19.08.2020, 17:45  [ТС]
А нет ли опции отображения процента конвертации? Такой примерно функционал есть у Ummy.

Добавлено через 1 минуту
Там итоговое видео получается через несколько секунд.
Code
1
2
3
4
5
C:\soft\youtube-dl>youtube-dl -f bestvideo+bestaudio --recode-video mp4 [url]https://www.youtube.com/watch?v=vMS82GUSKik[/url]
[youtube] vMS82GUSKik: Downloading webpage
[youtube] vMS82GUSKik: Downloading MPD manifest
[download] ООП 14 Пространство имен класса Class Body scope in Python-vMS82GUSKik.webm has already been downloaded and merged
[ffmpeg] Converting video from webm to mp4, Destination: ООП 14 Пространство имен класса Class Body scope in Python-vMS82GUSKik.mp4
Добавлено через 2 минуты
Что то долго уже жду. Может из-за того, что сначала получился файл другого формата.
0
Просто Лис
Эксперт Python
 Аватар для Рыжий Лис
5973 / 3735 / 1099
Регистрация: 17.05.2012
Сообщений: 10,791
Записей в блоге: 9
19.08.2020, 17:50
Если только вызывать ffmpeg так. Ха-ха (работает)
Bash
1
youtube-dl -f bestvideo+bestaudio --exec 'ffmpeg -hide_banner -i {} {}.mp4'  https://www.youtube.com/watch?v=6ANsC3zSwuE
0
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
19.08.2020, 18:02  [ТС]
---
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
Microsoft Windows XP [Версия 5.1.2600]
(С) Корпорация Майкрософт, 1985-2001.
 
C:\Documents and Settings\ia>cd C:\soft\youtube-dl
 
C:\soft\youtube-dl>youtube-dl -f bestvideo+bestaudio --exec 'ffmpeg -hide_banner -i {} {}.mp4'  https://www.youtube.com/watch?v=8sIUlyQh2ks
Usage: youtube-dl [OPTIONS] URL [URL...]
 
Options:
  General Options:
    -h, --help                       Print this help text and exit
    --version                        Print program version and exit
    -U, --update                     Update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)
    -i, --ignore-errors              Continue on download errors, for example to skip unavailable videos in a playlist
    --abort-on-error                 Abort downloading of further videos (in the playlist or the command line) if an error occurs
    --dump-user-agent                Display the current browser identification
    --list-extractors                List all supported extractors
    --extractor-descriptions         Output descriptions of all supported extractors
    --force-generic-extractor        Force extraction to use the generic extractor
    --default-search PREFIX          Use this prefix for unqualified URLs. For example "gvsearch2:" downloads two videos from google videos for youtube-dl
                                     "large apple". Use the value "auto" to let youtube-dl guess ("auto_warning" to emit a warning when guessing). "error" just
                                     throws an error. The default value "fixup_error" repairs broken URLs, but emits an error if this is not possible instead of
                                     searching.
    --ignore-config                  Do not read configuration files. When given in the global configuration file /etc/youtube-dl.conf: Do not read the user
                                     configuration in ~/.config/youtube-dl/config (%APPDATA%/youtube-dl/config.txt on Windows)
    --config-location PATH           Location of the configuration file; either the path to the config or its containing directory.
    --flat-playlist                  Do not extract the videos of a playlist, only list them.
    --mark-watched                   Mark videos watched (YouTube only)
    --no-mark-watched                Do not mark videos watched (YouTube only)
    --no-color                       Do not emit color codes in output
 
  Network Options:
    --proxy URL                      Use the specified HTTP/HTTPS/SOCKS proxy. To enable SOCKS proxy, specify a proper scheme. For example
                                     socks5://127.0.0.1:1080/. Pass in an empty string (--proxy "") for direct connection
    --socket-timeout SECONDS         Time to wait before giving up, in seconds
    --source-address IP              Client-side IP address to bind to
    -4, --force-ipv4                 Make all connections via IPv4
    -6, --force-ipv6                 Make all connections via IPv6
 
  Geo Restriction:
    --geo-verification-proxy URL     Use this proxy to verify the IP address for some geo-restricted sites. The default proxy specified by --proxy (or none, if
                                     the option is not present) is used for the actual downloading.
    --geo-bypass                     Bypass geographic restriction via faking X-Forwarded-For HTTP header
    --no-geo-bypass                  Do not bypass geographic restriction via faking X-Forwarded-For HTTP header
    --geo-bypass-country CODE        Force bypass geographic restriction with explicitly provided two-letter ISO 3166-2 country code
    --geo-bypass-ip-block IP_BLOCK   Force bypass geographic restriction with explicitly provided IP block in CIDR notation
 
  Video Selection:
    --playlist-start NUMBER          Playlist video to start at (default is 1)
    --playlist-end NUMBER            Playlist video to end at (default is last)
    --playlist-items ITEM_SPEC       Playlist video items to download. Specify indices of the videos in the playlist separated by commas like: "--playlist-items
                                     1,2,5,8" if you want to download videos indexed 1, 2, 5, 8 in the playlist. You can specify range: "--playlist-items
                                     1-3,7,10-13", it will download the videos at index 1, 2, 3, 7, 10, 11, 12 and 13.
    --match-title REGEX              Download only matching titles (regex or caseless sub-string)
    --reject-title REGEX             Skip download for matching titles (regex or caseless sub-string)
    --max-downloads NUMBER           Abort after downloading NUMBER files
    --min-filesize SIZE              Do not download any videos smaller than SIZE (e.g. 50k or 44.6m)
    --max-filesize SIZE              Do not download any videos larger than SIZE (e.g. 50k or 44.6m)
    --date DATE                      Download only videos uploaded in this date
    --datebefore DATE                Download only videos uploaded on or before this date (i.e. inclusive)
    --dateafter DATE                 Download only videos uploaded on or after this date (i.e. inclusive)
    --min-views COUNT                Do not download any videos with less than COUNT views
    --max-views COUNT                Do not download any videos with more than COUNT views
    --match-filter FILTER            Generic video filter. Specify any key (see the "OUTPUT TEMPLATE" for a list of available keys) to match if the key is
                                     present, !key to check if the key is not present, key > NUMBER (like "comment_count > 12", also works with >=, <, <=, !=,
                                     =) to compare against a number, key = 'LITERAL' (like "uploader = 'Mike Smith'", also works with !=) to match against a
                                     string literal and & to require multiple matches. Values which are not known are excluded unless you put a question mark
                                     (?) after the operator. For example, to only match videos that have been liked more than 100 times and disliked less than
                                     50 times (or the dislike functionality is not available at the given service), but who also have a description, use
                                     --match-filter "like_count > 100 & dislike_count <? 50 & description" .
    --no-playlist                    Download only the video, if the URL refers to a video and a playlist.
    --yes-playlist                   Download the playlist, if the URL refers to a video and a playlist.
    --age-limit YEARS                Download only videos suitable for the given age
    --download-archive FILE          Download only videos not listed in the archive file. Record the IDs of all downloaded videos in it.
    --include-ads                    Download advertisements as well (experimental)
 
  Download Options:
    -r, --limit-rate RATE            Maximum download rate in bytes per second (e.g. 50K or 4.2M)
    -R, --retries RETRIES            Number of retries (default is 10), or "infinite".
    --fragment-retries RETRIES       Number of retries for a fragment (default is 10), or "infinite" (DASH, hlsnative and ISM)
    --skip-unavailable-fragments     Skip unavailable fragments (DASH, hlsnative and ISM)
    --abort-on-unavailable-fragment  Abort downloading when some fragment is not available
    --keep-fragments                 Keep downloaded fragments on disk after downloading is finished; fragments are erased by default
    --buffer-size SIZE               Size of download buffer (e.g. 1024 or 16K) (default is 1024)
    --no-resize-buffer               Do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of
                                     SIZE.
    --http-chunk-size SIZE           Size of a chunk for chunk-based HTTP downloading (e.g. 10485760 or 10M) (default is disabled). May be useful for bypassing
                                     bandwidth throttling imposed by a webserver (experimental)
    --playlist-reverse               Download playlist videos in reverse order
    --playlist-random                Download playlist videos in random order
    --xattr-set-filesize             Set file xattribute ytdl.filesize with expected file size
    --hls-prefer-native              Use the native HLS downloader instead of ffmpeg
    --hls-prefer-ffmpeg              Use ffmpeg instead of the native HLS downloader
    --hls-use-mpegts                 Use the mpegts container for HLS videos, allowing to play the video while downloading (some players may not be able to play
                                     it)
    --external-downloader COMMAND    Use the specified external downloader. Currently supports aria2c,avconv,axel,curl,ffmpeg,httpie,wget
    --external-downloader-args ARGS  Give these arguments to the external downloader
 
  Filesystem Options:
    -a, --batch-file FILE            File containing URLs to download ('-' for stdin), one URL per line. Lines starting with '#', ';' or ']' are considered as
                                     comments and ignored.
    --id                             Use only video ID in file name
    -o, --output TEMPLATE            Output filename template, see the "OUTPUT TEMPLATE" for all the info
    --autonumber-start NUMBER        Specify the start value for %(autonumber)s (default is 1)
    --restrict-filenames             Restrict filenames to only ASCII characters, and avoid "&" and spaces in filenames
    -w, --no-overwrites              Do not overwrite files
    -c, --continue                   Force resume of partially downloaded files. By default, youtube-dl will resume downloads if possible.
    --no-continue                    Do not resume partially downloaded files (restart from beginning)
    --no-part                        Do not use .part files - write directly into output file
    --no-mtime                       Do not use the Last-modified header to set the file modification time
    --write-description              Write video description to a .description file
    --write-info-json                Write video metadata to a .info.json file
    --write-annotations              Write video annotations to a .annotations.xml file
    --load-info-json FILE            JSON file containing the video information (created with the "--write-info-json" option)
    --cookies FILE                   File to read cookies from and dump cookie jar in
    --cache-dir DIR                  Location in the filesystem where youtube-dl can store some downloaded information permanently. By default $XDG_CACHE_HOME
                                     /youtube-dl or ~/.cache/youtube-dl . At the moment, only YouTube player files (for videos with obfuscated signatures) are
                                     cached, but that may change.
    --no-cache-dir                   Disable filesystem caching
    --rm-cache-dir                   Delete all filesystem cache files
 
  Thumbnail images:
    --write-thumbnail                Write thumbnail image to disk
    --write-all-thumbnails           Write all thumbnail image formats to disk
    --list-thumbnails                Simulate and list all available thumbnail formats
 
  Verbosity / Simulation Options:
    -q, --quiet                      Activate quiet mode
    --no-warnings                    Ignore warnings
    -s, --simulate                   Do not download the video and do not write anything to disk
    --skip-download                  Do not download the video
    -g, --get-url                    Simulate, quiet but print URL
    -e, --get-title                  Simulate, quiet but print title
    --get-id                         Simulate, quiet but print id
    --get-thumbnail                  Simulate, quiet but print thumbnail URL
    --get-description                Simulate, quiet but print video description
    --get-duration                   Simulate, quiet but print video length
    --get-filename                   Simulate, quiet but print output filename
    --get-format                     Simulate, quiet but print output format
    -j, --dump-json                  Simulate, quiet but print JSON information. See the "OUTPUT TEMPLATE" for a description of available keys.
    -J, --dump-single-json           Simulate, quiet but print JSON information for each command-line argument. If the URL refers to a playlist, dump the whole
                                     playlist information in a single line.
    --print-json                     Be quiet and print the video information as JSON (video is still being downloaded).
    --newline                        Output progress bar as new lines
    --no-progress                    Do not print progress bar
    --console-title                  Display progress in console titlebar
    -v, --verbose                    Print various debugging information
    --dump-pages                     Print downloaded pages encoded using base64 to debug problems (very verbose)
    --write-pages                    Write downloaded intermediary pages to files in the current directory to debug problems
    --print-traffic                  Display sent and read HTTP traffic
    -C, --call-home                  Contact the youtube-dl server for debugging
    --no-call-home                   Do NOT contact the youtube-dl server for debugging
 
  Workarounds:
    --encoding ENCODING              Force the specified encoding (experimental)
    --no-check-certificate           Suppress HTTPS certificate validation
    --prefer-insecure                Use an unencrypted connection to retrieve information about the video. (Currently supported only for YouTube)
    --user-agent UA                  Specify a custom user agent
    --referer URL                    Specify a custom referer, use if the video access is restricted to one domain
    --add-header FIELD:VALUE         Specify a custom HTTP header and its value, separated by a colon ':'. You can use this option multiple times
    --bidi-workaround                Work around terminals that lack bidirectional text support. Requires bidiv or fribidi executable in PATH
    --sleep-interval SECONDS         Number of seconds to sleep before each download when used alone or a lower bound of a range for randomized sleep before
                                     each download (minimum possible number of seconds to sleep) when used along with --max-sleep-interval.
    --max-sleep-interval SECONDS     Upper bound of a range for randomized sleep before each download (maximum possible number of seconds to sleep). Must only
                                     be used along with --min-sleep-interval.
 
  Video Format Options:
    -f, --format FORMAT              Video format code, see the "FORMAT SELECTION" for all the info
    --all-formats                    Download all available video formats
    --prefer-free-formats            Prefer free video formats unless a specific one is requested
    -F, --list-formats               List all available formats of requested videos
    --youtube-skip-dash-manifest     Do not download the DASH manifests and related data on YouTube videos
    --merge-output-format FORMAT     If a merge is required (e.g. bestvideo+bestaudio), output to given container format. One of mkv, mp4, ogg, webm, flv.
                                     Ignored if no merge is required
 
  Subtitle Options:
    --write-sub                      Write subtitle file
    --write-auto-sub                 Write automatically generated subtitle file (YouTube only)
    --all-subs                       Download all the available subtitles of the video
    --list-subs                      List all available subtitles for the video
    --sub-format FORMAT              Subtitle format, accepts formats preference, for example: "srt" or "ass/srt/best"
    --sub-lang LANGS                 Languages of the subtitles to download (optional) separated by commas, use --list-subs for available language tags
 
  Authentication Options:
    -u, --username USERNAME          Login with this account ID
    -p, --password PASSWORD          Account password. If this option is left out, youtube-dl will ask interactively.
    -2, --twofactor TWOFACTOR        Two-factor authentication code
    -n, --netrc                      Use .netrc authentication data
    --video-password PASSWORD        Video password (vimeo, smotri, youku)
 
  Adobe Pass Options:
    --ap-mso MSO                     Adobe Pass multiple-system operator (TV provider) identifier, use --ap-list-mso for a list of available MSOs
    --ap-username USERNAME           Multiple-system operator account login
    --ap-password PASSWORD           Multiple-system operator account password. If this option is left out, youtube-dl will ask interactively.
    --ap-list-mso                    List all supported multiple-system operators
 
  Post-processing Options:
    -x, --extract-audio              Convert video files to audio-only files (requires ffmpeg or avconv and ffprobe or avprobe)
    --audio-format FORMAT            Specify audio format: "best", "aac", "flac", "mp3", "m4a", "opus", "vorbis", or "wav"; "best" by default; No effect without
                                     -x
    --audio-quality QUALITY          Specify ffmpeg/avconv audio quality, insert a value between 0 (better) and 9 (worse) for VBR or a specific bitrate like
                                     128K (default 5)
    --recode-video FORMAT            Encode the video to another format if necessary (currently supported: mp4|flv|ogg|webm|mkv|avi)
    --postprocessor-args ARGS        Give these arguments to the postprocessor
    -k, --keep-video                 Keep the video file on disk after the post-processing; the video is erased by default
    --no-post-overwrites             Do not overwrite post-processed files; the post-processed files are overwritten by default
    --embed-subs                     Embed subtitles in the video (only for mp4, webm and mkv videos)
    --embed-thumbnail                Embed thumbnail in the audio as cover art
    --add-metadata                   Write metadata to the video file
    --metadata-from-title FORMAT     Parse additional metadata like song title / artist from the video title. The format syntax is the same as --output. Regular
                                     expression with named capture groups may also be used. The parsed parameters replace existing values. Example: --metadata-
                                     from-title "%(artist)s - %(title)s" matches a title like "Coldplay - Paradise". Example (regex): --metadata-from-title
                                     "(?P<artist>.+?) - (?P<title>.+)"
    --xattrs                         Write metadata to the video file's xattrs (using dublin core and xdg standards)
    --fixup POLICY                   Automatically correct known faults of the file. One of never (do nothing), warn (only emit a warning), detect_or_warn (the
                                     default; fix file if we can, warn otherwise)
    --prefer-avconv                  Prefer avconv over ffmpeg for running the postprocessors
    --prefer-ffmpeg                  Prefer ffmpeg over avconv for running the postprocessors (default)
    --ffmpeg-location PATH           Location of the ffmpeg/avconv binary; either the path to the binary or its containing directory.
    --exec CMD                       Execute a command on the file after downloading and post-processing, similar to find's -exec syntax. Example: --exec 'adb
                                     push {} /sdcard/Music/ && rm {}'
    --convert-subs FORMAT            Convert the subtitles to other format (currently supported: srt|ass|vtt|lrc)
 
C:\soft\youtube-dl>
0
Просто Лис
Эксперт Python
 Аватар для Рыжий Лис
5973 / 3735 / 1099
Регистрация: 17.05.2012
Сообщений: 10,791
Записей в блоге: 9
19.08.2020, 18:16
Тогда никак, люди наоборот максимально задушили выхлоп ffmpeg'a https://github.com/ytdl-org/yo... -472732135

Или пиши батник из двух строк - скачивание видео и конвертинование с отображением прогресса.
0
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
19.08.2020, 18:31  [ТС]
Если в Линукс загружусь эта команда должна быстро отрабатывать или надо мощный комп?
Code
1
youtube-dl -f bestvideo+bestaudio --exec 'ffmpeg -hide_banner -i {} {}.mp4'  https://www.youtube.com/watch?v=6ANsC3zSwuE
Цитата Сообщение от Рыжий Лис Посмотреть сообщение
Или пиши батник из двух строк - скачивание видео и конвертинование с отображением прогресса.
А какой полный код батника?
0
Просто Лис
Эксперт Python
 Аватар для Рыжий Лис
5973 / 3735 / 1099
Регистрация: 17.05.2012
Сообщений: 10,791
Записей в блоге: 9
19.08.2020, 18:45
В линуксе скорость будет той же - давно проверено Надо мощный проц со многими ядрами.
0
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
19.08.2020, 18:54  [ТС]
А почему Ummy за несколько секунд собирает с ffmpeg.exe?

Добавлено через 6 минут
---
Code
1
2
3
4
C:\soft\youtube-dl>youtube-dl -f --recode-video mp4  bestvideo+bestaudio https:/
/www.youtube.com/watch?v=8sIUlyQh2ks
ERROR: 'mp4' is not a valid URL. Set --default-search "ytsearch" (or run  youtub
e-dl "ytsearch:mp4" ) to search YouTube
0
3258 / 2060 / 351
Регистрация: 24.11.2012
Сообщений: 4,909
19.08.2020, 18:58
Цитата Сообщение от supmener Посмотреть сообщение
C:\soft\youtube-dl>youtube-dl -f --recode-video mp4 ...
Рыжий Лис, спокойствие, только спокойствие…
1
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
19.08.2020, 19:06  [ТС]
А у .webm качество картинки не хуже, чем у .mp4?

Добавлено через 35 секунд
Цитата Сообщение от 0x10 Посмотреть сообщение
спокойствие, только спокойствие…
А что надо поправить?
0
Просто Лис
Эксперт Python
 Аватар для Рыжий Лис
5973 / 3735 / 1099
Регистрация: 17.05.2012
Сообщений: 10,791
Записей в блоге: 9
19.08.2020, 19:07
Нет, но не все плееры открывают. Мне лично пофиг, я webm смотрю в браузере.

Добавлено через 30 секунд
Нужно указать значение для ключа -f
1
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
19.08.2020, 19:57  [ТС]
Цитата Сообщение от Рыжий Лис Посмотреть сообщение
Запомни, что у ключа -f есть аргумент bestvideo+bestaudio
---

Добавлено через 6 минут
Выскажу предположение, почему Ummy работает намного быстрее при преобразовании в конечный файл в mp4, чем при конвертации из веб видео. Обратите внимание на скриншот справа в первом посте темы. Там расширение скачиваемых видео и аудио файлов mp4.

Добавлено через 42 минуты
Цитата Сообщение от Рыжий Лис Посмотреть сообщение
Мне лично пофиг, я webm смотрю в браузере
Если такие файлы хранить, они возможно в несколько раз больше места могут занимать, чем mp4.
0
Просто Лис
Эксперт Python
 Аватар для Рыжий Лис
5973 / 3735 / 1099
Регистрация: 17.05.2012
Сообщений: 10,791
Записей в блоге: 9
19.08.2020, 20:00
Наоборот
Code
1
2
4,2M июн 11  2017 'Fluttershy'\''s Yay (Sonic Rainboom) _ MLP - FiM [HD]-6ANsC3zSwuE.webm'
4,5M авг 19 00:49 'Fluttershy'\''s Yay (Sonic Rainboom) _ MLP - FiM [HD]-6ANsC3zSwuE.mp4'
1
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
19.08.2020, 20:28  [ТС]
Некоторые файлы плейлиста закрыты для платной подписки и это не дает продолжить закачку.
Code
1
2
3
4
5
6
7
C:\soft\youtube-dl>youtube-dl -f bestvideo+bestaudio PLQAt0m1f9OHvyjJNjZK_unnLwMOXPTja8
-----------пропуск текста-------------------
[download] Downloading video 5 of 34
[youtube] Gnt7abcf4_M: Downloading webpage
ERROR: This video is available to this channel's members on level: Middle (or any higher level). Join this channel to get access to members-only content and
 
C:\soft\youtube-dl>
---

Добавлено через 7 минут
-i - игнорировать ошибки
0
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
20.08.2020, 05:46  [ТС]
А когда есть несколько ссылок, не объедененных в плейлист, как их автоматически скачать такой командой?
Code
1
youtube-dl -f bestvideo+bestaudio -i
0
Просто Лис
Эксперт Python
 Аватар для Рыжий Лис
5973 / 3735 / 1099
Регистрация: 17.05.2012
Сообщений: 10,791
Записей в блоге: 9
20.08.2020, 09:04
Может, начнёшь сам читать маны?
Bash
1
-a list.txt
1
 Аватар для supmener
87 / 95 / 15
Регистрация: 26.06.2013
Сообщений: 4,755
20.08.2020, 18:00  [ТС]
Не качает.
Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
C:\soft\youtube-dl>youtube-dl -f bestvideo+bestaudio -i PLuZJ9n46uMzXkD4T4F54FJ
[youtube:playlist] PLuZJ9n46uMzXkD4T4F54FJNTGSZho90GB: Downloading webpage
[download] Downloading playlist: ООП Python глубоко.
[youtube:playlist] playlist ООП Python глубоко.: Downloading 58 videos
[download] Downloading video 1 of 58
[youtube] VMiPvfl2R1c: Downloading webpage
ERROR: VMiPvfl2R1c: YouTube said: Unable to extract video data
[download] Downloading video 2 of 58
[youtube] IOqWbA90MiA: Downloading webpage
ERROR: IOqWbA90MiA: YouTube said: Unable to extract video data
[download] Downloading video 3 of 58
[youtube] 0bLus_ZaitE: Downloading webpage
ERROR: 0bLus_ZaitE: YouTube said: Unable to extract video data
[download] Downloading video 4 of 58
[youtube] in7RPAihOb4: Downloading webpage
ERROR: in7RPAihOb4: YouTube said: Unable to extract video data
[download] Downloading video 5 of 58
[youtube] M-Fb5Rj7GEo: Downloading webpage
ERROR: M-Fb5Rj7GEo: YouTube said: Unable to extract video data
[download] Downloading video 6 of 58
[youtube] _cMu-24dXVc: Downloading webpage
ERROR: _cMu-24dXVc: YouTube said: Unable to extract video data
[download] Downloading video 7 of 58
[youtube] 3KmUlZcmrpk: Downloading webpage
ERROR: 3KmUlZcmrpk: YouTube said: Unable to extract video data
[download] Downloading video 8 of 58
[youtube] CXS8SZ_0v5E: Downloading webpage
ERROR: CXS8SZ_0v5E: YouTube said: Unable to extract video data
[download] Downloading video 9 of 58
[youtube] bWaNWFTGKrQ: Downloading webpage
ERROR: bWaNWFTGKrQ: YouTube said: Unable to extract video data
[download] Downloading video 10 of 58
[youtube] xnVQ4PREXwY: Downloading webpage
ERROR: xnVQ4PREXwY: YouTube said: Unable to extract video data
[download] Downloading video 11 of 58
[youtube] 9yPUTtUwLhs: Downloading webpage
ERROR: 9yPUTtUwLhs: YouTube said: Unable to extract video data
[download] Downloading video 12 of 58
[youtube] XBOp7i7pFLU: Downloading webpage
ERROR: XBOp7i7pFLU: YouTube said: Unable to extract video data
[download] Downloading video 13 of 58
[youtube] gicdSHEeyoU: Downloading webpage
ERROR: gicdSHEeyoU: YouTube said: Unable to extract video data
[download] Downloading video 14 of 58
[youtube] mx7-cfsGhhk: Downloading webpage
ERROR: mx7-cfsGhhk: YouTube said: Unable to extract video data
[download] Downloading video 15 of 58
[youtube] ZFnTlNhOZd4: Downloading webpage
ERROR: ZFnTlNhOZd4: YouTube said: Unable to extract video data
[download] Downloading video 16 of 58
[youtube] rwYw7xVKVkA: Downloading webpage
ERROR: rwYw7xVKVkA: YouTube said: Unable to extract video data
[download] Downloading video 17 of 58
[youtube] HHt_Ozuxc8c: Downloading webpage
ERROR: HHt_Ozuxc8c: YouTube said: Unable to extract video data
[download] Downloading video 18 of 58
[youtube] EwigQqa5Ibk: Downloading webpage
ERROR: EwigQqa5Ibk: YouTube said: Unable to extract video data
[download] Downloading video 19 of 58
[youtube] R6RO8UKspZY: Downloading webpage
ERROR: R6RO8UKspZY: YouTube said: Unable to extract video data
[download] Downloading video 20 of 58
[youtube] K2qbA7HHHYw: Downloading webpage
ERROR: K2qbA7HHHYw: YouTube said: Unable to extract video data
[download] Downloading video 21 of 58
[youtube] tLuH7pUbPcw: Downloading webpage
ERROR: tLuH7pUbPcw: YouTube said: Unable to extract video data
[download] Downloading video 22 of 58
[youtube] Le61Qmf-fxQ: Downloading webpage
ERROR: Le61Qmf-fxQ: YouTube said: Unable to extract video data
[download] Downloading video 23 of 58
[youtube] utdAqN7iTmM: Downloading webpage
ERROR: utdAqN7iTmM: YouTube said: Unable to extract video data
[download] Downloading video 24 of 58
[youtube] SSDkl1nPYGw: Downloading webpage
ERROR: SSDkl1nPYGw: YouTube said: Unable to extract video data
[download] Downloading video 25 of 58
[youtube] l69mohLYl14: Downloading webpage
ERROR: l69mohLYl14: YouTube said: Unable to extract video data
[download] Downloading video 26 of 58
[youtube] Mt5PcyT_YOc: Downloading webpage
ERROR: Mt5PcyT_YOc: YouTube said: Unable to extract video data
[download] Downloading video 27 of 58
[youtube] Yoa2N6EXalw: Downloading webpage
ERROR: Yoa2N6EXalw: YouTube said: Unable to extract video data
[download] Downloading video 28 of 58
[youtube] NrUHWzcLhpg: Downloading webpage
ERROR: NrUHWzcLhpg: YouTube said: Unable to extract video data
[download] Downloading video 29 of 58
[youtube] 1yo-yx2_EEQ: Downloading webpage
ERROR: 1yo-yx2_EEQ: YouTube said: Unable to extract video data
[download] Downloading video 30 of 58
[youtube] m2IOa4TYJVg: Downloading webpage
ERROR: m2IOa4TYJVg: YouTube said: Unable to extract video data
[download] Downloading video 31 of 58
[youtube] 8BOZk-sBAqg: Downloading webpage
ERROR: 8BOZk-sBAqg: YouTube said: Unable to extract video data
[download] Downloading video 32 of 58
[youtube] aDLvDe44h9o: Downloading webpage
ERROR: aDLvDe44h9o: YouTube said: Unable to extract video data
[download] Downloading video 33 of 58
[youtube] nMWX2lJXeiA: Downloading webpage
ERROR: nMWX2lJXeiA: YouTube said: Unable to extract video data
[download] Downloading video 34 of 58
[youtube] sDrbbeKV5bE: Downloading webpage
ERROR: sDrbbeKV5bE: YouTube said: Unable to extract video data
[download] Downloading video 35 of 58
[youtube] f0ikzuWCfRc: Downloading webpage
ERROR: f0ikzuWCfRc: YouTube said: Unable to extract video data
[download] Downloading video 36 of 58
[youtube] qDeJP-qrL38: Downloading webpage
ERROR: qDeJP-qrL38: YouTube said: Unable to extract video data
[download] Downloading video 37 of 58
[youtube] 82vgHuDBkMU: Downloading webpage
ERROR: 82vgHuDBkMU: YouTube said: Unable to extract video data
[download] Downloading video 38 of 58
[youtube] Qld1W2I7Yh4: Downloading webpage
ERROR: Qld1W2I7Yh4: YouTube said: Unable to extract video data
[download] Downloading video 39 of 58
[youtube] Ybi-YLqOZdY: Downloading webpage
ERROR: Ybi-YLqOZdY: YouTube said: Unable to extract video data
[download] Downloading video 40 of 58
[youtube] ztP3V9cmzFU: Downloading webpage
ERROR: ztP3V9cmzFU: YouTube said: Unable to extract video data
[download] Downloading video 41 of 58
[youtube] sD5eWCWHX38: Downloading webpage
ERROR: sD5eWCWHX38: YouTube said: Unable to extract video data
[download] Downloading video 42 of 58
[youtube] XJTdOZTXKh4: Downloading webpage
ERROR: XJTdOZTXKh4: YouTube said: Unable to extract video data
[download] Downloading video 43 of 58
[youtube] 7cZ9xrjmEbA: Downloading webpage
ERROR: 7cZ9xrjmEbA: YouTube said: Unable to extract video data
[download] Downloading video 44 of 58
[youtube] aFbY_zcQYT8: Downloading webpage
ERROR: aFbY_zcQYT8: YouTube said: Unable to extract video data
[download] Downloading video 45 of 58
[youtube] OA4Hdya6I8U: Downloading webpage
ERROR: OA4Hdya6I8U: YouTube said: Unable to extract video data
[download] Downloading video 46 of 58
[youtube] yTWDtot8HKc: Downloading webpage
ERROR: yTWDtot8HKc: YouTube said: Unable to extract video data
[download] Downloading video 47 of 58
[youtube] 0cddTWeNeXE: Downloading webpage
ERROR: 0cddTWeNeXE: YouTube said: Unable to extract video data
[download] Downloading video 48 of 58
[youtube] NpSOoBaYd-0: Downloading webpage
ERROR: NpSOoBaYd-0: YouTube said: Unable to extract video data
[download] Downloading video 49 of 58
[youtube] 0aq-SSTjY3k: Downloading webpage
ERROR: 0aq-SSTjY3k: YouTube said: Unable to extract video data
[download] Downloading video 50 of 58
[youtube] zdGrJjGDtT4: Downloading webpage
ERROR: zdGrJjGDtT4: YouTube said: Unable to extract video data
[download] Downloading video 51 of 58
[youtube] 4wj_q5kr59c: Downloading webpage
ERROR: 4wj_q5kr59c: YouTube said: Unable to extract video data
[download] Downloading video 52 of 58
[youtube] dfjgpj8Avf4: Downloading webpage
ERROR: dfjgpj8Avf4: YouTube said: Unable to extract video data
[download] Downloading video 53 of 58
[youtube] 2mAmJV0Jecw: Downloading webpage
ERROR: 2mAmJV0Jecw: YouTube said: Unable to extract video data
[download] Downloading video 54 of 58
[youtube] 78U_S1QRNTo: Downloading webpage
ERROR: 78U_S1QRNTo: YouTube said: Unable to extract video data
[download] Downloading video 55 of 58
[youtube] 4QKcIfgNy-s: Downloading webpage
ERROR: 4QKcIfgNy-s: YouTube said: Unable to extract video data
[download] Downloading video 56 of 58
[youtube] ltcLEFQ_vd4: Downloading webpage
ERROR: ltcLEFQ_vd4: YouTube said: Unable to extract video data
[download] Downloading video 57 of 58
[youtube] hAymxe53P8M: Downloading webpage
ERROR: hAymxe53P8M: YouTube said: Unable to extract video data
[download] Downloading video 58 of 58
[youtube] lxc6J3hkS4g: Downloading webpage
ERROR: lxc6J3hkS4g: YouTube said: Unable to extract video data
[download] Finished downloading playlist: ООП Python глубоко.
 
C:\soft\youtube-dl>
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
20.08.2020, 18:00

Как парсить видео с сайта?
Поставили мне задачу написать парсеры для нескольких сайтов с видео 18+... Собственно, нужно получить ссылку на видео файл. Может...

Как установить степень сжатия видео в ffmpeg?
помогите пожалуйста советом - разобрал видео на картинки в формат jpeg и собрал и получил видео плохого качества, разобрал в формат png...

Как через FFmpeg узнать продолжительность видео?
Подскажите пожалуйста, как с помощью консольного FFmpeg узнать продолжительность flv-видео. Видео находится не на моём сервере(сторонний...

Работа с видео на youtube, нужен массив [ссылка на видео, название видео]
Собственно с одной стороны есть экселевский документ с номерами, с другой стороны канал на ютубе. Задача прочитать все названия видео на...

Как заставить GPU обрабатывать видео вместо CPU?
Не знаю, куда нужно было поместить эту тему, но проблема следующая: При просмотре некоторых 4k видео наблюдаются задержки (лаги) и ЦП при...


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
60
Ответ Создать тему
Новые блоги и статьи
Запрет пометки на удаление и отмены проведения
Maks 16.07.2026
Алгоритм из решения ниже реализован на нетиповом документе "ПутевойЛист" разработанного в КА2. Задача: запретить помечать на удаление и отменять проведения путевого листа при условии, если он сдан. . .
Как надо было делать правильно - вообще не слушать ИИ, его дело - текст.
Hrethgir 15.07.2026
А вообще надо было делать не так, чтобы не исправлять ошибку https:/ / www. cyberforum. ru/ blogs/ 223907/ 10996. html , правильно было : удалил кнопку, а потом добавил её. Всё это стресс конечно. Почему?. . .
Знаете, от чего появляется стресс?
kumehtar 15.07.2026
Стресс появляется оттого, что вы, зная как поступить правильно, делаете наоборот. Ларри Уингет
Нас бьют, а мы крепчаем? Какая чушь!
kumehtar 15.07.2026
Вот это вот бытующее мнение, что человек меняется только под действием проблем, всегда считал вредоносным. Поверь, от проблем у людей появляются не изменения, а нервное расстройство и ПТСР. А. . .
сукцессия 29. Переход от одних деревьев на другие делать более или менее вероятностным?
anaschu 12.07.2026
Насколько смена типов микоризы — исключительное событие в двухвековой сукцессии? Оценка вероятности в пространстве параметров В текущей версии модели успешно реализован ключевой механизм. . .
сукцессия 27. Думаю, как переделывать уже написанную статью с планами на сукцессию.
anaschu 12.07.2026
Анализ соответствия модели требованиям Реализованные компоненты: Механизм закисления почвы через протонную помпу Конкуренция между типами микориз pH как триггер сукцессии C/ P соотношение. . .
Сукцессия 26. Мат модель создана.
anaschu 12.07.2026
Модель смены растительных сукцессий посредством управления грибами работает внутри небольшой ячейки почвы, восстанавливающейся после пожара, где ненадолго бывшее царство хвойных снова захватили. . .
Решил проблему с ошибкой пагинации сообщений с сервера на алгоритме обхода дерева "Эстафета хвоста".
Hrethgir 12.07.2026
Проблема была в том, что удалялась именно новая кнопка, а не старая. Ни один ИИ не обнаружил это, а сам я смог только когда с работой стало попроще и когда заставил работать будущее автономное. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru