mpegtsmux files and Safari playback
Jin Choi
jinschoi at me.com
Mon Mar 16 11:18:21 PDT 2015
Thought I might give this one more shot, as my original message didn’t get any responses, but also didn’t show up for me so maybe it wasn’t seen? Although it does show up in the archive. Anyway, here’s hoping.
My ultimate aim is to use gstreamer as an alternative to mjpg-streamer for a live stream in a browser using a Logitech C920, which has a hardware h264 encoder. The video quality is great, but there are many issues trying to live stream anything other than mjpeg. Step #1 is getting an MPEG-TS format that is acceptable to a browser, and mpegtsmux is not working out. I generated a test using x264enc to isolate any h264 format issues.
Does anyone have an example of generating MPEG-TS files using h264 encoding that is playable in any particular browser using the video tag?
> On Feb 23, 2015, at 3:20 PM, Jin Choi <jinschoi at me.com> wrote:
>
> I’m trying to live stream video to Safari using h264 in a MPEG-TS format, either using tcpserversink or hlssink. I've come across many people trying to do this but haven't seen any claimed success. I’ve determined that something about the files that are being generated by mpegtsmux are just not acceptable to Safari for some reason.
>
> I have generated a test file using:
>
> gst-launch-1.0 -v -e audiotestsrc ! audioconvert ! voaacenc ! mpegtsmux name=mux ! queue ! filesink location="/var/www/html/test.ts" videotestsrc is-live=true ! x264enc ! mux.
>
> https://dl.dropboxusercontent.com/u/3845046/gstreamer/test.ts
>
> When I convert this file to an MPEG-TS file preserving the streams as-is using VLC, I end up with a file that can be played:
>
> https://dl.dropboxusercontent.com/u/3845046/gstreamer/test-recoded.ts
>
> That makes me think it's something about mpegtsmux's output that is to blame. Is there any way to determine what that might be?
>
More information about the gstreamer-devel
mailing list