小编use*_*196的帖子

gstreamer管道中插入的媒体类型字符串有什么作用

我在 gstreamer 中看到过这种管道运行命令:

例如,

gst-launch-1.0 videotestsrc ! video/x-raw, format=I420, framerate=25/1, width=640, height=360 ! xvimagesink
Run Code Online (Sandbox Code Playgroud)

我已经阅读了一些video/x-raw, format=I420, framerate=25/1, width=640, height=360指定媒体类型的页面。但我无法理解它会产生什么效果 - 是将输入转换为指定的帧率/格式/宽度/高度等......还是就像指定输入已经在这个帧率/宽度/ht中一样?如果它只是指定输入在此帧速率等中,它会对管道产生什么影响......而不是转换。

它真的有必要还是我们可以忽略它?

gstreamer

6
推荐指数
1
解决办法
4733
查看次数

使用Gstreamer textoverlay插件在视频文件上叠加文本

我正在使用以下命令来做到这一点:

/usr/local/bin/gst-launch-1.0 filesrc location=/home/ubuntu/DELTA.mpg ! textoverlay text="Hello" ! filesink location=/home/ubuntu/delta2.mpg
Run Code Online (Sandbox Code Playgroud)

但是我得到以下输出:

ubuntu@ip-10-185-10-118:~$ /usr/local/bin/gst-launch-1.0 filesrc location=/home/ubuntu/DELTA.mpg  ! textoverlay text="Hello" ! filesink location=file4.mpg
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
WARNING: from element /GstPipeline:pipeline0/GstTextOverlay:textoverlay0: Could
not multiplex stream.
Additional debug info:
gstbasetextoverlay.c(1892): gst_base_text_overlay_video_event(): /GstPipeline:pipeline0/GstTextOverlay:textoverlay0:
received non-TIME newsegment event on video input
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Got EOS from element "pipeline0".
Execution ended after 0:00:00.024475840
Setting pipeline to PAUSED ...
Setting pipeline to …
Run Code Online (Sandbox Code Playgroud)

bash gstreamer

3
推荐指数
1
解决办法
5112
查看次数

动态更新JLabel以显示更改状态消息,以便在单击按钮时进行处理

我想显示状态消息,当单击按钮触发的处理达到不同的处理阶段时,动态更新.你能帮忙吗?这是我使用的代码,但不起作用.它总是在函数结束时显示状态msg,而不是在执行时显示中间状态msgs.

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.*;

import javax.swing.JApplet;
import javax.swing.JButton;
import javax.swing.*;

import java.net.*;
import java.io.*;

public class MainApplet extends JApplet {
  JButton gstbtn = new JButton("Connect to Gst Hotspot");
  JButton wifibtn = new JButton("Connect to existing Wifi networks");
  JLabel status = new JLabel();
  JPanel toppanel = null, nwConfigDialog = null;
  final JFrame f= new JFrame();
  JTextField ssidTxt;
  JPasswordField pwdTxt;
  JOptionPane opt;

  public void init() {

    gstbtn.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        System.out.println("Gst Hotspot connect workflow triggered"); …
Run Code Online (Sandbox Code Playgroud)

java swing jlabel event-dispatch-thread thread-sleep

1
推荐指数
1
解决办法
1290
查看次数