Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reading timecode metadata from file? #27

Open
antithing opened this issue Jan 20, 2021 · 0 comments
Open

Reading timecode metadata from file? #27

antithing opened this issue Jan 20, 2021 · 0 comments

Comments

@antithing
Copy link

Hi! And thanks for making this code available (the only windows build-able ffmpeg that I could find).

I am trying to read the metadata from a .mov file, specifically timecode data.

Based on the 'print_info' example, this code:

VideoStreamInfo stream = info.videoStreams[i];
			cout << "Stream #" << (i + 1)
				<< ": codec " << stream.codec->name
				<< ", pixel format " << stream.formatName
				<< ", resolution " << stream.width << "x" << stream.height
				<< ", bit rate " << stream.bitRate << "kb/s"
				<< ", fps " << ((float)stream.frameRate.num / (float)stream.frameRate.den)
				<< ", time base " << stream.timeBase.num  << "/" << stream.timeBase.den
		
				<< ", " << demuxer->GetFrameCount(stream.id) << " frames"
				<< endl;

prints as expected, how can I read the timecode from the file in the same way?

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant