Jump to content


Photo

GStreamer 1.0

gstreamer 1.0 openpli

  • Please log in to reply
2520 replies to this topic

Re: GStreamer 1.0 #1281 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 10 May 2015 - 11:44

Isnt it better to launch the gstreamer engine only when needed and kill it after usage?

This will clear for sure some stupid things like the leftovers of previous gstreamer usage.

Good thinking way , but I think the sink is always needed video as audio in every situation.

 

The dvb needs a sink to ouput video or audio. As far I can see for audio we could use alsa sink. for the video i don't. But I gues it won't work a videosink and audio sink are always needed. And the dvb driver needs it.

This means gstreamer must be loaded for enigma2 at least the dvbmediasink .



Re: GStreamer 1.0 #1282 betacentauri

  • PLi® Core member
  • 7,185 posts

+323
Excellent

Posted 10 May 2015 - 12:21

For ts playback, recording, watching TV no gstreamer sink (incl dvbmediasink) is needed. It's only needed for playback of media files.

And by the way: Not all boxes have alsa support.
Xtrend ET-9200, ET-8000, ET-10000, OpenPliPC on Ubuntu 12.04

Re: GStreamer 1.0 #1283 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 10 May 2015 - 12:57

For ts playback, recording, watching TV no gstreamer sink (incl dvbmediasink) is needed. It's only needed for playback of media files.

And by the way: Not all boxes have alsa support.

Ok but why is gstreamer loaded when enigma2 is started then ? That's the million dollar question.

 

Since if You watch tv record or play standard ts recordings it is not required , which if I understand well does not need gstdvbvideosink or gstdvbaudiosink. (and as far I can see with al my tests they must be loaded)


Edited by christophecvr, 10 May 2015 - 12:59.


Re: GStreamer 1.0 #1284 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 10 May 2015 - 13:09

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstRegistry.html

The registry cache file is loaded from $XDG_CACHE_HOME/gstreamer-$GST_API_VERSION/registry-$ARCH.bin (where
$XDG_CACHE_HOME defaults to $HOME/.cache) or the file listed in the GST_REGISTRY env var. 

One reason to change the registry location is for testing.
The problem with registry created on / directory exists.

It seems that $HOME variable is defined as / when enigma2.sh run for first time. I add the following to enigma2.sh
 
echo home is $HOME ok >> /home/root/debug.txt
Deleted /.gstreamer-0.10/ and /home/root/.gstreamer-0.10/ and reboot.
 
root@formuler1:~# cat debug.txt
home is / ok
root@formuler1:~# ls -la /.gstreamer-0.10/
drwxr-xr-x    2 root     root           240 Jan  1 01:00 .
drwxr-xr-x   16 root     root          1384 Jan  1 01:00 ..
-rw-------    1 root     root        138430 Jan  1 01:00 registry.mipsel.bin
root@formuler1:~# ls -la /home/root/.gstreamer-0.10/
ls: /home/root/.gstreamer-0.10/: No such file or directory
Adding the following in enigma2.sh fixes the issue.
 
if [ -d /home/root ]; then
        cd /home/root
+        export HOME=/home/root
fi
root@formuler1:~# cat debug.txt
home is / ok
home is / ok
home is /home/root ok
root@formuler1:~# ls -la .gstreamer-0.10/
drwxr-xr-x    2 root     root           240 Jan  1 01:00 .
drwxr-xr-x    6 root     root          1368 Jan  1 01:00 ..
-rw-------    1 root     root        138430 Jan  1 01:00 registry.mipsel.bin
root@formuler1:~# ls -la /.gstreamer-0.10/
ls: /.gstreamer-0.10/: No such file or directory
@OpenPLi please commit the fix.

Attached Files


Edited by athoik, 10 May 2015 - 13:10.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #1285 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 10 May 2015 - 13:29

Very interesting findings here.

 

To check the sequence off enigma2 start,  (yes i finnally found where it is) and this obviousely not thank's to the very helpfull pli4 team which off course nows that but clearly does not give a shit about gstreamer 1.0. :angry:

 

I just removed out off /etc/inittab entry

gui:3:respawn:/usr/bin/enigma2.sh

Created a enigma start deamon and set it in /etc/init.d   named enigma2.init  whit exe flag enabled.

 

the deamon code :

#!/bin/sh
DAEMON=/usr/bin/enigma2.sh
NAME=enigma2
DESC="ENIGMA2 deamon"
PIDFILE=/var/run/enigma2.pid
ARGS=""

test -f $DAEMON || exit 0

case "$1" in
    start)
        echo -n "Starting $DESC: $NAME"
		cd /home/root
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $ARGS
        echo "."
        ;;
    stop)
        echo -n "Stopping $DESC: $NAME"
        start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
        echo "."
        ;;
    restart)
        $0 stop
        sleep 1
        $0 start
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac

exit 0

Then added a link to /etc/rc3.d  called S99enigma2.init  (I even set the S98rmnologin.sh) so to have really enigma2 as latest deamon to start.

 

No luck same issue.

 

after init 4 then init 3 .cache is created in / map. I even cleaned all caches did a hard reboot after all was cleaned (init 4 all caches cleaned and deleted from flash ) reboot by power of then on . again .cache set in /

 

Conclussion it is not really realtad to pli4 it is a linux issue. I remeber having a simillar issue with start off proftpd on a linux system during boot. But also some other deamons. It's related to a user issue in linux.

 

And You will not have this problem with kernels lower then 2.6.34 (if i'm not wrong it's about the kernel version where such things started)

 

That's why like for example ubuntu uses upstart for some deamons which needs to be loaded during boot.

 

We could solve this issue by.

 

Indeed since it seems not to be needed not load gstreamer at enigma2 start but only load it from the first media which needs it. It just will induce a couple off seconds delay by the very first media which needs gstreamer.



Re: GStreamer 1.0 #1286 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 10 May 2015 - 13:49

Very interesting findings here.
 
To check the sequence off enigma2 start,  (yes i finnally found where it is) and this obviousely not thank's to the very helpfull pli4 team which off course nows that but clearly does not give a shit about gstreamer 1.0. :angry:
 
I just removed out off /etc/inittab entry

gui:3:respawn:/usr/bin/enigma2.sh
Created a enigma start deamon and set it in /etc/init.d   named enigma2.init  whit exe flag enabled.
 
the deamon code :
#!/bin/sh
DAEMON=/usr/bin/enigma2.sh
NAME=enigma2
DESC="ENIGMA2 deamon"
PIDFILE=/var/run/enigma2.pid
ARGS=""

test -f $DAEMON || exit 0

case "$1" in
    start)
        echo -n "Starting $DESC: $NAME"
		cd /home/root
        start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- $ARGS
        echo "."
        ;;
    stop)
        echo -n "Stopping $DESC: $NAME"
        start-stop-daemon --stop --quiet --pidfile $PIDFILE --exec $DAEMON
        echo "."
        ;;
    restart)
        $0 stop
        sleep 1
        $0 start
        ;;
    *)
        echo "Usage: $0 {start|stop|restart}"
        exit 1
        ;;
esac

exit 0
Then added a link to /etc/rc3.d  called S99enigma2.init  (I even set the S98rmnologin.sh) so to have really enigma2 as latest deamon to start.
 
No luck same issue.
 
after init 4 then init 3 .cache is created in / map. I even cleaned all caches did a hard reboot after all was cleaned (init 4 all caches cleaned and deleted from flash ) reboot by power of then on . again .cache set in /
 
Conclussion it is not really realtad to pli4 it is a linux issue. I remeber having a simillar issue with start off proftpd on a linux system during boot. But also some other deamons. It's related to a user issue in linux.
 
And You will not have this problem with kernels lower then 2.6.34 (if i'm not wrong it's about the kernel version where such things started)
 
That's why like for example ubuntu uses upstart for some deamons which needs to be loaded during boot.
 
We could solve this issue by.
 
