video-streaming

Is it possible to stream MP4 video file through RTSP protocol?

孤街醉人 提交于 2020-01-07 05:25:11
问题 I have created RTSP Server. Client is VLC Media Player. It connects with my server in the following way: OPTIONS rtsp://192.168.1.6:5554/camera RTSP/1.0 CSeq: 2 User-Agent: LibVLC/2.2.4 (LIVE555 Streaming Media v2016.02.22) RTSP/1.0 200 OK Session: 698955009;timeout=60 Expires: 0 Server: RTSP Camera Server (Android) ver. 1.8 Public: DESCRIBE,SETUP,TEARDOWN,PLAY,PAUSE,GET_PARAMETER,SET_PARAMETER Cache-Control: no-cache DESCRIBE rtsp://192.168.1.6:5554/camera RTSP/1.0 CSeq: 3 User-Agent: LibVLC

Android Chromecast Companion Library - set TextTrackStyle error 2103

你。 提交于 2020-01-07 03:51:08
问题 I'm using CastCompanionLibrary-Android and I'm trying to set custom TextTrackStyle for the captions. I'm setting this TexTextStyle to the MediaInfo while I'm creating it: // set CC style TextTrackStyle textTrackStyle = new TextTrackStyle(); textTrackStyle.setBackgroundColor(Color.parseColor("#FFFFFF")); textTrackStyle.setForegroundColor(ContextCompat.getColor(mContext, R.color.blue)); MediaInfo mediaInfo = new MediaInfo.Builder(url) .setStreamDuration(movieVideoItem.getDuration())

Releasing mediaplayer and stopping it onPause and onResume gives error in Android

心不动则不痛 提交于 2020-01-07 02:50:31
问题 i m using videoView and mediaplayer but stopping mediaplayer in onPause and onResume gives me error: static MediaPlayer mediaPlayer; private VideoViewCustom videoView; @Override public void onCreate(final Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_detailvideo); context = this; videoView = (VideoViewCustom) findViewById(R.id.videoplayer); //initialize media player mediaPlayer = new MediaPlayer(); videoView.setOnPreparedListener(new

Video streaming over RTP using gstreamer

牧云@^-^@ 提交于 2020-01-06 07:24:42
问题 I am trying to stream a video file using gstreamer from one device to another over RTP. At the sender side I am using the following command : gst-launch filesrc location=/home/kuber/Desktop/MELT.MPG ! mpegparse ! rtpsend ip=localhost But this gives the following error : no element "rtpsend" , I downloaded all the rtp tools and still the same error. Am I using rtpsend in some wrong way? Also can someone give me the command line code for streaming video file(locally stored in my laptop and not

How to query the Video Capabilities of an Android device?

為{幸葍}努か 提交于 2020-01-06 07:15:11
问题 public void getCodecInfo() { int numCodecs = MediaCodecList.getCodecCount(); for (int i = 0; i < numCodecs; i++) { MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i); if (!codecInfo.isEncoder()) { continue; } String[] types = codecInfo.getSupportedTypes(); for (int j = 0; j < types.length; j++) { MediaCodecInfo.CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(types[j]); Log.d("CodecCapabilities", new Gson().toJson(capabilities)); //MediaCodecInfo.VideoCapabilities

How to query the Video Capabilities of an Android device?

独自空忆成欢 提交于 2020-01-06 07:15:09
问题 public void getCodecInfo() { int numCodecs = MediaCodecList.getCodecCount(); for (int i = 0; i < numCodecs; i++) { MediaCodecInfo codecInfo = MediaCodecList.getCodecInfoAt(i); if (!codecInfo.isEncoder()) { continue; } String[] types = codecInfo.getSupportedTypes(); for (int j = 0; j < types.length; j++) { MediaCodecInfo.CodecCapabilities capabilities = codecInfo.getCapabilitiesForType(types[j]); Log.d("CodecCapabilities", new Gson().toJson(capabilities)); //MediaCodecInfo.VideoCapabilities

How to make a HLS video player from my custom make DASH like video player?

牧云@^-^@ 提交于 2020-01-06 07:13:16
问题 I'm making a web video player which can change the video type from 2d to 3d, video quality from 2160p to 144p, video fps from 60fps to 5fps, audio from english to tamil and subtitles from off to other languages. I cannot make my video player work on IOS because IOS supports HLS only. So I need guidance to how my make a HLS video player which will operate EXACTLY like my DASH like video player. I was able to make my DASH like video player from this demo: http://nickdesaulniers.github.io/netfix

Embed Audio, Video in Python GUI

南楼画角 提交于 2020-01-06 04:40:07
问题 I am working on a project that requires me to display some live video feeds from networked cameras and play some unrelated streamed OR stored audio files as well. All the filepaths are stored in a MySQL database (although I could use something other than MySQL if that'll make things easier). My question is this: what Python GUI libraries can I take advantage of, in order to display the video and play the audio? I also need to display some other frames with some text, etc in them. Can anyone

Streaming a video on iPhone and then storing it on the device

て烟熏妆下的殇ゞ 提交于 2020-01-06 04:16:05
问题 I've been told that some apps have video streaming which streams initially and when completely downloaded the video is stored to the user's device for quick and internet-free subsequent viewing. Firstly, is this possible? Secondly, could you point me towards resources demonstrating how it could be done, or possibly offer some insight to get me started? Thanks friends. 回答1: good tutorial on how to stream video: http://buildmobilesoftware.com/2010/08/09/how-to-stream-videos-on-the-iphone-or

RTMP stream plays sound for 1 second, then stops - no video at all

拈花ヽ惹草 提交于 2020-01-05 10:34:58
问题 I'm using JWPlayer 6.8 (latest) to play RTMP streams. The example page code is as simple as: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>JWPlayer Stream Test</title> <script type="text/javascript" src="jwplayer/jwplayer.js"></script> </head> <body> <div id="canvas"></div> <script type="text/javascript"> jwplayer('canvas').setup({ file : "stream.smil", width : 1024, height : 768 }) </script> </body> </html> The SMIL manifest: <smil> <head> <meta base="rtmp://192.168.1.160:1340