From 6efcde06e31be4db0b2d9e3958bafffcdaa0a42e Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 11 Jan 2019 12:10:19 +0100 Subject: ytdl_hook: use no_clip for separate audio streams I noticed that some ytdl streams have a start time other than 0. There's currently no mechanism inside of the EDL stuff that determines this start time correctly, so it can happen that if the start time is high, demux_timeline.c tries to clip off the entire video and audio, resulting in failure of playback. As a counter measure, use the no_clip header, which entirely disables clipping against time ranges in demux_timeline.c. (It's basically a hack.) --- player/lua/ytdl_hook.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/lua/ytdl_hook.lua b/player/lua/ytdl_hook.lua index 82381b88c3..df0a0195f8 100644 --- a/player/lua/ytdl_hook.lua +++ b/player/lua/ytdl_hook.lua @@ -331,7 +331,7 @@ local function add_single_video(json) if #streams > 1 then -- merge them via EDL for i = 1, #streams do - streams[i] = edl_escape(streams[i]) + streams[i] = "!no_clip;" .. edl_escape(streams[i]) end streamurl = "edl://!no_chapters;" .. table.concat(streams, ";!new_stream;") .. ";" -- cgit v1.2.3