2

I need two gst-launch-1.0 command lines

1) The first one is simple to play a video (.mp4) without using any hardware acceleration.

2) The sencond one is to play the video (.mp4) using hardware acceleration, I am using Intel HD graphics with the i965 driver.

I already installed the gstreamer plugins.

Any help would be appreciated.

adolfomir
  • 33
  • 7
  • Unless you specifically want to choose decoders yourself, I would recommend playbin and decodebin for playback. – MayurK Mar 28 '19 at 05:56
  • It'd be neat if GStreamer added a hints feature to playbin|decodebin. Or maybe a demuxbin. There are unfortunately many instances where certain encoded outputs simply won't make it correctly through a given decoder. – mpr Mar 28 '19 at 13:45

1 Answers1

5

1: using libav

gst-launch-1.0 filesrc location=[FILENAME] ! qtdemux ! avdec_h264 ! queue ! videoconvert ! autovideosink

2: using vaapi

gst-launch-1.0 filesrc location=[FILENAME] ! qtdemux ! vaapih264dec ! vaapisink
mpr
  • 3,250
  • 26
  • 44