[1] MLD-5.x / Systems / Raspberry PI / Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
 

Offline Sganarelle

  • Newbie
  • *
  • Posts: 16
  • Sorry, I must use GoogleTranslate.
    • View Profile
Hello,

Before to use MLD (a big THANK to the team), I used LibreElec with an Rpi2. With LibreElec I use two sources : records done by Libreelec+Sundtek MediaPro III and records on my NFS server. For Rpi3+MLD 5.4, I use the same USB hard drive than for LibreElec.

On my NFS server I put my video records converted by Handbrake (mkv or mp4) or the video downloaded (replay) with the tool Captvty : http://captvty.fr/ . With Captvty, I have access to many "replays", like ARTE, the format is "ts" or "mp4".

With Rpi3+MLD 5.4, I have tested the "Mplayer" plugin but the sound for the records done by LibreElec or download by Captvty is awful, there is an echo or reverberation. There is no problem with Rpi2+LibreElec.

I've installed VLC, but I don't know how to use it to watch my previous record. Or a better choice could exists ?

Any idea ?

Thank you.

Raspberry 3 (Rpi3) + MLD 5.4 + USB Drive
DVB card Sundtek MediaPro III only for TNT (DVB-T)

Offline baltic

  • MLD-Debugger
  • Expert Member
  • *****
  • Posts: 724
    • View Profile
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #1 on: January 02, 2019, 16:57:36 »
Hi,

the mplayer-plugin is outdated, please use the mpv-plugin.

Greets
baltic
MLD 5.5 – unstable  Asus M3N78-EM  SkyStar2

Offline Sganarelle

  • Newbie
  • *
  • Posts: 16
  • Sorry, I must use GoogleTranslate.
    • View Profile
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #2 on: January 02, 2019, 17:14:57 »
Hi,

In the Web interface to configure MLD 5.4, there is no plugin "mpv" in the Package menu available nor for the system or VDR. So, I've done :

Code: [Select]
MLD> apt install mpv
After, I don't see any new menu/option available in the main VDR's menu to watch my media-file.

How to add an entry in the main menu ?
Raspberry 3 (Rpi3) + MLD 5.4 + USB Drive
DVB card Sundtek MediaPro III only for TNT (DVB-T)

Offline baltic

  • MLD-Debugger
  • Expert Member
  • *****
  • Posts: 724
    • View Profile
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #3 on: January 02, 2019, 17:56:41 »
Ooppss....

I'm sorry, but I didn't know, that the mpv-plugin, which I use on my x64s, is not available for the Raspis.

For running the installed version, you could use the console, but I have some doubts, that you really want this.  ;)
MLD 5.5 – unstable  Asus M3N78-EM  SkyStar2

Offline Sganarelle

  • Newbie
  • *
  • Posts: 16
  • Sorry, I must use GoogleTranslate.
    • View Profile
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #4 on: January 02, 2019, 18:21:57 »
In console mode it could be possible, but you've right, I prefer an integrated version in the main menu.

With only a remote command (the Sundtek), it's difficult to have access to the console  ;)

With the file manager, it could be a solution if a link could be done with VLC or MPV, but I don't know how to modify the menu for the file manager.
Raspberry 3 (Rpi3) + MLD 5.4 + USB Drive
DVB card Sundtek MediaPro III only for TNT (DVB-T)

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20170
    • View Profile
    • ClausMuus.de
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #5 on: January 02, 2019, 18:23:55 »
There is only the mplayer plugin for the RPI. This Plugin do not use the mplayer but a other RPI player. But this player is only a example player on not very well...
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline Sganarelle

  • Newbie
  • *
  • Posts: 16
  • Sorry, I must use GoogleTranslate.
    • View Profile
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #6 on: January 02, 2019, 18:51:29 »
I understand that there is no way to see my media files with my configuration - the sound is awful with Mplayer. My understanding is right or wrong ?

P.S. : Sorry for the form of the question, but French -> English -> German -> English -> French it's not a direct way.
Raspberry 3 (Rpi3) + MLD 5.4 + USB Drive
DVB card Sundtek MediaPro III only for TNT (DVB-T)

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20170
    • View Profile
    • ClausMuus.de
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #7 on: January 02, 2019, 20:08:34 »
English is OK for us.
If you use the mplayer Plugin, the omxplayer will be used on the RPI. You can also try to start the omxplayer on the commandline to see log messages.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline Sganarelle

  • Newbie
  • *
  • Posts: 16
  • Sorry, I must use GoogleTranslate.
    • View Profile
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #8 on: January 02, 2019, 22:05:46 »
A small request : how to add the French layout for the keyboard, because with an AZERTY keyboard connected to the Rpi, the English or German layout is not very easy to use ?

From my computer, I have tested many files with "omxplayer" during VDR was running with "mp4" and "ts" files with success. The single problem is that there is the sound of the channel TV and the one of "omxplayer".

The test of "mplayer" was done from the VDR's main menu.

When I try to launch "/usr/bin/mplayer.sh", some arguments are missing.

