libvlc

How do I adjust the video resolution?

荒凉一梦 提交于 2021-02-10 16:29:52
问题 I'm trying to adjust the resolution of the incoming H.264 RTSP stream. I am running on Windows 10 for now, but will eventually move this to Linux. I am creating the LibVLC object passing in several command line args, but nothing I have tried affects the resulting screen resolution. When I open the same RTSP steam in the VLC media player app, the resolution is 2560x1980, which is the native resolution I want in my app. But, when my app runs, it's only 640x480. FYI - this is not a Windows UI

How do I adjust the video resolution?

耗尽温柔 提交于 2021-02-10 16:28:02
问题 I'm trying to adjust the resolution of the incoming H.264 RTSP stream. I am running on Windows 10 for now, but will eventually move this to Linux. I am creating the LibVLC object passing in several command line args, but nothing I have tried affects the resulting screen resolution. When I open the same RTSP steam in the VLC media player app, the resolution is 2560x1980, which is the native resolution I want in my app. But, when my app runs, it's only 640x480. FYI - this is not a Windows UI

Using Python GTK GUI front end with C++ backend

一笑奈何 提交于 2021-02-09 07:00:23
问题 I have some C++ code and am now building a GUI for an application. In the past I've used python and pygtk for GUI programming and occasionally link to some C++ code to do some heavy lifting. I would like to continue that trend but have one question on how to do it in this case. Part of the C++ code gets images from a camera and I would like to display those images on the GUI. I've used libvlc in the past and could pass the xid from a DrawingArea to vlc to draw the video on. I would like to do

Using Python GTK GUI front end with C++ backend

穿精又带淫゛_ 提交于 2021-02-09 06:58:41
问题 I have some C++ code and am now building a GUI for an application. In the past I've used python and pygtk for GUI programming and occasionally link to some C++ code to do some heavy lifting. I would like to continue that trend but have one question on how to do it in this case. Part of the C++ code gets images from a camera and I would like to display those images on the GUI. I've used libvlc in the past and could pass the xid from a DrawingArea to vlc to draw the video on. I would like to do

Using Python GTK GUI front end with C++ backend

依然范特西╮ 提交于 2021-02-09 06:57:28
问题 I have some C++ code and am now building a GUI for an application. In the past I've used python and pygtk for GUI programming and occasionally link to some C++ code to do some heavy lifting. I would like to continue that trend but have one question on how to do it in this case. Part of the C++ code gets images from a camera and I would like to display those images on the GUI. I've used libvlc in the past and could pass the xid from a DrawingArea to vlc to draw the video on. I would like to do

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:

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

How to take snapshot in libVLC without showing the Media Player

馋奶兔 提交于 2021-01-28 00:50:30
问题 I am trying to take snapshot from VLC player using libVLC. But whenever I run the following code, a window opens showing the video streaming and I don't want to open the media player window while doing that. I am taking the video input from an IP camera using RTSP link. Is there a way where I can achieve my goal by keeping the media player window hidden? Here is my code that I've done till now. m = libvlc_media_new_location(inst, "IP/camera/rtsp/link"); mp = libvlc_media_player_new_from_media

libvlc - keep window opened between videos

ぃ、小莉子 提交于 2021-01-07 02:31:28
问题 I am using python wrapper around libvlc for playing videos. The problem is that after I stop previous video playback and start to play new one, window is reopened. I am trying to achieve state where window is still opened and I can change videos in this window without flash of the desktop behind it. import time import vlc i = vlc.Instance() media_player = i.media_player_new() media_player.set_fullscreen(True) m1 = i.media_new('vid1.mp4') m2 = i.media_new('vid2.mp4') media_player.set_media(m1)

libvlc - keep window opened between videos

半腔热情 提交于 2021-01-07 02:30:30
问题 I am using python wrapper around libvlc for playing videos. The problem is that after I stop previous video playback and start to play new one, window is reopened. I am trying to achieve state where window is still opened and I can change videos in this window without flash of the desktop behind it. import time import vlc i = vlc.Instance() media_player = i.media_player_new() media_player.set_fullscreen(True) m1 = i.media_new('vid1.mp4') m2 = i.media_new('vid2.mp4') media_player.set_media(m1)