mp4

MFCreateFMPEG4MediaSink does not generate MSE-compatible MP4

拟墨画扇 提交于 2019-12-21 22:00:38
问题 I'm attempting to stream a H.264 video feed to a web browser. Media Foundation is used for encoding a fragmented MPEG4 stream ( MFCreateFMPEG4MediaSink with MFTranscodeContainerType_FMPEG4 , MF_LOW_LATENCY and MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS enabled). The stream is then connected to a web server through IMFByteStream . Streaming of the H.264 video works fine when it's being consumed by a <video src=".."/> tag. However, the resulting latency is ~2sec, which is too much for the

Get MP4 stream lengths

好久不见. 提交于 2019-12-21 21:03:13
问题 I'm working in an app in wich we use IMediaDet to get stream lengths. Now we're starting to work with MP4 containers. The problem is, when I try an IMediaDet::put_fileName() with the MP4 file, I get HRESULT = -2147024770 (ERROR_MOD_NOT_FOUND). Using a comercial mp4 demuxer, I see the video stream uses mpg2 encoding. My questions: How to get the stream length of a stream inside a MP4 container? Is there a way to make IMediaDet accept these files? Is there a way to point what demuxer IMediaDet

WhatsApp video as Gif sharing on Android programatically

ⅰ亾dé卋堺 提交于 2019-12-21 09:36:09
问题 How can i convert a mp4 video file to a WhatsApp gif file (it's simple showed as gif inside app UI but internally is a specific mp4 format) to be use in android share intent, being recognized as this type of media by whatsapp chat app??? I search a lot but i can't find any information from WhatsApp docs (they don't have this kind of doc anyway) or any dev with the same problem as i. WHAT I HAVE: I have discovered that at beginning of whatsapp "gif" mp4 files is present a loop value if you

extract audio to mp3 from mp4 using c++ (not executing ffmpeg with args)

核能气质少年 提交于 2019-12-21 05:39:07
问题 how can i programmatically convert ( extract the audio channel ) from mp4 video file format ? i just can't find any thing in the web , for using c++ . i what to dynamically link external engine that i can via c++ take mp4 file and convert it to mp3 file. and not passing command line args to LAME or MPLAYER or FFMPEG ? 回答1: You can try using ffmpeg to do it in c or c++. Here is the normal flow of steps. Init ffmpeg using av_register_all(); Open input file using avformat_open_input( &informat,

Streaming webcam video in Flash using MP4 encoding

孤街浪徒 提交于 2019-12-21 05:35:12
问题 One of the features of the Flash app I'm working on is to be able to stream a webcam to others. We're just using the built-in webcam support in Flash and sending it through FMS. We've had some people ask for higher quality video, but we're already using the highest quality setting we can in Flash (setting quality to 100%). My understanding is that in the newer flash players they added support for MPEG-4 encoding for the videos. I created a simple test Flex app to try and compare the video

Streaming an mp4 through a php file progressively

ⅰ亾dé卋堺 提交于 2019-12-21 04:55:20
问题 I'm working on a more secure streaming method for our video player. Because each file requires special token authentication and also only allows each token to be loaded once, I'm running MP4 through a php container. This works perfectly inside a HTML5 video tag and prevents users from easily downloading the source. I'm adapting some code from here <?php include('...'); //include site functions /* Here I connect to the database, and retrieve the location of the video which is returned as

Mp4 video rotation metadata

早过忘川 提交于 2019-12-21 04:52:04
问题 I have developed an android/ios video sharing app that records a video and uploads it to amazon s3. For compatibility both android/ios record in mp4 format with H264/AAC codecs. The users might shoot portrait or landscape and the app, getting info from the sensors, set the rotation of the file (mediarecorder.setOrientationHint on android and something similar on iOS) The videos from iOS play fine on android and vice versa. The problem is when i want to play a video on a web browser. The

Mp4 video rotation metadata

社会主义新天地 提交于 2019-12-21 04:51:12
问题 I have developed an android/ios video sharing app that records a video and uploads it to amazon s3. For compatibility both android/ios record in mp4 format with H264/AAC codecs. The users might shoot portrait or landscape and the app, getting info from the sensors, set the rotation of the file (mediarecorder.setOrientationHint on android and something similar on iOS) The videos from iOS play fine on android and vice versa. The problem is when i want to play a video on a web browser. The

How to wrap H264 into a mp4 container?

两盒软妹~` 提交于 2019-12-21 01:18:19
问题 I have a program generating a bunch of raw H264 frames and would like to place that into a mp4 container for streaming. Anyone know how to do that? I was thinking I'd use ffmpeg however, this needs to be used commercially and it seems like ffmpeg can only do this through it's x264 library... which uses a GPL license. Thank you! 回答1: libmp4v2 is under the MPL and can be used as part of a larger work commercially. It is much lighter than libavformat also. 回答2: If you're looking for the FFMPEG

Can't Download from youtube

和自甴很熟 提交于 2019-12-20 14:46:15
问题 I have a script that downloads mp4 files from youtube. What it does is to generate link of the form http://youtube.com/get_video?video_id=*VIDEO_ID*&&t=*THE_TOKEN*=&fmt=18&asv=2, but it doesn't work anymore (noticed it today). What do you think? 回答1: Instead of trying to use get_video to get the video, try parsing fmt_url_map (format-url map) instead. You should be able to find the fmt_url_map in the same place you found the token (like in the flashvars of the YouTube flash video player or