I suppose that the binary is good for "omxplayer".

[Update] The image and the sound are controlled on the TV not from my computer. The computer is only used to launch the program, the display is TV connected to the Rpi3.
« Last Edit: January 02, 2019, 22:51:46 by Sganarelle »
Raspberry 3 (Rpi3) + MLD 5.4 + USB Drive
DVB card Sundtek MediaPro III only for TNT (DVB-T)

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20170
    • View Profile
    • ClausMuus.de
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #9 on: January 03, 2019, 16:14:22 »
There is no French keyboard layout available for the MLD. But I'm not realy sure. Maybe the locales-timezones contains also several keyboard layouts.
On the RPI the mplayer VDR Plugin do not call the mplayer.sh but the /usr/bin/omxplayer.sh
« Last Edit: January 03, 2019, 16:16:51 by clausmuus »
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline Sganarelle

  • Newbie
  • *
  • Posts: 16
  • Sorry, I must use GoogleTranslate.
    • View Profile
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #10 on: January 03, 2019, 21:21:26 »
For the keyboard, it's for a next time  ;)

I found the problem with my Rpi3 : the test for the "passthrough=-p". I don't know what is expected but I propose the script that I have modified to use the Mplayer plugin.

I take each part individually :

Code: [Select]
MLD> grep -q "rpihddevice.AudioFormat = [^0]" /etc/vdr/setup.conf
MLD> echo $?
1
MLD>

When the "$passthrough" equal "-p" the sound is awful. I've modified '''/usr/bin/omxplayer.sh''' like this :
Code: [Select]
#!/bin/sh

passthrough=
if grep -q "rpihddevice.AudioPort = 1" /etc/vdr/setup.conf; then
        audio_out=hdmi

        # 03/01/2019 - Sganarelle : Change the test.
        #                           For a RaspberyPi 3, nothing is found.
        #
        # If something is found by "grep" : "$? == 0"
        # with "!" if something is found the result would be true.
        # if ! grep -q "rpihddevice.AudioFormat = [^0]" /etc/vdr/setup.conf; then
        #       passthrough=-p
        # fi

        # If something if found : "$? == 0"
        grep -q "rpihddevice.AudioFormat = [^0]" /etc/vdr/setup.conf

        # if something is found then the option "-p" is set
        if [ $? -eq 0 ]
        then
                passthrough=-p
        fi
else
        audio_out=both
fi

omxplayer -o $audio_out $passthrough --key-config /etc/vdr/plugins/omxplayerkey.conf "$1"
killall -9 omxplayer.bin


I've write the small script below to test the two logics :

Code: [Select]
MLD> cat ~/demo.sh
#!/bin/sh

grep -q streamdev-client.Timeout  /etc/vdr/setup.conf
if [ $? -eq 0 ]
then
  echo "streamdev-client.Timeout in /etc/vdr/setup.conf : Find !"
else
  echo "streamdev-client.Timeout in /etc/vdr/setup.conf : No find :-("
fi

if ! grep -q streamdev-client.Timeout  /etc/vdr/setup.conf ; then
  echo "streamdev-client.Timeout in /etc/vdr/setup.conf : Found !"
else
  echo "streamdev-client.Timeout in /etc/vdr/setup.conf : No found :-("
fi

I launch the script, knowing that "streamdev-client.Timeout " is in "/etc/vdr/setup.conf" :
Code: [Select]
MLD> ~/demo.sh
streamdev-client.Timeout in /etc/vdr/setup.conf : Found !
streamdev-client.Timeout in /etc/vdr/setup.conf : No found :-(
MLD>


I attach the file "/etc/vdr/setup.conf" used with my Rpi3.
Raspberry 3 (Rpi3) + MLD 5.4 + USB Drive
DVB card Sundtek MediaPro III only for TNT (DVB-T)

Online clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20170
    • View Profile
    • ClausMuus.de
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #11 on: January 03, 2019, 23:24:52 »
The easyer way would be, to simple select the right audio format in the setup of the rpihddevice setup in the VDR OSD.
MLD 5.5 - Raspberry PI - 7" Touch TFT - Squeeze Play
MLD 5.5 - lirc yaUsbIR - OctopusNet - XFX GeForce 9300 mit Intel E3200 - 2GB RAM - 12TB HDD - Lian Li PC-C37B - Samsung LE40A559

Offline Sganarelle

  • Newbie
  • *
  • Posts: 16
  • Sorry, I must use GoogleTranslate.
    • View Profile
Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
« Reply #12 on: January 04, 2019, 22:57:08 »
Hallo,

Thank you for the proposition. With the option "PCM Multicanal" the sound is as expected  :D
Raspberry 3 (Rpi3) + MLD 5.4 + USB Drive
DVB card Sundtek MediaPro III only for TNT (DVB-T)

[1] MLD-5.x / Systems / Raspberry PI / Rpi3 / MLD 5.4 : Plugin to see media files (ts ,mkv ,mp4)
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.