Changed my mind: dual (N=2) frame mechanism is optimal for MediaPlayer

This commit is contained in:
brunoherbelin
2020-07-19 19:00:21 +02:00
parent ff64e0252e
commit 71a3de644d
2 changed files with 6 additions and 1 deletions

View File

@@ -130,6 +130,11 @@ void MediaPlayer::open(string path)
void MediaPlayer::execute_open()
{
// Create the simplest gstreamer pipeline possible :
// " uridecodebin uri=file:///path_to_file/filename.mp4 ! videoconvert ! appsink "
// equivalent to gst-launch-1.0 uridecodebin uri=file:///path_to_file/filename.mp4 ! videoconvert ! ximagesink
// build string describing pipeline
string description = "uridecodebin uri=" + uri_ + " name=decoder !";
if (interlaced_)

View File

@@ -19,7 +19,7 @@ class Visitor;
#define MAX_PLAY_SPEED 20.0
#define MIN_PLAY_SPEED 0.1
#define N_VFRAME 3
#define N_VFRAME 2
struct TimeCounter {