vlc

Error when importingPython-vlc

只愿长相守 提交于 2019-12-13 07:28:31
问题 I have installed python-vlc D:\Programing\Python\Python 3.6>python -m pip install python-vlc Requirement already satisfied: python-vlc in d:\programing\python\python 3.6\lib\site-packages\python_vlc-1.1.2-py3.6.egg When I import the module in idle I get this error >>> import vlc Traceback (most recent call last): File "<pyshell#1>", line 1, in <module> import vlc File "<frozen importlib._bootstrap>", line 961, in _find_and_load File "<frozen importlib._bootstrap>", line 950, in _find_and_load

Run a windows command/script when a specific program opens/closes

对着背影说爱祢 提交于 2019-12-13 05:17:44
问题 Is there a simple way to run a small command or batch script when a specific program opens or closes? I thought there might be a way to make it create a Windows event that I could then use as a trigger in the Task Scheduler, but I couldn't find any events for it. The program I'm trying to use as a trigger is VLC Media Player. 回答1: you could wrap the call to vlc in a batch file: call preexec.cmd start /b /wait "" vlc.exe call postexec.cmd then just replace the shortcut to start vlc with a

Why is this lua script unable to open a Windows subdirectory?

半世苍凉 提交于 2019-12-13 04:13:46
问题 I'm trying to determine if one of several directories are present from within a lua script. It works on OSX, but not on Windows (linux is currently untested, but I expect that one to work). When the following code runs, I get an error: failed with this C:\Program Files (x86)\VideoLAN\VLC\lua\playlist\: No such file or directory I can confirm that that directory exists. I've escaped the slashes, I'm not sure what else could be the issue. local oses = { "/Applications/VLC.app/Contents/MacOS

how to import vlc plugins in to python script

你离开我真会死。 提交于 2019-12-13 00:46:00
问题 I'm trying to play the video using libvlc with python script, for that i got one script in the stack overflow post. the script is follows: import os import sys import vlc if __name__ == '__main__': #filepath = <either-some-url-or-local-path> movie = os.path.expanduser(filepath) if 'http://' not in filepath: if not os.access(movie, os.R_OK): print ( 'Error: %s file is not readable' % movie ) sys.exit(1) instance = vlc.Instance("--sout=#duplicate{dst=file{dst=example.mpg},dst=display}") try:

Having trouble converting itunes XML playlist in node.js

只愿长相守 提交于 2019-12-13 00:24:22
问题 Some time ago I wrote a quick little node command-line utility to convert itunes playlists in XML format to m3u, xspf, etc. so I could use them on my linux box at work, android phone*, etc. * I have a 25+ gigabyte music collection, doubletwist et al just keel over and die trying to sync with my mac At first this was fine, but as my music collection has grown I've hit a snag: no media player can seem to find any files with non-English unicode characters such as ñ, í, and pretty much any

Problem passing parameter to applescript via terminal/bashscript

杀马特。学长 韩版系。学妹 提交于 2019-12-12 23:24:31
问题 I'm trying to control multiple VLC instances via bashscript and applescript - i access them via their pid. I got this working in a small manual test, which works fine: tell application "System Events" set VLC_VGA to application processes whose unix id is 598 repeat with proc in VLC_VGA set the frontmost of proc to true keystroke "p" using {command down} end repeat end tell I now want to dynamically insert the pid (598 or whatever it may be). This is what I have so far - but won't work:

Anyone used libvlc on Mac?

核能气质少年 提交于 2019-12-12 21:23:43
问题 Edit I've been able to simplify the reproduction of the error: When trying to build this sample: $ cc example.c -arch i386 -lvlc.2 -L/Applications/VLC.app/Contents/MacOS/lib/ -I/Applications/VLC.app/Contents/MacOS/include/ -o example $ ./example dyld: Library not loaded: @loader_path/lib/libvlc.2.dylib Referenced from: /Users/francis/src/playground/libvlc/./example Original Post I am experiencing the following behavior: Create new XCode project (Cocoa or command line tool) Link with libvlc.2

浏览器使用VLC插件播放rtsp

老子叫甜甜 提交于 2019-12-12 14:40:08
我们项目里用到了华为的摄像机,在实况浏览的时候爬了好几天的坑,终于东拼西凑,自己弄好了一份html的demo,可以播放视频记录一下. 1.我们是从华为轻量云上获取的摄像机的参数和视频信息 轻量云包括VCM(分析平台,网页端可以登录) ,VCN(监控平台需要下载客户端才能登录) 2.我是调用vcn上的接口拿到相应摄像机的rtsp地址,下面我就直接上代码了 注意要先在电脑安装VLC插件,才能在浏览器调用,下载地址: https://www.videolan.org/ 注意32和64位,我使用的32位 . vlc web开发文档地址 : https://wiki.videolan.org/Documentation:WebPlugin/ 里面有详细介绍 这是一个基本的html页面 ,将rtsp地址替换下面的地址即可,只支持IE,和360(因为有ie内核),Chrome当前版本是不支持的,网上说45版本以下的支持,但是我试了还是不行,可能是不会配置. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>video</title> </head> <body> <object type='application/x-vlc-plugin' id='vlc' events='True' width="800

Howto enqueue all files listed in a file to a vlc playlist using cat and awk

こ雲淡風輕ζ 提交于 2019-12-12 14:22:35
问题 I'm trying to enqueue all files listed in a textfile to a VLC playlist. Every line holds an absolute path to a movie file. Adding just one file to the playlist works perfectly: vlc --playlist-enqueue someMediaFile I'm also able to execute a command (e.g. print) for every line listed in the textfile using cat and awk like this: cat avis.txt | awk '{print $0}' ... But combined, it doesn't work: cat avis.txt | awk '{vlc --playlist-enqueue $0}' The line above prints the content of the file avis

Convert RTSP stream to HTTP and stream it with VLC client

眉间皱痕 提交于 2019-12-12 14:22:22
问题 I have an IP-camera which deliveser a stream by RTSP, i can play it on PC with VLC player using the following URL: rtsp://192.168.1.52:554/user=admin&password=&channel=1&stream=0.sdp? I have linux server, and i want convert RTSP to HTTP and transmit it. I tryed like this, but it does not work: vlc -vvv 'rtsp://192.168.1.52:554/user=admin&password=&channel=1&stream=0.sdp?' --sout '#standard{access=http,mux=ogg,url=192.168.1.41:8081}' Where is my mistake? 来源: https://stackoverflow.com/questions