Comments (8)
Yes - this is known issue. But usually it is with first ~1second. What device are you using?
from androidffmpeg.
I'm running a Samsung Galaxy S3. And it's not the first second, it's actually 10-13 seconds. And happens on pause/resume every time, with no exception
from androidffmpeg.
Happens on HTC too. So I don't think it's device specific. The problem is that on resume/play, the audio jumps at a future position and the video is trying to catch up with audio, that's why it plays so fast.
from androidffmpeg.
I know this issue - it's problem with synchronization after resuming/starting. But I do not know when I will have time to fix this issue. If you can give me a patch for this it would be splendidly.
from androidffmpeg.
Hey Jacek, I've been trying to fix this issue but with no luck so far. Could you please give me some hints or something on how to fix it? I would really appreciate it.
Thanks
from androidffmpeg.
You probably have to look why frames are passed to early in: jni_player_render_frame()
it could be problem with:
int64_t current_time = av_gettime();
int64_t time_diff = current_time - player->audio_write_time;
double pts_time_diff_d = elem->time - player->audio_clock;
int64_t sleep_time = (int64_t) (pts_time_diff_d * 1000.0)
- (int64_t) (time_diff / 1000L);
or
player->audio_write_time, player->audio_clock
or it could be problem with: jni_player_resume
where calling:
player->audio_resume_time = av_gettime();
if (player->audio_write_time < player->audio_pause_time) {
player->audio_write_time = player->audio_resume_time;
} else if (player->audio_write_time < player->audio_resume_time) {
player->audio_write_time += player->audio_resume_time
- player->audio_pause_time;
}
from androidffmpeg.
There are some encantments in #13 that can simplify resolving this issue because synchronization there is done via timer clock. Unfortunately this task is not done.
from androidffmpeg.
Fixed in https://review.appunite.com/#/c/3807/
from androidffmpeg.
Related Issues (20)
- It compiles but doesn't work
- 'Could not find compilator' HOT 3
- seekNative() doesn't return any frame
- app was crashed HOT 1
- I want joinning, thanks
- I play tcp stream from camera,there is about 0.5 seconds delay,is there some buffer resulted in? HOT 1
- automake: error: 'configure.ac' is required HOT 1
- could somebody send me the compiled library?
- build_android.sh "C compiler cannot create executables" HOT 3
- library:processReleaseResources FAILED
- mp4 video player system crash
- Can I use this library to play h264 over rtsp? HOT 2
- Fatal signal SIGSEGV after playing 4-5 videos one after the another
- Cannot build project HOT 1
- can't update submodule with libyuv HOT 5
- Why libavfilter is disabled in ffmpeg configuration? HOT 3
- extracting subtitles using this project HOT 1
- Higher versions Support HOT 3
- Repo
- crash on app
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 androidffmpeg.