gstplayer gst_player_seek strange behaviour

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

gstplayer gst_player_seek strange behaviour

pedjaman
When playing video recorded on android device or any other else, call to:
gst_player_seek()
rarely sets position correctly. Most often it will postion to beginning or end of stream.

Calling:
gst_player_pause ()
before seeking doesn't makes a difference.

Errors bellow are reproted in logcat:
09-22 19:28:24.915 30074-11307/com.spacemap.panocam E/GStreamer+amcvideodec: 0:06:38.736364692 0x9ec573b0 gstamcvideodec.c:2258:gst_amc_video_dec_handle_frame:<amcvideodec-omxqcomvideodecoderavc1> Downstream returned flushing
09-22 19:28:24.919 30074-11313/com.spacemap.panocam E/GStreamer+amcaudiodec: 0:06:38.740476098 0x9ec57350 gstamcaudiodec.c:1187:gst_amc_audio_dec_handle_frame:<amcaudiodec-omxgoogleaacdecoder1> Downstream returned flushing
09-22 19:28:27.114 30074-11313/com.spacemap.panocam E/GStreamer+amcaudiodec: 0:06:40.935503389 0x9ec57350 gstamcaudiodec.c:1187:gst_amc_audio_dec_handle_frame:<amcaudiodec-omxgoogleaacdecoder1> Downstream returned flushing
Reply | Threaded
Open this post in threaded view
|

Re: gstplayer gst_player_seek strange behaviour

Sebastian Dröge-3
On Do, 2016-09-22 at 10:27 -0700, pedjaman wrote:
> When playing video recorded on android device or any other else, call to:
> gst_player_seek()
> rarely sets position correctly. Most often it will postion to beginning or
> end of stream.

Does this also happen without GstPlayer on a plain playbin pipeline? On
what kind of streams does this happen, RTSP? If so, which GStreamer
version and can you make the stream available?

--
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 (985 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gstplayer gst_player_seek strange behaviour

pedjaman
This happens on GStreamer 1.9.2
Not talking about streams. This is on plain file recorded by android phone. It happens also on files imported on the phone.
It is clear that you cannot seek to any position precisely due to files ability to seek but it seems this is quite frequent problem.

I can send you a file but applies to any file I've tried.
Reply | Threaded
Open this post in threaded view
|

Re: gstplayer gst_player_seek strange behaviour

Sebastian Dröge-3
On Do, 2016-09-22 at 12:44 -0700, pedjaman wrote:
> This happens on GStreamer 1.9.2
> Not talking about streams. This is on plain file recorded by android
> phone.
> It happens also on files imported on the phone.
> It is clear that you cannot seek to any position precisely due to
> files
> ability to seek but it seems this is quite frequent problem.
>
> I can send you a file but applies to any file I've tried.

That would be helpful. Also the errors you see in logcat there are not
really errors, nothing to worry about.

Basically what you do on your files is to call gst_player_seek() during
playback, and it usually goes to the end or beginning? What are you
using for the seek position?

--
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 (985 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gstplayer gst_player_seek strange behaviour

pedjaman
Like I've said at the beginning, during playback or being paused doesn't make a difference.
value passed to gst_player_seek() is time in nanoseconds, confirmed as correct by dumping to Log.

Example video:
https://drive.google.com/open?id=0B-3RwLRGwsOiWU5idlVJMmMtWlE
Reply | Threaded
Open this post in threaded view
|

Re: gstplayer gst_player_seek strange behaviour

Sebastian Dröge-3
On Do, 2016-09-22 at 13:46 -0700, pedjaman wrote:
> Like I've said at the beginning, during playback or being paused
> doesn't make
> a difference.
> value passed to gst_player_seek() is time in nanoseconds, confirmed
> as
> correct by dumping to Log. 
>
> Example video:
> https://drive.google.com/open?id=0B-3RwLRGwsOiWU5idlVJMmMtWlE

Also seems to work just fine here, please file a bug with the details
  https://bugzilla.gnome.org/enter_bug.cgi?product=GStreamer

Include a testcase and the exact versions of everything you use, and a
sample video ideally.

--
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 (985 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: gstplayer gst_player_seek strange behaviour

pedjaman
Bug 771883 reported
Reply | Threaded
Open this post in threaded view
|

Re: gstplayer gst_player_seek strange behaviour

pedjaman
I own apology ti this thread.
After attempting to fix gstreamer I've found that it was on my side - bad casting to long.

I will close appropriate bug report.