Jump to content


Photo

serviceapp - gstplayer and exteplayer3

gstreamer ffmpeg

  • Please log in to reply
965 replies to this topic

Re: serviceapp - gstplayer and exteplayer3 #21 MastaG

  • PLi® Core member
  • 1,528 posts

+116
Excellent

Posted 29 April 2016 - 15:40

Thank you,

 

Yes I've found the subssupport :)

And I've created a mediaplayer2 recipe based on it:

SUMMARY = "MediaPlayer 2 for Enigma2"
HOMEPAGE = "https://github.com/mx3L/mediaplayer2"
AUTHOR = "Maroš Ondrášek <mx3ldev@gmail.com>"
LICENSE = "CLOSED"

RDEPENDS_${PN} = "python-xmlrpc python-compression python-codecs python-zlib python-difflib unrar"

SRCREV = "${AUTOREV}"
inherit gitpkgv
PV = "0.73+git${SRCPV}"
PKGV = "0.73+git${GITPKGV}"

SRC_URI = "git://github.com/mx3L/mediaplayer2;protocol=git;branch=master"

S = "${WORKDIR}/git"

do_install_append () {
    mkdir -p ${D}/${libdir}/enigma2/python/Plugins/Extensions/mediaplayer2
    cp -r ${S}/plugin/* ${D}/${libdir}/enigma2/python/Plugins/Extensions/mediaplayer2/
}

FILES_${PN} = "${libdir}/enigma2/python/Plugins/Extensions/mediaplayer2"

inherit autotools-brokensep

 

I didn't know which license, so I've simply put CLOSED for now.



Re: serviceapp - gstplayer and exteplayer3 #22 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 29 April 2016 - 15:47

It's not closed, it's just fork of Mediaplayer plugin from openpli, please give it license as has openpli, gplv2 I think and also remove AUTHOR from it since it has many authors.

 

Also side note, you don't need to inherit autotools-brokensep since project doesn't use autotools, you already did everything in do_install_append.



Re: serviceapp - gstplayer and exteplayer3 #23 samsamsam

  • Senior Member
  • 2,026 posts

+144
Excellent

Posted 29 April 2016 - 15:52

Hi mx3L and samsamsam,

 

exteplayer3 fails to build on sh4:

container/container_ffmpeg.c: In function 'FFMPEGThread':
container/container_ffmpeg.c:828:30: error: #error
                             #error
                              ^
WARNING: /media/data2/openpli-oe-core/build/tmp/work/sh4-oe-linux/exteplayer3/26+gitAUTOINC+ab72ea4572-r0/temp/run.do_compile.6588:1 exit 1 from
  sh4-oe-linux-gcc -ml -m4 --sysroot=/media/data2/openpli-oe-core/build/tmp/sysroots/spark playback/playback.c output/writer/mipsel/vc1.c output/writer/mipsel/divx3.c output/writer/mipsel/mpeg4.c output/writer/mipsel/mpeg2.c output/writer/mipsel/h263.c output/writer/mipsel/h264.c output/writer/mipsel/wma.c output/writer/mipsel/amr.c output/writer/mipsel/dts.c output/writer/mipsel/lpcm.c output/writer/mipsel/pcm.c output/writer/mipsel/mp3.c output/writer/mipsel/ac3.c output/writer/mipsel/aac.c output/writer/common/misc.c output/writer/common/pes.c output/writer/mipsel/writer.c output/output.c output/linuxdvb_mipsel.c manager/video.c manager/manager.c manager/audio.c container/container_ffmpeg.c container/container.c main/exteplayer.c -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -I/media/data2/openpli-oe-core/build/tmp/work/sh4-oe-linux/exteplayer3/26+gitAUTOINC+ab72ea4572-r0/git//include -I/media/data2/openpli-oe-core/build/tmp/work/sh4-oe-linux/exteplayer3/26+gitAUTOINC+ab72ea4572-r0/image//usr/lib -I/media/data2/openpli-oe-core/build/tmp/work/sh4-oe-linux/exteplayer3/26+gitAUTOINC+ab72ea4572-r0/image//usr/include -lpthread -lavformat -lavcodec -lavutil -lswresample -o exteplayer3

Ah, I see now:

#ifdef __sh__
                            // player2 won't play mono
                            if (out_channel_layout == AV_CH_LAYOUT_MONO)
                            {
                                downmix = 1;
                            }
                            /* At now whole code from this file was not checked on SH4 STB
                             * and probably need to be fixed for these STB
                             */
                            #error
#endif

So samsamsam do you simply remove the #error for your sh4 builds of exteplayer3?

 

At now the code provided in repo:

https://github.com/s...yer/exteplayer3

provides only code for MIPSEL.

 

In IPTVPlayer I use much more older version and I need to make merge.

This will need lot of work.

 

Regards,

SSS



Re: serviceapp - gstplayer and exteplayer3 #24 samsamsam

  • Senior Member
  • 2,026 posts

+144
Excellent

Posted 29 April 2016 - 15:55

Hello @mx3L,

Can you commit your bb receipt for exteplayer3 to the repo:

https://github.com/s.../commits/master

 

Regards,

SSS



Re: serviceapp - gstplayer and exteplayer3 #25 Taapat

  • PLi® Core member
  • 1,841 posts

+73
Good

Posted 29 April 2016 - 15:58

@MastaG I wanted to draw your attention to the fact that mediaplayer2 package collected by the your bb file probably will not work as you expect.

1. You will not be able uninstall this plugin with package manager because it does not include precompiled python files, and they will remain in the receiver.
2. Localization not work because you do not compile the localization files.



Re: serviceapp - gstplayer and exteplayer3 #26 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 29 April 2016 - 15:59

@samsamsam

Hi, sure will do, but it's fixed for 26 version, so we have to update it manually for next version.



Re: serviceapp - gstplayer and exteplayer3 #27 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 29 April 2016 - 16:00

@Taapat

Thanks, you're right, will look at it.



Re: serviceapp - gstplayer and exteplayer3 #28 MastaG

  • PLi® Core member
  • 1,528 posts

+116
Excellent

Posted 29 April 2016 - 17:06

@Taapat
You're right, thank you.
I'll add the steps for compiling the language files and add some postrm steps for proper cleaning.

@samsamsam
Would you be able to share the old sources for your exteplayer3 which is confirmed working on sh4?

Re: serviceapp - gstplayer and exteplayer3 #29 samsamsam

  • Senior Member
  • 2,026 posts

+144
Excellent

Posted 29 April 2016 - 20:03

Yes but I need to make review. 



Re: serviceapp - gstplayer and exteplayer3 #30 mrvica

  • Senior Member
  • 798 posts

+46
Good

Posted 30 April 2016 - 09:17

I´ve done some testing with exteplayer3, I just put all the files in /tmp (RAM), didn´t touch the flash at all, the files needed



drwxr-xr-x 2 root root 520 Apr 29 21:57 .
drwxrwxrwt 4 root root 660 Apr 29 21:55 ..
-rwxr-xr-x 1 root root 70144 Apr 29 18:38 exteplayer3
-rwxr-xr-x 1 root root 223096 Feb 8 23:59 ffmpeg
lrwxrwxrwx 1 root root 23 Apr 29 21:57 libavcodec.so -> libavcodec.so.56.60.100
lrwxrwxrwx 1 root root 23 Apr 29 21:57 libavcodec.so.56 -> libavcodec.so.56.60.100
-rwxr-xr-x 1 root root 7980240 Feb 8 23:59 libavcodec.so.56.60.100
lrwxrwxrwx 1 root root 23 Apr 29 21:57 libavdevice.so -> libavdevice.so.56.4.100
lrwxrwxrwx 1 root root 23 Apr 29 21:57 libavdevice.so.56 -> libavdevice.so.56.4.100
-rwxr-xr-x 1 root root 65396 Feb 8 23:59 libavdevice.so.56.4.100
lrwxrwxrwx 1 root root 23 Apr 29 21:57 libavfilter.so -> libavfilter.so.5.40.101
lrwxrwxrwx 1 root root 23 Apr 29 21:57 libavfilter.so.5 -> libavfilter.so.5.40.101
-rwxr-xr-x 1 root root 1097200 Feb 8 23:59 libavfilter.so.5.40.101
lrwxrwxrwx 1 root root 24 Apr 29 21:57 libavformat.so -> libavformat.so.56.40.101
lrwxrwxrwx 1 root root 24 Apr 29 21:57 libavformat.so.56 -> libavformat.so.56.40.101
-rwxr-xr-x 1 root root 1995660 Feb 8 23:59 libavformat.so.56.40.101
lrwxrwxrwx 1 root root 22 Apr 29 21:57 libavutil.so -> libavutil.so.54.31.100
lrwxrwxrwx 1 root root 22 Apr 29 21:57 libavutil.so.54 -> libavutil.so.54.31.100
-rwxr-xr-x 1 root root 270552 Feb 8 23:59 libavutil.so.54.31.100
lrwxrwxrwx 1 root root 24 Apr 29 21:57 libswresample.so -> libswresample.so.1.2.101
lrwxrwxrwx 1 root root 24 Apr 29 21:57 libswresample.so.1 -> libswresample.so.1.2.101
-rwxr-xr-x 1 root root 81840 Feb 8 23:59 libswresample.so.1.2.101
lrwxrwxrwx 1 root root 21 Apr 29 21:57 libswscale.so -> libswscale.so.3.1.101
lrwxrwxrwx 1 root root 21 Apr 29 21:57 libswscale.so.3 -> libswscale.so.3.1.101
-rwxr-xr-x 1 root root 460988 Feb 8 23:59 libswscale.so.3.1.101

then simple

export LD_LIBRARY_PATH=/tmp
now exteplayer3 starts

Usage: exteplayer3 filePath [-u user-agent] [-c cookies] [-h headers] [-p prio] [-a] [-d] [-w] [-l] [-s] [-i] [-t audioTrackId] [-x separateAudioUri] plabackUri
[-a] AAC software decoding
[-e] EAC3 software decoding
[-3] AC3 software decoding
[-d] DTS software decoding
[-w] WMA1, WMA2, WMA/PRO software decoding
[-l] software decoder use LPCM for injection (otherwise wav PCM will be used)
[-s] software decoding as stereo [downmix]
[-i] play in infinity loop
[-o 0|1] set progressive download
[-p value] nice value
[-t id] audio track ID switched on at start
[-h headers] set custom HTTP headers "Name: value\r\nName: value\r\n"
[-u user-agent] set custom http User-Agent header
[-x separateAudioUri]

you can try it from USB (HD, stick), in that case make a command
export LD_LIBRARY_PATH=/media/usb/.....
no need for static version



Re: serviceapp - gstplayer and exteplayer3 #31 MastaG

  • PLi® Core member
  • 1,528 posts

+116
Excellent

Posted 30 April 2016 - 10:11

Well congratulations samsamsam and mx3L.

It works very well on my spark7162.

I've set exteplayer3 as default backend for enigma2 and all my m3u8 streams are playing ok.

However I'm using the /usr/bin/exteplayer3 downloaded by IPTV Player.

The one I've compiled myself from github (after removing the #error) doesn't work on sh4, I only get video but no audio.

 

However,  external subtitles don't work when they're setup by servicemp3 right?

I'm using DreamPlex in local mode which will feed the movie (.mkv) and the external subtitle (.srt) to servicemp3 but it's not showing.

So how does subssupport work around this?

 

Great work nevertheless!



Re: serviceapp - gstplayer and exteplayer3 #32 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 30 April 2016 - 11:49

So how does subssupport work around this?

I'm doing everything in there, parsing, timing and rendering of subtitles, so it doesn't depend on gstreamer like servicemp3 does.


Edited by mx3L, 30 April 2016 - 11:49.


Re: serviceapp - gstplayer and exteplayer3 #33 samsamsam

  • Senior Member
  • 2,026 posts

+144
Excellent

Posted 30 April 2016 - 13:07

Well congratulations samsamsam and mx3L.

It works very well on my spark7162.

I've set exteplayer3 as default backend for enigma2 and all my m3u8 streams are playing ok.

However I'm using the /usr/bin/exteplayer3 downloaded by IPTV Player.

The one I've compiled myself from github (after removing the #error) doesn't work on sh4, I only get video but no audio.

 

However,  external subtitles don't work when they're setup by servicemp3 right?

I'm using DreamPlex in local mode which will feed the movie (.mkv) and the external subtitle (.srt) to servicemp3 but it's not showing.

So how does subssupport work around this?

 

Great work nevertheless!

 

I am not sure why you try to use version for BROADCOM STB on SH4 STB?



Re: serviceapp - gstplayer and exteplayer3 #34 MastaG

  • PLi® Core member
  • 1,528 posts

+116
Excellent

Posted 30 April 2016 - 13:58

Because I was curious how it would behave ;-)
Anyways I'm looking forward to your source for sh4, maybe you can put it in a different branch :-)

Re: serviceapp - gstplayer and exteplayer3 #35 tecfan69

  • Member
  • 8 posts

0
Neutral

Posted 22 May 2016 - 11:56

Hi guys.

 

I am using exteplayer3 with serviceapp within an image with ffmpeg 3.0.2. It works great so far.

 

When i start a stream from hdd and invoke pip exteplayer3 hang up after a couple of seconds while pip do not stop. After i kill the exteplayer3 task everything is ok.

 

Do you know how to solve this ?

 

Thanks.



Re: serviceapp - gstplayer and exteplayer3 #36 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 24 May 2016 - 08:36

Hi,

 

Please explain step by step how to reproduce your problem.

 

How do you start a stream from hdd? Do you use builtin MoviePlayer? What stream do you start from hdd? Is it TS stream, i.e recording?

How do you start a pip?

 

In serviceapp is pip not enabled, so I guess you're trying to play non-TS stream via exteplayer3 and in pip window play TS stream, but this combination works for me without problem.



Re: serviceapp - gstplayer and exteplayer3 #37 tecfan69

  • Member
  • 8 posts

0
Neutral

Posted 24 May 2016 - 18:24

I start a flv movie from movieselection and do not use the builtin player. top shows that exteplayer3 is running and movie plays fine.

 

the problem occurs when pip is invoked while playing the flv movie. after a couple of seconds the flv movie stucks.

 

