mp4

Does PHP have an integrated function to read metadata from an mp4 file?

喜你入骨 提交于 2019-12-09 14:00:15
问题 I want to know if PHP has a function to read metadata from an mp4 video-audio file. I've found some external classes that do that, but first of use them I would want to know if are necessary or PHP already have some method for do that. Classes that I've found are php-mp4info and getID3() , which of them is better? 回答1: Best tool I have used is: https://code.google.com/p/php-reader/ have a look...also supports other forms of media. Edit: PHP-Reader seems to be no longer maintained (project has

How to get the the single images of an mp4-Movie in Java

▼魔方 西西 提交于 2019-12-09 11:17:28
问题 I want to do some image analysis on a video that's stored in .mp4 format. Therefore I need a way to just get the images of this movie in Java. I goolged a lot and found some libraries like jcodec and jaad. BUT I wasn't able to get the things running with these libraries. And as I found out, there were examples (at least I found none) that showed my usecase. Can you help me? Do you know any library that can do what I need and is running at least on Win7 64 bit. Or do you know how to accomplish

ffmpeg screen blending mode makes transparent png pink

◇◆丶佛笑我妖孽 提交于 2019-12-09 05:50:53
问题 I have a sequence of PNG files with transparency - I'd like screen-blend them on top of a video ffmpeg -i video.mp4 -i "Images/%03d.png" -filter_complex "blend=all_mode='screen':all_opacity=0.7" output.mp4 the images are indeed merged on top of the video but with a pink overlay ?! I also tried to add "-vcodec png" and "-vcodec libx264" and to try a .mov video but got the same result. ffmpeg version N-58061-g5231eec Copyright (c) 2000-2013 the FFmpeg developers built on Nov 14 2013 05:35:15

How to get better quality converting MP4 to WMV with ffmpeg?

怎甘沉沦 提交于 2019-12-09 04:08:40
问题 I am converting MP4 files to WMV with these two rescaling commands: ffmpeg -i test.mp4 -y -vf scale=-1:360 test1.wmv ffmpeg -i test.mp4 -y -vf scale=-1:720 test2.wmv I've also tried: ffmpeg -g 1 -b 16000k -i test1.mp4 test1.wmv However , the .wmv files that are produced are " blocky and grainy " as you can see here in a small section of a video screenshot: These are the sizes: test.mp4 - 106 MB test1.wmv - 6 MB test2.wmv - 16 MB How can I increase the quality/size of the resulting .wmv files

Chrome won't play .mp4 file

只愿长相守 提交于 2019-12-09 00:43:57
问题 I'm trying to get HTML5 video to work. I am working off a local server. <video id="headervideo" controls> <source src="<?php echo base_url(); ?>assets/home.mp4" type="video/mp4"> Your browser does not support the video tag. </video> However, the file refuses to play. When I access it with an absolute path it simply shows the player with the play button greyed out. What could be the issue here? 回答1: Browsers like Internet Explorer and Safari support .H264 codec which plays mp4 files. Firefox

FFMPEG: How to encode for seekable video at high key frame interval

心已入冬 提交于 2019-12-08 16:20:08
问题 I'm looking for an ffmpeg comand that's best used if I'm controlling a video to mouse control on "requestAnimationFrame". Basically, it needs to be fast-seeking and encoded at a high key frame interval. I can't seem to nail down what parameters aid in fast-seeking and high key frames. thanks! Johnny 回答1: If you're encoding x264 (mp4), try (docs): ffmpeg -i file -c:v libx264 -x264opts keyint:25 [preset/rate control options] out.mp4 If you're encoding vp9 (webm), try (docs): ffmpeg -i file -c:v

directshow RedenStream Fails for Capture

故事扮演 提交于 2019-12-08 11:52:03
问题 I am making an Directshow Application to Capture MP4 video. I use below graph to do so. Input Stream --> MJPEG Decompressor --> x264vfw H.264/MPEG-4 AVC Codec --> GDCL Mpeg-4 Multiplexor --> File Writer in my directshow application , i created the required filters and connect them on graph , at end i do file writer operation and redder stream using pin as capture. that part of my code is as below. GUID guid; guid = MEDIASUBTYPE_x264; hr = gcap.pBuilder->SetOutputFileName(&guid, gcap

ffmpeg/libx264 C API: frames dropped from end of short MP4

佐手、 提交于 2019-12-08 11:00:07
问题 In my C++ application, I am taking a series of JPEG images, manipulating their data using FreeImage, and then encoding the bitmaps as H264 using the ffmpeg/libx264 C API. The output is an MP4 which shows the series of 22 images at 12fps. My code is adapted from the "muxing" example that comes with ffmpeg C source code. My problem: no matter how I tune the codec parameters, a certain number of frames at the end of the sequence which are passed to the encoder do not appear in the final output.

How to add a watermark to a video in Android/Java

匆匆过客 提交于 2019-12-08 09:50:59
问题 I'm trying to, given a video file, generate a new video with a watermark. In my case, I don't the watermark to be over the video, but as a band over it. For example if the video size is 100x100 I want to generate a 100x130 video with a custom image in the 100x30 top region. What is the easiest way of achieving this? Thanks 回答1: use this code that will help you to make watermark in your video: String[] complexCommand2 = {"ffmpeg", "-y", "-i", "/sdcard/videokit/in.mp4", "-i", "/sdcard/videokit

How to Merge Multiple MP4 Videos files in single file

醉酒当歌 提交于 2019-12-08 05:57:23
问题 I need to merge the multiple MP4 videos file to a single file using java. Can any one tell me how to merge videos. Your help would be appreciated. 回答1: Since you do not mention format it is hard to give advice, but for mp4 this seems to be a good alternative. Even includes example of merging files. Code taken from link: MovieCreator mc = new MovieCreator(); Movie video = mc.build(Channels.newChannel(AppendExample.class.getResourceAsStream("/count-video.mp4"))); Movie audio = mc.build(Channels