omxd icon indicating copy to clipboard operation
omxd copied to clipboard

Cannot figure out how it is supposed to work.

Open ArosPrince opened this issue 6 years ago • 7 comments

Hello, the deamon looks promising but I just cannot figure out how it is supposed to work.

First of all, the deamon is not started on startup (after reboot) as the README claims.

And then, I just cannot seem to understand how to control the playback.

Even this simple example:

I start the deamon myself: omxd

Then add first file: omxd a ~/1.mp4

The file starts playing... So far so good.

omxd a ~/2.mp4

OK, now the file should be appended after the current file.

omxd n

This I believe should now jump to the second file. However what really happens is that the current file (1.mp4) stops playing and closes the window and then it shows PAUSE 0:0:0 / 0:3:10 (which is the length of 1.mp4, not the next one) on the screen and nothing happens.

Do I get it wrong is there something broken?

I use RPi 3 B+ with the latest Raspbian Stretch.

//BTW It's not caused by the fact that 2.mp4 would not be playable, if I add the files in reverse order, it behaves the same, the first file plays but it doesn't jump to the second one.

ArosPrince avatar Aug 29 '18 17:08 ArosPrince

How did you install omxd? Debian package? make install?

subogero avatar Aug 29 '18 18:08 subogero

As written in INSTALL:

git clone https://github.com/subogero/omxd.git
cd omxd
make
sudo make install

ArosPrince avatar Aug 29 '18 19:08 ArosPrince

Some ideas fo troubleshooting:

  • After each omxd command, also do omxd S all. It prints the playlist and highlights the current track
  • If you're in the omxd repo folder, also try make ps. It prints omxd related processes.
  • Have you started the daemon as root or a simple user?

subogero avatar Aug 29 '18 19:08 subogero

Hello thanks for the tips...

At this point is is difficult to test it because it stopped working altogether. No video is displayed at all... I am not sure what changed. omxd is running and when I do omxd S all, it prints the playlist and says Stopped 0/0. If I run omxd p, nothing changes. Will probably have to reinstall from the scratch as I really don't see what could have broken it. I also tried normal Pi 3, it behaves the same...

As for the root / common user. I was running it as a normal unprivileged user. If I try it with sudo now, I cannot write to the FIFO using omxd anything.

ArosPrince avatar Aug 30 '18 07:08 ArosPrince

If you change from a normal user to root, you have to clean up the omxctl and other runtime files from the current folder.

Also, please check your omxplayer.

subogero avatar Aug 30 '18 07:08 subogero

I have now tried it on RPi 3 (normal, not B+) with older raspian jessie and it seems to work.

Although the gap less mode is not really gap less, it takes about a second to switch the videos...

ArosPrince avatar Aug 30 '18 14:08 ArosPrince

Are you using the -g option? It's for "gap" mode, not gap-less mode.

subogero avatar Aug 30 '18 15:08 subogero