IPTV Player tutorial and info
gorski 30 Mar 2017
There are 2 posts here: https://wiki.openpli.org/iptvplayer
The first is the old set of instructions by SSS and the comment below covers the new set of instructions, as explained below.
Almost all instructions are by SSS himself, with some minor additions by me, in both of those posts...
==========NEW INSTRUCTIONS: FFMPEG INSTALATION FOR MIPSEL PLATFORMS===========
Preparation
Before installation make sure that you have enough space in your rootfs. You need at least 15MB free space.
To check free space in your rootfs you can use following command:
df -h /
Sample output:
Filesystem Size Used Available Use% Mounted on
ubi0:rootfs 440.3M 183.2M 257.0M 42% /
If you do not have enough flash memory for all of the plugins etc. that you want to install, then
another way of installing it all is to either use:
A) Flash Expander for which you need a USB memory stick, with 2 partitions (best in EXT4 format):
-at least 1/2 GB for /usr folder, i.e. the Flash Expander itself and
-the rest for SWAP, picons, subtitle folder, EPG etc. etc.
I would recommend Mini Tool Partition Wizard 10, under Windows OS, to partition and format the USB stick.
B ) MultiBoot, also on a large USB memory stick (various plugins are available for it, Open MultiBoot, Mini Multi Boot etc.)
Once you prepare the image properly, you can proceed with ffmpeg and the IPTV Player installation...
To choose the correct ffmpeg package for your image you need to find out the following:
1) OpenSSL version
2) glibc version
3) hard/soft float
#################################
1) How to check your OpenSSL version:
#################################
One has to connect with your STB and then give this telnet command, for example, using a programme called PuTTy:
openssl version
One may get something like this:
OpenSSL 1.0.2d 9 Jul 2015
So, in that case we know that we have version 1.0.2
One may also get the following output to this command:
-sh: openssl: not found
In this case, one should check OpenSSL version as follows:
ls -la /usr/lib/libssl*
Example output:
-rwxr-xr-x 1 root root 383624 Aug 19 2015 /usr/lib/libssl.so.0.9.8
So, in this case the OpenSSL version is 0.9.8.
In case one gets:
/usr/lib/libssl.so.1.0.0
one must make an additional check:
grep OPENSSL /usr/lib/libssl.so.1.0.0
Sample output:
OPENSSL_cleanse
OPENSSL_DIR_read
OPENSSL_DIR_end
OPENSSL_1.0.0
OPENSSL_1.0.1
OPENSSL_1.0.1d
OPENSSL_1.0.2
OPENSSL_DIR_read(&ctx, '
OPENSSL_malloc Error
So, in this case one knows one has version 1.0.2.
########################
2) How to check glibc version:
########################
Checking glibc version is very easy:
ls -la /lib/libc-*
Example output:
-rwxr-xr-x 1 root root 1541476 Aug 19 2015 /lib/libc-2.21.so
I.e. this indicates version 2.21.
########################
3) Checking for hard/soft float:
########################
One must give the following telnet commands:
cd /tmp
wget http://iptvplayer.pl.../mipsel/readelf
chmod 777 readelf
./readelf -a /lib/libc-*.so | grep FP:
rm readelf
Sample output:
Tag_GNU_MIPS_ABI_FP: Soft float
or
Tag_GNU_MIPS_ABI_FP: Hard float (double precision)
============================================
When you already know versions of OpenSSL, glibc used in your image and used FPU mode you are ready to choose ffmpeg package.
If you have glibc version lower than 2.20 you need to use package for _old_
All packages are available here: http://iptvplayer.pl/resources/ (one can find SH4 and ARM platforms covered there, as well)
Packages for MIPSEL platforms:
ffmpeg3.2.2_mipsel_fpu_hard_openssl0.9.8_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_fpu_hard_openssl1.0.0_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_fpu_hard_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_old_fpu_hard_openssl0.9.8_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_old_fpu_hard_openssl1.0.0_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_old_fpu_hard_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_fpu_soft_openssl0.9.8_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_fpu_soft_openssl1.0.0_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_fpu_soft_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_old_fpu_soft_openssl0.9.8_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_old_fpu_soft_openssl1.0.0_dash_librtmp_native_rtmp.tar.gz
ffmpeg3.2.2_mipsel_old_fpu_soft_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz
One can see the full name of a package as follows:
=======ffmpeg Installation procedure=======
Give a series of following telnet commands...
example:
cd /tmp
wget http://iptvplayer.pl...ive_rtmp.tar.gz
tar -xvf ffmpeg3.2.2_mipsel_XXX_YYY_YYY_opensslZ.Z.Z_dash_librtmp_native_rtmp.tar.gz -C /
rm ffmpeg3.2.2_mipsel_XXX_YYY_YYY_opensslZ.Z.Z_dash_librtmp_native_rtmp.tar.gz
For ET10K:
cd /tmp
wget http://iptvplayer.pl...ive_rtmp.tar.gz
tar -xvf ffmpeg3.2.2_mipsel_fpu_hard_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz -C /
rm ffmpeg3.2.2_mipsel_fpu_hard_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz
You should always collect output returned by install command, it will be useful when installation failed.
After installation you should check if ffmpeg is working correctly:
ffmpeg -version
Sample output:
ffmpeg version 3.2.2 Copyright © 2000-2016 the FFmpeg developers
built with gcc 4.9.2 (GCC)
configuration: --sysroot=/mnt/new2/xspeedlx1/build-enviroment/builds/openatv/release/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-compile --target-os=linux --arch=mipsel --disable-mipsdsp --disable-mipsdspr2 --disable-mipsfpu --enable-pic --enable-shared --disable-static --disable-debug --disable-ffplay --disable-ffprobe --disable-ffserver --disable-outdevs --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-lzma --enable-openssl --enable-zlib --enable-cross-compile --enable-small --disable-sdl --disable-xlib --disable-d3d11va --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --enable-nonfree --disable-muxers --disable-encoders --disable-devices --enable-librtmp --extra-cflags=' -mel -mabi=32 -march=mips32 -I/mnt/new2/xspeedlx1/build-enviroment/builds/openatv/release/et4x00/tmp/sysroots/et4x00/usr/include/libxml2/ -I/mnt/new2/new_openssl_mipsel/openssl-1.0.2g/include/ -L/mnt/new2/new_openssl_mipsel/openssl-1.0.2g/ -L/mnt/new2/new_openssl_mipsel/rtmpdump/librtmp/ ' --extra-ldflags=' -L/mnt/new2/new_openssl_mipsel/openssl-1.0.2g/ -L/mnt/new2/new_openssl_mipsel/rtmpdump/librtmp/ -lssl -lcrypto -lrtmp -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
==============IPTV Player installation=============
rm -rf /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer
cd /tmp
wget http://iptvplayer.vl...ythonX.X.tar.gz
tar -xzf latest.pythonX.X.tar.gz -C /tmp
rm latest.pythonX.X.tar.gz
cp -r iptvplayer-for-e2.git/IPTVPlayer /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer
rm -rf iptvplayer-for-e2.git/IPTVPlayer
sync
reboot
Edited by gorski, 30 March 2017 - 04:29.
gorski 30 Mar 2017
http://iptvplayer.pl/FAQ/
In English:. http://iptvplayer.pl...nstallation.pdf
Subtitles:
kostenzer 2 Apr 2017
A lot of work you have done by trying it out an make a manual here.
I will study it when I have time.
Thanks a lot.
Edited by kostenzer, 2 April 2017 - 13:59.
mocho 2 Apr 2017
For me with et-10000 with instructions provided:
Some plugins are not available: Extensions/IPTVPlayer (no module named htmlentitydefs)
Edited by mocho, 2 April 2017 - 22:44.
gorski 3 Apr 2017
That depends on the image.
See the https://wiki.openpli.org/iptvplayer - first post:
2a) If it doesn't appear in the Plugins, for instance - usually in older images, missing some Python parts - use the following Telnet commands
opkg update && opkg install python-html opkg update && opkg install python-textutils rm -rf /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer cd /tmp wget http://iptvplayer.vline.pl/download/update/latest.pythonX.X.tar.gz tar -xzf latest.pythonX.X.tar.gz -C /tmp rm latest.pythonX.X.tar.gz cp -r iptvplayer-for-e2.git/IPTVPlayer /usr/lib/enigma2/python/Plugins/Extensions/IPTVPlayer rm -rf iptvplayer-for-e2.git/IPTVPlayer sync reboot
Good luck!
Edited by gorski, 3 April 2017 - 01:40.
bmitie 8 Jul 2017
Hi, just a report back, I had same problem as in post #4, did as instructed in #5 and delighted all working.
gorski 8 Jul 2017
My thread was deleted... I presume it was beacuse it had 2 parts and the second part was not easy to see - one had to click on "Comment" below...
Anyway, I have done it again, with only the up-to-date info...
https://wiki.openpli.org/Iptvplayer
Edited by gorski, 8 July 2017 - 16:54.
WanWizard 8 Jul 2017
As already mentioned, nothing was deleted: https://mediawiki.op....org/iptvplayer.
It wasn't transfered yet, and with good reason, and such a long piece needs proper formatting, or perhaps even to be broken up in sub pages. The old one was even better readable than the new one...
gorski 8 Jul 2017
Ah, I see, thanx!
Yes, sorry, I had no time to search again for the proper formatting for the SW...
Could you add those to the page, please: code <>, quote "" etc. It would be easy then and I wouldn't mind editing it, so it looks like my usual tutorials...
Rick Hunter 8 Jul 2017
The document back online at: https://wiki.openpli.org/Plugin_Wiki
We're not ready yet with the makeover for this document.. But since there is apparently 'an urgent' need for this document.. We've placed it online.
gorski 9 Jul 2017
OK, I did it...
https://wiki.openpli...Wiki:Iptvplayer - all praise be to SSS!!!
Commands to be used when editing Wiki pages: https://www.mediawik...Help:Formatting
Mostly Section Headings of different levels
== Level 2 == === Level 3 === ==== Level 4 ==== ===== Level 5 ===== ====== Level 6 ======
This gives you content, to easily go to the part that interests you...
<blockquote>...</blockquote>
See also: https://en.wikipedia...Quotation_marks
Also:
Line breaks <br />don't break levels.
Plus, one must edit one's profile and activate advanced editing tool etc.
Good luck!
gorski 9 Jul 2017
gorski 11 Jul 2017
So, anyone knows how to get the
[ QUOTE ] [ / QUOTE ]
quote
and
[ CODE ] [ / CODE ]
code
results on that Wiki page, like here, on the forum, with the forum SW, please?
WanWizard 11 Jul 2017
General markup help: https://www.mediawik...Help:Formatting
For code: https://www.mediawik...SyntaxHighlight
gorski 11 Jul 2017
Thank you!
The first one I already put up but the second one is better for the purposes I pointed out...
gorski 11 Jul 2017
OK, re-did it, removing the blockquote and replacing it with syntaxhighlight commands, as they separate/highlight the following text from the normal text and preserve the formatting...
<syntaxhighlight lang="python" line='line'> and </syntaxhighlight>
I had to remove the break commands inside those areas - hope I didn't make any mistakes and that all code is precise...
One more thing (I have guests, so no more time): how do I embed an image - the command, please?
Cheers!
gorski 20 Jul 2017
Updated with ARM 7 platform, i.e. Zgemma H7S STB commands....
==== If you have an ARM7 platform - 3 examples ====
a)
cd /tmp wget http://iptvplayer.pl/resources/rtmpdump_armv7_libssl.so.1.0.0.tar.gz tar -xvf rtmpdump_armv7_libssl.so.1.0.0.tar.gz -C / rm rtmpdump_armv7_libssl.so.1.0.0.tar.gz
b )
cd /tmp wget http://iptvplayer.pl/resources/rtmpdump_armv7_libssl.so.1.0.2.tar.gz tar -xvf rtmpdump_armv7_libssl.so.1.0.2.tar.gz -C / rm rtmpdump_armv7_libssl.so.1.0.2.tar.gz
c) ZGEMMA H7S
cd /tmp wget http://iptvplayer.pl/resources/ffmpeg3.2.2_armv7_fpu_hard_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz tar -xvf ffmpeg3.2.2_armv7_fpu_hard_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz -C / rm ffmpeg3.2.2_armv7_fpu_hard_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz
Edited by gorski, 20 July 2017 - 10:34.
eura 16 Aug 2017
Hello
Thank you for a good instructions but I need some help.
Having a DM 8000 no clone and with Openpli 6, try to install ffmpeg on it but I can't
Have I make some mistake or is it Openpli6 ?
Thanks in advance
root@dm8000:/tmp# openssl version
OpenSSL 1.0.2j 26 Sep 2016
root@dm8000:/tmp# ls -la /lib/libc-*
-rwxr-xr-x 1 root root 1441036 Jul 18 18:30 /lib/libc-2.24.so
root@dm8000:/tmp# cd ..
root@dm8000:/# cd /tmp
root@dm8000:/tmp# wget http://iptvplayer.pl.../mipsel/readelf
Connecting to iptvplayer.pl (87.98.239.40:80)
readelf 100% |*************************************************************************| 491k 0:00:00 ETA
root@dm8000:/tmp# chmod 777 readelf
root@dm8000:/tmp# ./readelf -a /lib/libc-*.so | grep FP:
Tag_GNU_MIPS_ABI_FP: Hard float (double precision)
root@dm8000:/tmp# rm readelf
root@dm8000:/tmp# wget http://iptvplayer.pl...ive_rtmp.tar.gz
Connecting to iptvplayer.pl (87.98.239.40:80)
ffmpeg3.2.2_mipsel_f 100% |*************************************************************************| 5206k 0:00:00 ETA
root@dm8000:/tmp# tar -xvf ffmpeg3.2.2_mipsel_fpu_hard_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz -C /
usr/
usr/bin/
usr/bin/ffmpeg
usr/lib/
usr/lib/libswresample.so.2.3.100
usr/lib/libavutil.so
usr/lib/libswresample.so
usr/lib/libswscale.so.4.2.100
usr/lib/libavfilter.so.6.65.100
usr/lib/libavfilter.so.6
usr/lib/libavformat.so.57.56.100
usr/lib/libavdevice.so
usr/lib/libavdevice.so.57
usr/lib/libswresample.so.2
usr/lib/libavformat.so
usr/lib/libavcodec.so
usr/lib/libavdevice.so.57.1.100
usr/lib/libavutil.so.55.34.100
usr/lib/libavcodec.so.57.64.101
usr/lib/libavcodec.so.57
usr/lib/libavformat.so.57
usr/lib/libavutil.so.55
usr/lib/libavfilter.so
usr/lib/libswscale.so.4
usr/lib/libswscale.so
root@dm8000:/tmp# rm ffmpeg3.2.2_mipsel_fpu_hard_openssl1.0.2_dash_librtmp_native_rtmp.tar.gz
root@dm8000:/tmp# ffmpeg -version
ffmpeg: error while loading shared libraries: librtmp.so.1: cannot open shared object file: No such file or directory