vlc

YUV420 to BGR image from pixel pointers

拜拜、爱过 提交于 2019-12-02 00:05:38
I am capturing raw output from a decoder which is YUV420. I have got three pointers: Y(1920*1080), U(960*540) and V(960*540) separately. I want to save the image as JPEG using OpenCV. I tried using cvtcolor of opencv cv::Mat i_image(cv::Size(columns, rows), CV_8UC3, dataBuffer); cv::Mat i_image_BGR(cv::Size(columns, rows), CV_8UC3); cvtColor(i_image, i_image_BGR, cv::COLOR_YCrCb2BGR); cv::imwrite("/data/data/org.myproject.debug/files/pic1.jpg", i_image_BGR); But, here is the output image which is saved: Can someone please suggest what is the proper way of saving the image? YUV Binary files for

Automating VideoLan's VLC using Delphi

对着背影说爱祢 提交于 2019-12-01 23:45:38
I've generated a type-library import unit from v.2.2.1 of VideoLan's VLC player and embedded the resulting plug-in component in a simple Delphi (D7 and XE8) form. Code extract is below. The basic functionality of the component is fine - I can play a (local) .MP4 file, stop it, speed it up and down, etc without any problem. However, there is one basic function which is not working, namely volume control. The plug-in displays a v. simple (compared with the one in VLC running as an app) toobar at the bottom with two track-bars, one to display + change the playing position in the video and the

YUV420 to BGR image from pixel pointers

回眸只為那壹抹淺笑 提交于 2019-12-01 22:17:28
问题 I am capturing raw output from a decoder which is YUV420. I have got three pointers: Y(1920*1080), U(960*540) and V(960*540) separately. I want to save the image as JPEG using OpenCV. I tried using cvtcolor of opencv cv::Mat i_image(cv::Size(columns, rows), CV_8UC3, dataBuffer); cv::Mat i_image_BGR(cv::Size(columns, rows), CV_8UC3); cvtColor(i_image, i_image_BGR, cv::COLOR_YCrCb2BGR); cv::imwrite("/data/data/org.myproject.debug/files/pic1.jpg", i_image_BGR); But, here is the output image

is there any command to pause, stop and close vlc player from command line?

可紊 提交于 2019-12-01 22:03:38
问题 Well i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches. here is the code processArgs.push("--extraintf"); processArgs.push("rc"); //Remote control processArgs.push("--rc-fake-tty"); //Use terminal as output processArgs.push("screen://"); processArgs.push(":screen-fps=15"); processArgs.push(":screen-caching=100"); processArgs.push(":sout=#transcode{venc=x264{bframes=0,nocabac,ref=1,nf,level

Playing RTSP stream in VLC player

一世执手 提交于 2019-12-01 21:16:30
I am trying to make a simple rtsp streaming server in java. The server is able to stream the video properly to the custom written player. The problem I that I am not able to play the same stream in vlc media player. When I start the vlc media player and enter the streaming details, my server is displaying the following request made by vlc: OPTIONS rtsp://192.168.2.8:8210/movie.3gp RTSP/1.0 CSeq: 1 User-Agent: VLC media player (LIVE555 Streaming Media v2010.01.07) In response, I am sending the following to the vlc player: RTSP/1.0 200 OK Supported: play.basic, con.persistent CSeq: 1 Server:

is there any command to pause, stop and close vlc player from command line?

╄→гoц情女王★ 提交于 2019-12-01 21:05:48
Well i have an adobe air which runs vlc-player at background as service. i check that in Windows Task Manager , the service runs when air application launches. here is the code processArgs.push("--extraintf"); processArgs.push("rc"); //Remote control processArgs.push("--rc-fake-tty"); //Use terminal as output processArgs.push("screen://"); processArgs.push(":screen-fps=15"); processArgs.push(":screen-caching=100"); processArgs.push(":sout=#transcode{venc=x264{bframes=0,nocabac,ref=1,nf,level=13,crf=24,partitions=none},vcodec=h264,fps=15,vb=3000,width=800,height=600,acodec=none}:duplicate{dst

How to capture microphone input in VLC?

纵然是瞬间 提交于 2019-12-01 15:12:58
问题 I'm trying to capture microphone input in VLC media player via the http interface and stream this but so far I have arrived at nothing. Is this actually possible? 回答1: Which platform? I'm on Mac so i know for sure this is possible with VLC 2.0 for the other platforms this should work as well. Haven't tested those commands though. Mac: Use VLC 2.0.0 or later and utilize the qtsound module: vlc -vvv qtsound:// Win: Use sth like: vlc dshow:// :dshow-vdev="None" :dshow-adev="Your Audio Device"

how to set transparent opacity to panel

断了今生、忘了曾经 提交于 2019-12-01 12:48:44
how do i set panel transparent like opacity to 0. i set the panel by program and it was on top of video player. the code is like this Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click ', AxVLCPlugin21.Click Dim panelx As New Panel panelx.Visible = True panelx.Size = New Size(AxVLCPlugin21.Width, CInt(AxVLCPlugin21.Height / 2)) panelx.BackColor = System.Drawing.Color.Transparent AxVLCPlugin21.Controls.Add(panelx) panelx.BringToFront() 'AddHandler panelx.DoubleClick, AddressOf panelx_click End Sub the result is like this then i try to play the video it only show

HLS stream not working on Apple devices

两盒软妹~` 提交于 2019-12-01 08:57:26
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%; height:100%"> <source src="http://178.79.164.114/playlist.m3u8" type="application/x-mpegURL"> </video> The

Is sprop-parameter-sets or profile-level-id the SDP parameter required to decode H264?

只谈情不闲聊 提交于 2019-11-30 23:52:36
I'm trying to understand what is the required parameter in SDP to be able to decode H264 from RTP packets. This is an related to this question , for the answer to that one works only in small number of cases. Example I am streaming from VLC with the following command. vlc -vvv sample_video/big_buck_bunny_480p_h264.mov --sout '#transcode{vcodec=h264,vb=700,fps=20,scale=0.25,acodec=none}:rtp{dst=10.5.110.117,port=5004,ttl=1}' This transcodes the video to: Bitrate: 700kbps Frame rate: 20 per second Resolution: 25% of the original The receiver correctly accepts and interprets the stream with the