libvlc

Passing file-like objects to ctypes callbacks

大城市里の小女人 提交于 2019-12-19 11:50:09
问题 I'm attempting to use the LibVLC Python bindings to play an in-memory stream (Python 3.4, Windows 7, LibVLC 3.x). Eventually, my aim is to feed data into a BytesIO instance which VLC will then read from and play. But for the moment, I decided to hack up a quick script to try reading from a file stream. Here's the code and traceback - to say I'm pretty new to ctypes would be an understatement so does anyone know what I'm doing wrong? import ctypes import io import sys import time import vlc

Proper calling convention of unmanaged DLL function

耗尽温柔 提交于 2019-12-19 11:16:17
问题 I'm trying to write a bare-bones ultra-simple light-weight wrapper for the LibVLC DLL Library. I don't need access to much, just the ability to play pause and stop media files. I'm looking at the documentation and this other link I found that explains an older version of LibVLC, but it's outdated for the most recent version. I also tried LibVLC.Net but it too is outdated and I can't find what I'm looking for in the source code to match it to the functions I'm trying to export. I have the

Reduce delay when playing rtp stream with libvlc on Android

放肆的年华 提交于 2019-12-18 18:27:13
问题 I am using LibVLC version 3.0.0 to play incoming mpeg2ts stream over rtp on Android. The code is the following: SurfaceView playerView; //Initialized somewhere before LibVLC libVlc = new LibVLC(context, arrayListOf("--file-caching=150", "--network-caching=150", "--clock-jitter=0", "--live-caching=150", "--clock-synchro=0", "-vvv", "--drop-late-frames", "--skip-frames")); MediaPlayer player = new MediaPlayer(libVlc); IVLCVout vout = player.getVLCVout(); vout.setVideoView(playerView); vout

Video rotation on android using LibVLC

橙三吉。 提交于 2019-12-18 17:55:12
问题 I'm using LibVLC to display video files. It's working fine so far, despite of the orientation. I'm able to get the orientation out of meta-data but don't really know how to force LibVLC to rotate it from landscape to portrait. It would be nice to get a hint for a workaround. Thanks! 回答1: I had a similar problem. Unfortunately LibVLC for android does not expose all features, so I had to change code in the jni layer to get it working. Here is how to do it: Edit libvlcjni.c, and find the

working with VLC smem

时光总嘲笑我的痴心妄想 提交于 2019-12-18 07:16:16
问题 I'm trying to do something like this post : Get frame from video with libvlc smem and convert it to opencv Mat. (c++) I can't quite understand the code in this part : sprintf(smem_options , "#transcode{vcodec=RV24}:smem{" "video-prerender-callback=%lld," "video-postrender-callback=%lld," "video-data=%lld," "no-time-sync}," , (long long int)(intptr_t)(void*)&cbVideoPrerender , (long long int)(intptr_t)(void*)&cbVideoPostrender //This would normally be useful data, 100 is just test data , (long

working with VLC smem

妖精的绣舞 提交于 2019-12-18 07:15:28
问题 I'm trying to do something like this post : Get frame from video with libvlc smem and convert it to opencv Mat. (c++) I can't quite understand the code in this part : sprintf(smem_options , "#transcode{vcodec=RV24}:smem{" "video-prerender-callback=%lld," "video-postrender-callback=%lld," "video-data=%lld," "no-time-sync}," , (long long int)(intptr_t)(void*)&cbVideoPrerender , (long long int)(intptr_t)(void*)&cbVideoPostrender //This would normally be useful data, 100 is just test data , (long

How to disable VLCMediaPlayer error AlertView?

南笙酒味 提交于 2019-12-18 05:13:07
问题 I am using VLCMediaPlayer class from the MobileVLCKit library to make an audio streaming application. My problem is that when error happens (e.g. incorrect stream url) it automatically alerts its own error message. In my case, I would like to disable that alert message and display my own one. 回答1: No need to remove this option from source! Simply pass the player option like this: NSArray *options = @[@"--extraintf="]; VLCMediaPlayer *player = [[VLCMediaPlayer alloc] initWithOptions:options];

Compile VLCKit on Mac OS 10.9

给你一囗甜甜゛ 提交于 2019-12-17 18:32:08
问题 I'm trying to compile VLCKit on Mac OS 10.9 following this wiki : https://wiki.videolan.org/VLCKit/ I have clone git://git.videolan.org/vlc-bindings/VLCKit.git then open VLCKit.xcodeproj in Xcode 5.1 and finally run "Build Everything". But build failed with thoses issues : Run VLC configure PhaseScriptExecution bootstrap /Users/myname/Library/Developer/Xcode/DerivedData/VLCKit- bktcaifqrsqwbodqlfdqgsmkkdeb/Build/Intermediates/VLCKit.build/Debug/Run\ VLC\ configure.build/Script

How to embed VLC media player to my Android App

别说谁变了你拦得住时间么 提交于 2019-12-17 15:26:21
问题 Is there a way to embed VLC media player to Android Application? I have several issues: 1) I have a video streaming Camera (from RTSP) and I cannot play its stream on my regular videoview panel (Sorry this video cannot be played error). However, I installed the VLC application for Android (beta version) and I was able to play it. 2) My main objective is to port a desktop java application which uses VLC plugin to Android. I want to accomplish this task with minimum effort (I have some time

How to extract audio/video clips using the libvlc API or FFmpeg API?

喜你入骨 提交于 2019-12-14 01:32:52
问题 I am supporting a C++/Qt application that uses libvlc to playback audio/video streams. My task is to enhance the application to allow the users to extract video clips by setting start / end times and capturing the video in between to a file. I've implemented the start/end markers, and can seek the audio/video to the correct times for playback. My problem now is to somehow capture this stream to a file in a variety of formats / compressions. I've been searching through the Doxygen links in