<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[IMX307使用抓拍模式pipeline启动失败]]></title><description><![CDATA[<p dir="auto">IMX307，使用以下参数    v4l2src num-buffers=1 /dev/video0! "video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nvjpegenc ! filesink location=1.jpg   启动pipeline，提示cannot find appsink in maanual pipeline,开启失败</p>
]]></description><link>http://forum.veye.cc/topic/462/imx307使用抓拍模式pipeline启动失败</link><generator>RSS for Node</generator><lastBuildDate>Sat, 06 Jun 2026 11:35:36 GMT</lastBuildDate><atom:link href="http://forum.veye.cc/topic/462.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 24 Oct 2023 09:38:13 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to IMX307使用抓拍模式pipeline启动失败 on Wed, 25 Oct 2023 08:35:32 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lyj" aria-label="Profile: lyj">@<bdi>lyj</bdi></a> 这个本质上是gstreamer的一个命令行，你可以上网上或者上英伟达的资料网站上查一下是否有压缩成视频流的，或者压缩成bmp的相关gstreamer plugin。</p>
]]></description><link>http://forum.veye.cc/post/3082</link><guid isPermaLink="true">http://forum.veye.cc/post/3082</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Wed, 25 Oct 2023 08:35:32 GMT</pubDate></item><item><title><![CDATA[Reply to IMX307使用抓拍模式pipeline启动失败 on Wed, 25 Oct 2023 07:47:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a> 请问这个抓拍的图片可以弄成视频流吗？必须保存成图片吗？</p>
]]></description><link>http://forum.veye.cc/post/3081</link><guid isPermaLink="true">http://forum.veye.cc/post/3081</guid><dc:creator><![CDATA[lyj]]></dc:creator><pubDate>Wed, 25 Oct 2023 07:47:24 GMT</pubDate></item><item><title><![CDATA[Reply to IMX307使用抓拍模式pipeline启动失败 on Wed, 25 Oct 2023 04:03:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a> 还得是大佬出手，我还有个问题，这个图片只能保存成jpg吗？能不能是bmp格式</p>
]]></description><link>http://forum.veye.cc/post/3078</link><guid isPermaLink="true">http://forum.veye.cc/post/3078</guid><dc:creator><![CDATA[lyj]]></dc:creator><pubDate>Wed, 25 Oct 2023 04:03:46 GMT</pubDate></item><item><title><![CDATA[Reply to IMX307使用抓拍模式pipeline启动失败 on Wed, 25 Oct 2023 03:47:19 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a> 为啥视频预览可以用python调用，这个不行呢</p>
]]></description><link>http://forum.veye.cc/post/3077</link><guid isPermaLink="true">http://forum.veye.cc/post/3077</guid><dc:creator><![CDATA[lyj]]></dc:creator><pubDate>Wed, 25 Oct 2023 03:47:19 GMT</pubDate></item><item><title><![CDATA[Reply to IMX307使用抓拍模式pipeline启动失败 on Wed, 25 Oct 2023 03:33:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lyj" aria-label="Profile: lyj">@<bdi>lyj</bdi></a><br />
这脚本不是直接这样扔到python代码里面的啊。<br />
你如果一定要用python去调用shell脚本。可以参考：</p>
<pre><code>import subprocess

# 定义要执行的GStreamer命令
gstreamer_command = "gst-launch-1.0 v4l2src -d /dev/video0 num-buffers=1 ! 'video/x-raw,format=(string)UYVY, width=(int)2560, height=(int)1440' ! nvvidconv ! 'video/x-raw(memory:NVMM),format=(string)I420' ! nvjpegenc ! filesink location=jpgname.jpg"

# 使用subprocess运行GStreamer命令
try:
    subprocess.run(gstreamer_command, shell=True, check=True)
    print("GStreamer command executed successfully.")
except subprocess.CalledProcessError as e:
    print(f"Error executing GStreamer command: {e}")

</code></pre>
]]></description><link>http://forum.veye.cc/post/3076</link><guid isPermaLink="true">http://forum.veye.cc/post/3076</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Wed, 25 Oct 2023 03:33:09 GMT</pubDate></item><item><title><![CDATA[Reply to IMX307使用抓拍模式pipeline启动失败 on Wed, 25 Oct 2023 03:24:22 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a></p>
<pre><code>cap = cv2.VideoCapture('v4l2src -d /dev/video0 num-buffers=1 ! \"video/x-raw,format=(string)UYVY, width=(int)1920, height=(int)1080\" ! nvvidconv ! \"video/x-raw(memory:NVMM),format=(string)I420\" ! nvjpegenc ! filesink location=jpgname.jpg')
</code></pre>
<p dir="auto">我使用这段代码，提示错误如下<img src="/assets/uploads/files/1698204253995-%E5%BE%AE%E4%BF%A1%E5%9B%BE%E7%89%87_20231025112341.jpg" alt="微信图片_20231025112341.jpg" class=" img-fluid img-markdown" /></p>
]]></description><link>http://forum.veye.cc/post/3075</link><guid isPermaLink="true">http://forum.veye.cc/post/3075</guid><dc:creator><![CDATA[lyj]]></dc:creator><pubDate>Wed, 25 Oct 2023 03:24:22 GMT</pubDate></item><item><title><![CDATA[Reply to IMX307使用抓拍模式pipeline启动失败 on Wed, 25 Oct 2023 02:59:11 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a> 我试试</p>
]]></description><link>http://forum.veye.cc/post/3071</link><guid isPermaLink="true">http://forum.veye.cc/post/3071</guid><dc:creator><![CDATA[lyj]]></dc:creator><pubDate>Wed, 25 Oct 2023 02:59:11 GMT</pubDate></item><item><title><![CDATA[Reply to IMX307使用抓拍模式pipeline启动失败 on Wed, 25 Oct 2023 02:44:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lyj" aria-label="Profile: lyj">@<bdi>lyj</bdi></a><br />
取video0</p>
<pre><code>gst-launch-1.0 v4l2src -d /dev/video0 num-buffers=1 ! "video/x-raw,format=(string)UYVY, width=(int)2560, height=(int)1440" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nvjpegenc ! filesink location=jpgname.jpg
</code></pre>
<p dir="auto">取video1</p>
<pre><code>gst-launch-1.0 v4l2src -d /dev/video1 num-buffers=1 ! "video/x-raw,format=(string)UYVY, width=(int)2560, height=(int)1440" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nvjpegenc ! filesink location=jpgname.jpg
</code></pre>
]]></description><link>http://forum.veye.cc/post/3070</link><guid isPermaLink="true">http://forum.veye.cc/post/3070</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Wed, 25 Oct 2023 02:44:52 GMT</pubDate></item><item><title><![CDATA[Reply to IMX307使用抓拍模式pipeline启动失败 on Wed, 25 Oct 2023 02:27:34 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/veye_xumm" aria-label="Profile: veye_xumm">@<bdi>veye_xumm</bdi></a> 可我是双相机呢，我有两个相机，我要指定一下吧</p>
]]></description><link>http://forum.veye.cc/post/3066</link><guid isPermaLink="true">http://forum.veye.cc/post/3066</guid><dc:creator><![CDATA[lyj]]></dc:creator><pubDate>Wed, 25 Oct 2023 02:27:34 GMT</pubDate></item><item><title><![CDATA[Reply to IMX307使用抓拍模式pipeline启动失败 on Wed, 25 Oct 2023 01:55:44 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/lyj" aria-label="Profile: lyj">@<bdi>lyj</bdi></a><br />
请直接执行：</p>
<pre><code>gst-launch-1.0 v4l2src num-buffers=1 ! "video/x-raw,format=(string)UYVY, width=(int)2560, height=(int)1440" ! nvvidconv ! "video/x-raw(memory:NVMM),format=(string)I420" ! nvjpegenc ! filesink location=jpgname.jpg
</code></pre>
<p dir="auto">把你这边的提示信息发出来看看。</p>
]]></description><link>http://forum.veye.cc/post/3059</link><guid isPermaLink="true">http://forum.veye.cc/post/3059</guid><dc:creator><![CDATA[veye_xumm]]></dc:creator><pubDate>Wed, 25 Oct 2023 01:55:44 GMT</pubDate></item></channel></rss>