-
Notifications
You must be signed in to change notification settings - Fork 72
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
alpha3 won't play anything #1
Comments
That error condition happens if you try to use c2play-x11 with the mail-fbdev package installed. The EGL information indicates that the fbdev mali libs are installed. c2play-x11 requires the mali-x11 package. |
So, with mali-x11 installed, c2play-x11 plays video, c2play from master plays video, and c2play from alpha3 gives Streams (count=2): I also can't get sound through HDMI though I can work around that with a remote pulse sink. |
In the alpha3 branch, support for graphics content was added. Initially, this is used to display a progress bar. A future release will use it for subtitles. The graphics are rendered with OpenGL ES on Mali. This means that "c2play" requires mali-fbdev and "c2play-x11" requires mali-x11. Both perform the same functions and have the same features: c2play is intended for users that do not have a X11 environment installed. Sound is sent through ALSA to HDMI. Only the alsa.conf in the default Ubuntu image has been tested. If you are not getting sound, either your alsa.conf is redirecting the "default" device or PulseAudio is. For best results, testing should be done with the official, unmodified, HardKernel Ubuntu image. Also ensure you do not have "dvi" selected in your boot.ini since DVI devices can not carry audio. |
Thanks for the clarification. I'm using HK Ubuntu, dvi's not in boot.ini, I haven't touched the alsa config, and the sound problem is not restricted to c2play (I swear that something was making system beep noises before but now nothing will make noise through HDMI). |
For the record, it started making system beep noises again, and I was able to get c2play-x11 sound through HDMI by turning all the volume levels up to max and then back down to non-painful levels. I have no idea what this indicates. Additionally, c2play-x11 will sometimes fail on a video that works at other times: X11Window: width=3840, height=2160 X11Window: xwin = 56623106 |
This indicates there is some other program active that is interfering with operation. C2play makes no beeping alerts, nor does it alter ALSA mixer settings. A program running in the background like an IM client/Skype/etc. could produce these issues. |
Which linux distro are you using for compilation. |
The official Ubuntu 16.04 is used for compilation. The error is likely due to differences in libav/ffmpeg versions between distributions. |
Managed to compile on Jessie, but heres my output log: added device: /dev/input/event1 X11Window: xwin = 31457282 |
The distribution likely does not set up permissions for the video devices like the Ubuntu image does. Try running the program as root with 'sudo'. |
I think this is not the case. This is the kernel problem. I'm using s802 with 3.10.33 kernel and amports driver has no AMSTREAM_IOC_SET. Player example from amlogic buildroot decodes video perfectly, but sound is working only once after reboot. Second time i ran player i've got [34958.150602] [dsp]DSP statck start =0x266d0000,size=0x10000 |
Currently, only S905 (Odroid C2, Kernel 3.14) is supported. There are future plans to support Odroid C1 (S805/Kernel 3.10). Amlogic changed kernel IOCTL calls between the two versions. |
Your old version with some small changes works well on 3.10. |
The old version used aml_libs which has some backwards compatibility code. The new version does not use aml_libs due to behavioral changes that are required. |
So when are you planning add support for c1? |
There is no specific timeline for it yet. |
I've reworked amlcode.cpp and amcodec.h. Now video is working then i blank fb0. But audio is out of sync. |
Ensure you are testing with the beta1 branch. There were changes to PTS calculation in it: If the problem persists, you will need to supply a sample of the problematic video for analysis. |
I'm using beta1. Main problem is in pts calculation. Witch function is responsible for AmlVideoSink: Adjust PTS - pts=31372.612211 - pts? Because in my case some videos pts is realy small form 0 and are escalating. Some videos has constant ~800. |
https://github.com/OtherCrashOverride/c2play/blob/beta1/src/Media/AmlVideoSink.h#L46-L89 The hardware is informed of the new PTS here: |
No, vpts is ok, but clock = buffer->TimeStamp(); |
"pts" is the information provided to the hardware. "vpts" is the information reported back from the hardware. If the two do not agree, then you will need to trace into the kernel driver to determine the cause. I have done this for S905 (Odroid C2) to verify correct operation. I will also do this for S805 (Odroid C0/C1) in the future. A similar symptom was corrected for S905 in this patch: If the video does not play correctly on S905 (Odroid C2), then please provide a sample and I will investigate. |
Hello, |
I do not have any S802 hardware, so I can not support it. However, there may be other S802 users interested in the modifications and appreciative if you hosted a fork. |
Closing this since S805 support was merged for release. |
No matter what I try to play, I get:
EGL: major=1, minor=4
EGL: Vendor=ARM
EGL: Version=1.4 Linux-r6p1-01rel0
EGL: ClientAPIs=OpenGL_ES
EGL: Extensions=EGL_KHR_image EGL_KHR_image_base EGL_KHR_image_pixmap EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_reusable_sync EGL_KHR_fence_sync EGL_KHR_lock_surface EGL_KHR_lock_surface2 EGL_EXT_create_context_robustness EGL_ANDROID_blob_cache EGL_KHR_create_context EGL_KHR_partial_update EGL_KHR_create_context_no_error
EGL: ClientExtensions=EGL_EXT_client_extensions EGL_EXT_platform_base
eglGetError failed: 0x3003
terminate called after throwing an instance of 'Exception'
Aborted
The text was updated successfully, but these errors were encountered: