[ANNOUNCE] iStreamdev-1.0.1 - stream vdr & media files to your Iphone

  • i have had a brutal time of getting this to compile.

    but i finally managed to get it to work.

    here is what worked for me :

    compile a fresh svn of ffmpeg
    the compile options i used were :

    ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libxvid --enable-x11grab

    the segmenter Makefile i compile line :

    gcc -Wall -g segmenter.c -o segmenter -lavformat -lavcodec -lavutil -lbz2 -lm -lz -lfaac -lmp3lame -lx264 -lfaad -lfaad -lpthread

  • once again: thank you for this 'app'
    yesterday i´ve got my ipad. it´s working really well:
    http://www.youtube.com/watch?v=Eg7YeZyi9b0
    (sorry for quality)

    VDR 2.2.0, PMS mit PlexVDR, XML-API+VDR Client
    Ubuntu 16.04 64bit
    alles 'headless' auf Intel(R) Core(TM) i5-4440 CPU @ 3.10GHz, 8GB RAM, 5 x 3TB im RAID5 (12TB)
    zzgl. diverse SH4 Sat-Boxen mit NeutrinoMP

  • Hi there,

    since "Apple TV" is also based on iOS, I wonder if it might be possible to run iStreamdev even with this tiny black device?

    Cheers
    fnu

    HowTo: APT pinning

    Click for my gear

    [¹] Intel NUC Kit NUC7i5BNH, Akasa Newton S7, 8GB DDR4, WD Black SN700 500GB NVMe, Crucial MX500 2TB, CIR, SAT>IP, Ubuntu LTS 18.04.5, VDR 2.4.1 (15W)
    [²] Intel NUC Kit NUC7i3BNH, 8GB DDR4, WD PC SN520 250GB NVMe, Crucial MX500 1TB, CIR, SAT>IP, Ubuntu LTS 20.04.1, VDR 2.4.1 (13W)
    [³] BQ500, Asrock X470D4U, AMD Ryzen 5 5600, 32GB DDR4 ECC, 2x WDC SN750 512GB, 4x Samsung SSD 4TB, 1x Samsung SSD 8TB, 1x Crucial MX500 500GB, 1x WDC Blue SSD 500GB, Windows Server 2019 Hyper-V (35W)
    [⁴] Jultec JPS0501-12AN, JPS0501-8M2, Octopus Net (DVBS2-8) & openHABian 3.3.0

    Edited once, last by fnu (October 2, 2010 at 9:07 PM).

  • First: Thanks so much!!! It's working Perfect on my Debian Squeeze + VDR 1.7.14


    Here is an HowTo für Debian Sqeeze (In German)

    Vorrausetzung: Debian squeeze mit VDR+streamdev-plugin + build umgebung

    Multimedia Repository in /etc/apt/sources.list:

    # Debian Multimedia Repository
    deb http://www.debian-multimedia.org squeeze main
    deb-src http://www.debian-multimedia.org squeeze main

    Step 1: HTTP Server mit php5 installieren:

    apt-get install php5-cgi lightttpd
    nano /etc/lighttpd/lighttpd.conf

    (Die Portnummer kann ohne Probleme angepasst werden bei Bedarf)

    "mod_fastcgi",
    "mod_rewrite",
    "mod_auth"

    fastcgi.server = ( ".php" => ((
    "bin-path" => "/usr/bin/php-cgi",
    "socket" => "/tmp/php.socket"
    )))

    /etc/init.d/lighttpd restart

    Step 2: x264 bauen

    apt-get install yasm
    cd /usr/src
    git clone git://git.videolan.org/x264.git
    cd x264/
    ./configure
    make
    make install
    cd ..

    Step 3: lame bauen

    wget http://downloads.sourceforge.net/project/lame/l…e-3.98.4.tar.gz
    tar xzvf lame-3.98.4.tar.gz
    cd lame-3.98.4
    ./configure --disable-shared
    make
    make install
    cd ..

    Step 4: ffmpeg bauen

    apt-get install libfaac-dev libfaad-dev
    git clone git://git.ffmpeg.org/ffmpeg.git
    cd ffmpeg
    ./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libx264 --enable-libmp3lame --enable-libfaac
    make
    make install
    cp ffmpeg /usr/bin/

    Step 5: iStreamdev ins HTTP-Root installieren und bei Bedarf über die config.php konfigurieren (Sollte aus der Tüte laufen, es sei denn vdr-plugin-streamdev läuft auf anderen Ports)

    cd /var/www
    git clone git://projects.vdr-developer.org/istreamdev.git
    ln -s /var/ramdisk/ ram (Oder wo auch immer man eine Ramdisk hat - 30MB sollten reichen)
    cp config_default.php config.php (Passwort/username dort drin merken oder ändern)
    chown www:data:www-data *-R
    chmod +x *.php bin/*

    cd /var/www/istreamdev/segmenter/
    make
    cp segmenter /usr/bin/


    Fertig! Über http://<vdr ip>/istreamdev sollte es im Safari laufen. Ich habe lighttpd auf Port 12345 gestartet, nur diesen Port in der Fritz! Box weiter geleitet und mir die URL http://user:passwort@beimirzuhaus.dyndns.org:12345/istreamdev auf dem iPhone Homescreen abgelegt. Nun hab ich Sky Überall dabei :)

    VDR im Keller:
    AMD Athlon II X2 220 2,8 GHz / 2GB RAM / 2x TechnoTrend 1600 DVB-S2 / Debian 6.0 / VDR 1.7.14 (+vdr-streamdev +iStreamdev + VDR-Admin-AM + Sky Komplett und HD+ Abo an /dev/ttySx )
    4x 2 TB als Raid 5 + 2x 8 GB SLC IDE SSD als Raid 1

    VDR Clienten 2x XBMC:
    Schlafzimmer: Revo an 23" LCD, Karmic + XBMC 10.0+pvr
    Wohnzimmer: HTPC an 40" LCD, Karmic + XBMC 10.0+pvr, Athlon X2 64 5400, BlueRay, nVidia 9400 GT, BlueRay unter Win7)
    2x iPhone 4 (iStreamdev)

  • Kann ich nicht vergleichen, ich habe gleich auf lighttpd gesetzt da der simpler zu konfigurieren ist :)

    Ich denke aber der größte Performanceunterschied wird durch 2 Sachen geprägt:

    - Wurde ffmpeg mit allen CPU-Optimierungen compiliert
    - Liegt der ram Ordner in einer Ramdisk.

    VDR im Keller:
    AMD Athlon II X2 220 2,8 GHz / 2GB RAM / 2x TechnoTrend 1600 DVB-S2 / Debian 6.0 / VDR 1.7.14 (+vdr-streamdev +iStreamdev + VDR-Admin-AM + Sky Komplett und HD+ Abo an /dev/ttySx )
    4x 2 TB als Raid 5 + 2x 8 GB SLC IDE SSD als Raid 1

    VDR Clienten 2x XBMC:
    Schlafzimmer: Revo an 23" LCD, Karmic + XBMC 10.0+pvr
    Wohnzimmer: HTPC an 40" LCD, Karmic + XBMC 10.0+pvr, Athlon X2 64 5400, BlueRay, nVidia 9400 GT, BlueRay unter Win7)
    2x iPhone 4 (iStreamdev)

    Edited once, last by Phr0zenPhara0 (March 2, 2011 at 2:27 PM).

  • Ok, da geb ich Dir recht.

    - Das mit dem RAM Ordner finde ich nicht so tragisch. Wenn's einmal läuft, läuft's gut!

    - Das mit den Optimierungen kann ich nicht sagen. Ich habe mich an die diversen Beschreibungen gehalten und es, so wie es jondalar in dem Thread im yaVDR Unterforum beschrieben hat, separat kompiliert. Allerdings in einer VM, da ich auf meinem produktiven keinen unnötigen Paket-Balast haben wollte, den ich nicht brauche. Evtl. sollte ich da nochmal drüber nachdenken...

    Danke für die Hinweise!

    Gruß
    Holger

    HTPC: yaVDR 0.5, M3N78-VM, Athlon II X2 240, 2GB, 2x TT S2-1600, Antec Fusion Remote, Harmony 650, LG 50PK550

  • alib and TheTroll

    I have a change request for svdrp.php. In some conditions, the Command function seems to fail. In my case the fgets function did not notice eol and eof and so the whole SVDRP message was read over and over again.

    Here's my modification, according to the fact that the length parameter in the fgets function is optional and if you omit it, fgets will automatically determine the line size and read until eol.

    Old:

    New:

    Would be nice, if you would check it into the git repo. Thanks! ;)

    Greetz,
    Holger

    EDIT: Also filed an official bug request.

    Gruß
    Holger

    HTPC: yaVDR 0.5, M3N78-VM, Athlon II X2 240, 2GB, 2x TT S2-1600, Antec Fusion Remote, Harmony 650, LG 50PK550

    Edited 2 times, last by pandel (March 4, 2011 at 4:18 PM).

  • Hi there,

    sorry for my silly question, if already answered :)

    After my CPU performance is limited, I wonder if there is any possibility to terminate previous streaming sessions, when the $maxencodingprocesses are reached?

    rgds
    WoZ

    Clients
    VDR1: yaVDR 0.5 stable auf ZOTAC ION A 4Gbyte RAM / mit ATRIC - IR - Einschalter softhddevice per streamdev am Server
    VDR2 / VDR3: MLD 5.1 auf Raspberry pi3
    2 x VOMP 0.4 auf mediamvp
    Server
    Cubietruck, Lubuntu Trusty, vdr aus yaVDR - sourcen, 1 x TT S2-3600, 1 x TT S2-3650 CI, 1 x sundtek SkyTV III, 1 x sundtek SkyTV IV

  • Hi WoZ,

    you have two possibilities:

    1.) on the same page from where you started the stream (edge/3g/wifi buttons) you can stop it; the buttons change on that page while a stream is running

    2.) go to the <Home> page; on top of the page there should be a list of running sessions -> select one and stop it

    Hope that helps... :)

    Gruß
    Holger

    HTPC: yaVDR 0.5, M3N78-VM, Athlon II X2 240, 2GB, 2x TT S2-1600, Antec Fusion Remote, Harmony 650, LG 50PK550

  • Hi Holger,

    thank you for your reply.

    Yes it is quite clear, that it is possible to terminate one or all sessions with the GUI itself. My question, however, is if there is a possibility to terminate the oldest session automatically.

    Cheers
    Wolfgang

    Clients
    VDR1: yaVDR 0.5 stable auf ZOTAC ION A 4Gbyte RAM / mit ATRIC - IR - Einschalter softhddevice per streamdev am Server
    VDR2 / VDR3: MLD 5.1 auf Raspberry pi3
    2 x VOMP 0.4 auf mediamvp
    Server
    Cubietruck, Lubuntu Trusty, vdr aus yaVDR - sourcen, 1 x TT S2-3600, 1 x TT S2-3650 CI, 1 x sundtek SkyTV III, 1 x sundtek SkyTV IV

  • Hi Wolfgang!

    Ah, I understand. No, there's no automatic way of terminating the oldest session. But I think, it shouldn't be too problematic to implement such a function. Have a look at session.php, function sessioncreate. Should be the right place to start :)

    Gruß
    Holger

    HTPC: yaVDR 0.5, M3N78-VM, Athlon II X2 240, 2GB, 2x TT S2-1600, Antec Fusion Remote, Harmony 650, LG 50PK550

  • HEY!

    I just noticed that there's some work going on in the git repo. alib's back, juhuu :)!! My change request was checked in days ago and he made some modifications regarding ipad support. Perhaps development is starting again :)

    Gruß
    Holger

    HTPC: yaVDR 0.5, M3N78-VM, Athlon II X2 240, 2GB, 2x TT S2-1600, Antec Fusion Remote, Harmony 650, LG 50PK550

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!