Indeed since it seems not to be needed not load gstreamer at enigma2 start but only load it from the first media which needs it. It just will induce a couple off seconds delay by the very first media which needs gstreamer.


WOW! Really? OpenPLi does not give a shit?

Go ahead fork everything, create christophecvr-openpli images and give GStreamer 1.0 images with feeds for everybody.

You know that OpenPLi (and the rest of us) is doing this for hobby and for free.

Do you know how much does it cost?

Bandwidth, Servers, Maintainance, Communication with Manufactures, etc, etc.

Do you know how many users OpenPLi supports?

You cannot support yourself and accusing OpenPLi are you serious?

I am sure with this attitude we are not going anywhere.

Finally you wrote a million of nonsense things instead of trying my patch above whitch is "well documented" and explains the issue.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #1287 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 10 May 2015 - 13:52

@athoik

 

genious Your solution with : export HOME=/home/root

 

I would give a +100 for that.

 

****great****super****faboulus***great  :) :) :) :) * infinite limit



Re: GStreamer 1.0 #1288 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 10 May 2015 - 14:07

Athoik, could you please start submitting your patches against gst-1 so Erik can apply them?

All of them which aren't applied yet.

Eg:

gstreamer head using version+srcrev.

 

Its been working for me for a while now.

And I agree with christophecvr that it's taking a long time to see stuff getting applied.



Re: GStreamer 1.0 #1289 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 10 May 2015 - 14:07

and @athoik for You're complete nonsense remark :

 

AN infinite limit off :(  ***down***makes_no_sence***

 

and a -100 is deserved for such idiot remarks.

 

The pli4 team does very very few to gstreamer-1.0 (it's all done by guys like You and xml3 and a couple off others ....)

 

Very very simple questions asked by me or many many others have never been answered while they just required a single rule.

So whe had to find it out all ourself which is a ridiculous waist of time.

 

About server bandwith and so on ......... sorry I never requested to add a speciall bandwith for me , if some did do not shoot at me for that.



Re: GStreamer 1.0 #1290 Frenske

  • Forum Moderator
    PLi® Core member
  • 27,494 posts

+397
Excellent

Posted 10 May 2015 - 14:21

To all involvedIn case you disagree the opinion of a fellow board member, please discuss these issue by PM instead of doing this in public and let us keep this technical discussion clear of accusing and all or other nasty business.

Mijn schotel is een T90 met 10 LNB's. Daarnaast voor de fun nog een draaibaar systeem met een Triax TD 78.

Dreamboxen heb ik niet meer echt actief. Verder heb ik ook nog een een VU+ duo2 met 500Gb harddisk + een VU+ Uno, Zero, Solo 4K, Ultimo 4K, Zero 4K, Uno 4Kse. + ook nog een Xtrend ET7x00. Daarnaast heb ik ook nog diverse andere modellen w.o. een Formuler F4, ET8500, ET7500, Mut@nt 2400HD, Xsarius Fusion HD se en verder nog wel het e.e.a. waarmee op verzoek vanalles wordt getest. Iemand moet het tenslotte doen. ;) :)
Los van de eerder genoemde modellen heb ik nog wel een rits aan testsamples als Mut@nt 2400HD, HD60, GB UE4K, GB Trio4K, Maxitec Multibox combo en Twin, Octagon sf8008, sf8008 mini en last but nog least enkele modellen van het Grieks Duitse Edision.

Voor centrale opslag van media gebruik ik een Qnap 219P 
met tweemaal 2 Tb harddisks + een Synology DS414 met 12 Tb Totale opslag.

-------------------------------------------------------------------------------------------
Many answers to your question can be found in our wiki: Just one click away from this "solutioncentre".

Als ik alles al wist hoefde ik ook niets te vragen. If I had all the knowledge I had no questions at all.


Re: GStreamer 1.0 #1291 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 10 May 2015 - 14:22

and @ athoik

 

read A bit better my remarks to the openpli team THEY ARE RIGHT AND ALREADY SAID BY OTHERS A MILLION TIMES  and I need to shout perhaps pli team would notice it.

 

