question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Timestamp of each frame

See original GitHub issue

I need to save the timestamp ( millisecods ) of each frame. ( Also i need only the video not the audio. How its possible with RecordRTC?

This is my code:

recordAudio = RecordRTC(stream, {
            frameRate: 30,
            quality: 1,
            onAudioProcessStarted: function() {
                recordVideo.startRecording();
            }
});

recordVideo = RecordRTC(stream, {
            type: 'video'
});

recordAudio.startRecording();`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
notsoluckycharmcommented, Mar 30, 2017

The stream you would pass in would have video: true, audio: false, this is not RecordRTC’s job. However, RecordRTC does not / can not give you the timestamp per frame as there is no way to inject the ondataavailable callback at this time.

0reactions
br1lucacommented, Apr 18, 2017

I just follow your suggestions:

  • I override the two individual files: RecordRTC and MediaStreamRecorder
  • I just use your lines on code:

        recordVideo = RecordRTC(stream, {
            type: 'video',
            timeSlice: 1000, // 1 second
            onTimeStamp: function(timestamp, allTimeStamps) {}
        });
        recordVideo.startRecording();

/**/

var msRecorder = recordVideo .getInternalRecorder();
var allTimeStamps = msRecorder.timestamps;
console.log( allTimeStamps );

But nothing happen, no error and no message on console log.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting timestamp of each frame in a video - Stack Overflow
I have stored the start timestamp in milliseconds (Unix time) for each video. Unfortunately each video has a different framerate (ranging from ...
Read more >
Extract timestamp of each frame in a video - OpenCV Forum
I have captured several videos from a USB camera connected to NVidia Jetson TX2 board using openCV VideoCapture and VideoWriter methods.
Read more >
How to get the timestamp of each frame in Viewer
Hello. I am using DAVIS346 and would like to get the timestamp of each frame. How can I get the timestamp of each...
Read more >
Converting video timestamps to frame numbers
The spreadsheet includes a timestamp for each frame, in seconds, to two digits of precision. I need to convert these timestamps back to...
Read more >
Save frames of live video with timestamps - Python OpenCV
Then datetime.now() will give the current date and time put this timestamp on that frame and display the image by using the cv2.imshow() ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found