2
votes

Anyone knows a good way to use http live streaming tools on non-Mac platforms? Can you tell me at least if there's good alternatives? I need mediafilesegmenter and mediastreamvalidator.

Or maybe anyone has a source code or something like that...

UPD: I've tried different segmenters, most of them are based on Carson's open-sourced segmenter. Now the difference between Apple's mediafilesegmenter and this one, that it takes only a transport stream, not just any video. And I need to segment h264 videos. When I use ffmpeg to convert h26s to mpeg-ts I'm getting much bigger files in the end. Even if I try to preserve same audio codec (aac) it changes video codec form avc to mpeg-ts.

Damn I hate Apple. How can they propose that thing as a standard if they don't even provide workarounds for another platforms.

I still need to find a way to segment h264 videos, and keep in the segmented files avc and aac codecs.

1

1 Answers

4
votes

If you're not specifying the video codec, and specifying an mpeg2 transport stream container, FFmpeg will default to MPEG2 video coding. If you already have MPEG4-AVC(h.264) encoded video and AAC audio, then you instruct FFmpeg to not re-encode the video and audio with these options: -vcodec copy -acodec copy

Your final command should be something like this:

ffmpeg -i inputfile -vcodec copy -acodec copy -f mpegts outputfile.ts

Then you can use one of the segmenter tools for segmenting and building the playlist. It's worth mentioning that new versions of FFmpeg support segmenting, but you still would need a program to create the playlist file.