Comments (6)
The issue originates from this being an unusual bitstream. It is MPEG4 (like DivX) but has H264 start codes. However, since it is not AnnexB compliant, I added a code path to work around the issue.
In the branch "next", the following commit works around this issue:
ea965bd
[Edit]
Note that for the sample provided, there are audible gaps in the sound stream. These are also present on Kodi and VLC (x86) and do not indicate a problem with c2play.
[Edit2]
The hang happens as a result of bad data being sent to the codec kernel driver. Preventing the hang would require additional validation in the kernel driver by Amlogic.
from c2play.
I can reproduce this issue and am working on a fix.
from c2play.
This media file works on next branch. 👍
About haining in the kernel side, could you suggest simple sample code in order to reproduce the hang?
We will look into the problem after the codec driver hang issue is uploaded to the odroid forum or HK's linux repository.
from c2play.
could you suggest simple sample code in order to reproduce the hang?
My only suggestion would be to use the v1.0.0 version of c2play with the sample media you provided. The hang is likely dependent on codec firmware micro-code as well. The data to hang it will likely differ for MPEG4, H264, and HEVC.
For this particular issue, the data being sent to the codec was raw data contained in the video packet:
https://github.com/OtherCrashOverride/c2play/blob/master/src/Media/AmlVideoSink.cpp#L351
This difference now is that the "extra data" is parsed as H264 and sent before that same data that hung decoder is sent.
c2play/src/Media/AmlVideoSink.cpp
Lines 269 to 272 in ea965bd
from c2play.
Okay, thank you @OtherCrashOverride.
from c2play.
This should now be fully resolved in the 'next' branch. Please feel to open another issue if you experience any further issues.
from c2play.
Related Issues (20)
- Sample MP4 file in readme. HOT 3
- Add support for looping. HOT 1
- Gapless looping HOT 2
- MPEG-4 video hang if no audio source HOT 5
- Output delay after start of decoding HOT 1
- [S805] Video and audio are out of sync when playing http stream HOT 8
- egl_render rendering planned ? HOT 3
- volume up/down support ? HOT 3
- Looping a video results in blank screen HOT 2
- Request: load subtitles from file
- ../../src/Media/MediaSourceElement.cpp:163:11: error: 'CODEC_ID_MPEG2VIDEO' was not declared in this scope case CODEC_ID_MPEG2VIDEO: HOT 1
- c2play/src/Media/os_support.h:30:10: fatal error: config.h: No such file or directory HOT 1
- fatal error: alsa/asoundlib.h: No such file or directory HOT 4
- Variable renderContext size HOT 1
- Open and close c2play often HOT 2
- c2play is usable for digital signage?
- .stamp_host_installed failed HOT 1
- While make c2play HOT 1
- how to get frame after decode HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c2play.