Skip to content
Snippets Groups Projects
Commit c1188c86 authored by Julian Rother's avatar Julian Rother
Browse files

complex_live_transcode: Ensure blank sources are 1080p

parent 69a9a31c
Branches
No related tags found
No related merge requests found
Pipeline #220 passed
...@@ -46,8 +46,8 @@ int main(int argc, char *argv[]) ...@@ -46,8 +46,8 @@ int main(int argc, char *argv[])
dup2(open("/dev/null", O_RDONLY|O_CLOEXEC), 0); dup2(open("/dev/null", O_RDONLY|O_CLOEXEC), 0);
dup2(open("/dev/null", O_WRONLY|O_CLOEXEC), 1); dup2(open("/dev/null", O_WRONLY|O_CLOEXEC), 1);
execlp("ffmpeg", "ffmpeg", "-nostats", execlp("ffmpeg", "ffmpeg", "-nostats",
"-f", src1fmt, "-i", jstr(jlookup(src1, "url"), "smptehdbars[out0]; anullsrc[out1]"), "-f", src1fmt, "-i", jstr(jlookup(src1, "url"), "smptehdbars,scale=w=100:h=100[out0]; anullsrc[out1]"),
"-f", src2fmt, "-i", jstr(jlookup(src2, "url"), "smptehdbars[out0]; anullsrc[out1]"), "-f", src2fmt, "-i", jstr(jlookup(src2, "url"), "smptehdbars,scale=w=100:h=100[out0]; anullsrc[out1]"),
"-filter_complex", "-filter_complex",
mprintf("[0:a]%s[a1]; [1:a]%s[a2]; [a1][a2]amix,%s,asplit=3[lowa][mida][higha];" mprintf("[0:a]%s[a1]; [1:a]%s[a2]; [a1][a2]amix,%s,asplit=3[lowa][mida][higha];"
"[0:v]%s[v1]; [1:v]%s[v2]; [v1][v2]%s,scale=1920:1080[tmp];" "[0:v]%s[v1]; [1:v]%s[v2]; [v1][v2]%s,scale=1920:1080[tmp];"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment