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

Can`t store .ts files in my app directory #16

Open
kyr7 opened this issue Jul 1, 2014 · 5 comments
Open

Can`t store .ts files in my app directory #16

kyr7 opened this issue Jul 1, 2014 · 5 comments

Comments

@kyr7
Copy link

kyr7 commented Jul 1, 2014

Hello! Seems like this problem is in the ffmpeg wrapper. It won`t write hls to the directory that contains dots (like the app data dir containing package name). Btw Is there any way to look at the wrapper source code?

@OnlyInAmerica
Copy link
Member

Sorry for the late reply! The source of FFmpegWrapper.so is here. If you merely want to change the file output directory modify the Kickflip SessionConfig to include the desired output location:

SessionConfig config = new SessionConfig.Builder("/root/output/path/index.m3u8")
                // Optional parameters. e.g .withTitle("Some title")
                .build();
Kickflip.setSessionConfig(config);
Kickflip.startBroadcastActivity(this, mBroadcastListener);

Note that the SessionConfig.Builder behavior is a bit odd. For example when you pass "/root/output/path/index.m3u8" the HLS files will actually be stored at "/root/output/path/someUUID/index.m3u8" to avoid any filename collisions.

@kyr7
Copy link
Author

kyr7 commented Jul 28, 2014

Thank you very much, I`ll try further experiments.

@4ntoine
Copy link

4ntoine commented Dec 11, 2014

Does FFmpegWrapper create .m3u8 and .ts files actually?

@4ntoine
Copy link

4ntoine commented Dec 11, 2014

BTW Are there any significant code changes (fixes, improvements) comparable to https://github.com/OnlyInAmerica/FFmpegTest for HLS streaming?

@OnlyInAmerica
Copy link
Member

Yes, FFmpegMuxer writes the .m3u8 and .ts files by way of
writeAVPacketFromEncodedData(...). FFmpeg receives frames by that method
call and handles the appropriate File writing.

The Kickflip components are maintained while the FFmpegTest repo is not.

On Thu Dec 11 2014 at 2:36:26 AM Anton Smirnov notifications@github.com
wrote:

BTW Are there any significant code changes (fixes, improvements)
comparable to https://github.com/OnlyInAmerica/FFmpegTest for HLS
streaming?


Reply to this email directly or view it on GitHub
#16 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants