Jump to content


Photo

serviceapp - gstplayer and exteplayer3

gstreamer ffmpeg

  • Please log in to reply
985 replies to this topic

Re: serviceapp - gstplayer and exteplayer3 #401 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 28 January 2017 - 10:53

Hello,

 

This is patch for ffmpeg libs. So, there is need to re-compile libs with this patch.

 

Regards,

SSS



Re: serviceapp - gstplayer and exteplayer3 #402 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 28 January 2017 - 21:24

If you want to try:

here are compiled libs with patch (mips32el, hard fpu, openssl 1.0.2):

 

http://iptvplayer.pl...0.2_dash.tar.gz

 

Regards,

SSS



Re: serviceapp - gstplayer and exteplayer3 #403 saintomer1866

  • Senior Member
  • 48 posts

+2
Neutral

Posted 28 January 2017 - 23:22

Many thanks SSS,

using atv 5.3 I've just transferred the files over and getting this error;

 

 PlayerApp::stderrAvail: exteplayer3: relocation error: /usr/lib/libavformat.so.57: symbol SSL_library_init, version OPENSSL_1.0.0 not defined in file libssl.so.1.0.0 with link time reference

 

St.O



Re: serviceapp - gstplayer and exteplayer3 #404 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 29 January 2017 - 01:32

Hmmm, so it seems that I compiled libs with OpenSSL 1.0.0 not 1.0.2

I will re-compile in free time with 1.0.2, but generally I will not compile libs for each E2 distribution.

 

Regards



Re: serviceapp - gstplayer and exteplayer3 #405 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 29 January 2017 - 09:43

Ah ok

 

That explains why I too when I tested had the same problem as posted above.

 

Thanks SSS

 

Ian.



Re: serviceapp - gstplayer and exteplayer3 #406 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 30 January 2017 - 23:18

@ian1095

 

I re-compiled ffmpeg libs for you:

 

http://iptvplayer.pl...0.2_dash.tar.gz



Re: serviceapp - gstplayer and exteplayer3 #407 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 31 January 2017 - 09:40

Unfortunately not working through Serviceapp set to Exteplayer3

 

No errors though, it just doesnt work.

 

But heres the debug anyway.

<  1358.195> http://vod-dash-uk-live.akamaized.net/usp/auth/vod/piff_abr_full_hd
/ee96af-b08d4341/vf_b08d4341_7b4660af-5853-4419-a464-ebe27fed16db.ism/pc_hd_abr_
v2_dash_master.mpd?__gda__=1485873400_506eef2986a9d67a01404d9e9fe05ba6
<  1358.199> [SKIN] Parsing embedded skin <embedded-in-'Screensaver'>
<  1358.205> [SKIN] Parsing embedded skin <embedded-in-'HideVBILine'>
<  1358.209> not pauseable.
<  1358.217> RemovePopup, id = ZapError
<  1358.223> playing 4097:0:0:0:A00000:0:0:0:0:0:http%3a//vod-dash-uk-live.akama
ized.net/usp/auth/vod/piff_abr_full_hd/ee96af-b08d4341/vf_b08d4341_7b4660af-5853
-4419-a464-ebe27fed16db.ism/pc_hd_abr_v2_dash_master.mpd?__gda__=1485873400_506e
ef2986a9d67a01404d9e9fe05ba6:Apple Tree Yard, Series 1%3a Episode 2
TuxTxt stopped service 1647
cleaning up
TuxTxt cache cleared
<  1358.618> resolved to PAUSE

Ian.
 


Edited by ian1095, 31 January 2017 - 09:41.


Re: serviceapp - gstplayer and exteplayer3 #408 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 31 January 2017 - 09:50

I forgot to say.

 

The above is using the Mastag image based on Pli 4.0 with Serviceapp from around the end of October 2016 I dont know if having this older version of Serviceapp makes a difference or not ?

 

Ian.


Edited by ian1095, 31 January 2017 - 09:50.


Re: serviceapp - gstplayer and exteplayer3 #409 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 31 January 2017 - 10:00

@ian1095

 

I do not know. I am not using service app.
 
This mpd can use different profile.
 
Please try to execute following command:

 

ffmpeg -i "http://vod-dash-uk-live.akamaized.net/usp/auth/vod/piff_abr_full_hd/ee96af-b08d4341/vf_b08d4341_7b4660af-5853-4419-a464-ebe27fed16db.ism/pc_hd_abr_v2_dash_master.mpd?__gda__=1485873400_506eef2986a9d67a01404d9e9fe05ba6" -logleve debug

 

and provide output.

 

Please also try to play stream which I know that works to make sure that proper ffmpeg libs are used.

http://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-manifest.mpd

 

Regards,

SSS



Re: serviceapp - gstplayer and exteplayer3 #410 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 31 January 2017 - 10:29

vusolo2 login: root
root@vusolo2:~# ffmpeg -i "http://vod-dash-uk-live.akamaized.net/usp/auth/vod/pi
ff_abr_full_hd/ee96af-b08d4341/vf_b08d4341_7b4660af-5853-4419-a464-ebe27fed16db.
ism/pc_hd_abr_v2_dash_master.mpd?__gda__=1485873400_506eef2986a9d67a01404d9e9fe0
5ba6" -logleve debug
ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --sysroot=/mnt/new2/xspeedlx1/build-enviroment/builds/openatv/r
elease/et4x00/tmp/sysroots/et4x00 --cross-prefix=mipsel-oe-linux- --prefix=/mnt/
new2/_BRCM_/exteplayer3/tmp/ffmpeg/tmp/mipsel/ffmpeg-3.2.2/usr/ --enable-cross-c
ompile --target-os=linux --arch=mipsel --disable-mipsdsp --disable-mipsdspr2 --d
isable-mipsfpu --enable-pic --enable-shared --disable-static --disable-debug --d
isable-ffplay --disable-ffprobe --disable-ffserver --disable-outdevs --disable-d
oc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages
--disable-lzma --enable-openssl --enable-zlib --enable-librtmp --enable-cross-co
mpile --enable-small --disable-sdl --disable-xlib --disable-d3d11va --disable-dx
va2 --disable-vaapi --disable-vda --disable-vdpau --enable-nonfree --disable-mux
ers --disable-encoders --disable-devices --extra-cflags=' -mel -mabi=32 -march=m
ips32 -I/mnt/new2/xspeedlx1/build-enviroment/builds/openatv/release/et4x00/tmp/s
ysroots/et4x00/usr/include/libxml2/ -I/mnt/new2/new_openssl_mipsel/openssl-1.0.2
g/include/ -L/mnt/new2/new_openssl_mipsel/openssl-1.0.2g/ -L/mnt/new2/new_openss
l_mipsel/rtmpdump/librtmp/ ' --extra-ldflags=' -L/mnt/new2/new_openssl_mipsel/op
enssl-1.0.2g/ -L/mnt/new2/new_openssl_mipsel/rtmpdump/librtmp/ -lssl -lcrypto -l
rtmp -lxml2 '
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
Unrecognized option 'logleve'.
Error splitting the argument list: Option not found


Re: serviceapp - gstplayer and exteplayer3 #411 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 31 January 2017 - 10:31

Ok spotted your typo, but I cant edit my above post so please ignore it.

 

