I created splitted matroska files from an rtsp source with the following gstreamer pipeline. I run it both desktop and android.
gst-launch-1.0 rtspsrc location="rtsp://192.168.0.51:554/ch01.264" ! queue ! rtph264depay ! h264parse ! splitmuxsink muxer="matroskamux name=muxer max-size-bytes=200000 location=/Users/test/Desktop/location_%d.mkv" Most Vlc player versions play files fine. But there are some problems with other players and some versions of vlc. The problem is that intermaediate mkv files(not first) produced, playing fine but I cannot seek the video. The image is here. Video player seek bar Video duration is 49 seconds. But player assumes that video is at 01:48 position so It cannot seek. I tried mp4mux with same pipeline It works fine. I could not know exatly is this a bug or am i missing some property of matroskamux. Thanks for your help. |
Any one can check?
|
Why would you use segmented mkv? Didn't know it is even possible but I am not surprised it is not (well) supported by players. Is either HLS or DASH (TS or MP4) not an option for you?
|
I need to use MKV I am develping an app that records IP cameras. Device energy can off any time. If I use MP4 it cannot index streaming if energy is lost while recording. So, I need to use mkv. If I understand your question right. THanks for your attention. 2017-06-13 13:12 GMT+03:00 Arjen Veenhuizen [via GStreamer-devel] <[hidden email]>: Why would you use segmented mkv? Didn't know it is even possible but I am not surprised it is not (well) supported by players. Is either HLS or DASH (TS or MP4) not an option for you? |
In that case I would suggest using segmented mpeg2ts (aka HLS).
|
I will also stream records via internet. So, it is important for indexing and sending records from any time on the records. Does segmented mpeg2ts still appropriate for such system? 2017-06-13 13:50 GMT+03:00 Arjen Veenhuizen [via GStreamer-devel] <[hidden email]>: In that case I would suggest using segmented mpeg2ts (aka HLS). |
I really suggest you start reading up on this stuff. A couple of links:
Overview: https://developer.apple.com/library/content/technotes/tn2224/_index.html HLS in ffmpeg: https://www.ffmpeg.org/ffmpeg-formats.html#hls-1 In depth spec: https://tools.ietf.org/html/draft-pantos-http-live-streaming-20 Note that HLS was created by Apple, but it is generally well supported across all major platforms nowadays. GStreamer supports is also pretty good (both playout and creation). For web-playout, you could refer to open source HLS Javascript/HTML5 players like this one for example. |
Thank you very much. 2017-06-13 15:19 GMT+03:00 Arjen Veenhuizen [via GStreamer-devel] <[hidden email]>: I really suggest you start reading up on this stuff. A couple of links: |
In reply to this post by Arjen Veenhuizen
On Tue, 2017-06-13 at 05:19 -0700, Arjen Veenhuizen wrote:
> I really suggest you start reading up on this stuff. A couple of links: > [...] Note that splitmuxsink does *not* create MP4/Matroska fragments as needed by DASH/HLS/etc. It creates standalone, complete files that are supposed to be playable by any software supporting that container format. If it does not work with Matroska, please file a bug in Bugzilla with a testcase to reproduce the problem. Do the files play well in GStreamer based applications? -- Sebastian Dröge, Centricular Ltd · http://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (981 bytes) Download Attachment |
In reply to this post by Waziri
Hi, I probably haven’t understood your problem properly but it is possible using mp4mux reserved-max-duration to have the MP4 MOV atom at the start of the file and then
together with splitmuxsink it is possible to create files of a particular length which are safe against power outage. Von: gstreamer-devel [mailto:[hidden email]]
Im Auftrag von Waziri I need to use MKV I am develping an app that records IP cameras. Device energy can off any time. If I use MP4 it cannot index streaming if energy is lost while recording. So, I need to use mkv. If I understand your question right. THanks
for your attention. 2017-06-13 13:12 GMT+03:00 Arjen Veenhuizen [via GStreamer-devel] <[hidden email]>:
View this message in context:
Re: Android .mkv problem _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |