Ricardo Constantino
db60cbb80a
ytdl_hook: actually load the script-opts
...
Also, comma-separated list doesn't actually work, even quote-surrounded.
Switch to using | instead.
2017-07-11 23:42:22 +01:00
Ricardo Constantino
042e98f4c9
ytdl_hook: add option to exclude URLs from being parsed
...
This is more of a niche usecase than --ytdl-format and --ytdl-raw-options,
so a simple script option should be enough.
Either create lua-settings/ytdl_hook.conf with
'exclude=example.com,sub.example.com' option or
"--script-opts=ytdl_hook-exclude=example.com,sub.example.com"
2017-07-11 14:18:29 +01:00
Ricardo Constantino
b1165ce3a2
ytdl_hook: add times for ytdl and hook running on debug-level
...
Not really important, but still interesting to know.
2017-07-11 14:16:35 +01:00
Ricardo Constantino
41b3b11669
ytdl_hook: add pre-parsed chapters, if available
...
Available since 2017.05.07 but only on certain extractors.
2017-07-02 21:15:15 +01:00
Martin D
30cd963b25
ytdl_hook: don't override start time set by saved state
...
This affects resuming playback from a watch_later directory so that you can resume playback even for URLs that have a start parameter.
2017-06-09 11:13:24 +01:00
Ricardo Constantino
289b11553b
ytdl_hook: don't override user-set start time
2017-06-08 19:45:49 +01:00
Ricardo Constantino
ce78f1222f
ytdl_hook: rework edl joining to use lua tables
...
Seems much more resource efficient than concatenating a string.
2017-05-04 17:10:07 +01:00
Ricardo Constantino
3526b95aaf
ytdl_hook: treat single-entry playlists as a single video
2017-04-23 01:53:59 +01:00
Ricardo Constantino
d5517f0d9f
ytdl_hook: move single video code to a separate function
2017-04-23 01:53:57 +01:00
Ricardo Constantino
6ac3d77e90
ytdl_hook: support livestream segmented DASH VODs
...
Seen with a VOD of a recently ended livestream on Youtube.
They seem to use segmented DASH but unlike normal Youtube
segmented DASH, the segments don't seem to need the initialization
segment.
The video actually fails to start to play if the init segment is
prepended with a lot of 'Found duplicated MOOV Atom. Skipped it' errors
popping up.
2017-02-10 20:24:03 +00:00
Ricardo Constantino
5fbad204a6
ytdl_hook: reenable support for length-less segments in EDL
...
They're unsupported only in MP4 DASH mode.
2017-02-06 16:50:28 +00:00
wm4
19551200d5
ytdl_hook: fix EDL syntax
...
All entries must be separated by ";" or "\n". The parser just doesn't
enforce it if an entry uses quoting.
2017-02-05 16:02:22 +01:00
Ricardo Constantino
7e6b37be07
ytdl_hook: Add non-dash fallbacks to default formats
2017-02-04 22:34:47 +01:00
wm4
61202bb364
ytdl_hook, edl: implement pseudo-DASH support
...
We use the metadata provided by youtube-dl to sort-of implement
fragmented DASH streaming.
This is all a bit hacky, but hopefully a makeshift solution until
libavformat has proper mechanisms. (Although in danger of being one
of those temporary hacks that become permanent.)
2017-02-04 22:34:38 +01:00
Ricardo Constantino
a46fc5e5eb
ytdl: support segmented dash
2017-02-04 22:19:21 +01:00
Ricardo Constantino
e017c24174
ytdl_hook: refactor edl track joining
...
Only used once for now.
Also, support switched format strings, like bestaudio+bestvideo.
2017-01-30 16:21:44 +00:00
Ricardo Constantino
6dafc85187
ytdl_hook: respect --no-audio, don't force-select track
2017-01-30 15:01:07 +00:00
Ricardo Constantino
2a7d2d1bc9
ytdl_hook: fix opening hitbox.tv rtmp stream
...
Worked with librtmp, but ffrtmp needs to set rtmp_swfurl in addition
to rtmp_swfverify, even if they're the same value.
2017-01-29 01:45:13 +00:00
Ricardo Constantino
d303ebd9b6
stream_lavf: add support for data URIs
...
Only FFmpeg supports them and they need to be in the format data://
like other protocols or prefixed with ffmpeg:// or lavf://.
Closes #4058
2017-01-25 15:40:56 +00:00
Ricardo Constantino
03ea61c895
ytdl_hook: sort chapters by time
...
mpv doesn't work well with unordered chapters.
ex: https://youtu.be/DIKPUL6b4N8
2016-11-15 22:58:43 +00:00
Ricardo Constantino
13259f35c8
ytdl_hook: Add title to playlist items if available
2016-10-15 01:33:27 +01:00
Maurycy Skier
e9c43258b8
ytdl_hook: add chapters by parsing video's description
2016-10-06 21:18:43 +01:00
Ricardo Constantino
6487ba4864
ytdl_hook: Set aspect ratio for anamorphic video
2016-09-28 21:16:40 +02:00
Ricardo Constantino
6ba2bbd090
ytdl_hook: temporarily force disable dash segments formats
2016-09-22 20:34:42 +02:00
Ricardo Constantino
60a0815b4c
ytdl_hook: don't bother adding subtitles if duration isn't known
...
EDL doesn't work with subtitles with unknown length.
2016-09-13 09:23:00 +02:00
Ricardo Constantino
5edd6a8caa
ytdl_hook: Support playlist entries without subtitles
...
Fixes missing subtitle tracks if the first entry didn't have any.
Previously it just checked for the first entry in the playlist for
requested languages and if that entry happened to not have subtitles
they also wouldn't show up for the other entries.
It will skip languages if the first entry with subs has less or
different languages than the others.
Unrelated to http_dash_segments.
2016-09-13 09:22:55 +02:00
Ricardo Constantino
5bcb22beea
ytdl: Error out with http_dash_segments
...
Unsupported for now.
2016-07-30 19:02:39 +02:00
Ricardo Constantino
256d9d2b89
ytdl: fix brightcove urls
2016-05-30 16:57:43 +02:00
Ricardo Constantino
4ff2a60632
ytdl_hook: support multi-arc subtitles
...
While at it, pass durations of segments from ytdl if available.
2016-05-23 15:14:14 +02:00
Ricardo Constantino
77d50cb3cf
ytdl_hook: Just check if protocol is rtmp
...
Partial fix to #3090
2016-05-14 11:22:25 +02:00
▟ ▖▟ ▖
f7244ebe9b
ytdl_hook: handle optional format_note
...
some extractors don't return a format_note for their audio stream which
resulted in commandv complaining "argument 4 is not a string" (got nil).
2016-03-10 22:46:03 +01:00
Yen Chi Hsuan
459b40cc4b
ytdl: Include Referer header as well
...
Some videos require correct Referer header for downloading, or 403
Forbidden is thrown.
2016-01-10 14:30:31 +01:00
Ricardo Constantino
a02f3a5dd4
ytdl: disable --all-subs if "sub-lang" is in raw-options
...
Defaults stay the same (--all-subs is used if sub-lang wasn't used.)
Don't forget to also add "write-sub=" if using sub-lang or else it won't
work.
2015-10-24 17:30:22 +02:00
ChrisK2
bddd1e9e3b
ytdl: Set a proper label for external audio tracks
2015-10-11 20:52:11 +02:00
ChrisK2
78caf6ae86
ytdl: Remove DASH hacks, use DASH by default
...
Thanks to rcombs, ffmpeg now properly supports DASH and we can
remove our hacks for it and use it by default whenever
available. If you don't like this for whatever reason, you
can get the "normal" streams back with --ytdl-format=best .
Closes #579
Closes #1321
Closes #2359
2015-10-11 00:35:35 +02:00
ChrisK2
6fb926a560
ytdl: Remove version check and minor cleanup
...
Closes #2370
2015-10-06 17:06:11 +02:00
ChrisK2
1b7e8ff6c5
ytdl: Don't override user-set format in no-video mode
2015-09-30 22:28:01 +02:00
ChrisK2
3c86bd2bb5
ytdl: catch bogous extractor info
...
Some extractors may claim to have extracted subtitles, but then
set the relevant fields to null. Try to catch those cases.
Fixes #2254
2015-08-27 13:42:04 +02:00
Ricardo Constantino
81bfe4da8f
ytdl: get start_time
2015-07-29 13:20:09 +02:00
Ricardo Constantino
794dbd847a
ytdl: print command in debug mode
2015-07-29 13:20:06 +02:00
wm4
1921f40db5
ytdl: don't print failure warning when youtube-dl was killed by us
2015-06-27 21:09:12 +02:00
Jaime Marquínez Ferrándiz
69abb48194
ytdl_hook: Support 'multi_video' results
...
They can be handled by the same codes used for playlists, most of them will use an EDL.
Fixes #2027 .
2015-06-07 23:53:13 +02:00
wm4
a3f8d45fb6
ytdl: do not use deprecated option
...
This was missed in commit 450af053
.
2015-05-23 15:15:16 +02:00
wm4
450af05338
options: rename --media-title option
...
Conflicts with the property.
2015-05-22 20:03:14 +02:00
wm4
9438f811ae
ytdl_hook: remove tabs
...
We don't allow tabs in normal source code.
2015-05-09 21:41:44 +02:00
ChrisK2
6a0a67034d
ytdl_hook: Escape EDL URLs
...
Should prevent the EDL parser from tripping over = and , in the
URL.
2015-05-07 20:41:46 +02:00
robin
5555f6fc2c
ytdl_hook.lua: Change format options when vid is "off"
...
This will change the format option to "bestaudio/best" instead of
passing the "-x" argument to yt-dl.
Prevents the video still being downloaded in the new mpv versions where
the yt-dl format is set to "best" by default.
2015-04-27 23:32:59 +02:00
Sebastian Mayr
c4faab4871
ytdl: set additional properties for rtmp streams
2015-04-09 20:36:38 +02:00
robin
d453600b4f
ytdl_hook.lua: Disable video when vid option is "no"
...
When setting options like --no-video, ytdl_hook adds the "-x" argument
to youtube-dl, so that bandwith is saved by not downloading the video on
some sites.
2015-04-09 20:34:36 +02:00
Thiago Kenji Okada
633147c959
ytdl: add "--ytdl-params" option
...
This option allows the user to pass non-supported options directly to
youtube-dl, such as "--proxy URL", "--username USERNAME" and
'--password PASSWORD".
There is no sanity checking so it's possible to break things (i.e.
if you pass "--version" mpv exits with random JSON error).
Signed-off-by: wm4 <wm4@nowhere>
2015-02-25 22:32:48 +01:00