ffmpeg-cpp
ffmpeg-cpp copied to clipboard
Reading timecode metadata from file?
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!