-
-
Notifications
You must be signed in to change notification settings - Fork 785
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
RtmpFromFile streaming Video/Audio sync issue #1315
Comments
Hello, Please try with this branch using the app sample and let me know if the problem persist: After that, if the problem persist share me a video to reproduce the problem and device Model/Android version |
Hi, Thank you for your response. Your branch fixed the sync problem for me perfectly! However, the stutter problem is still there. Do you have any idea what caused this? Will it be an internet problem or a config problem? Thanks in advance! |
The audio error sometimes happens for use google audio encoder (the only one on fews emulators): If you can reproduce the problem in other platform. Let me know which platform and stream configuration in the platform. |
I'm encountering a very odd case with your fix/fromfile-video-no-audio branch. This time I tested my app with a physical mobile device (Samsung A50 Android 11). I tried with a random video I recorded previously (mp4, 1080p). The stream worked fine (still a little bit stutter) until a few hours ago. At first, the loop mode seemed to break when it cut out the last few seconds of my video (a 2mins video was cut for 10s, and a 10mins video was cut for over a minute). I tried again now without the loop mode. Then it didn't stream anymore. I opened the logcat and I saw sometimes the AudioDecoder said "end of file", and sometimes it's the VideoDecoder, even if I had just started streaming (sometimes after a few seconds). Here is an example logcat. This video is 2mins long and the stream ended after 30s, then the VideoDecoder log "end of file". And now this happened with and without loop mode. Can you help me with this problem? :( |
Hello, Can you share me a video example with this problem to test it? |
Hi, While recording examples for you I found out that this bug only happened with 1080p videos! I tried with 720p video and it works perfectly fine. At first, I tested with this video but other 1080p videos also faced the same problem. When I downgraded this video to 720p it streamed normally. Can you fix this problem since most recorded videos nowadays are in 1080p Thanks in advance!!! |
Hello, I detected an error related with your case and I fixed it in the last commit: I was using the video that you suggested but I downloaded it in 1080p using this web: |
About the audio problem. I did a branch for it: |
Hi, The problem with 1080p is now fixed! However, the "end of file" problem is still there. You can test with both 1080p and 720p of the video above while streaming on YouTube. Sometimes "end of file" problem happens with audio (logcat), sometimes with video (logcat). The loop also break because of the "end of file" problem since it triggers the loop right away (it continues restarting the video after a few seconds). |
Hello, I can't reproduce the error in the app example. Can you tell me how to reproduce it using app example? Also, test the branch about the audio problem to know if this solve the error |
Closing as inactive. |
Hi @pedroSG94,
I'm currently working on streaming video file from mobile device to streaming platforms such as Facebook, YouTube, or TikTok,... However, I noticed a problem with syncing video and audio, since audio always goes faster than video, and the video constantly stutter. I tried different bitrates and some modifications but it still happens. What settings and parameters do I have to change to reduce the desync between them? Do you have any idea what caused the desync?
I'm currently using RtmpFromFile v2.3.0, tested with Android studio emulator Pixel 4 API 31 device. Please let me know if you need anything.
Thanks in advance!
The text was updated successfully, but these errors were encountered: