English 中文(简体)
• 如何处理Gstreamer多案卷汇产生的档案?
原标题:How to play files generated by Gstreamer multifilesink?

以下文为标题,成功地持续地保存框架档案。

gst-launch-1.0 pulsevideosrc ! vaapipostproc ! vaapiencode_h264 ! mpegtsmux ! multifilesink location = multisrc/frame%d.ts

保存的文件

ls -la
total 11260
drwxr-xr-x  2 dev3lx dev3lx 303104 May 15 10:28 .
drwx------ 23 dev3lx dev3lx   4096 May 15 11:35 ..
-rw-r--r--  1 root   root    21056 May 15 10:27 frame0.ts
-rw-r--r--  1 root   root     5640 May 15 10:28 frame100.ts
-rw-r--r--  1 root   root     7332 May 15 10:28 frame101.ts
-rw-r--r--  1 root   root     2632 May 15 10:28 frame102.ts
-rw-r--r--  1 root   root     4700 May 15 10:28 frame103.ts
-rw-r--r--  1 root   root     6016 May 15 10:28 frame104.ts
-rw-r--r--  1 root   root     7708 May 15 10:28 frame105.ts
-rw-r--r--  1 root   root     2820 May 15 10:28 frame106.ts
-rw-r--r--  1 root   root     4888 May 15 10:28 frame107.ts
-rw-r--r--  1 root   root     6392 May 15 10:28 frame108.ts
-rw-r--r--  1 root   root     7332 May 15 10:28 frame109.ts
-rw-r--r--  1 root   root     9964 May 15 10:27 frame10.ts
-rw-r--r--  1 root   root     3008 May 15 10:28 frame110.ts
-rw-r--r--  1 root   root     4888 May 15 10:28 frame111.ts
-rw-r--r--  1 root   root     5640 May 15 10:28 frame112.ts
-rw-r--r--  1 root   root     7708 May 15 10:28 frame113.ts
-rw-r--r--  1 root   root     2820 May 15 10:28 frame114.ts
...

But I don t know how to play the 保存的文件. What I tried is use VLC player and select all the 保存的文件, but it doesn t work. I also tried playing individual saved file, however majority file cannot be played. Can you advise how to play them?

问题回答
gst-launch-1.0 multifilesrc location="multisrc/frame%d.ts" ! tsdemux ! h264parse ! vaapih264dec ! videoconvert ! autovideosink




相关问题
converting wav to mp3 (and vice versa) using GStreamer

I am using Python bindings for Gstreamer and am using the following pipeline to convert a wav file to mp3. I used one of the suggestions in this question , with some modifications (as I was getting ...

How to detect the device name for a capture device?

I am writing a GStreamer application (GStreamer uses DirectShow under the hood on Windows) that captures a computer s microphone and videocamera. It works fine, but requires me to specify the device ...

capture using v4l2 and display preview using gstreamer

How to pass the buffer/userpointer to gstreamer after Q_BUF, STREAM_ON, DQ_BUF. I tried using PIL s method frombuffer, but with no success. so I want to use gst sink now. Should I use gst....

How do you ask gstreamer if a file can be played?

I m trying to write a simple command line audio player using the Python Gstreamer bindings. Is there a function in the gstreamer API that determines in advance whether or not a particular file (URI) ...

GStreamer or DirectShow for Windows development? [closed]

I m implementing a lecture-capture project for a local university. Multiple video streams will arrive at one PC: the presenter s desktop slides, a video camera image of the presenter himself and ...

pygst - glimagesink callback

I m trying to use glimagesink element with python. The element (which is GObject inside) has client-draw-callback property which should (in C++ at least) contain a function (bool func(uint t, uint w,...

CMake linking problem

I am trying to use CMake to compile a C++ application that uses the C library GStreamer. My main.cpp file looks like this: extern "C" { #include <gst/gst.h> #include <glib.h> } int main(...

热门标签