Jump to content


Photo

Openpli-5 (still next master)


  • Please log in to reply
1177 replies to this topic

Re: Openpli-5 (still next master) #261 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 8 April 2016 - 13:13

I already wrote about it. Together with independent ffmpeg libraries size is about 4Mb.



Re: Openpli-5 (still next master) #262 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 8 April 2016 - 13:46

Wel ter info I'm just trying something now to have just the required wma codecs for decoding , and then only the pcm encoders. See what it will bring.

 

The gst-libav is 13.7 MB . Whithout any codec 889 KB but off course I need something.



Re: Openpli-5 (still next master) #263 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 8 April 2016 - 14:20

I already could produce a working gst-libav on vuduo2 from 5,2 MB instead off the 13.7 by just adding to gstreamer1.0-libav_git.bb

LIBAV_INCLUDED_EXLUCED = "--disable-encoders --disable-decoders --enable-decoder=wmalossless --enable-decoder=wmapro --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-decoder=wmavoice"

LIBAV_EXTRA_CONFIGURE_COMMON_ARG = "--target-os=linux \
  --cc='${CC}' --as='${CC}' --ld='${CC}' --nm='${NM}' --ar='${AR}' \
  ${GSTREAMER_1_0_DEBUG} \
  --disable-mipsdsp \
  --disable-mipsdspr2 \
  ${LIBAV_INCLUDED_EXLUCED} \
  --cross-prefix='${HOST_PREFIX}'"

Shure i should be able to decrease it more as there is more which can be removed. But that will be for tommorow

Till now as far I know gst-libav is only required for wma.

 

Now motogp free practice at austin.



Re: Openpli-5 (still next master) #264 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 8 April 2016 - 15:38

If you remember, it is a question that I asked earlier.
What of the gstreamer plugins and codecs are used in the receiver?
I in addition I disable in ffmpeg codecs that dubble gstreamer plugins, but I am sure that the remaining all are not used.



Re: Openpli-5 (still next master) #265 malakudi

  • Senior Member
  • 1,449 posts

+69
Good

Posted 8 April 2016 - 15:40

I built the ffmpeg recipe in master-next but it only builds ffprobe and ffserver (and libraries). It doesn't build ffmpeg binary. What needs to be changed to also build ffmpeg, anyone got a clue?



Re: Openpli-5 (still next master) #266 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 8 April 2016 - 15:56

If you remember, it is a question that I asked earlier.
What of the gstreamer plugins and codecs are used in the receiver?
I in addition I disable in ffmpeg codecs that dubble gstreamer plugins, but I am sure that the remaining all are not used.

The plugins used currently on stb are all required. We well build more but that's ok.

 

As for gst-libav it is trough that normally only codecs are required for wma and that's it. (and the minimum required packages to run those codecs) The codecs are from ffmpeg .

 

I already to succeed to reduce the single .so file which gst-libav installs from 13.7 MB up to 1.2 MB.



Re: Openpli-5 (still next master) #267 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 8 April 2016 - 16:48

Ok here the full gstreamer bundle again.

 

What is changed. The gst-libav will only have the wma-codecs. All the others are already on board or covered by gstreamer plugins.

 

What do You win instead off a libgstlibav.so file off 13.7 MB a libgstlibav.so file off 1.2MB considerable I guess.

 

What I did to the gst-libav recipe for that .

 

changed gstreamer1.0-libav_git.bb file to

LIBAV_INCLUDED_EXLUCED = "--disable-everything \
			--enable-decoder=wmalossless --enable-decoder=wmapro --enable-decoder=wmav1 --enable-decoder=wmav2 --enable-decoder=wmavoice"

LIBAV_EXTRA_CONFIGURE_COMMON_ARG = "--target-os=linux \
  --cc='${CC}' --as='${CC}' --ld='${CC}' --nm='${NM}' --ar='${AR}' \
  ${GSTREAMER_1_0_DEBUG} \
  --disable-mipsdsp \
  --disable-mipsdspr2 \
  ${LIBAV_INCLUDED_EXLUCED} \
  --cross-prefix='${HOST_PREFIX}'"

By me all ok no media breakdown and wmv/wma still works perfect on vuduo2

 

For others needs to be tested

 

note : I also add the gstreamer1.0-plugin-multibox-dvbmediasink.bb recipe.

Attached Files


Edited by christophecvr, 8 April 2016 - 16:49.


Re: Openpli-5 (still next master) #268 peti

  • Senior Member
  • 115 posts

+1
Neutral

Posted 8 April 2016 - 18:39

