Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looping a video results in blank screen #30

Closed
artelse opened this issue Feb 20, 2018 · 2 comments
Closed

Looping a video results in blank screen #30

artelse opened this issue Feb 20, 2018 · 2 comments

Comments

@artelse
Copy link

artelse commented Feb 20, 2018

Am having a problem where I am trying to loop a video indefinitely in a kiosk style setting. After an indeterminate time it stalls in a blank screen. I compiled the next branch for fbdev and run on standard ubuntu headless odroid distro. The video is h264 in an mp4 container. Any ideas? Could it be a non standard codec setting perhaps? What is the preferred codec setting for c2play? Thanks!

@artelse
Copy link
Author

artelse commented Feb 22, 2018

Further testing the problem. It seems that when c2play is started from the terminal and not remotely through SSH, the blank screen doesn't occur. This has been done with a small clip resulting in a high loop frequency. Will test some more with a larger clip. What may happen is that c2play somehow cannot output over SSH and craps out?

Update: did more testing with a larger file and no problems occur when started from the local terminal.

@artelse artelse closed this as completed Mar 3, 2018
@OtherCrashOverride
Copy link
Owner

This is most likely the console screen saver. The fbdev version attempts to disable it:

// Set graphics mode
int ttyfd = open("/dev/tty0", O_RDWR);
if (ttyfd < 0)
{
printf("Could not open /dev/tty0\n");
}
else
{
int ret = ioctl(ttyfd, KDSETMODE, KD_GRAPHICS);
if (ret < 0)
throw Exception("KDSETMODE failed.");
close(ttyfd);
}

This may be failing if running over SSH. The console screen save can also be disabled on the kernel command line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants