1 2 [3] 4 5 6 >>> Archiv / MLD 4.x / Raspberry PI / Some questions on MLD on pi (From non German speaker!)
 

Offline Linus

  • Member
  • **
  • Posts: 54
    • View Profile
Some questions on MLD on pi (From non German speaker!)
« Reply #30 on: November 16, 2014, 19:50:23 »
I have already created the mplayer plugin. But it's not tested.

Claus
So:

For the DVB part, what you said, done the job.
Quote
"comment resume=1" and "halt=1" in the file /etc/init.d/dvb
Perhaps you could include it on the package?


For mplayer package, i have got this message:
Quote
** glibc detected *** /usr/bin/vdr: munmap_chunk(): invalid pointer: 0xb38ccd98 ***
sources: filesource /data/video has no includes set
sources: filesource /media/dvd has no includes set
sources: filesource /media has no includes set
status: volume=76 mute=0
resume: resume file is '/data/video/.mplayer.resume'
resume: assuming empty resume file
/usr/bin/omxplayer.sh: line 3: omxplayer: not found
killall: omxplayer.bin: no process killed
status: volume=89 mute=0
resume: resume file is '/data/video/.mplayer.resume'
resume: assuming empty resume file
/usr/bin/omxplayer.sh: line 3: omxplayer: not found
killall: omxplayer.bin: no process killed
resume: resume file is '/data/video/.mplayer.resume'
resume: assuming empty resume file
/usr/bin/omxplayer.sh: line 3: omxplayer: not found
killall: omxplayer.bin: no process killed
Aborted

In fact, it does not found the omxplayer and i do not find where it is located.


EDIT: get time from the DVB adaptator works like a charm! :)

« Last Edit: November 16, 2014, 23:18:54 by Linus »

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
Some questions on MLD on pi (From non German speaker!)
« Reply #31 on: November 16, 2014, 23:20:37 »
ups, that was my fault. I mix omxtx and omxplayer.

It will give a new version soon.

Claus
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 Linus

  • Member
  • **
  • Posts: 54
    • View Profile
Some questions on MLD on pi (From non German speaker!)
« Reply #32 on: November 16, 2014, 23:43:23 »
Thank's. :)


EDIT: other default
The governor is set to "powersafe" and not "on_demand" so the cpu does not go to the max frequency.



EDIT2:
Do you think that it is possible to turn off something to power of the usbkey and mount it again on launch?
Because even in suspend the usb key stil power on. I do not know if she could live a long time power on 24/24.

EDIT3: with "eject" we could do it. The problem is for turn it on again...
If you have got some idea?
« Last Edit: November 17, 2014, 00:31:50 by Linus »

Offline Linus

  • Member
  • **
  • Posts: 54
    • View Profile
Some questions on MLD on pi (From non German speaker!)
« Reply #33 on: November 17, 2014, 11:18:22 »
I have see that you have released a new version of the pluggin mplayer yesterday.

I have tested it yesterday.

So, i have got a fluid display, but i do not have any sound. I will try to investigate this afternoon.
It was tool late.

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
Some questions on MLD on pi (From non German speaker!)
« Reply #34 on: November 17, 2014, 15:31:13 »
You can first test the omxplayer by command line, and stop the VDR during your tests.

The default value for the powersave is "ondemand". If you prefere a other value you can change it at "Setup / Diverses / CPU Taktung / Regelung".

Does you have try a "eject -t"? Also you can try the hub-ctrl tool (the package has the same name). It can switch the power of a USB port on and off (for some USB hubs).

Claus
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 Linus

  • Member
  • **
  • Posts: 54
    • View Profile
Some questions on MLD on pi (From non German speaker!)
« Reply #35 on: November 17, 2014, 16:02:26 »
I will see.

For the governor, when i have change nothing, and it is on "powersafe" when i boot. so the default is not "ondemand" on MLD.

I do not have CPU TAKTUNG. In diverse i only have the webserver port.

For the key, i could eject it with "eject /dev/sda1" the led turn off. But after i could not mount it again without unplugget it and plug it again.

Do you think that something could be done in the "suspend" script to turn off the key?
« Last Edit: November 17, 2014, 16:15:05 by Linus »

Offline Linus

  • Member
  • **
  • Posts: 54
    • View Profile
Some questions on MLD on pi (From non German speaker!)
« Reply #36 on: November 17, 2014, 21:13:29 »
I have solved the problem with the pluggin player. It works, i could play some mpeg video without any problem!!!!

I just need to add this options:
-o local to play sound on analog source

For hdmi it's:
-o HDMI

But we should find a way to do it automatically. Perhaps you could get the setting from the setting sound?


The only problem is that, after some time, it play the TV in backend so we lost the control of mplayer.
In fact, it play tv in front of the video, so it play the twice and the display flash. But we only contrôl tv.
The problem is that it play tv in background i don't know what could be done...

But it happen ones.
Other probel is that we do not have backward and fastward, just "jump" that is to fast. I am looking if a key exist to do that.


EDIT: the problem of mplayer does not happen again. So i will see if it's ok or not.

In fact, in the pluggin mplayer, the only thing that are bad are the key command.
I could not increase or low the sound the key does not works
The jump slow are on 1 and 3 key.

But in fact it's nearly to work.
« Last Edit: November 18, 2014, 08:42:53 by Linus »

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
Some questions on MLD on pi (From non German speaker!)
« Reply #37 on: November 18, 2014, 12:33:23 »
Hi,

can you please check, if the Option "-o both" also works?

For the suspend USB poweroff, you can write your own init script, that handle the halt and resume events and do what you want.

Do you have installed the powersave package? I talk about this package. Now I think you talk about the RPI config setup? In the /boot/config.txt is no powersave configured. So it use the RPI default. But I don't know, if the powersave package works for the RPI.

Do you can increase or low the sound if you start the omxplayer on commandline and use the y and x keys? If not, witch keys control the sound?

Claus
« Last Edit: November 18, 2014, 12:55:44 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 Linus

  • Member
  • **
  • Posts: 54
    • View Profile
Some questions on MLD on pi (From non German speaker!)
« Reply #38 on: November 18, 2014, 13:47:19 »
Hi:
1)  "-o both" ==> I will check that this afternoon

2) powersave is not installed.
I don t know if it works. In fact, has i said, cpufreq is already ok, the only things is that by default it's "powersafe" that is on, and not "ondemand" governor. I will just had a command on the init script to change it 's just un "echo “ondemand” > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor" on the init script.
I will take a look on the config.txt but i doupt that there is something related there, i don t know if we could select the governor from that file.
For usb, i will check the hub cmd that you give me, perhaps it works, i will see. :)

3) The key for controle the sound are  "+" and "-" (it works from the cmd line) but i have changed the key in the config file, it does not change any thing.

Thank's. :)

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
Some questions on MLD on pi (From non German speaker!)
« Reply #39 on: November 18, 2014, 14:30:48 »
The powersave package make the governor configuable.

In the mplayer plugin are the y and x keys defined for the volume control. I think I must test this myself.

Claus
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 Linus

  • Member
  • **
  • Posts: 54
    • View Profile
Some questions on MLD on pi (From non German speaker!)
« Reply #40 on: November 18, 2014, 14:37:32 »
Ok, i will try this package, even if it's not needed. For the pi, just the command line à said is enouth to change the governor.

Has i said, i have already change the key to + and - in the config file, and it has changed nothing. But i do not restart after that.
You could test it again, perhaps i have made something wrong. ;)

You could invers the 1/3 key with left and right too because by default left and right are fast jump, not lot low jump.
And to play a video fast jump is to fast. 
« Last Edit: November 18, 2014, 14:39:52 by Linus »

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
Some questions on MLD on pi (From non German speaker!)
« Reply #41 on: November 18, 2014, 15:32:35 »
Hi,

I will test the volume part by me self, to see how I must change the mplayer plugin to get the correct keys.
By the way: You must use the omxplayer.sh to check the key binding that is used by the plugin. And there is no way to make shorter jumps, without compile the omxplayer myself.

Claus
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 Linus

  • Member
  • **
  • Posts: 54
    • View Profile
Some questions on MLD on pi (From non German speaker!)
« Reply #42 on: November 18, 2014, 18:27:12 »
In fact, the short jump is on the 1 and 3 key, you could test, you have got big jump in left and right, and short jump in 1 and 3.

We should invert that.

EDIT: "-o both" works.

EDIT:
Quote
omxplayer -k
Key bindings :
        1                  decrease speed
        2                  increase speed
        <                  rewind
        >                  fast forward
        z                  show info
        j                  previous audio stream
        k                  next audio stream
        i                  previous chapter
        o                  next chapter
        n                  previous subtitle stream
        m                  next subtitle stream
        s                  toggle subtitles
        d                  decrease subtitle delay (- 250 ms)
        f                  increase subtitle delay (+ 250 ms)
        q                  exit omxplayer
        p / space          pause/resume
        -                  decrease volume
        + / =              increase volume
        left arrow         seek -30 seconds
        right arrow        seek +30 seconds
        down arrow         seek -600 seconds
        up arrow           seek +600 seconds

We should bind the < and > key in fact.

