vlc

python-vlc won't start the player

拥有回忆 提交于 2019-12-20 02:32:15
问题 Ok here go .Im trying to play a video located online.I got the url ,which is the following: http://fsi.stanford.edu/sites/default/files/video_4.mp4 Its not something i will use in my application but Its just a sample file . Reading the examples for the python-vlc module i wrote the following code: import vlc Instance = vlc.Instance('--fullscreen') player = Instance.media_player_new() Media = Instance.media_new('http://fsi.stanford.edu/sites/default/files/video_4.mp4') Media.get_mrl() player

Convert rtsp-stream into http stream

偶尔善良 提交于 2019-12-19 10:32:35
问题 Often discussed but so far never working on windows with the current versions of vlc or ffmpeg. These are my stream's properties: How to do it with vlc or ffmpeg? I tried a lot. Way too much to list. 回答1: I use this to convert a remote RTSP source to a local HLS streaming with ffmpeg and it works ok: ffmpeg -i "rtsp://yourRtspStreamSource" -hls_time 3 -hls_wrap 10 "yourOutputDir/streaming.m3u8" Also I use -t and -stimeout options to control the timeout of that proccess. More info about HLS

Convert rtsp-stream into http stream

感情迁移 提交于 2019-12-19 10:32:01
问题 Often discussed but so far never working on windows with the current versions of vlc or ffmpeg. These are my stream's properties: How to do it with vlc or ffmpeg? I tried a lot. Way too much to list. 回答1: I use this to convert a remote RTSP source to a local HLS streaming with ffmpeg and it works ok: ffmpeg -i "rtsp://yourRtspStreamSource" -hls_time 3 -hls_wrap 10 "yourOutputDir/streaming.m3u8" Also I use -t and -stimeout options to control the timeout of that proccess. More info about HLS

HLS stream not working on Apple devices

不问归期 提交于 2019-12-19 09:19:55
问题 I have a live RTSP stream that i have managed to transcode to HLS via VLC. Now it works perfect on Android and on desktop browsers (via flash). But not on Apple (i can test it on iPad and desktop Safari on my virtual machine). I can see the player but when i press the 'play' button all i see is a black rectangle inside the player. On desktop Safari there is also a text 'Loading...' near the play/pause button and nothing else happens. My HTML: <video id="player" controls style="width:100%;

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

VLC remotely control from C#

风流意气都作罢 提交于 2019-12-18 15:12:30
问题 i'm trying to control the VLC Media Player from C#. I tried getting a handle on the window with the FindWindow() command from .Net but as i found out the name of the window changes every time a file is played. The biggest problem i have is sending wm_commands to vlc..This approach worked with Winamp and Windows Media Player but with VLC it appears that it won't work. I read that VLC can be controlled from a browser but i don't whant that...i've seen in it's settings that it has some hot keys

Transcoding MJPEG to FLV or MP4

我怕爱的太早我们不能终老 提交于 2019-12-18 12:47:10
问题 I want to transcode MJPEG stream that comes from IP camera (http://xx.yy.zz.tt:8080/video.cgi) to FLV or MP4 stream under Linux OS so that users can play the file using a web based Flash player such as Flowplayer. I discovered VLC for that purpose but I cannot figure out the exact command line string. I also need HTTP authentication feature since IP camera access is password protected. I also interested in any non-VLC solution if any (ffmpeg?). 回答1: appears VLC can do HTTP authentication.

How to playback MKV video in web browser

若如初见. 提交于 2019-12-18 12:15:20
问题 I am trying to make a MKV video with a MPEG4 video codec and AC3 audio codec available to be played online using Mozilla or Chrome. I have tried multiple methods including native HTML5, which plays back the video but no audio and from what I've read AC3 is a proprietary codec so it is not included in the supported codecs. The code for that was as follows: <video width='1024' height='768' controls autoplay> <source src="path_to_src" type='video/x-matroska'</video> I then tried to use the VLC

Playing YUV on VLC Player

本秂侑毒 提交于 2019-12-18 10:58:20
问题 When playing a raw video (.yuv) file on VLC Player. How can I tell VLC the width, height and frame-rate of the video? 回答1: Try this: vlc --demux rawvideo --rawvid-fps 25 --rawvid-width 1920 --rawvid-height 1080 --rawvid-chroma I420 input.yuv 来源: https://stackoverflow.com/questions/20882375/playing-yuv-on-vlc-player