Jump to content


Photo

gstreamer 1.0 - self-built image - videos stuttering


  • Please log in to reply
27 replies to this topic

#1 buami

  • Member
  • 7 posts

0
Neutral

Posted 8 September 2015 - 09:50

Hello dear all,
i just registered to your forum but was already reading your topics for some time.

So first I'd like to say hello to everybody. I am C / C++ programer for ~20 years and one of my hobbies is to create sw around STB's and E2 images.

So comes that I have a question to you (if I am on the wrong place or it is simply not supported just let me know)

 

I built an SH4 E2 image for my UFS913 with gstreamer 0.10 - everything is fine.

Next I upgraded gstreamer to 1.5.2 and gst-plugins-dvbmediasink to "christophecvr/gstreamer1.0-plugin-subsink.git"

Image is working, BUT:

when I play a http stream (mp4) the video is stuttering (for my tests I killed e2 and simply ran gst-launch-1.0 playbin ...).

What I did so far:

- downloading the video (to exclude inet/bandwidth problems): still stuttering

- separating audio and video (both as mp4): video is running fine, audio is stuttering

- converted aac audio to mp3 and merged again with video: running fine

- gstreamer has no aac plugin compiled in - decoding is done via gstdvbaudiosink (already checked by adding some debug infos to gstdvbaudiosink.c)

 

I built dvbmediasink with the following options: --with-wma --with-wmv --with-pcm --with-eac3 --with-dtsdownmix --with-mpeg4v2 --with-gstversion=1.0

 

There are so many discussions and patches out there - I am a little lost.

 

Maybe someone knows the problem and can point me to de right direction?

 

Thanks and best greetings,

buami

 

 



Re: gstreamer 1.0 - self-built image - videos stuttering #2 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 8 September 2015 - 10:32

I'd like to try as well, but unfortunately my spark7162 (GM Spark One) died on me.

I'll share some info.

I'm using openpli-oe-core gst1 branch since I'd like to be as close to original PLi as possible.

However I've switched the Enigma2 source to taapat's version:

 

Here's my enigma2.bbappend:

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

ENIGMA2_BRANCH ?= "master"
GITHUB_URI ?= "git://github.com"

SRC_URI = "${@base_contains("TARGET_ARCH", "sh4", "git://bitbucket.org/Taapat/enigma2-pli-arp-taapat.git;protocol=https", "${GITHUB_URI}/OpenPLi/${BPN}.git;branch=${ENIGMA2_BRANCH}", d)}"

SRC_URI_append_sh4 = " file://sparkfixes.patch"
# Pause improvements from mx3L
SRC_URI += " file://0001-servicemp3-improve-unpause-performance-in-gstreamer1.patch"

Taapat's branch needs some fixes to build within the openpli-oe-core enviroment because the python setup is different and we use an older version of giflib.

Please see the attached sparkfixes.patch.

 

Also christophecvr's multibox dvbmediasink needs a patch according to OE-A.

I've attached this as well.

 

All other related recipes (meta-fulan, gcc-4.8, libav patches etc..) I've included from OE-A as well.

 

The flash chip in my spark receiver is damaged, no matter how many times I attempt to do a flash_eraseall, the mtd6 partition will always corrupt due to ecc failures when doing a nandtest :(

I'm looking into booting from USB atm.

Attached Files


Edited by MastaG, 8 September 2015 - 10:34.


Re: gstreamer 1.0 - self-built image - videos stuttering #3 buami

  • Member
  • 7 posts

0
Neutral

Posted 8 September 2015 - 12:25

thanks for providing your experience.

0001-dvbmediasink_sh4_fix.patch was already part of my build chain (otherwise no sound) - but this does not solve the stuttering...



Re: gstreamer 1.0 - self-built image - videos stuttering #4 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 8 September 2015 - 19:25

Hi,

If I may I would suggest you to compare pipelines gstreamer1.0 vs gstreamer0.10 when playing AAC (GST_DUMP_DOT_DIR, check them in xdot) and compare set_caps, render and push_buffer functions at least what's related to AAC between these two versions.



Re: gstreamer 1.0 - self-built image - videos stuttering #5 malakudi

  • Senior Member
  • 1,449 posts

+69
Good

Posted 9 September 2015 - 08:07

Topic subject should report that this thread is about unsupported (from OpenPLi) STi boxes.

 

Apart from that, maybe the issue is code that converts AAC to AC3 in software? It has been added in some of those custom builds.



Re: gstreamer 1.0 - self-built image - videos stuttering #6 buami

  • Member
  • 7 posts

0
Neutral

Posted 9 September 2015 - 08:23

I don't have software for aac to ac3 conversion on my system.

I use gstreamer, gst-plugins-base/good/bad/ugly/dvbmediasink

only patch I use:  0001-dvbmediasink_sh4_fix.patch (as attached in post#2)



Re: gstreamer 1.0 - self-built image - videos stuttering #7 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 9 September 2015 - 10:06

MastaG, could you, please, come/reg at PowerBoard and talk to Delfi and Graugans - they may be able to help you save your STi 7162. If anyone can, they can, esp. Delfi, who helped me with a similar issue and who had to study it to save his own, also... He has some contacts with the manufacturers, too... ;)

 

Secondly, buami, you should look into samsamsam's posts re. ffmpeg and SH4 recs with not much memory, if you haven't already. Then, stuttering videos might be a thing of the past, we hope....

 

I would also like to invite you to PowerBoard, since those recs are supported there, broadly speaking - and maybe... ;)

 

Good luck to you all!!! :)


<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 - self-built image - videos stuttering #8 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 10 September 2015 - 15:58

I know we shouldn't mention unsupported receivers. However I got my spark receiver booting from USB (the init=/bin/devinit) was missing.
So to sum up
- Taapat's PLi fork with a minor patch from the first post
- Christophecvr's multibox dvbmediasink with the sh4 patch
- meta-fulan and some oe-core patches from oe-alliance (gcc 4.8 etc)

Iptv and Streaming is working perfectly fine here.

I only have a issue with oscam and dvbapi, I hope Taapat is willing to give me a hand on that one.

@gorski thanks I'll check it out.

Re: gstreamer 1.0 - self-built image - videos stuttering #9 santa

  • Member
  • 20 posts

+1
Neutral

Posted 10 September 2015 - 19:58

Do you have the np_pti and do you use duckbox as boxtype?

Re: gstreamer 1.0 - self-built image - videos stuttering #10 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 10 September 2015 - 21:49

I ripped it from openatv 5.1 and now it's working :-)

It seems the one that is compiled by default doesn't support descrambling.

However I'm using "dreambox" for boxtype.

 

I did some quick tests, playing various internet streams using IPTV Player and movies from my usb stick and all is working fine.

Also multibitrate HLS is playing very well.

 

I have only one small issue left with the default PLi HD skin.

When I enter the channel list it will resize the TV output to a small window.

When I zap to a channel it sometimes doesn't resize back to full screen.

This can be fixed by using a different skin which doesn't feature the small preview.

 

So at the end of the day everything is working now.

gstreamer 1.5.90 on my spark receiver and it's as close to the original PLi as possible.

Happy times for me !



Re: gstreamer 1.0 - self-built image - videos stuttering #11 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 11 September 2015 - 03:44

Send me the link, please, I'll be happy to test it. My Alien2 is only supporting my monitor at the moment.... :D

 

The resizing of the window is the problem we discovered on all of the images, for whatever the reason... FIxed by ^ or V buttons and OK, if memory serves...

 

We need Graugans and Delfi with some free time and will to investigate... Maybe AR-P guys would lend a hand, too?

 

You know, I think PB is the best image for it, if all would work correctly, from the best Device Manager onwards, so it can be set up really well etc. etc.

 

Tap's image is ffmpeg based?

 

Good luck!


<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 - self-built image - videos stuttering #12 santa

  • Member
  • 20 posts

+1
Neutral

Posted 11 September 2015 - 06:34

Sh4 boxes needs duckbox as boxtyp, with dreambox you'll never decrypt 2 programms the same time.

Re: gstreamer 1.0 - self-built image - videos stuttering #13 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 11 September 2015 - 07:09

I have not tried but with Graugans' Yocto layer - maybe... ;)


<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 - self-built image - videos stuttering #14 buami

  • Member
  • 7 posts

0
Neutral

Posted 11 September 2015 - 07:57

@MastaG: are you using any other gstreamer-related patch except the sh4 patch?

could you propably share your gstreamer.mk?

Thx



Re: gstreamer 1.0 - self-built image - videos stuttering #15 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 11 September 2015 - 09:08

Yes, tonight or tomorrow I'll share everything.

Re: gstreamer 1.0 - self-built image - videos stuttering #16 buami

  • Member
  • 7 posts

0
Neutral

Posted 11 September 2015 - 09:10

great thx

me too - let's share some experience :)



Re: gstreamer 1.0 - self-built image - videos stuttering #17 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 11 September 2015 - 09:36

Btw, lots of Graugans' inventions are in OE-A/OpenATV GITs. I am sure you know it already but... just in case, if somebody doesn't know and they may want to learn from it/use it... ;)


<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 - self-built image - videos stuttering #18 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 13 September 2015 - 11:02

Oh, one more thing I forgot to mention: many new things are in the non-public, testing area... just so you know, in case you were wondering...

 

One must be VIP or Beta tester or so, to get to those threads, sorry... :)


<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 - self-built image - videos stuttering #19 buami

  • Member
  • 7 posts

0
Neutral

Posted 14 September 2015 - 13:01

Yes, tonight or tomorrow I'll share everything.

may I ask again? ;)



Re: gstreamer 1.0 - self-built image - videos stuttering #20 gorski

  • Senior Member
  • 1,699 posts

+46
Good

Posted 14 September 2015 - 14:54

And I'll jump on the bandwagon... :D


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


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users