Open mkillebr opened 5 years ago
This might be a little easier to read. The formatting did not go through with the code above.
Here is some of the output, I wonder if the problem is the audio frame is being written at the wrong time:
Output #0, mp4, to '7e04f785-ba9c-4e1b-b3a3-e6e31201a99a.mp4': Metadata: encoder : Lavf57.56.100 Stream #0:0: Video: h264, 1 reference frame ([33][0][0][0] / 0x0021), yuv420p, 1600x896 (0x0), q=2-31, 43008 kb/s, 15360 tbn Stream #0:1: Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, delay 1024, 64 kb/s [mp4 @ 000002714b14aa40] Application provided invalid, non monotonically increasing dts to muxer in stream 1: 26084 >= 26084 [aac @ 000002714b144580] Queue input is backward in time [libx264 @ 000002714b149a80] frame I:13 Avg QP:16.92 size:228475 [libx264 @ 000002714b149a80] frame P:143 Avg QP:19.90 size: 82810 [libx264 @ 000002714b149a80] mb I I16..4: 100.0% 0.0% 0.0% [libx264 @ 000002714b149a80] mb P I16..4: 10.9% 0.0% 0.0% P16..4: 86.5% 0.0% 0.0% 0.0% 0.0% skip: 2.6% [libx264 @ 000002714b149a80] final ratefactor: 15.52 [libx264 @ 000002714b149a80] coded y,uvDC,uvAC intra: 68.4% 99.8% 97.9% inter: 63.6% 89.8% 64.1% [libx264 @ 000002714b149a80] i16 v,h,dc,p: 22% 27% 39% 12% [libx264 @ 000002714b149a80] i8c dc,h,v,p: 60% 16% 14% 10% [libx264 @ 000002714b149a80] kb/s:45575.38 [aac @ 000002714b144580] Qavg: 175.208 [aac @ 000002714b144580] 2 frames left in the queue on closing
What would you like to submit? (put an 'x' inside the bracket that applies)
We are trying to capture video and audio from various webcams. The audio is always out of sync. I realize we are probably missing something, but I can't figure out what it is. We use the timestamp to record the video frames correctly, but when we do the same with the audio frames, it is only called once.