mp4

ffmpeg PNG to mp4 - Black screen

江枫思渺然 提交于 2019-11-30 09:16:21
问题 I can create a mpg video using this line ffmpeg -f image2 -i 100%03d0.png movie.mpg But If I try creating an mp4 video I get a video with a black screen. ffmpeg -f image2 -i 100%03d0.png movie.mp4 My directory with figures looks like: 1000010.png,1000020.png,...1001260.png 回答1: Adding -pix_fmt yuv420p should solve the problem: ffmpeg -i input_%03d.png -pix_fmt yuv420p movie.mp4 From FFmpeg Wiki: "By default when using libx264, and depending on your input, ffmpeg will attempt to avoid color

Ipad MPMovieplayerController video loads but automatically pauses when played

自作多情 提交于 2019-11-30 09:06:29
I am trying to get the MPMovieplayerController to work. I load a video everything goes wel i even see the first frame but then it automatically pauses, if i press play it pauses again. In the simulator it works perfectly but on the ipad device it gives the problem. I can even seek through the video and i see the frame i seeked to but nothing plays. This is some output from the console: 2010-06-08 22:16:13.145 app[3089:207] Using two-stage rotation animation. To use the smoother single-stage animation, this application must remove two-stage method implementations. [Switching to thread 12803]

mp4 in safari fails with htaccess authentication

 ̄綄美尐妖づ 提交于 2019-11-30 07:44:51
On a dev site, i've been testing mp4 files for html5 play in safari. The native player loads and plays the mp4 files fine, even without the correct MIME type declaration. But, if I add AuthType Basic to my .htaccess the files fail sometimes fail to play and sometimes play in the quicktime player. After logging in with a valid user why would this directive stop mp4 files from playing correctly? still have the same problem. some people solved it, while adding the mime types to their .htaccess file (didn t work for me) : AddType video/ogg .ogv AddType video/mp4 .mp4 AddType video/mp4 .mov AddType

what is the codec for mp4 videos in python OpenCV

一曲冷凌霜 提交于 2019-11-30 06:55:29
fourcc = cv2.cv.CV_FOURCC(*'XVID') The above line is used for avi video. In the same fashion, which codec do we use for mp4 videos in Ubuntu? rayryeng The codec is H.264. One of these should work for you: fourcc = cv2.cv.CV_FOURCC(*'H264') #or #fourcc = cv2.cv.CV_FOURCC(*'X264') However, I should warn you that you'll probably need to have ffmpeg and the x264 libraries installed so since you are in Ubuntu, try doing this command in the terminal : sudo apt-get install ffmpeg x264 libx264-dev Also, check out this link from OpenCV tutorials for more details as to the kinds of FourCC codes

Using jcodec SequenceEncoder

你。 提交于 2019-11-30 05:19:38
I need to create video from images, I have seen jcodec and I think it is what I need: http://jcodec.org/ How do I add jcodec to my project? I have seen there is a version for android. Correct me if I am wrong, but I added jcodec-0.1.5.jar to my project under the libs folder. Then added SequenceEncoder.java and BitmapUtil.java from jcodec-android-0.1.7.zip to my package but when I add: public void encodeImage(Bitmap bi) throws IOException { encodeNativeFrame(BitmapUtil.fromBitmap(bi)); } It gives me error on package com.example.seqtest and asks me to configure build path. So how I use it, How

Android MediaCodec: Reduce mp4 video size

北慕城南 提交于 2019-11-30 05:02:46
I am looking for a way to "compress" an mp4 video. To achieve this, I want to reduce the resolution of the video and / or reduce FPS. After long research, I think the way to do it is to use MediaCodec and related APIs as follows : -> MediaExtractor to extract encoded media data from a mp4 file. -> MediaCodec (Decoder): Decode each frame for later processing. -> MediaCodec (Encoder): At this point, I guess that's where we should establish MediaFormat parameters such as video resolution, which should help us to reduce the final size of the mp4 file. -> MediaMuxer for generate mp4 file (MinSDK 18

How to add a MOOV atom in a mp4 video file

ε祈祈猫儿з 提交于 2019-11-30 03:45:55
I am working on live device to server streaming in android. I am able to send data in bytes on server but when i play that file during recording on server VLC say that MOOV atom not found. After a lot of workaround i found that MOOV atom of a mp4 file generates in the end. But i have to play that file on server while recording means live. I go through the source code of SPYDROID and SIPDROID but non of them is working. I tried to add move atom on serverside using FFMPEG but didn't get any success. Any one have any idea how can i achieve this. Thanx in advance. You got a problem. The 'moov' box

m4a mp4 file format what's the difference or are they the same?

冷暖自知 提交于 2019-11-30 03:23:05
问题 I've looked and can't seem to find a concrete answer. My client wants to play sound clips on his website, currently he has over 2000 clips which are in m4a format. A lot of the audio players I have looked at say they support mp4 but no mention of m4a. From the wiki on mp4 it says they are both the same except that m4a is a container for mp4 or something along those lines. So my question is can i play m4a files with an mp4 player? The alternative is for my client to convert all his files to

Android VideoView Cannot play video mp4

白昼怎懂夜的黑 提交于 2019-11-30 03:13:20
问题 I used the Android VideoView to play a video file via HTTP. My problem is my phone prompts "Cannot play video Sorry, this video cannot be played." when playing a mp4 file from HTTP. But it is ok when playing another mp4 video file. When used in a newer phone, like Samsung Galaxy S, my program can play both mp4 video file from HTTP successfully. My phone: Samsung GT-S5830 Android version: 2.3.4 Display: 320x480. Video file 1 (OK): Video Codec: H.264 Resolution: 640x360 Others: 16:9, 340kbps,

Color Correcting MP4/Webm videos

≡放荡痞女 提交于 2019-11-30 02:25:05
I have a large video that features some animations too complex/long for other methods of embedding (gif, png sequence, etc.) and we are running into an issue with the colors in the video. Essentially we are including the background of the web page as part of the video in order to prevent the appearance of any edges on the video when it plays. We are trying to get the gradient background on the video to match that on the webpage, but the colors are WAY off. Are there any recommendations on how to color correct an MP4 video? Or any html5-safe ways to do video with an alpha channel? Unfortunately