but ok yes stupid maybe as it will not help :P  It's just a good way to shout out frustrations and on a team which deserves it some times.

 

If You make a remarke like :

 

"Finally you wrote a million of nonsense things instead of trying my patch above whitch is "well documented" and explains the issue."

 

Well think first.

  1 ) You're solution was not there.

  2 ) My try outs were to find the source off the problem and absolutely NOT a thing to do but just a prove WHERE THE PROBLEM WAS NOT !!!!!!!!

 

And yes You find the real problem and solved it with You're export off /home/root and I wish I had You're second complete idiot remark whitout any sence before I would have give the + 1 to you as you do not deserve it after such idiot comment



Re: GStreamer 1.0 #1292 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 10 May 2015 - 15:08

Technically speaking there is:

* no reason to create init script for enigma2.
* no reason to stop enigma2 from loading GStreamer.
* no issue with kernel lower then 2.6.34 or kernel generally
* no issue with linux

$HOME variable is initialized at login. But there is no login happening and $HOME has the default value /

http://unix.stackexchange.com/questions/123858/is-the-home-environment-variable-always-set-on-a-linux-system
http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html
HOME The system shall initialize this variable at the time of login to be a pathname of the user's home directory. See <pwd.h>.
@christophecvrm So the nonsense was regarding the technical reasons/analysis you've made. Sorry if that makes you feel unhappy.

@MastaG, there is no reason to commit anything at the moment at OpenPLi. OpenPLi wants to use OE-Core components so there commits should go. Also most probably we need to remove GStreamer from meta-openpli and use only .bbappends.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #1293 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 10 May 2015 - 16:43

Technically speaking also.

 

   - It would be a very good idea to push You're patch in enigma2 for the current still in use branch with  gst-0.10-36 in use.

     It's a base enigma2 issue and that is 100 % shure one of the reason on the some unexplainable issues and enigma2 crashes due to segfault.

 

   - fore gstreamer 1.0 one more change should be done : the rm off cache should be adapted to /home/root/.cache/gstreamer-1.0 in the enigma2.sh file.

     But this is not so important , it's well needed after any update/upgrade or extra plugin for gstreamer.

 

   - again I never said that we must adapt or even create non standard start deamon for enigma2.

     I just explained what I did to prove where the problem was NOT !! read the msg troughfully and it's clear.

     note this all was written before I read You're solution when You posted You're solution I was writing this message.

 

 Then non technical

 

  - My remarks to the pli team are 100 % right. If I was alone i would perhaps review ... it has been already said by many,many persons and they where all right.



Re: GStreamer 1.0 #1294 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 10 May 2015 - 16:47

Well, take it from a part-time linguist: it seems some things here may well be down to linguistic misunderstandings... ;)

 

Many a time a contributor is not a native English speaker and then... :)


<span style='font-family: comic sans ms,cursive'>"Enlightenment is man's emergence from his self-incurred immaturity. Immaturity is the inability to use one's own understanding without the guidance of another. This immaturity is self-incurred if its cause is not lack of understanding, but lack of resolution and courage to use it without the guidance of another. The motto of enlightenment is therefore: Sapere aude! Have courage to use your own understanding!</span><br /> <br /><span style='font-family: comic sans ms,cursive'>Laziness and cowardice are the reasons why such a large proportion of men, even when nature has long emancipated them from alien guidance..." I. Kant, "Political writings" (1784)</span><br /> <br /><span style='font-family: comic sans ms,cursive'><a class='bbc_url' href='<a class='bbc_url' href='http://eserver.org/p...lightenment.txt'>http://eserver.org/p...ent.txt</a>'><a class='bbc_url' href='http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a>'>http://www.english.upenn.edu/~mgamer/Etexts/kant.html</a></a> - the jolly text on Enlightenment, at the basis of Modernity...</span>

Re: GStreamer 1.0 #1295 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 13 May 2015 - 10:50

Ah I see,

 

So master-next-gst1 will use a more recent version of openembedded-core which already features gstreamer1.0 right?

And meta-openpli will only contain bbappends for gstreamer1.0 for using a fixed src rev and other fixes?

 

What's the holdup then?

 

I have it perfectly working now for all my receivers and would like to see it in master(-next-gst1 :P).


Edited by MastaG, 13 May 2015 - 10:52.


Re: GStreamer 1.0 #1296 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 17 May 2015 - 09:42

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstRegistry.html

The registry cache file is loaded from $XDG_CACHE_HOME/gstreamer-$GST_API_VERSION/registry-$ARCH.bin (where
$XDG_CACHE_HOME defaults to $HOME/.cache) or the file listed in the GST_REGISTRY env var. 

One reason to change the registry location is for testing.
The problem with registry created on / directory exists.

It seems that $HOME variable is defined as / when enigma2.sh run for first time. I add the following to enigma2.sh
 
echo home is $HOME ok >> /home/root/debug.txt
Deleted /.gstreamer-0.10/ and /home/root/.gstreamer-0.10/ and reboot.
 
root@formuler1:~# cat debug.txt
home is / ok
root@formuler1:~# ls -la /.gstreamer-0.10/
drwxr-xr-x    2 root     root           240 Jan  1 01:00 .
drwxr-xr-x   16 root     root          1384 Jan  1 01:00 ..
-rw-------    1 root     root        138430 Jan  1 01:00 registry.mipsel.bin
root@formuler1:~# ls -la /home/root/.gstreamer-0.10/
ls: /home/root/.gstreamer-0.10/: No such file or directory
Adding the following in enigma2.sh fixes the issue.
 
if [ -d /home/root ]; then
        cd /home/root
+        export HOME=/home/root
fi
root@formuler1:~# cat debug.txt
home is / ok
home is / ok
home is /home/root ok
root@formuler1:~# ls -la .gstreamer-0.10/
drwxr-xr-x    2 root     root           240 Jan  1 01:00 .
drwxr-xr-x    6 root     root          1368 Jan  1 01:00 ..
-rw-------    1 root     root        138430 Jan  1 01:00 registry.mipsel.bin
root@formuler1:~# ls -la /.gstreamer-0.10/
ls: /.gstreamer-0.10/: No such file or directory
@OpenPLi please commit the fix.

You could also set HOME to / when debugging.


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: GStreamer 1.0 #1297 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 17 May 2015 - 09:49

You could also set HOME to / when debugging.


Then we need a fix for this (also to check for GStreamer 1.0):
 
	3)
		rm -fR /home/root/.gstreamer-0.10
		;;


http://sourceforge.net/p/openpli/enigma2/ci/master/tree/tools/enigma2.sh.in

Edited by athoik, 17 May 2015 - 09:50.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #1298 Erik Slagter

  • PLi® Core member
  • 46,969 posts

+542
Excellent

Posted 17 May 2015 - 11:13

What you're saying is that in one script two separate "home" directories are used?


* Wavefrontier T90 with 28E/23E/19E/13E via SCR switches 2 x 2 x 6 user bands
I don't read PM -> if you have something to ask or to report, do it in the forum so others can benefit. I don't take freelance jobs.
Ik lees geen PM -> als je iets te vragen of te melden hebt, doe het op het forum, zodat anderen er ook wat aan hebben.


Re: GStreamer 1.0 #1299 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 17 May 2015 - 13:38

What you're saying is that in one script two separate "home" directories are used?


Correct.

When enigma2.sh runs at level 3 the HOME environment variable is / (so any program relies on HOME env variable creates files under / eg gstreamer).

When root user login the HOME has the "correct" value (as defined in /etc/passwd).
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: GStreamer 1.0 #1300 MiLo

  • PLi® Core member
  • 14,055 posts

+298
Excellent

Posted 17 May 2015 - 16:45

Doesn't gstreamer have an environment or so to directly set the location of the .cache folder? Best would be to store it under /var/volatile somewhere, so it's in RAM and gets deleted on a full reboot, preventing problems with stale cache contents as well.
Real musicians never die - they just decompose



11 user(s) are reading this topic

0 members, 7 guests, 0 anonymous users


    Bing (4)