Jump to content


Photo

ffmpeg libs in OpenPli 5


  • Please log in to reply
45 replies to this topic

#1 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 24 April 2016 - 14:49

Users reports that ffmpeg libs from OpenPli 5 not supports HTTPS:

fmpeg version 3.0 Copyright © 2000-2016 the FFmpeg developers built with gcc 5.3.0 (GCC) configuration: --disable-stripping --enable-pic --enable-shared --enable-pthreads --cross-prefix=mipsel-oe-linux- --ld='mipsel-oe-linux-gcc -mel -mabi=32 -mha rd-float -march=mips32 --sysroot=/home/openmb/oecore5/build/tmp/sysroots/mbtwinplus' --arch=mipsel --target-os=linux --enable-cross-compile --extra-cflags=' -Os -pipe -g -feliminate-unused-debug-types -fdebug-prefix-map=/home/openmb/oecore5/build/tmp/work/mips32el-oe-linux/ffmpeg/3.0-r0=/usr/src/debug/ffmpeg/3.0-r0 -fd ebug-prefix-map=/home/openmb/oecore5/build/tmp/sysroots/x86_64-linux= -fdebug-prefix-map=/home/openmb/oecore5/build/tmp/sysroots/mbtwinplus= -mel -mabi=32 -mhar d-float -march=mips32 --sysroot=/home/openmb/oecore5/build/tmp/sysroots/mbtwinplus' --extra-ldflags='-Wl,-O1 -Wl,--as-needed' --sysroot=/home/openmb/oecore5/bui ld/tmp/sysroots/mbtwinplus --enable-hardcoded-tables --libdir=/usr/lib --shlibdir=/usr/lib --datadir=/usr/share/ffmpeg --disable-mipsdsp --disable-mipsdspr2 --e nable-avcodec --enable-avdevice --enable-avfilter --enable-avformat --disable-avresample --enable-bzlib --disable-libfaac --enable-gpl --disable-libgsm --disabl e-indev=jack --disable-libvorbis --enable-lzma --disable-libmp3lame --disable-openssl --enable-postproc --disable-libschroedinger --disable-libspeex --enable-sw resample --enable-swscale --enable-libtheora --disable-vaapi --disable-libvpx --disable-x11grab --enable-libx264 --disable-outdev=xv libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Hyper fast Audio and Video encoder usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}... Use -h to get full help or, even better, run 'man ffmpeg'

The question is why ffmpeg libs are builded without support for OpenSSL?

 

--disable-openssl

??


Edited by samsamsam, 24 April 2016 - 14:51.


Re: ffmpeg libs in OpenPli 5 #2 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 24 April 2016 - 15:00

I don't even know what 'ffmpeg' is being used for on the box. There's no malicious intent here, and (tested!) patches are always welcome.

Edited by MiLo, 24 April 2016 - 15:00.

Real musicians never die - they just decompose

Re: ffmpeg libs in OpenPli 5 #3 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 26 April 2016 - 07:49

I don't even know what 'ffmpeg' is being used for on the box. There's no malicious intent here, and (tested!) patches are always welcome.

By master-next we have ffmpeg : openpli-oe-core/meta-openpli/recipes-multimedia/ffmpeg/ffmpeg_3.%.bbappend to openembedded recipe openpli-oe-core/openembedded-core/meta/recipes-multimedia/ffmpeg/ffmpeg_3.0.bb

RSUGGESTS_${PN} = ""

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

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

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

Thinks it's best to set  by the append:

RSUGGESTS_${PN} = ""

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

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

I well think that concerning ffmpeg it all should be reviewed by an aktif user off ffmepg on the box.

 

cause : For example the final build codecs library is a single file.(I do not mean other packages such as binary and so but strictly the codecs)

  The only codecs needed on a stb :

  videocodecs : None

 

  audiocodecs :

   - encoders : only raw pcm/lpcm

   - decoders : mp2,mp3,wma,ogg,vorbis,flac, wav,and ... shure i forgot some but only those who are note provided on board.

 

For the rest only the minimum packages required to let it run extra utils such as conversion is for a pc not stb and by stb we're limited in flash space.



Re: ffmpeg libs in OpenPli 5 #4 MastaG

  • Senior Member
  • 1,531 posts

+118
Excellent

Posted 26 April 2016 - 08:09

Taapat can help you with that.

He knows what to enable/disable and have minimal version that's still fully compatible with exteplayer3.



Re: ffmpeg libs in OpenPli 5 #5 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 26 April 2016 - 17:56

Because by default in openpli barnch master-nex in ffmpeg bbappend not specify anything in PACKAGECONFIG and ffmpeg is built with openemeded configs without openssl: https://github.com/O...eg_3.%.bbappend

My bbappend for ffmpeg looks like this: https://github.com/T...eg_3.%.bbappend
But I do not know whether it is correct to offer it in the barnch master-nex, because it is possible that someone using it for another purpose as I am.
I've tried to leave in it only the audio and video codecs to be used together with libeplayer.
But I'm sure there are still a lot of the unnecessary.



Re: ffmpeg libs in OpenPli 5 #6 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 30 April 2016 - 11:30

MiLo: afaik ffmpeg is used for:

- "free" alternative audio codecs

- ffmpeg universal gstreamer converter

 

Gstreamer should not need ffmpeg for http(s), it has it's own source.

 

Really bogus, btw, sending video over https  :mellow:


* 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 #7 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 30 April 2016 - 11:46

How about https+drm (netflix)? ;)
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: ffmpeg libs in OpenPli 5 #8 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 30 April 2016 - 11:55

Of course, but in that case I'd do the authentication over https and the streaming over http (or something like rtp+mp4).


* 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 #9 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 30 April 2016 - 13:02

Hello,

 

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?

 

Regards,

SSS



Re: ffmpeg libs in OpenPli 5 #10 WanWizard

  • PLi® Core member
  • 68,624 posts

+1,739
Excellent

Posted 30 April 2016 - 13:07

Unnecessary comment. You're reading things that haven't been written.

 

From a technical and/or protocol point of view, encapsulating a video stream in TLS is pointless (perhaps unless in secure on-premise applications), which is only what Erik meant, and I agree with Erik on that point. 

 

But there is a difference between how something is designed to be used or should be used, versus how something is actually used.


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 #11 Taapat

  • PLi® Core member
  • 2,343 posts

+120
Excellent

Posted 30 April 2016 - 13:23

I do not understand where is the problem?
By default ffmpeg is not compiled and added in the openpli feed.
If someone compile it for yourself, then why he can not specify such parameters, that he is needed?


Edited by Taapat, 30 April 2016 - 13:24.


Re: ffmpeg libs in OpenPli 5 #12 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 30 April 2016 - 13:29

@WanWizard

I was referring to this:

 

 

MiLo: afaik ffmpeg is used for:

- "free" alternative audio codecs

- ffmpeg universal gstreamer converter

 

Gstreamer should not need ffmpeg for http(s), it has it's own source.

 

Really bogus, btw, sending video over https   :mellow:

 

Edited by samsamsam, 30 April 2016 - 13:29.


Re: ffmpeg libs in OpenPli 5 #13 WanWizard

  • PLi® Core member
  • 68,624 posts

+1,739
Excellent

Posted 30 April 2016 - 13:43

Yeah, which is true, sending video over https is stupid, and a waste of CPU and power. So I agree. ;). But I know for some reason or another, it happens...


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 #14 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 30 April 2016 - 13:58

You select from post what you want.

 

I was referring to this: 

 

 

 

MiLo: afaik ffmpeg is used for:

- "free" alternative audio codecs

 

- ffmpeg universal gstreamer converter
 
And about "video over https is stupid". Who is interested with your or @Erik Slagter or my opinion about this? 
 
It is important to make it working and not what you think about this.

Edited by samsamsam, 30 April 2016 - 14:02.


Re: ffmpeg libs in OpenPli 5 #15 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 30 April 2016 - 16:03

I do not understand where is the problem?
By default ffmpeg is not compiled and added in the openpli feed.
If someone compile it for yourself, then why he can not specify such parameters, that he is needed?

Yes . You right but : (anyway +1)

 

A person who is using ffmpeg should take the time to analyse the whole build process and standard configure compile files to find out exact what is needed and what not. That is a hell off a job and does required an experienced user and very good knowledge of configure files. Find out also and thats the most important what must be installed to the stb. Like conversion tools and so on are not required on a stb that's for a pc. On a stb only the minimum required codecs . We have by most stb's only a couple off audio codecs who are required that's it. Video codecs is zero. And on the fly conversions off video from one videocodec to another videocodec (which is supported in a stb) is so cpu intensif that hd is impossible and sd really on the edge.

 

To let run other ffmpeg players not much is really required but what is needed needs to be installed.

 

By gstreamer this is already done like that for many years, and now even for the vuplus series who requires gst-libav (which is nothing else then ffmpeg codecs whit a couple off gstreamer stuff to use them with gstreamer). The build is now also adapted to the absolute minimum required.



Re: ffmpeg libs in OpenPli 5 #16 WanWizard

  • PLi® Core member
  • 68,624 posts

+1,739
Excellent

Posted 30 April 2016 - 16:11

@samsamsam,

 

I can't comment, only that Erik says "afaik", which already indicates he might not know all use cases.

 

I know your goal is to make everything working, but that is not what Erik was referring to. You have to get used to that, if Erik says "the sky is blue", he means exactly that. When he does, it doesn't imply "it is dry" or "there are no clouds". Some people are that black and white in their responses.


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 #17 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 30 April 2016 - 17:00

@christophecvr

 

Why "absolute minimum required" ?

 

What about such use case: some plugins will download JPEG and in background convert them to iframe and in each boot up different iframe will be shown?

 

I really do not understand your point of view. 

I understand that for STB with the small size of flash there should be available minimum package but generally not.

 

I think some persons don't know how the SO libs are loaded and used in the Linux and they think that size has big impact on performance.

 

And adding 

--disable-openssl

will NOT increase size. 

 

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

 

The end.


Edited by samsamsam, 30 April 2016 - 17:04.


Re: ffmpeg libs in OpenPli 5 #18 MiLo

  • PLi® Core member
  • 14,045 posts

+298
Excellent

Posted 1 May 2016 - 13:22

...
A person who is using ffmpeg should take the time to analyse the whole build process and standard configure compile files to find out exact what is needed and what not. That is a hell off a job and does required an experienced user and very good knowledge of configure files. Find out also and thats the most important what must be installed to the stb. Like conversion tools and so on are not required on a stb that's for a pc. On a stb only the minimum required codecs . We have by most stb's only a couple off audio codecs who are required that's it. Video codecs is zero. And on the fly conversions off video from one videocodec to another videocodec (which is supported in a stb) is so cpu intensif that hd is impossible and sd really on the edge.
...


For most packages that create tools and libs in a single build, the results are split up after building. The more fine-grained split-up (e.g. one lib per package), the more efficient the dependencies of other packages will become.

So the trick is not so much to configure everything away, the trick is to package things efficiently so that in the end, only the needful things get into the image. And people who want to do software video transcoding on the box can still install the extra tools.
Real musicians never die - they just decompose

Re: ffmpeg libs in OpenPli 5 #19 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 1 May 2016 - 16:12

 

...
A person who is using ffmpeg should take the time to analyse the whole build process and standard configure compile files to find out exact what is needed and what not. That is a hell off a job and does required an experienced user and very good knowledge of configure files. Find out also and thats the most important what must be installed to the stb. Like conversion tools and so on are not required on a stb that's for a pc. On a stb only the minimum required codecs . We have by most stb's only a couple off audio codecs who are required that's it. Video codecs is zero. And on the fly conversions off video from one videocodec to another videocodec (which is supported in a stb) is so cpu intensif that hd is impossible and sd really on the edge.
...


For most packages that create tools and libs in a single build, the results are split up after building. The more fine-grained split-up (e.g. one lib per package), the more efficient the dependencies of other packages will become.

So the trick is not so much to configure everything away, the trick is to package things efficiently so that in the end, only the needful things get into the image. And people who want to do software video transcoding on the box can still install the extra tools.

 

Actually that's what I met into one off my previous messages.

Build indeed every thing what is needed but avoid having it all installed at once to the stb. But well avbl as a split out package.

So the user can for example select at base which player and even combination off players he prefers. For each player the minimum required stuff will then be installed so that they all works.

however if user want some extras like utils to convert media on his stb and does have enough flash he always can install extra packages which where build but just split out.



Re: ffmpeg libs in OpenPli 5 #20 Erik Slagter

  • PLi® Core member
  • 46,960 posts

+541
Excellent

Posted 2 May 2016 - 14:53

.


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

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



0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users