Hello.
I'm developing tool to create subtitles. I have to get timecode not only frame number.Is it possible using QMediaPlayer? Very helpful would be also answer how to get FPS(MetaDate doesn't work).
subtitletools::subtitletools()
{
mplayer=new QMediaPlayer();
vwidget=new QVideoWidget();
vwidget->setAspectRatioMode(Qt::IgnoreAspectRatio);
mplayer->setVideoOutput(vwidget);
mplayer
->setMedia
(QUrl::fromLocalFile(file));
mplayer->setVolume(100);
mplayer->setPlaybackRate(1);
mplayer->play();
}
subtitletools::subtitletools()
{
mplayer=new QMediaPlayer();
vwidget=new QVideoWidget();
vwidget->setAspectRatioMode(Qt::IgnoreAspectRatio);
mplayer->setVideoOutput(vwidget);
QString file=QFileDialog::getOpenFileName(this,"Otwórz plik");
mplayer->setMedia(QUrl::fromLocalFile(file));
mplayer->setVolume(100);
mplayer->setPlaybackRate(1);
mplayer->play();
}
To copy to clipboard, switch view to plain text mode
Bookmarks