root@vusolo2:~# ffmpeg -i "http://vod-dash-uk-live.akamaized.net/usp/auth/vod/pi
ff_abr_full_hd/ee96af-b08d4341/vf_b08d4341_7b4660af-5853-4419-a464-ebe27fed16db.
ism/pc_hd_abr_v2_dash_master.mpd?__gda__=1485873400_506eef2986a9d67a01404d9e9fe0
5ba6" -loglevel debug
ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --sysroot=/mnt/new2/xspeedlx1/build-enviroment/builds/openatv/r
elease/et4x00/tmp/sysroots/et4x00 --cross-prefix=mipsel-oe-linux- --prefix=/mnt/
new2/_BRCM_/exteplayer3/tmp/ffmpeg/tmp/mipsel/ffmpeg-3.2.2/usr/ --enable-cross-c
ompile --target-os=linux --arch=mipsel --disable-mipsdsp --disable-mipsdspr2 --d
isable-mipsfpu --enable-pic --enable-shared --disable-static --disable-debug --d
isable-ffplay --disable-ffprobe --disable-ffserver --disable-outdevs --disable-d
oc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages
--disable-lzma --enable-openssl --enable-zlib --enable-librtmp --enable-cross-co
mpile --enable-small --disable-sdl --disable-xlib --disable-d3d11va --disable-dx
va2 --disable-vaapi --disable-vda --disable-vdpau --enable-nonfree --disable-mux
ers --disable-encoders --disable-devices --extra-cflags=' -mel -mabi=32 -march=m
ips32 -I/mnt/new2/xspeedlx1/build-enviroment/builds/openatv/release/et4x00/tmp/s
ysroots/et4x00/usr/include/libxml2/ -I/mnt/new2/new_openssl_mipsel/openssl-1.0.2
g/include/ -L/mnt/new2/new_openssl_mipsel/openssl-1.0.2g/ -L/mnt/new2/new_openss
l_mipsel/rtmpdump/librtmp/ ' --extra-ldflags=' -L/mnt/new2/new_openssl_mipsel/op
enssl-1.0.2g/ -L/mnt/new2/new_openssl_mipsel/rtmpdump/librtmp/ -lssl -lcrypto -l
rtmp -lxml2 '
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
Splitting the commandline.
Reading option '-i' ... matched as input url with argument 'http://vod-dash-uk-l
ive.akamaized.net/usp/auth/vod/piff_abr_full_hd/ee96af-b08d4341/vf_b08d4341_7b46
60af-5853-4419-a464-ebe27fed16db.ism/pc_hd_abr_v2_dash_master.mpd?__gda__=148587
3400_506eef2986a9d67a01404d9e9fe05ba6'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level)
with argument 'debug'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url http://vod-dash-uk-live.akamaized.net/usp/
auth/vod/piff_abr_full_hd/ee96af-b08d4341/vf_b08d4341_7b4660af-5853-4419-a464-eb
e27fed16db.ism/pc_hd_abr_v2_dash_master.mpd?__gda__=1485873400_506eef2986a9d67a0
1404d9e9fe05ba6.
Successfully parsed a group of options.
Opening an input file: http://vod-dash-uk-live.akamaized.net/usp/auth/vod/piff_a
br_full_hd/ee96af-b08d4341/vf_b08d4341_7b4660af-5853-4419-a464-ebe27fed16db.ism/
pc_hd_abr_v2_dash_master.mpd?__gda__=1485873400_506eef2986a9d67a01404d9e9fe05ba6
.
[http @ 0x452390] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,h
ttpproxy'
[http @ 0x452390] request: GET /usp/auth/vod/piff_abr_full_hd/ee96af-b08d4341/vf
_b08d4341_7b4660af-5853-4419-a464-ebe27fed16db.ism/pc_hd_abr_v2_dash_master.mpd?
__gda__=1485873400_506eef2986a9d67a01404d9e9fe05ba6 HTTP/1.1
User-Agent: Lavf/57.56.100
Accept: */*
Range: bytes=0-
Connection: close
Host: vod-dash-uk-live.akamaized.net
Icy-MetaData: 1


[AVIOContext @ 0x45d630] Statistics: 5435 bytes read, 0 seeks
http://vod-dash-uk-live.akamaized.net/usp/auth/vod/piff_abr_full_hd/ee96af-b08d4
341/vf_b08d4341_7b4660af-5853-4419-a464-ebe27fed16db.ism/pc_hd_abr_v2_dash_maste
r.mpd?__gda__=1485873400_506eef2986a9d67a01404d9e9fe05ba6: Invalid data found wh
en processing input

 

Ian.



Re: serviceapp - gstplayer and exteplayer3 #412 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 31 January 2017 - 10:43

Your known working stream gives this, but other than BBC iplayer used in my first log ive no other way of testing dash at the moment. Its for BBC iplayer that I'm most interested in this new mod.

 

root@vusolo2:~# ffmpeg -i http://yt-dash-mse-test.commondatastorage.googleapis.c
om/media/car-20120827-manifest.mpd
ffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.2 (GCC)
  configuration: --sysroot=/mnt/new2/xspeedlx1/build-enviroment/builds/openatv/r
elease/et4x00/tmp/sysroots/et4x00 --cross-prefix=mipsel-oe-linux- --prefix=/mnt/
new2/_BRCM_/exteplayer3/tmp/ffmpeg/tmp/mipsel/ffmpeg-3.2.2/usr/ --enable-cross-c
ompile --target-os=linux --arch=mipsel --disable-mipsdsp --disable-mipsdspr2 --d
isable-mipsfpu --enable-pic --enable-shared --disable-static --disable-debug --d
isable-ffplay --disable-ffprobe --disable-ffserver --disable-outdevs --disable-d
oc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages
--disable-lzma --enable-openssl --enable-zlib --enable-librtmp --enable-cross-co
mpile --enable-small --disable-sdl --disable-xlib --disable-d3d11va --disable-dx
va2 --disable-vaapi --disable-vda --disable-vdpau --enable-nonfree --disable-mux
ers --disable-encoders --disable-devices --extra-cflags=' -mel -mabi=32 -march=m
ips32 -I/mnt/new2/xspeedlx1/build-enviroment/builds/openatv/release/et4x00/tmp/s
ysroots/et4x00/usr/include/libxml2/ -I/mnt/new2/new_openssl_mipsel/openssl-1.0.2
g/include/ -L/mnt/new2/new_openssl_mipsel/openssl-1.0.2g/ -L/mnt/new2/new_openss
l_mipsel/rtmpdump/librtmp/ ' --extra-ldflags=' -L/mnt/new2/new_openssl_mipsel/op
enssl-1.0.2g/ -L/mnt/new2/new_openssl_mipsel/rtmpdump/librtmp/ -lssl -lcrypto -l
rtmp -lxml2 '
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
Input #0, dash, from 'http://yt-dash-mse-test.commondatastorage.googleapis.com/m
edia/car-20120827-manifest.mpd':
  Duration: 00:03:01.00, start: 0.000000, bitrate: 0 kb/s
  Program 0
    Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 1920x108
0, 171 kb/s, 23.98 fps, 23.97 tbr, 90k tbn, 47.95 tbc
    Stream #0:1: Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 6 kb/s
At least one output file must be specified

 

Ian.



Re: serviceapp - gstplayer and exteplayer3 #413 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 31 January 2017 - 10:50

Ok further testing has shown that you known working stream does indeed play.

 

Its just streams from BBC iplayer that do not.

 

(  I wish someone would set the forum to allow a slightly longer time period for members to edit posts )

 

Ian.


Edited by ian1095, 31 January 2017 - 10:53.


Re: serviceapp - gstplayer and exteplayer3 #414 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 31 January 2017 - 11:00

@ian1095

 

In BBC iplayer there is two problems:

1. not recognized mpeg dash profile 

2. not playing h264 codec, probably due to AVC3 format

 

First one is very easy to fix (there is need to small change in dash demux patch - I will prepare it).

Second one (AVC3 h264 variant) is hard one. Hardware decoder is not able to play h264 AVC3. 

There is probably need to change PES formater to allow to play such stream.

 

I will fix first problem, so you will be able to play this stream but you will have only sound due to second problem.

At now I do not know how to fix second problem. I must do more investigation.

 

Regards,

SSS



Re: serviceapp - gstplayer and exteplayer3 #415 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 31 January 2017 - 11:35

Thanks SSS

 

That's how it is currently when using Serviceapp set to use Mediaplayer and Gstreamer without your new patched libs , only the audio is played, there is no picture displayed.

 

Bummer eh ? I hope you can find a resolution to this.

 

Ian.


Edited by ian1095, 31 January 2017 - 11:36.


Re: serviceapp - gstplayer and exteplayer3 #416 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 31 January 2017 - 20:39

Good news :)

 
I was able to play stream :D
There is need to make some changes in PES formater for H264, but good new that it is possibile.
I must clear my code and then I will provide you new version for test.
 
Regards,
SSS 


Re: serviceapp - gstplayer and exteplayer3 #417 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 31 January 2017 - 21:46

Awesome news SSS

 

It will be great to have the 1080 streams from BBCiplayer, however I think even though the json says they are 1080, they are in actual fact 720.

 

None the less, getting DASH to stream on our boxes is a massive step forward, because I'm sure in the future, they will offer true 1080

 

Ian.


Edited by ian1095, 31 January 2017 - 21:46.


Re: serviceapp - gstplayer and exteplayer3 #418 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 31 January 2017 - 22:30

@ian1095

 

Here you can download test binaries:

http://iptvplayer.pl/temp/dash_test/

 

You must update both exteplayer3 binary and ffmpeg libs,

 

 

My patch for ffmpeg adding MPEG-DASH not hande auto resolution/quality/bitrate management.
There is need to select one quality at start and this quality is used. If not selected the first one from the list is used.

 

So, there will be also need to change service app to handle this behavior similar as it is for HLS.

 

So, for example to play best quality from cmd line:

 exteplayer3 "http://a.files.bbci.co.uk/media/live/manifesto/audio_video/simulcast/dash/uk/dash_pc/llnw/bbc_one_london.mpd" -0 3 -1 0

 

Where:


[-0 idx] video MPEG-DASH representation index
[-1 idx] audio MPEG-DASH representation index


Re: serviceapp - gstplayer and exteplayer3 #419 ian1095

  • Senior Member
  • 462 posts

+6
Neutral

Posted 31 January 2017 - 22:44

Yep that's working SSS nice one.

 

BBCIplayer is now streaming using DASH.

 

However like you say there is a quality issue and its streaming the lowest res, so the plugin is going to have to be adapted not to use auto res and/or auto bitrate, but that can be looked at tomorrow.

 

For now though I can report its working.

 

Many thanks.

 

Ian.


Edited by ian1095, 31 January 2017 - 22:46.


Re: serviceapp - gstplayer and exteplayer3 #420 samsamsam

  • Senior Member
  • 2,024 posts

+146
Excellent

Posted 31 January 2017 - 23:12

This is why I suggest you to test from command line.

From command line you will be able to choose quality as described.

 

Regards,

SSS





8 user(s) are reading this topic

0 members, 7 guests, 0 anonymous users


    Bing (1)