Open traw opened 6 years ago
After some efforts I'm able to capture laptop webcam. That requires to disable setting pts
manually, cause av_read_frame
sets packet pts
value
diff --git a/src/av/src/mediacapture.cpp b/src/av/src/mediacapture.cpp
index 9afe87a..99e9008 100644
--- a/src/av/src/mediacapture.cpp
+++ b/src/av/src/mediacapture.cpp
@@ -201,7 +201,7 @@ void MediaCapture::run()
// Realtime PTS calculation in microseconds
if (_realtime) {
- ipacket.pts = time::hrtime() - startTime;
+ //ipacket.pts = time::hrtime() + startTime;
}
else if (_looping) {
// Set the PTS offset when looping
FFProbe output:
UPDATE 1: Audio and Video both are enabled.
UPDATE 2: Audio is working fine and also audio pts is in sync but no video.
I'm using following library versions: LibSourcey-> 1.1.4, WebRTC-native-> branch/66 FFmpeg-> 3.0