Open modmanx opened 10 years ago
Good question and interesting. I have not considered it. How do you record and play? What about other players?
VLC - When I open the same file (while still recording) it detects the duration but it can play beyond detected duration (fe.: 01:17 / 00:50)
As I mentioned, if I set media_end_pos = std::numeric_limits<qint64>::max();
in AVPlayer.cpp@607
(just to test) then your player works fine too.
I'm recording video from Blackmagic device.
the stream must contain information about durations. how can we detect them?
When I play still recording FLV file, duration and
media_end_pos
is set at the file load timeAVPlayer::load
. When video position get's tomedia_end_pos
set at load time, video stops. If I putmedia_end_pos = std::numeric_limits<qint64>::max();
then video plays as it's suppose, even after position is over duration.Is it possible to implement a method in
AVPlayer
where I could manually set the duration and or media_end_pos?I noticed that MKV file that I'm recording with same options as FLV, gets "Unknown" duration, but it's not seekable as FLV is.