←  [EN] Third-Party Development

Forums

»

GStreamer 1.0

WanWizard's Photo WanWizard 22 Jul 2015

That repo has been moved to Github too (https://github.com/openpli/openpli-1).

Quote

MastaG's Photo MastaG 23 Jul 2015

Is it possible to sync gst-1 with master?

Quote

MastaG's Photo MastaG 23 Jul 2015

Nevermind, I've switched gst-1 from https://github.com/O...openpli-oe-core

However, github is giving me a hard time as well..

 

ERROR: ExpansionError during parsing /home/mastag/src/openpli-oe-core/meta-openpli/recipes-openpli/e2openplugins/enigma2-plugin-systemplugins-satscan.bb: Failure expanding variable S: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception FetchError: Fetcher failure: Fetch command failed with exit code 128, output:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection timed out
 

I get the timeout randomly on many recipes ...

Quote

Beeker's Photo Beeker 23 Jul 2015

Change line 7 in openpli-oe-core/.git/config in:   url = git://github.com/OpenPLi/openpli-oe-core.

[remote "origin"]
	url = git://github.com/OpenPLi/openpli-oe-core
	fetch = +refs/heads/*:refs/remotes/origin/*
[branch "gst-1"]

And run make update..If everthing succeed..than you are switched over to github.

 

For me it's working well.


Edited by Beeker, 23 July 2015 - 16:40.
Quote

Erik Slagter's Photo Erik Slagter 24 Jul 2015

BTW I've synced gst-1 not so long ago, I guess a week.

Quote

christophecvr's Photo christophecvr 25 Jul 2015

Last update gst-1.

 

My last 3 commits are now send to github.com/openpli/enigma2  as pull request.

 

The first , The gst-1 playbin must start in paused only when all settings are know play state may be set.

The second code improvement into load and save cuesheet by servicemp3 as discussed with mirakels.

The third the small issue with could appear by extrenal srt files solved. For gst-1 subtitles will run synced.

 

Where to find this commits in :

 

https://github.com/O.../enigma2/pull/5

Quote

samsamsam's Photo samsamsam 25 Jul 2015

I my opinion the best thing which all E2 developers can do is to drop gstreamer as base for media player and switch to solution based on ffmpeg.

Quote

hemertje's Photo hemertje 25 Jul 2015

what do you suggest?

Quote

samsamsam's Photo samsamsam 25 Jul 2015

I sugest to continue developing solution based on libeplayer3 initially prepared for SH4 but only some formaters need to be rewritten to MIPSEL.

 

The only platform with BRC MIPS I've ever had was DM800SE I writte h264 and AAC formater and compile ffmpeg and eplayer3 for it and it's works. 

 

For example, the folowing stream:

http://www.quirksmod..._buck_bunny.mp4

 

played with gstreamer take 80MB of RAM memory where 

with libeplayer3 the same stream take only 30MB.

 

Yes, I know that a new STB models have 1/2/3/4GB of RAM, but this is not only a reason.

 

Why ffmpeg? Because:

http://www.quora.com...r-GStreamer-Why

 

ffmpeg is also base for KODI (XBMC) player and works very well as probably we all know. 


Edited by samsamsam, 25 July 2015 - 21:06.
Quote

athoik's Photo athoik 25 Jul 2015

@samsamsam what is the current integration status of ffmpeg with enigma2?

We need different service (eg serviceffmpeg)?

Can you record streams?

Can you use PiP?

Can you use EPG?

Can you perform slow motion, fast fw, seek etc.

Sorry if I am asking lot of questions.

It would be nice to have a new thread, for ffmpeg - libeplayer3 and enigma2, in order not to hijack current thread.

Thanks,
Athoik
Quote

littlesat's Photo littlesat 25 Jul 2015

I'm afraid that SamSamSam has a good point.... but the history of Enigma2 is gstreamer...

 

At this moment a lot of energy is invest in gstreamer >1.0...I really do now what the best to put the energy in....?!?!? At least putting energy in ffmpeg for enigma2 asked to delelop some part(s) from scratch....

Quote

christophecvr's Photo christophecvr 25 Jul 2015

ffmpeg

 

can You use chapter, can you use hld streems ?

Quote

littlesat's Photo littlesat 25 Jul 2015

;)

Quote

samsamsam's Photo samsamsam 25 Jul 2015

Dear users STABILITY this should be a base.

 

There are slowmotion and fast foward and seek working.

But, do you realy think that some one use slow motion? For what? 

The only functionality that should be added to player is free jump.

 

This can be handled very simple by adding marker to the progress bar, back arrow will move left side, right arrow on right site. After timeout the seek is make to marker position.

free_jump.png

 

 

Downloading?
If the stream can be played with ffmpeg the download can be handled by running ffmpeg as separate process.
In my opinion this is even better solution than run as part of E2.
 
At now no one is working on the player based on ffmpeg, but when it was part of the E2 on SH4 it was integrated with servicemp3.cpp.
 
What could be make based on ffmpeg you can check for example by running KODI player...
 
Besides, even gstreamer use some plugins based on ffmpeg (gstreamer version 0.10) and libav (fork of the ffmpeg)  (gstreamer version 1.X).
 
In my opinion gstreamer as player for STB is too big gun.
For examle the synchronization is big problem with E2 whay? 
Because one synchronization is performed by gstreamer and the second by drivers.
What for? Any one know?

Edited by samsamsam, 25 July 2015 - 22:25.
Quote

samsamsam's Photo samsamsam 25 Jul 2015

What media framework is used by the Chrome browser?

Yes. This is ffmpeg.

 

Part of project using ffmpeg:

https://trac.ffmpeg.org/wiki/Projects

 

Oh gstreamer use ffmpeg hehe

But ffmpeg not use gstreamer.

Quote

samsamsam's Photo samsamsam 25 Jul 2015

ffmpeg

 

can You use chapter, can you use hld streems ?

 

HLD streams? Maybe you mean HLS?

Yes HLS can be played with ffmpeg. 

Chapter? 

Quote

mx3L's Photo mx3L 26 Jul 2015

@samsamsam

As far as I know we are not using synchronization against clock, since in dvbmediasink it's turned off, so synchronization is done only by drivers.

 

How is gstreamer1.0 behaving unstable for you?

 

I was using eplayer3 on ipbox55hd, but it was some time ago. Negative thing I remember was that sometimes there were spinners on loading streams or seeking in them. It looked like that these operations were running within main thread, so gstreamer experience looked smoother, otherwise there weren't problems.

 

Can you provide link to latest eplayer3 and servicemp3 for eplayer3 sources?

 

Thanks

Quote

Erik Slagter's Photo Erik Slagter 26 Jul 2015

ffmpeg (libav) operates at another level than gstreamer. I will need "some" extra code in enigma. On the other hand, I do agree it will probably be more stable.


Edited by Erik Slagter, 26 July 2015 - 10:36.
Quote

christophecvr's Photo christophecvr 26 Jul 2015

Gstreamer 1.5.1 is much more stable then the old 0.10. The only point is to have the own application like in enigma2 the servicemp3 correct and adapted.

 

We can for example do seeks now whitout sandkeeper by mkv.

 

For mkv containers using only internal audio codecs(i mean codecs from stb) 

example a containers with ac3 audio. Fast forward perfect ok up to x32 no problem on vuduo2.

 

When using audio such as dts on vuduo2 perfect ok fast forward but max x4 now.

 

fast rewind back does not work...... yet.

 

Why the yet ? Well the current way off work with : GST_SEEK_FLAG_SKIP

Will be deprecated. However the change is since gst 1.6 that's what they say in gstreamer manual.

The we will be able to use seekflags.

GST_SEEK_FLAG_TRICKMODE | GST_SEEK_FLAG_TRICKMODE_NO_AUDIO

 

This should make it possible to do fast forward with up to x32 for all audio. And maybe even fast rewind will work then.

 

extract gstreamer manual:

 

http://gstreamer.fre...ml#GstSeekFlags


Edited by christophecvr, 26 July 2015 - 09:11.
Quote

christophecvr's Photo christophecvr 26 Jul 2015

Oh yes we well will keep the flush flag GST_SEEK_FLAG_FLUSH also.

 

That's the one whit which we can making it all work with the dvb drivers.

Quote