Android .mkv problem

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Android .mkv problem

Waziri
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Android .mkv problem

Waziri
Any one can check?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Android .mkv problem

Arjen Veenhuizen
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?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Android .mkv problem

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]>:
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?


If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Android-mkv-problem-tp4683292p4683330.html
To unsubscribe from Android .mkv problem, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Android .mkv problem

Arjen Veenhuizen
In that case I would suggest using segmented mpeg2ts (aka HLS).
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Android .mkv problem

Waziri
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).


If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Android-mkv-problem-tp4683292p4683332.html
To unsubscribe from Android .mkv problem, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Android .mkv problem

Arjen Veenhuizen
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.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Android .mkv problem

Waziri
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:

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.


If you reply to this email, your message will be added to the discussion below:
http://gstreamer-devel.966125.n4.nabble.com/Android-mkv-problem-tp4683292p4683338.html
To unsubscribe from Android .mkv problem, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Android .mkv problem

Sebastian Dröge-3
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
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

AW: Android .mkv problem

Thornton, Keith
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
Gesendet: Dienstag, 13. Juni 2017 12:28
An: [hidden email]
Betreff: Re: Android .mkv problem

 

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?


If you reply to this email, your message will be added to the discussion below:

http://gstreamer-devel.966125.n4.nabble.com/Android-mkv-problem-tp4683292p4683330.html

To unsubscribe from Android .mkv problem, click here.
NAML

 

 


View this message in context: Re: Android .mkv problem
Sent from the GStreamer-devel mailing list archive at Nabble.com.


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Android .mkv problem

Waziri
In reply to this post by Waziri


When I using gstreamer splitting while recording mkv, the fisrt video can be seeked, than rest of the videos cannot seeks.
Loading...