if i kill the exteplayer3 task e2 switch to the last channel and everything runs as expected. so my guess is that exteplayer3 is the problem.

 

with ts there is no problem but of course exteplayer3 is not used with ts recorded movies.

 

i hope you could give a hint.



Re: serviceapp - gstplayer and exteplayer3 #38 gorski

  • Senior Member
  • 1,700 posts

+46
Good

Posted 24 May 2016 - 19:42

It's not closed, it's just fork of Mediaplayer plugin from openpli, please give it license as has openpli, gplv2 I think and also remove AUTHOR from it since it has many authors.

 

Also side note, you don't need to inherit autotools-brokensep since project doesn't use autotools, you already did everything in do_install_append.

 

Curious, I was told this was ripped (on the cheap, so to speak) from Damir's subtitle player...

 

True?


<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: serviceapp - gstplayer and exteplayer3 #39 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 24 May 2016 - 20:18

@gorski

As was said Mediaplayer2 plugin is fork of Mediaplayer from openpli image. There is no code used from Damir's subtitle player, which is AFAIK plugin with closed source.



Re: serviceapp - gstplayer and exteplayer3 #40 gorski

  • Senior Member
  • 1,700 posts

+46
Good

Posted 24 May 2016 - 23:14

Hehe, it gets ever more interesting: he told me (Damir) that it was ripped from his Sub Player...

 

 

Media Player2 nije nista drugo nego modificirani Media player i uzeti dio iz mog plugina i prebacen u njega da bi radio "donekle" ono sto i moj plugin radi.

 

Here is his reasoning for doing the bin files only:

 

 

Zamisli "umjetnost", uzeti dio necijeg rada, uvaliti u svoj plugin i pjevati, mi smo to napravili. E zbog takvih ja vise nedajem nikakve sourceve public, cak vise necu ni da radim python plugine (mogu se dekompajlirati), nego samo bin code, i zato su mnogi ljuti na mene jer nemogu vise nista uzeti mogu samo gledati i vidjeti sto radi, a nesto slicno nitko to nije napravio a kako mi se cini i nece bas tako skoro.

p.DDamir

 

But I stopped going to that forum after I dared saying there were alternatives to his player (in good spirit, trying to state facts) - but apparently it was in "insult" and the whole of his 'tribe' started giving me an Nth degree... :D

 

Thanx for the info! :)


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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users