Git Product home page Git Product logo

Comments (10)

RobbieElias avatar RobbieElias commented on July 19, 2024 2

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.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

@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.

RobbieElias avatar RobbieElias commented on July 19, 2024

Just tested, it doesn't work.

from streampack.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

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.

RobbieElias avatar RobbieElias commented on July 19, 2024

Here you go: logcat.txt

from streampack.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

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.

RobbieElias avatar RobbieElias commented on July 19, 2024

Here you go: logcat.txt

The video played, but the audio was a little out of sync.

from streampack.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

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.

RobbieElias avatar RobbieElias commented on July 19, 2024

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.

ThibaultBee avatar ThibaultBee commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.