Skip to content

Commit

Permalink
Add instructions for generating compatible audio/video streams (#2)
Browse files Browse the repository at this point in the history
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 Glimesh/janus-ftl-plugin#43 to have a single-purpose tool that sends a stream to ingest.
  • Loading branch information
danstiner authored Dec 6, 2020
1 parent 8eb952d commit 5912733
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
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

0 comments on commit 5912733

Please sign in to comment.