ok, the AV sync issue is caused by something from the OE's gst recipes. With PLI's recipes it's OK (for these I use -disable-introspection)


T90 | 28.2E-23.5E-19.2E-13E-9E-4.8E-0.8W-4W

Zgemma H7S | OpenPLI develop branch


Re: Openpli-5 (still next master) #269 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 8 April 2016 - 19:15

With the above gsteamer-git-head-1.9.0.1 no sync issues att all. And introspection is used.


Edited by christophecvr, 8 April 2016 - 19:15.


Re: Openpli-5 (still next master) #270 peti

  • Senior Member
  • 115 posts

+1
Neutral

Posted 8 April 2016 - 19:30

I used the same rev, 1.8.0 tagged in both cases... but now once I reconfigured the pli's libav recipe for ffmpeg, I'm seeing the issue there, too... strange


T90 | 28.2E-23.5E-19.2E-13E-9E-4.8E-0.8W-4W

Zgemma H7S | OpenPLI develop branch


Re: Openpli-5 (still next master) #271 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 8 April 2016 - 21:19

What needs to be changed to also build ffmpeg, anyone got a clue?

 

Pay attention to the config options.
To build ffmpeg binary is needed to build all ffmpeg libraries the ones it uses.
If you disable any of them then ffmpeg binary is not builded.



Re: Openpli-5 (still next master) #272 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 8 April 2016 - 21:58

If from the libav used only wma codecs then I think that really is not worth using a newer version of ffmpeg from the system and can be used 3.0 version in libav.

 

P.S.

I see that on version 1.9.0.1 has returned problem with live hls streams. They are not running.

But that's another story. It seems to me that the 1.8.0 version is not so stable as expected.



Re: Openpli-5 (still next master) #273 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 8 April 2016 - 23:21

If from the libav used only wma codecs then I think that really is not worth using a newer version of ffmpeg from the system and can be used 3.0 version in libav.

 

P.S.

I see that on version 1.9.0.1 has returned problem with live hls streams. They are not running.

But that's another story. It seems to me that the 1.8.0 version is not so stable as expected.

By me it runs ok all hls streams.

 

Do not forget to install

 

gstreamer1.0-plugins-bad-hls  (is not in enigma2.bb recipe yet as this plugin is only there since 1.7.2 ) and the gstreamer1.0-plugins-bad-fragmented must be removed out off enigma2.bb for gst >= 1.7.2



Re: Openpli-5 (still next master) #274 Beeker

  • PLi® Contributor
  • 1,602 posts

+203
Excellent

Posted 9 April 2016 - 10:00

@Taapat

If you  building gstreamer-plugins-bad with bbappends

Please remove in gstreamer-plugins-bas_git.bb(OE-Core) the unnecassery,obsolete,depraceted,breaking only things,not working, lazy to apdapt other recipes... code:

PACKAGESPLITFUNCS_append = " handle_hls_rename "

python handle_hls_rename () {
    d.setVar('RPROVIDES_gstreamer1.0-plugins-bad-hls', 'gstreamer1.0-plugins-bad-fragmented')
    d.setVar('RREPLACES_gstreamer1.0-plugins-bad-hls', 'gstreamer1.0-plugins-bad-fragmented')
    d.setVar('RCONFLICTS_gstreamer1.0-plugins-bad-hls', 'gstreamer1.0-plugins-bad-fragmented')
}

You can try to keep -gstreamer-plugins-bad-fragments-  in enigma2.bb, but that was not working 100% either as i remember.   

For now it's better to use own gstreamer recipes(at least gstreamer-plugins-bad) like christophecvr and i do.
 


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Openpli-5 (still next master) #275 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 9 April 2016 - 10:58

@christophecvr do you really tried live hls streams?
For me, hls streams work, does not work live hls streams.

 

 

@Beeker why do you think that it's not necessary?
I am in my enigma a long time ago changed the dependence on gstreamer1.0-plugins-bad-hls: https://github.com/T...12bc420afddedbc
But I suppose there are some plugins, which can depending on the gstreamer1.0-plugins-bad-fragmented, so it is right that gstreamer1.0-plugins-bad-hls provides gstreamer1.0-plugins-bad-fragmented.

 

P.S.

I think that with this gstreamer issues we should move to gstreamer topoc :).



Re: Openpli-5 (still next master) #276 Beeker

  • PLi® Contributor
  • 1,602 posts

+203
Excellent

Posted 9 April 2016 - 11:09


I think that with this gstreamer issues we should move to gstreamer topoc :).

 

+1


Dreambox dm920, Uclan Ustym4Kpro, Gigablue UHD TRIO 4K and Dreambox dm8000. Wavefrontier T55 13.0|19.2|23.5|28.2 + Ziggo.


Re: Openpli-5 (still next master) #277 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 9 April 2016 - 12:34

@Taapat yes here two I tried.

 

The first was already ok with the old gst below <1.9

 

The second runs fine by me since 1.9 (p.. i did not test 1.8)

#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3A%2F%2Fbcoveliveios-i.akamaihd.net%2Fhls%2Flive%2F217434%2F3083279840001%2Fmaster_900.m3u8:Cvr%20TEST
#DESCRIPTION Cvr TEST
#SERVICE 4097:0:0:0:0:0:0:0:0:0:http%3a//skyianywhere2-i.akamaihd.net/hls/live/200275/tg24/playlist.m3u8:Sky%20TG%2024TEST
#DESCRIPTION Sky TG 24

I think You're problem is the change over from

 

gstreamer1.0-plugins-bad-fragmented to gstreamer1.0-plugins-bad-hls  which is the cause why You have problems with hls streams on gst 1.8 or higher


Edited by christophecvr, 9 April 2016 - 12:37.


Re: Openpli-5 (still next master) #278 Taapat

  • PLi® Core member
  • 2,345 posts

+121
Excellent

Posted 9 April 2016 - 12:54

Your links work also for my.

Try link form youtube (changed after some time):

#SERVICE 4097:0:0:0:0:0:0:0:0:0:https%3a//manifest.googlevideo.com/api/manifest/hls_playlist/id/QZUIvZBNYDk.2/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/itag%253D140/sgovp/itag%253D136/hls_chunk_host/r3---sn-a5uoxu-gpme.googlevideo.com/gcr/lv/playlist_type/DVR/mm/32/mn/sn-a5uoxu-gpme/ms/lv/mv/u/pl/21/dover/3/sver/3/fexp/9416126,9416891,9420452,9422596,9423662,9426926,9427902,9428398,9428606,9428983,9431117,9431422,9431539,9431849,9432036,9432684,9433387,9433656,9433665,9433719,9434003/upn/sJ6c4-nIdPU/mt/1460202395/ip/159.148.29.37/ipbits/0/expire/1460224266/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,gcr,playlist_type,mm,mn,ms,mv,pl/signature/6522DCBC545A5D48E68A5070D6019BD23896989E.3F86DC5C4AB14A54DC0CC54CF0B8B4F22239126F/key/dg_yt0/playlist/index.m3u8:Трансляция прямого эфира
#DESCRIPTION Трансляция прямого эфира

Edited by Taapat, 9 April 2016 - 12:54.


Re: Openpli-5 (still next master) #279 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 9 April 2016 - 13:58

I'm now just in the case study about wmv (video codecs)

 

At this time the codecs who run nice (on duo2) are :

0:00:00.242337963  5154 0x7558d030 INFO            dvbvideosink gstdvbvideosink.c:1409:gst_dvbvideosink_set_caps:<dvbvideosink0> caps = video/x-wmv, wmvversion=(int)3, format=(string)WMV3, width=(int)320, height=(int)240, codec_data=(buffer)4df90a01, framerate=(fraction)25/1, pixel-aspect-ratio=(fraction)1/1
0:00:00.242642889  5154 0x7558d030 INFO            dvbvideosink gstdvbvideosink.c:1733:gst_dvbvideosink_set_caps:<dvbvideosink0> MIMETYPE video/x-wmv WMV3 -> STREAMTYPE_VC1_SM


0:00:00.359399963  6674   0x445750 INFO            dvbvideosink gstdvbvideosink.c:1409:gst_dvbvideosink_set_caps:<dvbvideosink0> caps = video/x-wmv, wmvversion=(int)3, format=(string)WVC1, width=(int)1280, height=(int)720, codec_data=(buffer)270000010fdbfe27f16788800000010e10c49fc59c80, framerate=(fraction)5000000/166833
0:00:00.359985370  6674   0x445750 INFO            dvbvideosink gstdvbvideosink.c:1727:gst_dvbvideosink_set_caps:<dvbvideosink0> MIMETYPE video/x-wmv WVC1 -> STREAMTYPE_VC1


The older wm1 does not run. I just adpat the wmv cap to have the video cap anyway first by modifieng gstvideosink.c wmv cap from :

#ifdef HAVE_WMV
	"video/x-wmv, "
		VIDEO_CAPS ", wmvversion = (int) 3; "
#endif

to :

#ifdef HAVE_WMV
	"video/x-wmv, "
		VIDEO_CAPS ", wmvversion = (int) [ 1, 3 ]; "
#endif

the video cap is then showing up. However does not play. (audio plays wma)

0:01:52.369991821  3024 0x727d5200 INFO            dvbvideosink gstdvbvideosink.c:515:gst_dvbvideosink_event:<dvbvideosink0> EVENT caps
0:01:52.370144080  3024 0x727d5200 INFO            dvbvideosink gstdvbvideosink.c:1408:gst_dvbvideosink_set_caps:<dvbvideosink0> caps = video/x-wmv, wmvversion=(int)1, width=(int)720, height=(int)544, format=(string)WMV1
0:01:52.370384599  3024 0x727d5200 INFO            dvbvideosink gstdvbvideosink.c:1732:gst_dvbvideosink_set_caps:<dvbvideosink0> MIMETYPE video/x-wmv WMV1 -> STREAMTYPE_VC1_SM

So it looks like indeed only modern wmvversions are running. The base VC1  (used for HD formats) the VC1_SM is normal (used for SD formats) .

 

Since wmv versions 3 are supported , all media made with mediaplayer 9 or above. I would be surprised that the older wmv1 dus not work with the wmv on board codecs. Ok it is possible but ...

 

I rather think it's a problem off type threatement into gstvideosink.c  which at base had a cap limited to 3 only , but I think changes could be possible based on the wmv1 fourcc value question is which ?



Re: Openpli-5 (still next master) #280 christophecvr

  • Senior Member
  • 3,131 posts

+140
Excellent

Posted 9 April 2016 - 14:22

 

Your links work also for my.

Try link form youtube (changed after some time):

#SERVICE 4097:0:0:0:0:0:0:0:0:0:https%3a//manifest.googlevideo.com/api/manifest/hls_playlist/id/QZUIvZBNYDk.2/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/itag%253D140/sgovp/itag%253D136/hls_chunk_host/r3---sn-a5uoxu-gpme.googlevideo.com/gcr/lv/playlist_type/DVR/mm/32/mn/sn-a5uoxu-gpme/ms/lv/mv/u/pl/21/dover/3/sver/3/fexp/9416126,9416891,9420452,9422596,9423662,9426926,9427902,9428398,9428606,9428983,9431117,9431422,9431539,9431849,9432036,9432684,9433387,9433656,9433665,9433719,9434003/upn/sJ6c4-nIdPU/mt/1460202395/ip/159.148.29.37/ipbits/0/expire/1460224266/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,gcr,playlist_type,mm,mn,ms,mv,pl/signature/6522DCBC545A5D48E68A5070D6019BD23896989E.3F86DC5C4AB14A54DC0CC54CF0B8B4F22239126F/key/dg_yt0/playlist/index.m3u8:Трансляция прямого эфира
#DESCRIPTION Трансляция прямого эфира

Yes but the reason is that we do have a website denial. forbidden

 

So there is something else wrong in link

<  3396.719> [eServiceMP3] Gstreamer error: Forbidden: ../../../git/ext/soup/gstsouphttpsrc.c(1633): gst_soup_http_src_parse_status (): /GstPlayBin:playbin/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstHLSDemux:hlsdemux0/GstBin:srcbin-src_0/GstSoupHTTPSrc:souphttpsrc0:

also in web browser it does not work web browser link

https://manifest.googlevideo.com/api/manifest/hls_playlist/id/QZUIvZBNYDk.2/itag/95/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/cmbypass/yes/goi/160/sgoap/itag%3D140/sgovp/itag%3D136/hls_chunk_host/r3---sn-a5uoxu-gpme.googlevideo.com/gcr/lv/playlist_type/DVR/mm/32/mn/sn-a5uoxu-gpme/ms/lv/mv/u/pl/21/dover/3/sver/3/fexp/9416126,9416891,9420452,9422596,9423662,9426926,9427902,9428398,9428606,9428983,9431117,9431422,9431539,9431849,9432036,9432684,9433387,9433656,9433665,9433719,9434003/upn/sJ6c4-nIdPU/mt/1460202395/ip/159.148.29.37/ipbits/0/expire/1460224266/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,cmbypass,goi,sgoap,sgovp,hls_chunk_host,gcr,playlist_type,mm,mn,ms,mv,pl/signature/6522DCBC545A5D48E68A5070D6019BD23896989E.3F86DC5C4AB14A54DC0CC54CF0B8B4F22239126F/key/dg_yt0/playlist/index.m3u8

this part :

sgoap/itag%253D140/sgovp/itag%253D136/

can not be right in link


Edited by christophecvr, 9 April 2016 - 14:24.



2 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users


    Bing (1)