And perhaps we should put the sound lower on launch.
Quote
omxplayer -h
Usage: omxplayer [OPTIONS] [FILE]
Options :
         -h / --help                    print this help
         -v / --version                 print version info
         -k / --keys                    print key bindings
         -n / --aidx  index             audio stream index    : e.g. 1
         -o / --adev  device            audio out device      : e.g. hdmi/local/both
         -i / --info                    dump stream format and exit
         -s / --stats                   pts and buffer stats
         -p / --passthrough             audio passthrough
         -d / --deinterlace             force deinterlacing
              --nodeinterlace           force no deinterlacing
         -w / --hw                      hw audio decoding
         -3 / --3d mode                 switch tv into 3d mode (e.g. SBS/TB)
         -y / --hdmiclocksync           adjust display refresh rate to match video (default)
         -z / --nohdmiclocksync         do not adjust display refresh rate to match video
         -t / --sid index               show subtitle with index
         -r / --refresh                 adjust framerate/resolution to video
         -g / --genlog                  generate log file
         -l / --pos n                   start position (hh:mm:ss)
         -b / --blank                   set background to black
              --loop                    loop file. Ignored if file is not seekable, start position applied if given
              --no-boost-on-downmix     don't boost volume when downmixing
              --vol n                   Set initial volume in millibels (default 0)
              --amp n                   Set initial amplification in millibels (default 0)
              --no-osd                  do not display status information on screen
              --subtitles path          external subtitles in UTF-8 srt format
              --font path               subtitle font
                                        (default: /usr/share/fonts/truetype/freefont/FreeSans.ttf)
              --italic-font path        (default: /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf)
              --font-size size          font size as thousandths of screen height
                                        (default: 55)
              --align left/center       subtitle alignment (default: left)
              --no-ghost-box            no semitransparent boxes behind subtitles
              --lines n                 number of lines to accommodate in the subtitle buffer
                                        (default: 3)
              --win "x1 y1 x2 y2"       Set position of video window
              --audio_fifo  n           Size of audio output fifo in seconds
              --video_fifo  n           Size of video output fifo in MB
              --audio_queue n           Size of audio input queue in MB
              --video_queue n           Size of video input queue in MB
              --threshold   n           Amount of buffered data required to come out of buffering in seconds
              --orientation n           Set orientation of video (0, 90, 180 or 270)
              --fps n                   Set fps of video where timestamps are not present
              --live                    Set for live tv or vod type stream
              --layout                  Set output speaker layout (e.g. 5.1)
              --dbus_name name          Set D-Bus bus name
                                        (default: org.mpris.MediaPlayer2.omxplayer)
              --key-config <file>       Uses key bindings specified in <file> instead of the default
              --layer n                 Set the video render layer number (higher numbers are on top)



EDIT: i found a way for the usb key:
 eject /dev/sda ==> the key turn off

hub-ctrl -h 0 -P 3 -p 0 ==> It turn off power of the key
hub-ctrl -h 0 -P 3 -p 1 ==> The key turn on.

In fact i think that we should unmount before.
But it's near to work. :)


EDIT:
here is the command i have to put in /etc.init.d/rc.suspend:
When going to suspens:
umount /mnt/data
umount /var/cache
sleep 2
eject /dev/sda
sleep 1
hub-ctrl -h 0 -P 3 -p 0

When i wake up:
hub-ctrl -h 0 -P 3 -p 1
sleep 2
mount /dev/sda1 /mnt/data
mount /dev/sda1 /var/cache

And it works! :)
« Last Edit: November 18, 2014, 21:44:03 by Linus »

Offline Linus

  • Member
  • **
  • Posts: 54
    • View Profile
Some questions on MLD on pi (From non German speaker!)
« Reply #43 on: November 19, 2014, 20:58:16 »
Hello, i have got some "scrash" sound when playing tv, i was thinking that it was related to the analog part, but even if i put the sound by hdmi i got this "crap" sound, it hapen some times, not always etc. I do not know if it's only because it is a "B" and not a B+ that solve this probel (but normally it should happen to the analog output and not on the HDMI output)?

Offline clausmuus

  • Administrator
  • Expert Member
  • ********
  • Posts: 20445
    • View Profile
    • ClausMuus.de
Some questions on MLD on pi (From non German speaker!)
« Reply #44 on: November 20, 2014, 19:22:30 »
Only the analog output oft the B is Bad. Not the hdmi. That must habe an other reason.

Claus
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

1 2 [3] 4 5 6 >>> Archiv / MLD 4.x / Raspberry PI / Some questions on MLD on pi (From non German speaker!)
 



Users Online Users Online

0 Members and 1 Guest are viewing this topic.