Jump to content


Photo

ffmpeg libs in OpenPli 5


  • Please log in to reply
45 replies to this topic

Re: ffmpeg libs in OpenPli 5 #21 Erik Slagter

  • PLi® Core member
  • 46,951 posts

+541
Excellent

Posted 2 May 2016 - 14:56

It is important to make it working and not what you think about this.

Oh really? Maybe OpenPLi decides on the OpenPLi forum what is "important"?
 

I see @Erik Slagter know all the best and he will create his own standard.
So does not matter, please forget about ffmpeg with https support, but maybe add to this package is castrated ffmpeg not full not to mislead users?

It's even worse than WanWizard already explained. I never said you CAN't use https/TLS for media (even though I think it's dumb and wasteful). I said gstreamer has it's own source for http(s), there should be no need to use the http(s) interface from ffmpeg. No need to get mad before even having understood what I mean.


Edited by Erik Slagter, 2 May 2016 - 14:58.

* 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: ffmpeg libs in OpenPli 5 #22 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 2 May 2016 - 16:08

Even if OpenPLI will decide what is important for users it will not change what is really important for users. Understand?

 

And I just wrote that you do not know all use cases of ffmpeg. Even if you think, so.


Edited by samsamsam, 2 May 2016 - 16:09.


Re: ffmpeg libs in OpenPli 5 #23 WanWizard

  • PLi® Core member
  • 68,588 posts

+1,738
Excellent

Posted 2 May 2016 - 20:50

He never said he knew all use-cases. He even explicitly wrote "afaik", indicating it is likely he doesn't know them all.

 

So I think you two are having parallel discussions... ;)


Currently in use: VU+ Duo 4K (2xFBC S2), VU+ Solo 4K (1xFBC S2), uClan Usytm 4K Pro (S2+T2), Octagon SF8008 (S2+T2), Zgemma H9.2H (S2+T2)

Due to my bad health, I will not be very active at times and may be slow to respond. I will not read the forum or PM on a regular basis.

Many answers to your question can be found in our new and improved wiki.


Re: ffmpeg libs in OpenPli 5 #24 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 2 May 2016 - 21:29

Oh I see now. Anyway ffmpeg can be used in various cases.
Some of them will need HTTPS. 
But this discussion does not make sense. 
 
This is decision of OpenPLi. I have no problem with this.
And If some one want to use ffmpeg with HTTPS support then:
here you can find pre-build ffmpeg libs.
 
Regards,
SSS

Edited by samsamsam, 2 May 2016 - 21:31.


Re: ffmpeg libs in OpenPli 5 #25 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 3 May 2016 - 08:47

Yes, but keep in mind that the core-player functionality (servicemp3.cpp) is still based on gstreamer.

I really like your exteplayer3 because it performs very well, but even with mx3L's serviceapp, it still doesn't have all the bells and whistles gstreamer has to offer (cd/dvd support, external subtitles etc..).

I'm sure someone will push a .bbappend to PLi-5 which will build the full ffmpeg in the near future though :)



Re: ffmpeg libs in OpenPli 5 #26 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 3 May 2016 - 13:15

@MastaG

And this topic is about  what functionality have servicemp3?

What for this Off-topic?

 

You need to write something in each topic even if it is off-topic?


Re: ffmpeg libs in OpenPli 5 #27 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 3 May 2016 - 13:21

No I don't, maybe it is not clear to me, but what purpose does ffmpeg serve besides libeplayer3 and your exteplayer3 ?



Re: ffmpeg libs in OpenPli 5 #28 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 3 May 2016 - 13:25

For example using ffmpeg you can download content via rtmps. 

But I'm not convinced that this topic is about what ffmpeg can do. 

If you want to know you can find such information in google.



Re: ffmpeg libs in OpenPli 5 #29 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 3 May 2016 - 13:39

I'm also not "convinced" that this topic is about what ffmpeg can and cannot do :P

However you're asking for a full version of ffmpeg in OpenPLi 5 when there's no such other component/plugin in OpenPLi-5 that requires it.

That's why I asked what purpose does ffmpeg serve for an OpenPLi-5 image besides your IPTV Player plugin component exteplayer3 ;)



Re: ffmpeg libs in OpenPli 5 #30 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 3 May 2016 - 14:29

I do not think so. I think you must in each topic write something and does not matter if this is in topic or not.

 

There are many  use cases for which ffmpeg can be used I write only two:

- download streams

- convert jpeg to iframes

 

But you became here and write about

 


but keep in mind that the core-player functionality (servicemp3.cpp) is still based on gstreamer.

 

 

What does this have to do with this topic?

 

Please go to the first my post and read. What I was asked for.

I got the answer and wrote about this:

 

This whole discussion is pointless. Status is like that "OpenPLI not want to add because state that this is not needed".

 

The end.

 

 

So your post is nothing other than Off-topic.

 


Edited by samsamsam, 3 May 2016 - 14:34.


Re: ffmpeg libs in OpenPli 5 #31 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 3 May 2016 - 14:39

Yes but there is no frontend for these cases from a user point of view.

e.g. I can also do that on my computer.

 

The reason I was implying servicemp3 because it's the core player of PLi's enigma2.

If mx3L's serviceapp is more mature, then maybe it can be merged into servicemp3 for switching playback to ffmpeg (using your exteplayer3).

But until then I see no real purpose for a very large ffmpeg package which most users only need for IPTV Player.



Re: ffmpeg libs in OpenPli 5 #32 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 3 May 2016 - 14:42

There is dedicated topic about exteplayer3. Yes? So, please there write your thoughts. OK?

 

This topic is about different thing. So, simple stop SPAM.



Re: ffmpeg libs in OpenPli 5 #33 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 3 May 2016 - 14:49

@MastaG

 


But until then I see no real purpose for a very large ffmpeg package which most users only need for IPTV Player.

 

And one more thing

Do you know that  you write nonsense? I was asked about --disable-openssl

and adding this option will not increase the size. 

 

You have a problem with reading, or what?


Edited by samsamsam, 3 May 2016 - 14:49.


Re: ffmpeg libs in OpenPli 5 #34 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 3 May 2016 - 14:54

Dude take a chill pill...

 

The original ffmpeg recipe does the following:

 

 

PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"

 

# Check codecs that require --enable-nonfree
USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'faac', 'openssl' ], 'yes', '', d)}"

EXTRA_OECONF = " \
    --disable-stripping \
    --enable-pic \
    --enable-shared \
    --enable-pthreads \
    ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \
    \
    --cross-prefix=${TARGET_PREFIX} \
    \
    --ld="${CCLD}" \
    --arch=${TARGET_ARCH} \
    --target-os="linux" \
    --enable-cross-compile \
    --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
    --extra-ldflags="${TARGET_LDFLAGS}" \
    --sysroot="${STAGING_DIR_TARGET}" \
    --enable-hardcoded-tables \
    ${EXTRA_FFCONF} \
    --libdir=${libdir} \
    --shlibdir=${libdir} \
    --datadir=${datadir}/ffmpeg \
"

do_configure() {
    ${S}/configure ${EXTRA_OECONF}
}

 

If we pass openssl to the package config it will also enable all nonfree codecs.. so it's more than just openssl.



Re: ffmpeg libs in OpenPli 5 #35 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 3 May 2016 - 14:59

Do not be funny. 

Do you see diffrence beetween disable-openssl and nonfree codedecs or not?

 

You really think that you need to enable nonfree codedcs to enable openssl?  Really? Congratulations.



Re: ffmpeg libs in OpenPli 5 #36 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 3 May 2016 - 16:08

Dude take a chill pill...

 

The original ffmpeg recipe does the following:

 

 

PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"

# Check codecs that require --enable-nonfree
USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'faac', 'openssl' ], 'yes', '', d)}"

EXTRA_OECONF = " \
    --disable-stripping \
    --enable-pic \
    --enable-shared \
    --enable-pthreads \
    ${@bb.utils.contains('USE_NONFREE', 'yes', '--enable-nonfree', '', d)} \
    \
    --cross-prefix=${TARGET_PREFIX} \
    \
    --ld="${CCLD}" \
    --arch=${TARGET_ARCH} \
    --target-os="linux" \
    --enable-cross-compile \
    --extra-cflags="${TARGET_CFLAGS} ${HOST_CC_ARCH}${TOOLCHAIN_OPTIONS}" \
    --extra-ldflags="${TARGET_LDFLAGS}" \
    --sysroot="${STAGING_DIR_TARGET}" \
    --enable-hardcoded-tables \
    ${EXTRA_FFCONF} \
    --libdir=${libdir} \
    --shlibdir=${libdir} \
    --datadir=${datadir}/ffmpeg \
"

do_configure() {
    ${S}/configure ${EXTRA_OECONF}
}

If we pass openssl to the package config it will also enable all nonfree codecs.. so it's more than just openssl.

You 're fully right  MastaG

 

Actually it is just opposed. (reed the configure script file)

If You enable openssl automatically non-free will be added.

 

Since openpli uses an bbappend file :

openpli-oe-core/meta-openpli/recipes-multimedia/ffmpeg/ffmpeg_3.%.bbappend

 

Just replace the lines (I already told this in this topic so just not now why there is still a unneeded fuss about openssl ? and then openssl is enabled dynamically linked to extern ssl library)

 

Here a repetition.

 

The original bbapend is :

RSUGGESTS_${PN} = ""

PROVIDES =+ " libavcodec53 libavformat53 libav"
PACKAGES =+ " libavcodec53 libavformat53 libav"

EXTRA_OECONF_append = " --disable-mipsdsp --disable-mipsdspr2 "

PACKAGECONFIG[avdevice] = "--enable-avdevice,--disable-avdevice"

change that into :

RSUGGESTS_${PN} = ""

PACKAGECONFIG = "avdevice avfilter avcodec avformat swresample swscale postproc \
                   bzlib gpl lzma theora x264 openssl vpx\
                   ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'x11 xv', '', d)}"

EXTRA_OECONF_append = " --disable-mipsdsp --disable-mipsdspr2 "

The previous one was actually for the ffmpeg on older pli4 but better take on new and certainly master-next but it is also ok for pli4 the one above.

 

Then if ffmpeg is installed all is installed.

 

The codecs are in libavcodec (as fare the basic config has it set as a standard) which a almost 13 MB mb library much to big since only a fraction off it is needed on a stb.

All the rest is the binary utils also here the majority is not required.

the rest off packages installed :

 

the list

Homepage: https://www.ffmpeg.org/
Depends: libavcodec57 (>= 3.0), libpostproc54 (>= 3.0), libavdevice57 (>= 3.0), libavformat57 (>= 3.0), libswscale4 (>= 3.0), libc6 (>= 2.23), libavutil55 (>= 3.0), libswresample2 (>= 3.0), libavfilter6 (>= 3.0)

openssl is dynamically. linked.

 

With the above ffmpeg will be installed ok and run but there is to much installed.



Re: ffmpeg libs in OpenPli 5 #37 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 3 May 2016 - 16:55

a small note the required depends for ffmpeg does has libavformat and there the required depends for libssl is added

Package: libavformat57
Version: 3.0-r0
Description: libav avformat library
 libav avformat library
Section: libs
Priority: optional
Maintainer: OE-Core Developers <openembedded-core@lists.openembedded.org>
License: GPLv2+
Architecture: mips32el
OE: ffmpeg
Homepage: https://www.ffmpeg.org/
Depends: libssl1.0.0 (>= 1.0.2g), libavcodec57 (>= 3.0), libz1 (>= 1.2.8), libcrypto1.0.0 (>= 1.0.2g), libc6 (>= 2.23), libavutil55 (>= 3.0), libbz2-1 (>= 1.0.6)
Provides: libavformat


Re: ffmpeg libs in OpenPli 5 #38 mx3L

  • Senior Member
  • 616 posts

+79
Good

Posted 3 May 2016 - 17:37

@samsamsam is right you can build ffmpeg with --enable-openssl and --disable-nonfree. There is only condition at least in ffmpeg3.0.1 configure script, that you have to enable nonfree for openssl when you also enable gpl.

So looks like this is not correct, openssl doesn't need to be there when gpl is not enabled.

USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'faac', 'openssl' ], 'yes', '', d)}"


Re: ffmpeg libs in OpenPli 5 #39 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 3 May 2016 - 17:57

 

@samsamsam is right you can build ffmpeg with --enable-openssl and --disable-nonfree. There is only condition at least in ffmpeg3.0.1 configure script, that you have to enable nonfree for openssl when you also enable gpl.

So looks like this is not correct, openssl doesn't need to be there when gpl is not enabled.

USE_NONFREE = "${@bb.utils.contains_any('PACKAGECONFIG', [ 'faac', 'openssl' ], 'yes', '', d)}"

Yes ok but we have to make a package for open pli and there gpl is required to avoid all problems.

 

the USE_NONFREE is from openmenbedded(derived from configure file of ffmpeg), anyway --enable-openssl is required --enable-gpl is required(for openpli).

 

with in bbappend PACKAGECONFIG =

like I told in :

http://forums.openpl...ndpost&p=545871

all will work. But there are to much complete unneeded codecs the file off 13 MB for codecs only can considerably be reduced and that's important for flash space.


Edited by christophecvr, 3 May 2016 - 17:58.


Re: ffmpeg libs in OpenPli 5 #40 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 3 May 2016 - 17:57

@mx3L

As you can see it does not matter.
The most important for some users is what serviceapp or exteplayer3 not support.
 
It's all really very bad. That if someone spend his free time to add something, make something better, add something new.
There are few people who can appreciate. Most of them look for a hole in the whole.
 
And it looks like @MastaG about ffmpeg it is intrested to say: serviceapp not have full functionality of the servicemp3 and, so one. 
 
Very strange for me. No one say that serviceapp  have full functionality of servicemp3.
Nobody insists to merge it in OpenPli.
 
If it will be merged this will benefit users not @mx3L. @mx3L and I do not make manny on this.  I hope you understand? 
 
This is not allso kernel of linux when you make there some commit then you have a big + reputation and you will have many offers of job.
NO!
 
With all respect but E2 this niche product. Nobody cares even during the interview.

Edited by samsamsam, 3 May 2016 - 17:59.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users