Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for generating compatible audio/video streams #2

Merged
merged 2 commits into from
Dec 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 6 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 "<mixer stream key>" -v path\to\sintel.h264 -a path\to\sintel.opus -f 24
ftl_app -i auto -s "<mixer stream key>" -v output-video.h264 -a output-audio.opus -f 24
```
2 changes: 1 addition & 1 deletion ftl_app/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ void log_test(ftl_log_severity_t log_level, const char *message)

void usage()
{
printf("Usage: ftl_app -i <ingest uri> -s <stream_key> - v <h264_annex_b_file> -a <opus in ogg container>\n");
printf("Usage: ftl_app -i <ingest uri> -s <stream_key> -v <h264_annex_b_file> -a <opus in ogg container>\n");
exit(0);
}

Expand Down