小编Pie*_*ier的帖子

Yocto:删除 System V init 脚本的 bbappend 文件

我目前正在使用 Yocto 安装 dnsmasq,但我想删除自动启动。

所以我创建了一个 .bbappend 文件,我尝试了类似的东西:

pkg_postinst_${PN} () {
    update-rc.d dnsmasq -f remove
}
Run Code Online (Sandbox Code Playgroud)

但它没有用,我不知道如何使用 bbappend 文件删除这个 init 脚本。

谢谢,皮埃尔-奥利维尔

init recipe bitbake yocto

5
推荐指数
2
解决办法
3455
查看次数

如何使用 Gstreamer 制作可搜索的视频

我正在尝试使用 Gstreamer 制作一个可搜索的视频,经过多次研究,我发现 matroskamux 和 filesink 插件可以做到这一点,但它不起作用。

这是我的管道:

gst-launch-1.0 videotestsrc ! x264enc ! h264parse ! matroskamux ! filesink location=test.mkv
Run Code Online (Sandbox Code Playgroud)

我创建了一个 5 秒的视频:

^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:05.989791758
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
Run Code Online (Sandbox Code Playgroud)

当我从 gstreamer 运行发现应用程序时:

user@IM00343:~/Desktop$ gst-discoverer-1.0 test.mkv 
Analyzing file:///home/user/Desktop/test.mkv
Done discovering file:///home/user/Desktop/test.mkv

Topology:
  container: Matroska
    video: H.264

Properties:
  Duration: 0:00:00.566333333
  Seekable: yes
  Tags: 
      container format: Matroska
      video codec: H264
      minimum bitrate: …
Run Code Online (Sandbox Code Playgroud)

video gstreamer

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

Gstreamer:mastrokamux 错误:未链接

我尝试播放以 h264 编码并使用 matroskamux 混合的视频,但无法实现。我使用的是嵌入式平台,iMX6。

我的管道适用于 gst-lauch:

gst-launch-1.0 filesrc location=video.mkv ! matroskademux ! h264parse ! imxvpudec ! imxipuvideosink
Run Code Online (Sandbox Code Playgroud)

我用C创建了它,但它不起作用。我删除了错误处理,我使用包含所有元素的结构rep

rep->pipeline = gst_pipeline_new("pipeline");
rep->src = gst_element_factory_make("filesrc","source0");
rep->demux = gst_element_factory_make("matroskademux","demux0");
rep->queue = gst_element_factory_make("queue2","queue0");
rep->parser = gst_element_factory_make("h264parse","parser0");  
rep->decoder = gst_element_factory_make("imxvpudec","dec0");
rep->sink = gst_element_factory_make("imxipuvideosink","sink0");
gst_bin_add_many (GST_BIN(rep->pipeline), rep->src, rep->demux, rep->queue, rep->parser, rep->decoder,rep->sink, NULL);
g_object_set(rep->src, "location", "video.mkv", NULL);
g_object_set(rep->sink, "use-vsync", TRUE, NULL);
gst_element_link_many(rep->src, rep->demux, rep->queue, rep->parser, rep->decoder, rep->sink, NULL);
g_print("start pipeline\n");
gst_element_set_state (rep->pipeline, GST_STATE_PLAYING);
g_main_loop_run (loop);
Run Code Online (Sandbox Code Playgroud)

视频不显示并且应用程序卡住。使用 GST_DEBUG=4 我得到了很多调试,但在最后几行:

0:00:00.168590667   577    0xe24c0 WARN           matroskademux …
Run Code Online (Sandbox Code Playgroud)

video gstreamer matroska

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

标签 统计

gstreamer ×2

video ×2

bitbake ×1

init ×1

matroska ×1

recipe ×1

yocto ×1