mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-05 15:30:00 +01:00
Changed my mind: dual (N=2) frame mechanism is optimal for MediaPlayer
This commit is contained in:
@@ -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_)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user