vlc

VLC Python doesn't play YouTube video

感情迁移 提交于 2020-01-04 14:17:30
问题 When trying to play a YouTube URL with VLC media player via the Python bindings, the video does not actually play. Here is my code which does the playing: def play(self, mrl): self.instance = vlc.Instance() try: self.media = self.instance.media_new_location(mrl) except NameError: print('NameError: %s (%s vs LibVLC %s)' % (sys.exc_info()[1], vlc.__version__, vlc.libvlc_get_version())) self.player = self.instance.media_player_new() self.player.set_media(self.media) event_manager = self.player

VLC Python doesn't play YouTube video

喜欢而已 提交于 2020-01-04 14:17:10
问题 When trying to play a YouTube URL with VLC media player via the Python bindings, the video does not actually play. Here is my code which does the playing: def play(self, mrl): self.instance = vlc.Instance() try: self.media = self.instance.media_new_location(mrl) except NameError: print('NameError: %s (%s vs LibVLC %s)' % (sys.exc_info()[1], vlc.__version__, vlc.libvlc_get_version())) self.player = self.instance.media_player_new() self.player.set_media(self.media) event_manager = self.player

VLC ActiveX in a local webpage with WPF WebBrowser control

 ̄綄美尐妖づ 提交于 2020-01-03 17:09:21
问题 So I try to get working VLC ActiveX v.2 under WPF WebBrowser control and I load it locally. And VLC ActiveX is not working... C# void MainWindow_Loaded(object sender, RoutedEventArgs e) { var file = System.IO.Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "index.html"); using (StreamReader sr = new StreamReader(file)) { String url = sr.ReadToEnd(); wb.NavigateToString(url); } } HTML <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

Python vlc install problems

你离开我真会死。 提交于 2020-01-02 07:05:59
问题 alright so i am trying to install vlc with pip and its telling me successfully installed python-vlc ok good that's what i wanted but when i go to run the program im trying to use vlc in witch is here import vlc p = vlc.MediaPlayer("https://www.youtube.com/watch?v=jC1vtG3oyqg") p.play() i am told this Traceback (most recent call last): File "C:\Users\Matt\Desktop\test2.py", line 1, in <module> import vlc File "C:\Python27\lib\site-packages\vlc.py", line 173, in <module> dll, plugin_path = find

Using VLC to host a stream of an infinite video loop

时光毁灭记忆、已成空白 提交于 2020-01-01 04:53:27
问题 I want to offer a video stream from my pc with a VLC player trough a WIFI network to smartphones for regression testing. The video should automatically restart at the beginning after being finished on the smartphone. I'm currently using rtsp as protocol and the loop option, but this is no mandatory. The problem is, that every time the video restarts a new rtsp handshake is necessary. Since most of the smartphone apps I tested don't support reconnecting the stream automatically after being

Stream file as RTSP using VLC

时光怂恿深爱的人放手 提交于 2020-01-01 04:22:09
问题 I need to create a server that can stream an mp3 file to another device. I am planning on using VLC. I looked at the VLC documentation and am confused about the way forward to do this. I found this link, http://www.videolan.org/doc/streaming-howto/en/ch07.html which tells how to stream a file to a device. However, what I want to do is create a server that is just streaming audio and will allow other clients to connect to it and start playing what is streamed. How can this be done with VLC?

libvlc stream part of screen

此生再无相见时 提交于 2019-12-30 02:26:21
问题 I want to stream a part of screen using vlc library. I wrote a small example: #include <iostream> #include <cstdlib> #include <vlc/vlc.h> int main(int argc, char**argv) { libvlc_instance_t * inst = libvlc_new(argc, argv); libvlc_vlm_add_broadcast(inst, "mybroad", "screen://", "#transcode{vcodec=h264, venc=x264,vb=0,scale=0, acodec=mpga,ab=128,channels=2, samplerate=44100}:http{mux=ffmpeg{mux=flv}, dst=:7777/}", 0, NULL, 1, 0); libvlc_vlm_play_media(inst, "mybroad"); std::cout << "ready" <<

windows 下安装编译VLC

不想你离开。 提交于 2019-12-29 23:57:51
一般情况下,我们在Windows下编译VLC常用方法有两种: 1、Msys+MinGW 2、Cygwin 使用第一种方法: 二者大同小异,下面主要介绍Cygwin的方式编译VLC。Cygwin是一个在Windows下面模拟Linux环境的东西。它提供了很多库和应用程序,让你可以像在Linux上一样来使用Windows。到官网下载Cygwin的安装程序setup.exe。 1.下载软件 setup-x86_64.exe 网址: https://www.cygwin.com/ 2.安装 选择在线安装: 选择 CygWin 安装目录: 选择安装包下载路径: 选择连接网络的方式,默认即可。 进入软件包安装界面,红圈选择“full”,蓝圈选择要下载安装的软件包即可。 选择完之后,下一步,会有一个安装和卸载的软件列表。点下一步,软件就会开始下载安装或者卸载了。 选择需要安装的软件包: 安装结束后,选择创建桌面图标,并点击【完成】按钮。 正式开始编译VLC: 1.编译LUA工具: VLC采用LUA脚本语言,我们需要先编译LUA工具 URL: http://www.lua.org/ 来源: CSDN 作者: 老樊Lu码 链接: https://blog.csdn.net/fanyun_01/article/details/103475952

Controlling VLC via c#

独自空忆成欢 提交于 2019-12-28 13:57:07
问题 I am writing an application that will open vlc, add a file to its playlist, and play it. I am having a few issues on the last 2. AXVLC.VLCPlugin alxplugin1 = new AXVLC.VLCPlugin(); alxplugin1.addTarget("C:\\test.avi", null, AXVLC.VLCPlaylistMode.VLCPlayListInsert, 0); alxplugin1.play(); This isn't working... Any ideas? Thanks 回答1: The newer version of VLC needs "file:///" in beginning of the file name. It should work if you add this. Please try the following and see if it solves your problem.

how to control VLC by java

吃可爱长大的小学妹 提交于 2019-12-28 06:24:29
问题 I want to run a program called VLC in java and control it while running, for example if user clicked on ❚❚ or ►► button, I do a specific suitable action. I run VLC by this code : try { Runtime rt = Runtime.getRuntime(); Process p = rt.exec(VLCProgramAddFile + " udp://@:" + listeningPort); OutputStream out = p.getOutputStream(); InputStream in = p.getInputStream(); p.waitFor(); System.out.println("End of VLC"); } catch (Exception e) { System.out.println("error in running VLC"); } I have heard