vlc

How to use LibVLC with Qt 5

梦想的初衷 提交于 2019-12-08 05:13:18
问题 I'm trying to use LibVLC in a Qt 5 program to open a VLC instance and play a video. The following code comes from https://wiki.videolan.org/LibVLC_Tutorial/ I'm using Linux. .pro : TEMPLATE = app TARGET = projectLoic INCLUDEPATH += . vlc QT += widgets # Input HEADERS += SOURCES += main.cpp LIBS +=-lvlc main : #include <vlc/vlc.h> #include <QApplication> int main(int argc, char* argv[]) { QApplication app(argc, argv); libvlc_instance_t * inst; libvlc_media_player_t *mp; libvlc_media_t *m; //

What is the parallelization mechanism in QNetworkAccessManager?

不问归期 提交于 2019-12-08 04:34:20
问题 I am writing an HTTP access module for VLC 2.0 using QtNetwork from Qt 4.7.4. My code snips follow: static int Open(vlc_object_t *p_this) { .... QNetworkAccessManager *nam = new QNetworkAccessManager; QNetworkReply *reply = nam->get(QNetworkRequest("http://stackoverflow.com/")); Q_ASSERT(reply); QEventLoop loop; connect(reply, SIGNAL(finished()), &loop, SLOT(quit()); connect(reply, SIGNAL(error(QNetworkReply::NetworkError)), &loop, SLOT(quit())); connect(reply, SIGNAL(readyRead()), &loop,

how to embed a vlc instance in a tkinter frame

无人久伴 提交于 2019-12-08 04:20:01
问题 i wanna embed a vlc instance in a tkinter frame. already there is a similar code here that show a terminal in a tkinter window but i wanna show a vlc instead. here is my vlc code: import vlc Instance = vlc.Instance() player = Instance.media_player_new() Media = Instance.media_new('http://192.168.1.3:8080') Media.add_option('network-caching=0') player.set_media(Media) player.play() and here is simple tkinter code try: # Python2 from Tkinter import * except ImportError: # Python3 from tkinter

Streaming video to embedded VLC via ASP.Net - Unable to seek position

末鹿安然 提交于 2019-12-08 03:57:30
问题 I am trying to write a video streaming site using an embedded VLC control to play the video and an asp.net handler to get the video stream. I am embedding the control as follows: <embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org" width="640" height="480" target="http://MyWebsite/MyHandler.ashx"/> <object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921" codebase="http://download.videolan.org/pub/videolan/vlc/last/win32/axvlc.cab"></object> And the code i am using

VLC ActivX plugin not playing video in update IE9

霸气de小男生 提交于 2019-12-08 00:29:34
问题 I am using vlc ActiveX plugin on web browser IE9 to play video live streaming. Its work perfect in IE8 but when I update browser from IE8 to IE9 than it not playing video file or live straming. here is my code. <object type="application/x-vlc-plugin" id="vlc" width="517" height="388" classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"> <param name="MRL" id="mrlVideo" value="" /> <param name="volume" value="50" /> <param name="autoplay" value="True" /> <param name="loop" value="false" />

Problems Starting VLC HTTP Stream with Servlet

走远了吗. 提交于 2019-12-07 17:18:36
问题 I'm working on a VLC project for myself. My goal is to create an HTML front end to start a stream. I am doing this through the use of Java Servlets. Overview: Ubuntu 13.04, Java 7-21 : IcedTea 2.3.9, Eclipse JAVAEE IDE, Tomcat 7 I am trying to start a VLC HTTP video stream using this call. vlc -vvv /home/jca310ms/Videos/test.avi.flv \ --sout '#transcode{vcodec=FLV1,vb=4096,fps=25,scale=1,acodec=mp3,ab=512,samplerate=44100,channels=2}:std{access=http,mux=flv,dst=0.0.0.0:8081/stream.flv}' Now,

How can I make URLs to music files play in VLC on iOS?

老子叫甜甜 提交于 2019-12-07 16:49:52
问题 I have MP3s and other file formats that I want to provide through my website to iPhone and iPad users. VLC's iOS app seems to fit the bill, but they say Additionally, third party websites and apps may include links to open streams directly in VLC for iOS. Here is the official documentation provided How can I do that? I can't seem to find any documentation about it. I'm considering making a custom app just to accomplish it, but that seems silly. 回答1: Starting from VLC 2.0.2 you can use a link

You need the NDKv8b or later when build VLC

北城以北 提交于 2019-12-07 16:08:34
问题 I have build VLC in android with codes implement: jack--:~$ export ANDROID_SDK=android-sdk jack--:~$ export ANDROID_NDK=android-ndk-r9d jack--:~$ export PATH=$PATH:$ANDROID_SDK/platform-tools:$ANDROID_SDK/tools jack--:~$ export ANDROID_ABI=armeabi-v7a But i'm using the NDK revision 9 The problem show "You need the NDKv8b or later". How do i solve the problem ? 回答1: Use like this : export ANDROID_NDK=~/.android/adt-bundle-linux-x86-20130729/android-ndk-r9d This will solve the problem. That is

Change Frames Per Second for VLC Stream

感情迁移 提交于 2019-12-07 08:53:40
问题 We are currently experimenting with streaming a webcam attached to one of our Linux servers (Ubuntu 12.04) using VLC, and although we are able to successfully stream the video and view it remotely, we need to change the number of frames per second (which is defaulting to 24). We are currently using the following command to create the stream: vlc v4l2:// :v4l2-dev=/dev/video0 \ :v4l2-width=640 \ :v4l2-height=480 -- \ sout="#transcode{vcodec=theo,vb=256}:standard{access=http,mux=ogg,dst=:8090}"

VLC: Import error no module named appscript

不打扰是莪最后的温柔 提交于 2019-12-07 08:17:19
I am running python 2.7 with the VLC module on windows 7 to do this: import vlc i = vlc.Instance('--verbose 2'.split()) p = i.media_player_new() p.set_mrl('rtp://@192.168.0.101:8080/video') p.play() However when I try to install VLC module with pip, it returns the following error: C:\Windows\System32>pip install vlc Collecting vlc Using cached vlc-0.0.1.tar.gz Collecting app (from vlc) Using cached app-0.0.2.tar.gz Collecting appscript (from app->vlc) Using cached appscript-1.0.1.tar.gz Requirement already satisfied (use --upgrade to upgrade): envoy in c:\python27\l ib\site-packages\envoy-0.0