omxplayer不加载播放列表文件

发布于 2025-01-17 17:26:53 字数 930 浏览 6 评论 0原文

因此,我试图使我的Raspberry Pi自己播放一堆视频文件。 我得到了omxplayer设置,并努力实际播放视频到屏幕上的PI连接,而不是远程终端,并且还可以使用USB声卡。 (PI连接到复合视频而不是HDMI,我无法获得Audio ova gpio工作,这是一个零零,所以没有耳机插孔,所以是的,这是一个奇怪的设置) 我还设置了一个SH脚本来播放视频文件。 “ 等等.. 但是,当它用一个视频文件完成并更改为另一个文件时,PI将在加载下一个视频时显示终端一秒钟,然后播放该视频。如果不必继续加载新的单独的omxplayer命令,我会喜欢它。 解决方法是对终端显示的空白,所以我只获得了黑屏,然后再获得下一个视频。但是,我真正想做的就是制作播放列表文件并播放。 我尝试了M3U,M3U8,XSPF甚至HTML,但我什么也没得到。 “默认播放列表” 我看到了一个提到.pls播放列表的脚本,所以我试图制作其中一个,这确实确实加载了某些东西,但没有播放? “ 我尝试在绝对文件路径和正常文件名中进行编辑,并得到相同的结果。 loaded but not playing idk

Temp hacks would be some how blanking the terminal display on the pi its self 或者使用ffmpeg之类的东西将我的所有视频组合到一个巨大的视频文件中,但我认为从长远来看,播放列表文件将会更好,只需弄清楚哪些播放列表格式Omxplayer对此感到满意。

So i'm trying to make my raspberry pi play a bunch of video files on it's own.
I got omxplayer setup and working to actually play video to the screen the pi is connected to and not the remote terminal and also working with the usb sound card.
(the pi is connected to composite video not hdmi and I couldn't get audio ova gpio working and this is a pi zero w so no headphone jack, so yes it's an odd setup)
I also setup an sh script to play video files.
sh script
and so on..
However, when it's finished with one video file and changes to another, the pi will show the terminal for a second while it loads the next video and then will play that video. I would like it if it didn't have to keep loading new individual omxplayer commands like this.
a workaround hack would be to some how blank the display of the terminal so I just get a second of black screen and then the next video. But what I would really like to do is to just make a playlist file and play that.
I tried m3u, m3u8, xspf and even html but I got nothing.
default playlists
I saw a script that mentioned a .pls playlist so I tried to make one of those, that indeed did seem to load something but didn't play it?
pls playlist
I tried editing in an absolute file path and just the normal file name and got the same result.
loaded but not playing idk

Temp hacks would be some how blanking the terminal display on the pi its self
or using something like ffmpeg to just combined all my videos into one huge video file, but I think a playlist file is going to be better in the long run, just have to figure out what playlist format omxplayer is happy with.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文