From 5912733506c066684aebd43f3e0b94cf51ca98c1 Mon Sep 17 00:00:00 2001 From: Daniel Stiner Date: Sat, 5 Dec 2020 22:41:29 -0800 Subject: [PATCH] Add instructions for generating compatible audio/video streams (#2) The original links to download a demuxed version of Sintel are all broken links now, I think this is a reasonable set of options to start with and I confirmed the outputs work with `ftl_app`, though the audio seems to get out of sync. This of course can be further improved but it's a step towards https://github.com/Glimesh/janus-ftl-plugin/issues/43 to have a single-purpose tool that sends a stream to ingest. --- README.md | 13 ++++++------- ftl_app/main.c | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 4c9359a..e92e81e 100644 --- a/README.md +++ b/README.md @@ -15,10 +15,14 @@ Due to the nature of WebRTC the following audio and video formats are required #### Audio - Opus at 48khz -#### video +`ffmpeg -i input-video.avi -vn -c:a libopus -b:a 160K -ac 2 output-audio.opus` + +#### Video - H.264 (most profiles are supported including baseline, main and high) - for the lowest delay B Frames should be disabled +`ffmpeg -i input-video.avi -an -c:v libx264 -b:v 5000K -tune zerolatency --no-psy output-video.h264` + ### Building Prerequisites: @@ -55,13 +59,8 @@ msbuild /p:Configuration=Release ALL_BUILD.vcxproj OR open libftl.sln in Visual ### Running Test Application -download the following test files: - - - sintel.h264: https://www.dropbox.com/s/ruijibs0lgjnq51/sintel.h264 - - sintel.opus: https://www.dropbox.com/s/s2r6lggopt9ftw5/sintel.opus - In the directory containing ftl_app ``` -ftl_app -i auto -s "" -v path\to\sintel.h264 -a path\to\sintel.opus -f 24 +ftl_app -i auto -s "" -v output-video.h264 -a output-audio.opus -f 24 ``` diff --git a/ftl_app/main.c b/ftl_app/main.c index 7750e50..e90bf66 100644 --- a/ftl_app/main.c +++ b/ftl_app/main.c @@ -53,7 +53,7 @@ void log_test(ftl_log_severity_t log_level, const char *message) void usage() { - printf("Usage: ftl_app -i -s - v -a \n"); + printf("Usage: ftl_app -i -s -v -a \n"); exit(0); }