streaming

Is mp4 stream able with ffserver?

谁都会走 提交于 2019-12-24 02:12:52
问题 Days I trying to stream mp4 file with ffserver. I read many questions like these: https://superuser.com/questions/563591/streaming-mp4-with-ffmpeg Begin stream simple mp4 with ffserver http://ffmpeg.gusari.org/viewtopic.php?f=12&t=1190 http://ffmpeg.org/pipermail/ffserver-user/2012-July/000204.html HTML5 - How to stream large .mp4 files? Finally I cant understand is mp4 stream able or not? Is it a way to do this with ffserver? Is there any sample?I read helps but they most about live stream

Stopping Tweepy stream after a duration parameter (# lines, seconds, #Tweets, etc)

瘦欲@ 提交于 2019-12-24 01:56:23
问题 I am using Tweepy to capture streaming tweets based off of the hashtag #WorldCup, as seen by the code below. It works as expected. class StdOutListener(StreamListener): ''' Handles data received from the stream. ''' def on_status(self, status): # Prints the text of the tweet print('Tweet text: ' + status.text) # There are many options in the status object, # hashtags can be very easily accessed. for hashtag in status.entries['hashtags']: print(hashtag['text']) return true def on_error(self,

RTSP Client implementation on Android

泄露秘密 提交于 2019-12-24 01:54:11
问题 I have seen many questions related to this. Nevertheless there is not an answer for mine I think. I would like to use an already coded RTSP Client on Android to use with MediaCodec in order to capture a RTSP stream in H264 to then decode and display it. I have used VideoView and MediaPlayer which are well-known to support RTSP streaming in the .setDataSource method (file or rtsp/http path) (unlike MediaExtractor which only supports file or http), but the latency is to high for my purposes. I

RTSP Client implementation on Android

那年仲夏 提交于 2019-12-24 01:54:03
问题 I have seen many questions related to this. Nevertheless there is not an answer for mine I think. I would like to use an already coded RTSP Client on Android to use with MediaCodec in order to capture a RTSP stream in H264 to then decode and display it. I have used VideoView and MediaPlayer which are well-known to support RTSP streaming in the .setDataSource method (file or rtsp/http path) (unlike MediaExtractor which only supports file or http), but the latency is to high for my purposes. I

Fix 3gp header for a streamed video through socket

天大地大妈咪最大 提交于 2019-12-24 00:34:42
问题 I have a problem with my streamed video from Android to my php server. I can't play my video whatever player i use because the moov atom is missing. I followed the tutorial of Mattakis to stream my video and a little php script to re-encode the header of the received 3gp video. Android side: s = new Socket("192.168.1.5", 6000); ParcelFileDescriptor pfd= ParcelFileDescriptor.fromSocket(s); recorder.setAudioSource(MediaRecorder.AudioSource.MIC); recorder.setVideoSource(MediaRecorder.VideoSource

Streaming audio from an Android device to another

亡梦爱人 提交于 2019-12-24 00:23:41
问题 How would I go about streaming audio from one device to another over the internet? I'm aware of sending basic data using Java sockets, but wondering how to: Start streaming midway through a file (say, during the middle of a song) What format is needed for the data being sent. MediaPlayer can take a url as a data source, so how should the audio be represented when being sent from the server side? Thanks 回答1: Having implemented a music streaming app, I can share a little with you. If you want

XSLT 3.0 partial streaming (Saxon)

旧城冷巷雨未停 提交于 2019-12-24 00:16:13
问题 I have a big XML file (6 GB) with this kind of tree: <Report> <Document> <documentType>E</documentType> <person> <firstname>John</firstname> <lastname>Smith</lastname> </person> </Document> <Document> [...] </Document> <Document> [...] </Document> [... there are a lot of Documents] </Report> So I used the new XSLT 3.0 streaming feature, with Saxon 9.6 EE. I don't want to have the streaming constrains once in a Document. This is why I tried to used copy-of() . I think that, what I want to do,

ASP.NET MVC: file response streaming?

牧云@^-^@ 提交于 2019-12-23 23:26:17
问题 When I return a FilePathResult from an MVC action method, which of the following happens (assuming, if it matters, that the file to which the result points is very large): The file gets loaded in its entirety into the server's memory, and then sent to the client. The file is somehow streamed to the client, in such a way that it is not at any point fully loaded into the server's memory. Something else. If the answer is 1, is it possible to have the file sent as in 2 instead by returning a

video streaming infrastructure

杀马特。学长 韩版系。学妹 提交于 2019-12-23 22:45:16
问题 We would like to set-up a live video-chat web site and are looking for basic architectural advice and/or a recomendation for a particular framework to use. Here are the basic features of the site: Most streams will be broadcast live from a single person with a web cam, etc., and viewed by typically 1-10 people, although there could be up to 100+ viewers on the high side. Audio and video do not have to be super-high quality, but do need to be "good enough". The main point is to convey the

How can i decode an mp3 and encode it as aac with ezstream

谁都会走 提交于 2019-12-23 22:16:30
问题 This is my current ezstream config <ezstream> <url>http://localhost:8000/test</url> <sourcepassword>password</sourcepassword> <format>MP3</format> <filename>playlist.m3u</filename> <reencode> <enable>1</enable> <encdec> <format>MP3</format> <match>.mp3</match> <decode>madplay -b 16 -R 44100 -S -o raw:- "@T@"</decode> <encode>lame --preset cbr 32 -r -s 44.1 --bitwidth 16 - -</encode> </encdec> </reencode> </ezstream> It's mounting to an icecast server, its decoding and encoding mp3 to a lower