mpeg-4

Streaming Video (or Progressive Download) to the Droid Browser

落花浮王杯 提交于 2019-11-30 09:36:10
I am trying to stream video (or use progressive download) to a Motorola Droid Browser and am not having a lot of luck. With my iPhone, I can direct Safari to http://xxx.xxx.xxx/FileName.mp4 (which is an MPEG-4 video file), and Safari opens quicktime, and the video plays. However, with the Droid, I go to the same web address and am faced with a error stating "Cannot play video.... Sorry, this video is not valid for streaming to this device". When I direct the Droid's browser to a WMV file, it will fully download the video file and then play it in what appears to be the Droid video player if I

Extracting frames from MP4/FLV?

与世无争的帅哥 提交于 2019-11-28 15:38:36
问题 I know it's possible with FFMPEG, but what to do if I have a partial file (like without the beginning and the end). Is is possible to extract some frames from it? 回答1: The command ffmpeg -ss 00:00:25 -t 00:00:00.04 -i YOURMOVIE.MP4 -r 25.0 YOURIMAGE%4d.jpg will extract frames beginning at second 25 [-ss 00:00:25] stopping after 0.04 second [-t 00:00:00.04] reading from input file YOURMOVIE.MP4 using only 25.0 frames per second, i. e. one frame every 1/25 seconds [-r 25.0] as JPEG images with

Pause & Resume with Android MediaRecorder (API level < 24)

穿精又带淫゛_ 提交于 2019-11-27 14:32:08
While using MediaRecorder , we don't have pause/resume for API level below 24. So there can be a way to do this is: On pause event stop the recorder and create the recorded file. And on resume start recording again and create another file and keep doing so until user presses stop. And at last merge all files. Many people asked this question on SO, but couldn't find anyway to solve this. People talk about creating multiple media files by stopping recording on pause action and restarting on resume. So my question is How can we merge/join all media file programmatically? Note: in my case MPEG4

Live streaming through MP4

对着背影说爱祢 提交于 2019-11-27 11:07:28
I am working on an online TV service. One of the goals is for the video to be played without any additional browser plug-ins (except for Flash). I decided to use MP4, because it is supported by the majority of HTML5 browsers and by Flash (for fallback). The videos are transcoded from ASF on a server by FFMpeg. However, I found that MP4 cannot be live-streamed because it has a moov atom for metadata that has to specify the length. FFMpeg cannot directly stream mp4 to stdout, because it puts the moov at the end of the file. ( Live transcoding and streaming of MP4 works in Android but fails in

Pause & Resume with Android MediaRecorder (API level < 24)

不打扰是莪最后的温柔 提交于 2019-11-26 16:47:30
问题 While using MediaRecorder , we don't have pause/resume for API level below 24. So there can be a way to do this is: On pause event stop the recorder and create the recorded file. And on resume start recording again and create another file and keep doing so until user presses stop. And at last merge all files. Many people asked this question on SO, but couldn't find anyway to solve this. People talk about creating multiple media files by stopping recording on pause action and restarting on

Fetching the dimensions of a H264Video stream

一世执手 提交于 2019-11-26 15:50:35
I am trying to fetch the dimensions (Height and width) from a H264 stream. I know that to fetch the same details from a mpeg2 stream you have to look at the four bytes following the sequence header start code ((01B3)). Will the same logic work for H264? Would appreciate any help I get.. Cipi NO!!! You must run a complex function to extract video dimensions from Sequence Parameter Sets. How to do this? Well first you must write your own Exp-Golomb decoder, or find one online... in live555 source code somewhere there is one for example... Then you must get one SPS frame. It has NAL=0x67 (NAL is

Live streaming through MP4

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 15:25:59
问题 I am working on an online TV service. One of the goals is for the video to be played without any additional browser plug-ins (except for Flash). I decided to use MP4, because it is supported by the majority of HTML5 browsers and by Flash (for fallback). The videos are transcoded from ASF on a server by FFMpeg. However, I found that MP4 cannot be live-streamed because it has a moov atom for metadata that has to specify the length. FFMpeg cannot directly stream mp4 to stdout, because it puts

How to process raw UDP packets so that they can be decoded by a decoder filter in a directshow source filter

蹲街弑〆低调 提交于 2019-11-26 10:12:53
Long Story: There is an H264/MPEG-4 Source I can able to connect this source with RTSP protocol. I can able to get raw UDP packets with RTP protocol. Then send those raw UDP packets to a Decoder[h264/mpeg-4] [DS Source Filter] But those "raw" UDP packets can not be decoded by the Decoder[h264/mpeg-4] filter Shortly: How do I process those raw UDP data in order to be decodable by H264/ MPEG-4 decoder filter? Can any one clearly identify steps I have to do with H264/MPEG stream? Extra Info: I am able to do this with FFmpeg... But I can not really figure out how FFmpeg processes the raw data so

How to process raw UDP packets so that they can be decoded by a decoder filter in a directshow source filter

血红的双手。 提交于 2019-11-26 08:50:42
问题 Long Story: There is an H264/MPEG-4 Source I can able to connect this source with RTSP protocol. I can able to get raw UDP packets with RTP protocol. Then send those raw UDP packets to a Decoder[h264/mpeg-4] [DS Source Filter] But those \"raw\" UDP packets can not be decoded by the Decoder[h264/mpeg-4] filter Shortly: How do I process those raw UDP data in order to be decodable by H264/ MPEG-4 decoder filter? Can any one clearly identify steps I have to do with H264/MPEG stream? Extra Info: I

Fetching the dimensions of a H264Video stream

一笑奈何 提交于 2019-11-26 04:37:53
问题 I am trying to fetch the dimensions (Height and width) from a H264 stream. I know that to fetch the same details from a mpeg2 stream you have to look at the four bytes following the sequence header start code ((01B3)). Will the same logic work for H264? Would appreciate any help I get.. 回答1: NO!!! You must run a complex function to extract video dimensions from Sequence Parameter Sets. How to do this? Well first you must write your own Exp-Golomb decoder, or find one online... in live555