vlc

How to implement an eclipse VM argument in code

独自空忆成欢 提交于 2021-02-19 07:56:33
问题 This is probably a simple question but I'm currently working with vlcj to make a video player for a project. I have a basic player working but only when I have the VM arguement -Djna.library.path="C:\Program Files\VideoLAN\VLC" defined in the debug configurations window. My question is if I need to create a version of this project to run outside of Eclipse do I need to define this argument in my code or will my program run in this way without problems indefinitely? Thanks to anyone who

Saving audio from livestream using VLC library

心不动则不痛 提交于 2021-02-18 19:36:26
问题 I am trying to save audio clips (15 seconds per clip) from live stream using VLC library. I am unable to find any option that could allow me to record only 15 seconds from the live stream. Thus I ended up using timer in my code, but the recording clips sometimes contain 10 seconds, sometimes 20 seconds (rarely 15 seconds). Also, sometimes the audio content is repeated in the clips. Here is the code (I am a newbie so please guide me) Code.py import os import sys import vlc import time

Saving audio from livestream using VLC library

北战南征 提交于 2021-02-18 19:35:42
问题 I am trying to save audio clips (15 seconds per clip) from live stream using VLC library. I am unable to find any option that could allow me to record only 15 seconds from the live stream. Thus I ended up using timer in my code, but the recording clips sometimes contain 10 seconds, sometimes 20 seconds (rarely 15 seconds). Also, sometimes the audio content is repeated in the clips. Here is the code (I am a newbie so please guide me) Code.py import os import sys import vlc import time

Get Now Playing info from VLC command line

浪子不回头ぞ 提交于 2021-02-07 10:33:16
问题 I want to know if it is possible to retrieve the now playing info (name of file, time elapsed, etc.) for VLC from the command line. I want to then use Java to use this info somewhere. One possibility might be to use JNA, but not sure how that would work. I searched everywhere but it only tells me how to start a file from command line. 回答1: Apparently VLC comes with a small Http server which can be used to send commands to the player. You launch the server by issuing % vlc -I http (--http-src

Python does not play mp4 and avi files

岁酱吖の 提交于 2021-02-05 11:22:15
问题 This program does not play videos but the sound is okey. I get an error about h264 or MJPG.When trying to play an .mp4 or .avi file I see the this messages. main decoder error: Codec `MJPG' (Motion JPEG Video) is not supported. main decoder error: Codec not supported main decoder error: VLC could not decode the format "MJPG" (Motion JPEG Video) or main decoder error:Codec `h264' (H264 - MPEG-4 AVC (part 10)) is not supported. main decoder error: Codec not supported main decoder error: VLC

Can not import vlc to python program

…衆ロ難τιáo~ 提交于 2021-02-05 09:44:48
问题 I'm trying to reproduce a video with sound in python Tkinter through VLC, but cannot run the file since I get an error when running the line import vlc. I have python 3 at 32 bits, VLC player at 32 bits and installed it through pip install python-VLC , which was successful and then try to run the code and get this error: File "C:/Users/momoh/Documents/GitHub/CNDH/CNDH.py", line 5, in <module> import vlc File "C:\Users\momoh\AppData\Local\Programs\Python\Python36-32\lib\site-packages\vlc.py",

Control Vlc with requests - java

你离开我真会死。 提交于 2021-01-29 14:37:12
问题 I want to control vlc with java code and its web interface using http://localhost:8080 The problem is I don't know how exactly I must use the http requests. Here is some code I have written: URL url = new URL("http://127.0.0.1:8080/"); HttpURLConnection con = (HttpURLConnection) url.openConnection(); con.setDoOutput(true); con.setRequestMethod("GET"); con.setRequestProperty("If-Modified-Since", "29 Oct 1999 19:43:31 GMT"); con.setRequestProperty("User-Agent", "Profile/MIDP-1.0 Configuration

Vlc won't work with framelesswindow and transparent/translucent background in PyQt5

人走茶凉 提交于 2021-01-29 09:02:05
问题 i am making a window which plays video with vlc. Here is my code from PyQt5 import QtWidgets,QtCore,QtGui import vlc class Player(QtWidgets.QMainWindow): def __init__(self): super().__init__() self.resize(600,400) self.mainframe=QtWidgets.QFrame(self) self.setCentralWidget(self.mainframe) self.mainframe.setStyleSheet("background:grey;border-radius:15px;") self.videoframe=QtWidgets.QFrame(self.mainframe) self.videoframe.setGeometry(10,10,580,380) self.videoframe.setStyleSheet("background:

C# VLC playlist autoplay it working stop when next video

◇◆丶佛笑我妖孽 提交于 2021-01-28 11:32:52
问题 when first video ended switch to second video program stop working: private void axVLCPlugin21_MediaPlayerEndReached(object sender, EventArgs e) { if (listBox1.SelectedIndex < (listBox1.Items.Count - 1)) { axVLCPlugin21.playlist.next(); listBox1.SelectedIndex += 1; listBox1.Update(); } else { axVLCPlugin21.playlist.playItem(0); listBox1.SelectedIndex = 0; listBox1.Update(); } } 回答1: private void axVLCPlugin21_MediaPlayerEndReached(object sender, EventArgs e) { if (listBox1.SelectedIndex <

How to use libvlc_media_new_callbacks() to play video from memory in c++

拜拜、爱过 提交于 2021-01-28 11:27:52
问题 I have decrypted one video into the memory and wanted to play it into vlc from there only. By searching on internet I founded libvlc_media_new_callbacks(instance, open_cb, read_cb, close_cb, opaque) API which is used to play the video from the memory. I am not getting any detail about how to use this and how can i specify it's perimeter, Is there anyone who can explain it's implementation to me. 来源: https://stackoverflow.com/questions/65885578/how-to-use-libvlc-media-new-callbacks-to-play