Skip to content

Reading timecode metadata from file? #27

@antithing

Description

@antithing

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions