Jump to content


Photo

Transcode receiver with external device ( cost 60 € to 85 € )

XU4 or Rasp 3b+

  • Please log in to reply
5 replies to this topic

#1 martossien

  • Senior Member
  • 97 posts

0
Neutral

Posted 27 June 2018 - 19:16

use external device to transcode your reveiver .

For me i use it when i am in hotel , some channel is not in the tv so i make a nat ( my extrenal ip to the internal device ip , easy with only http flux ) and i can see it on my cell phone or my laptop.

With this low bandwith i can use 3g or more to see it ( 350Kbs )

In my first test in use a Raspberry pi 3, with the the hardware decoder ( the hardware decoder have some bug ) we can transcode to 320*240.

But i see on Odroid MC1 in some used site, so i buy it, because the exynos 5520 is more powerfull, and odroid make a new dev for hardware decode ... and we can transcode to 512*384 (and more in futur*)

For price the 2 hardware :
Raspberry Pi 3 Model B+ Desktop Starter Kit (16Gb)     = 60 €
ODROID-HC1(same xu4 without hdmi) +sd 16Gb+power    = 70 €
ODROID-XU4  +sd 16Gb+power                = 85 €

Odroid could be a good choice BUT , *for the moment the hardware decoder of odroid have bug on the MPEG4 ( so we use only cpu )
Raspberry Pi 3 Model B+ is good but the cpu is low ... but with hardware decoder/encoderis ok
Don't use wifi network , but only rj45 cable.

With this 2 hardware we can't decode 4k ( for the moment for the Odroid XU4 family )

How to install XU4 or ODROID-HC1
( for Raspberry you can some post of me , but i make another complet post after)

No compil, just install ... Go :

We use Ubuntu 18.04 (20180531)
https://wiki.odroid.....14/ubuntu_4.14 (read the release note )

install :
https://wiki.odroid....x/install_linux

After we install e2transcoder and ffmpeg ( http://e2transcoder....-e2-transcoder/ )

apt install mali-fbdev
apt-get install ffmpeg
apt-get install apache2
apt-get install libav-tools
apt-get install zip
apt-get mc
apt-get zip
apt-get install php
apt-get install libapache2-mod-php
apt-get install sqlite
apt-get install php-sqlite3
apt-get install php-xml

wget http://e2transcoder....nscoder_072.zip
copy in the zip the repertories/DB/*.*to /var/www/html/ ( is use mc for this )
so you must have in /var/www/html/
/admin
/stream
index.html (original )
index.php
rm /var/www/html/admin/config.php
cp /var/www/html/admin/config_linux.php /var/www/html/admin/config.php

edit /var/www/html/admin/config.php ( for me mc -e /var/www/html/admin/config.php )

 $conf["callreceiver"] = 1; // if enigma2 receiver is not used must be 0, but it is not mandatory if re                                                                                                                                      ceiver is used
 $conf["stream_dir"]="/var/www/html/stream/"; //full path of stream dir
 $conf["command"] = "/usr/bin/ffmpeg";   // path of avconv or ffmpeg executable , if avconv of ffmpeg i                                                                                                                                      nstalled from package only need executable name
 $conf["stream_web_dir"] = "/stream/"; //web url folder of stream
 //enigma2 receiver configuration
 $conf["db_username"] = "root"; //enigma2 user name
 $conf["db_password"] = "YYYYYY"; //enigma2 password
 $conf["db_ip"] ="192.168.ZZZ.ZZZ"; //enigma2 IP
$conf["parameters"] = "-threads 16 -vcodec h264 -i {stream_url} -s 512x384 -vf fps=21 -maxrate:v 400k -bufsize:v 60000k -ac 1 -ar 22050 -vbr 1 -sn {stream_dir}ystream.m3u8";
 $conf["stream_log"] = "/var/log/stream.log" ; //full path of avconv or ffmpeg log

Folders /admin/db and /stream/ should be writable by web server. In case of apache this is user apache for nginx www-data.

chown -R www-data /var/www/html/
chmod -R 755 /var/www/html/
touch /var/log/stream.log
chown www-data /var/log/stream.log

It's finish !

 

Go your browser http://ip_of_receiver/index.php
Put Login / pass ( put in config.php )
Go in "Settings" section
click on "Reload E2 Playlist"
Come back on "Channels"
Choose your Channel by click
in top you must have
TV:namechanel
namechanel
(be carefull you can not show tv and transcode other channel if it's not in the same transpondeur )
the 3 line you can see "Preparing" after some times "Runing"( you can check tail -f /var/log/stream.log )
Go to "Live" section and click on the play icon. (or put the link in vlc )

 

http://e2transcoder....et/screenshots/

 

Have Fun

the +
Easy to install
price
Low bandwith

The -
The Gui is not complet : can't zap, some iptv d'ont work (parameter, in manual it's works) , can't see log, some parameters is not manageable ... and not secur ... If someone can work on this

 



Re: Transcode receiver with external device ( cost 60 € to 85 € ) #2 martossien

  • Senior Member
  • 97 posts

0
Neutral

Posted 28 June 2018 - 14:08

I finish to re install the raspberry Pi3+

 

This device have hardware decode and encode ( (decoders: h264_mmal ) (encoders: h264_omx  ), now integred directly. ( ffmpeg try to use it by default )
 

https://www.raspberr...loads/raspbian/

Raspbian Stretch Lite

 

In windows go to microsd drive and put a file nommed ssh ( to open ssh at the first boot )

 

apt-get update

apt-get upgrade

apt-get install apache2
apt-get install libav-tools
apt-get install zip
apt-get install mc

apt-get install locate
apt-get install zip
apt-get install php
apt-get install libapache2-mod-php
apt-get install sqlite
apt-get install php-sqlite3
apt-get install php-xml

apt-get install ffmpeg

 

wget http://e2transcoder....nscoder_072.zip
copy in the zip the repertories/DB/*.*to /var/www/html/ ( is use mc for this )
so you must have in /var/www/html/
/admin
/stream
index.html (original )
index.php
rm /var/www/html/admin/config.php
cp /var/www/html/admin/config_linux.php /var/www/html/admin/config.php

edit /var/www/html/admin/config.php ( for me mc -e /var/www/html/admin/config.php )

 $conf["callreceiver"] = 1; // if enigma2 receiver is not used must be 0, but it is not mandatory if receiver is used
 $conf["stream_dir"]="/var/www/html/stream/"; //full path of stream dir
 $conf["command"] = "/usr/bin/ffmpeg";   // path of avconv or ffmpeg executable , if avconv of ffmpeg installed from package only need executable name
 $conf["stream_web_dir"] = "/stream/"; //web url folder of stream
 //enigma2 receiver configuration
 $conf["db_username"] = "root"; //enigma2 user name
 $conf["db_password"] = "YYYYYY"; //enigma2 password
 $conf["db_ip"] ="192.168.ZZZ.ZZZ"; //enigma2 IP
 $conf["parameters"] = "-i {stream_url} -s 320x240 -vf fps=22 -maxrate:v  350k -bufsize:v 60000k -ac 1 -ar 22050 -vbr 1   {stream_dir}ystream.m3u8";
 $conf["stream_log"] = "/var/log/stream.log" ; //full path of avconv or ffmpeg log

Folders /admin/db and /stream/ should be writable by web server. In case of apache this is user apache for nginx www-data.

chown -R www-data /var/www/html/
chmod -R 755 /var/www/html/
touch /var/log/stream.log
chown www-data /var/log/stream.log

 

 

Little bug with slqlite ( need to add in Odroid section too )

find sqlite3.so ( for me locate sqlite3.so )
In raspeberry :
/usr/lib/php/20151012/sqlite3.so

find php.ini ( for raspberry /etc/php/7.0/apache2/php.ini )
in this file find section
[sqlite]
and change :
[sqlite3]
sqlite3.extension_dir =/usr/lib/php/20151012/sqlite3.so

 

It's exactly the same for the soft.



Re: Transcode receiver with external device ( cost 60 € to 85 € ) #3 martossien

  • Senior Member
  • 97 posts

0
Neutral

Posted 28 June 2018 - 14:40

I try to find andoid box ( type RK3328 have hardware decode ... ) and put a linux with this software, in this case the price could be find to 50 € ...



Re: Transcode receiver with external device ( cost 60 € to 85 € ) #4 martossien

  • Senior Member
  • 97 posts

0
Neutral

Posted 26 October 2018 - 12:44

For the moment all the chipset have no hardware encoder in opensource , so no news.

 

I search the chipset use by the chine box HDMI to IPTV with the linux used .

And i find for the major H264 board: it's a hi3520D , the linux it's an old (version 3.0.8) specific kernel ( very old sdk Hi3520D_SDK_V1.0.3.2 ) with specific drivers (hi3520D_vdec.ko , hi3520D_venc.ko ) with an http gui

The cpu is an arm V7 ( i think an A7 )

CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7f

 

AND :

i find some box hi3520D with price under 20$ ... (used for write video stream ), so if i can use it (with linux install) for transcode we can have an other solution with low price ...

 

To be continued



Re: Transcode receiver with external device ( cost 60 € to 85 € ) #5 martossien

  • Senior Member
  • 97 posts

0
Neutral

Posted 28 October 2018 - 10:30

i continue i find Hi3535 or Hi3536 device ( i read somewhere they can stream in H265  ),2 armv7 A9 1ghz and kernel version is a 4.x version.

https://www.unifore....21-hi3520d.html


Edited by martossien, 28 October 2018 - 10:30.


Re: Transcode receiver with external device ( cost 60 € to 85 € ) #6 martossien

  • Senior Member
  • 97 posts

0
Neutral

Posted 8 November 2019 - 22:09

Hello,

Some news from this old post :

I FOUND THE PERFECT BOX for transcoding the HDMI flux with low cost :

No installation , on only black box,i buy this box 64 € :

https://urlz.fr/b0qA

Model ON-DMI-16D Chipset Hi3516D

Works perfectly from ONE hdmi source , perfect Enigma.

 

more details here :

https://chileb.cl/ne...encoder-module/
 

So you connect the Hdmi from your box, and transcode the flux.

The configuration is easy ( it use ffmpeg ), it can encode in h264 OR  h265 !!!

 

 

and you choose 3 mode :

Main Stream ( http://192.168.1.120/ts/0 ) i choose 1280x720 h264

Sub Stream ( http://192.168.1.120/ts/1 ) i choose 640x480 h264

Mobile Stream ( http://192.168.1.120/ts/2 ) i choose 320x240 h265

 

motherboard :

mini_19110810111985987.jpg




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users