Comments (10)
If I set the audio sample rate to 44.1 kHz, the A/V sync issues are fixed. So there's an issue with converting the sample rate I guess.
from streampack.
@RobbieEllias can you test #13?
I assume that a phone camera sources are either realtime either unknown. It can't have one camera with a realtime ts source and another with an unknown ts source.
from streampack.
Just tested, it doesn't work.
from streampack.
Ok, I must have missed something.
I added a commit with a lot of logcat trace. Can you test it and send me your logcat content?
from streampack.
Here you go: logcat.txt
from streampack.
Audio timestamp source is also odd.
Sorry, you will have to retest https://github.com/ThibaultBee/StreamPack/tree/feature/camera_realtime_ts_source.
from streampack.
Here you go: logcat.txt
The video played, but the audio was a little out of sync.
from streampack.
Yeah :) the stream is working!
This look likes another issue (maybe SRT configuration?) but your logcat seems alright. Do you have error on ffmpeg logs?
What do you mean by a little out of sync
? Few ms? 1-10 seconds? Is it always the same time shift ?
By the way, I also removed Log.i from the branch, because it might generate issue in A/V sync.
from streampack.
It's only off by a few ms. I get a lot of errors in ffplay:
[aac @ 0x7f910b032e00] Multiple frames in a packet.sq= 0B f=0/0
[aac @ 0x7f910b032e00] Number of bands (41) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (41) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (41) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (50) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (50) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] invalid band typevq= 1740KB sq= 0B f=0/0
[aac @ 0x7f910b032e00] Number of bands (46) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] invalid band typevq= 1756KB sq= 0B f=0/0
[aac @ 0x7f910b032e00] invalid band typevq= 1750KB sq= 0B f=0/0
[aac @ 0x7f910b032e00] Number of bands (51) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (42) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] invalid band typevq= 1736KB sq= 0B f=0/0
[aac @ 0x7f910b032e00] Number of bands (41) exceeds limit (40).
[aac @ 0x7f910b032e00] invalid band typevq= 1745KB sq= 0B f=0/0
[aac @ 0x7f910b032e00] Number of bands (41) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (41) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] invalid band typevq= 1735KB sq= 0B f=0/0
[aac @ 0x7f910b032e00] invalid band typevq= 1722KB sq= 0B f=0/0
[aac @ 0x7f910b032e00] invalid band typevq= 1725KB sq= 0B f=0/0
[h264 @ 0x7f9109155200] error while decoding MB 113 67, bytestream -6
[h264 @ 0x7f9109155200] concealing 56 DC, 56 AC, 56 MV errors in P frame
[h264 @ 0x7f9109154600] error while decoding MB 116 67, bytestream -8
[h264 @ 0x7f9109154600] concealing 53 DC, 53 AC, 53 MV errors in P frame
[aac @ 0x7f910b032e00] invalid band typevq= 1709KB sq= 0B f=0/0
[aac @ 0x7f910b032e00] Number of bands (53) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] invalid band type
[aac @ 0x7f910b032e00] Gain control is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac @ 0x7f910b032e00] channel element 0.9 is not allocated
[aac @ 0x7f910b032e00] skip_data_stream_element: Input buffer exhausted before END element found
[aac @ 0x7f910b032e00] invalid band typevq= 1619KB sq= 0B f=0/0
[aac @ 0x7f910b032e00] Input buffer exhausted before END element found
[aac @ 0x7f910b032e00] Number of bands (54) exceeds limit (40).0/0
[h264 @ 0x7f9109155200] error while decoding MB 113 67, bytestream -14
[h264 @ 0x7f9109155200] concealing 56 DC, 56 AC, 56 MV errors in P frame
[h264 @ 0x7f910919aa00] concealing 5 DC, 5 AC, 5 MV errors in P frame
[h264 @ 0x7f910916d000] error while decoding MB 115 67, bytestream -14
[h264 @ 0x7f910916d000] concealing 54 DC, 54 AC, 54 MV errors in P frame
[aac @ 0x7f910b032e00] Number of bands (69) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (43) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (49) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (41) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (42) exceeds limit (40).
[aac @ 0x7f910b032e00] invalid band typevq= 1555KB sq= 0B f=0/0
[aac @ 0x7f910b032e00] Number of bands (41) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (61) exceeds limit (40).0/0
[h264 @ 0x7f9109155200] error while decoding MB 104 67, bytestream -6
[h264 @ 0x7f9109155200] concealing 65 DC, 65 AC, 65 MV errors in P frame
[aac @ 0x7f910b032e00] Number of bands (41) exceeds limit (40).0/0
[h264 @ 0x7f910916d000] error while decoding MB 94 67, bytestream -12
[h264 @ 0x7f910916d000] concealing 75 DC, 75 AC, 75 MV errors in P frame
[h264 @ 0x7f910916ca00] error while decoding MB 97 67, bytestream -6
[h264 @ 0x7f910916ca00] concealing 72 DC, 72 AC, 72 MV errors in P frame
[h264 @ 0x7f910916d600] error while decoding MB 115 67, bytestream -6
[h264 @ 0x7f910916d600] concealing 54 DC, 54 AC, 54 MV errors in P frame
[aac @ 0x7f910b032e00] Number of bands (46) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (51) exceeds limit (40).0/0
[h264 @ 0x7f910919aa00] error while decoding MB 118 67, bytestream -10
[h264 @ 0x7f910919aa00] concealing 51 DC, 51 AC, 51 MV errors in P frame
[aac @ 0x7f910b032e00] Number of bands (60) exceeds limit (40).0/0
[h264 @ 0x7f9109154600] error while decoding MB 117 67, bytestream -12
[h264 @ 0x7f9109154600] concealing 52 DC, 52 AC, 52 MV errors in P frame
[aac @ 0x7f910b032e00] Number of bands (56) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (45) exceeds limit (40).0/0
[aac @ 0x7f910b032e00] Number of bands (43) exceeds limit (40).
from streampack.
At least, timestamp issue is resolved. I merged #13.
They are no sample rate conversion in StreamPack. The only thing that could be wrong is the way AAC ADTS is built. I will check what could be wrong with the audio sample rate and I might open another issue.
Thanks for your help!
from streampack.
Related Issues (20)
- [Bug]: MP4 File appears to have time duration 00:01 in video player HOT 4
- [Bug]: When the higher video bit rate is used for SRT streaming, the video will frequently appear green screen or mosaic HOT 4
- Socket Exception while connect with encrypted srt server HOT 8
- Is it possible to use a dns to broadcast the streaming, say no-ip or others? HOT 2
- Connection Error HOT 2
- [Bug]: SrtProducer.connect(url) always throws "unknown host" when onConnectionListener is null HOT 2
- [Feat]: Get current bitrate of the stream HOT 3
- Video Capture Mirroring HOT 8
- [Feat]: Support for devices whose MountAngle is not general HOT 7
- [Feat]: Background RTMP Streaming HOT 4
- [Feat]: Lock resolution to starting orientation HOT 10
- [Feat]: Add SRTLA (SRT transport proxy with link aggregation for connection bonding) HOT 1
- [Bug]: Streaming the SRT video has a lot of lag HOT 2
- [Bug]: App crashes with "eglMakeCurrent failed" error HOT 2
- [Bug]: app crashes when start running HOT 2
- [Feat]: High latency when using the RTMP HOT 2
- [Bug]: When using SRT to push 1080P video, the latency is severe, about 7 seconds! HOT 3
- [Bug]: There are severe mosaics at higher bit rates(>2Mb/s). HOT 5
- [Bug]: tap to focus while zoomed out causes crash HOT 7
- [Bug]: "demo-camera" app crashes at startup HOT 7
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 streampack.