mp4

C++ FFmpeg distorted sound when converting audio

醉酒当歌 提交于 2020-01-12 05:51:09
问题 I'm using the FFmpeg library to generate MP4 files containing audio from various files, such as MP3, WAV, OGG, but I'm having some troubles (I'm also putting video in there, but for simplicity's sake I'm omitting that for this question, since I've got that working). My current code opens an audio file, decodes the content and converts it into the MP4 container and finally writes it into the destination file as interleaved frames. It works perfectly for most MP3 files, but when inputting WAV

HTML5 video: ffmpeg-encoded MP4 not playing in any browser (plays in VLC though)

六眼飞鱼酱① 提交于 2020-01-12 05:47:30
问题 I am trying to serve HTML5 video in MP4 and WEBM fomats. I cannot get all browsers to work though: Browsers which support WEBM (Chrome desktop, Firefox desktop) play the videos fine. Browsers which use MP4 are not working (IE, Safari, Android). WEBM is being served as video/webm . MP4 is being served as video/mp4 . Minimal JSFiddle at: http://jsfiddle.net/#&togetherjs=5Ql5MmrV4j Browser errors: IE11: 11.0.9600.17126 / 11.0.9 KB2957689 Error: Unsupported video type of invalid file path Android

Create mp4 files on Android using Jcodec

扶醉桌前 提交于 2020-01-11 20:00:28
问题 i have some troubles with writing mp4 files on Android using MediaRecorder and Jcodec, here is my code public class SequenceEncoder { private final static String CLASSTAG = SequenceEncoder.class.getSimpleName(); private SeekableByteChannel ch; private byte[] yuv = null; private ArrayList<ByteBuffer> spsList; private ArrayList<ByteBuffer> ppsList; private CompressedTrack outTrack; private int frameNo; private MP4Muxer muxer; ArrayList<ByteBuffer> spsListTmp = new ArrayList<ByteBuffer>();

Show Video on iPhone/iPad through PHP

半世苍凉 提交于 2020-01-11 13:39:20
问题 I would like to show an mp4 through the video tag and the source URL of the video is a URL to a YII application. I was using Yii:app->request->sendFile before but the video wasn't working on the iPad/iPhone so now I'm trying to send the headers myself using the code below but still not working. $finfo = finfo_open(FILEINFO_MIME_TYPE); $file_path = "video.mp4"; $file_mime_type = finfo_file($finfo, $file_path); $file_size = filesize($file_path); header("HTTP/1.1 206 Partial Content"); header(

MP4 / ISO 14496-12 : How do you find the video and audio access units?

▼魔方 西西 提交于 2020-01-11 08:09:09
问题 I am writing a tool for inspecting MP4 files (aka ISO base media file format , ISO 14496 part 12). I can interpret the majority of the boxes listed in ISO 14496-12 that are generated by OSS. I have yet to figure out how to extract individual video access units and audio access units. I'm reasonably confident that the H.264 video in the 'mdat' box does not have the ISO 14496-10 Annex B "0x000001" prefix on the NAL units. I have experimented with interpreting the SampleToChunkBox('stsc'),

Android: cannot play mp4 video

限于喜欢 提交于 2020-01-11 05:27:04
问题 I'm trying to play mp4 videos streaming from a server using native VideoView , sadly I keep getting a " Cannot play video " error. The weird thing is that the same video plays well on Froyo but will not play on HoneyComb. I tried the same video with MX Video Player (on HC) and it plays just fine. Another major problem is that I cannot re-encode the videos, so I have to use the videos as they are. What is causing the error? How can I play the video? Should I find a way to include a codec

视频转换总结

限于喜欢 提交于 2020-01-11 03:36:30
公司最近人手忙,作为前端的我领到了个往平台上传资源的任务,第一个干这种活,一点不敢怠慢,生怕影响了公司其他部门的工作。 大致看了下里面的资源很杂,各种类型的文件。在和后台的配合下,很轻松的解决了除视频以外的问题。 视频这块最难的是csf格式的文件。刚开始用的是迅捷视频转换器(还是花了钱的),转的mp4有的只有音频,没有图像,可能自己没找对方法,在同事的推荐下我换成了格式工厂进行重新转换,这下就解决了这个问题。这种格式个文件有固定的播放器,是江苏一个公司研发的。要在浏览器上进行播放,是有问题的。通过格式工厂,将视频先转为wmv,再转为mp4,提取video.mp4的音频为mp3,再将screen.mp4与音频混流合成新的mp4,测试没有偏差。 百度网盘:对应 视频转为MP4 转换成功后的视频以及用到的所有软件。 来源: CSDN 作者: zhuaaaa3944210 链接: https://blog.csdn.net/zhuaaaa3944210/article/details/103868145

How to convert GIF to Mp4 is it possible?

老子叫甜甜 提交于 2020-01-10 05:36:09
问题 I have search on internet and i found this library called "ffmpeg" that saying it is able to convert GIF TO MP4. I have tried but no success and getting exception. https://github.com/guardianproject/android-ffmpeg-java If anybody know how to convert GIF to MP4 in android platform please help me. thanks EDIT this is i am doing using above ffmpeg lib String path = Environment.getExternalStorageDirectory() + "/gif/wall.jpg"; String tmp = Environment.getExternalStorageDirectory() + "/gif/tmp";

Why won't Safari play file without extension in <video>?

旧时模样 提交于 2020-01-09 07:58:09
问题 I have file named 52bbb58c without file extension and it is mp4 video. When I try to add it as &<source> to <video> with attribute type (video/mp4), it doesn't play. This works on Chrome and Firefox working. How do I fix it for Safari? 回答1: Safari is extremely fussy when it comes to playback of streamed media such as video and audio. It has the following requirements The server/application hosting the media MUST support byte ranges. Safari will do a trial download of 2 bytes to ascertain the

How do I save an .m4a from web and copy to clipboard?

99封情书 提交于 2020-01-07 04:52:08
问题 I am downloading a .m4a from a url on an iOS device then copying to clipboard. So far, this is what I have: NSArray *preview = [JSON valueForKey:@"results.previewUrl"]; NSURL *previewUrl = [NSURL URLWithString:[preview objectAtIndex:0]]; NSData *previewData = [NSData dataWithContentsOfURL:previewUrl]; How do I copy that .m4a to clipboard? I believe there is a way to copy .mp3s and .mp4s (.m4a is same as .mp4). results.previewUrl is http://a281.phobos.apple.com/us/r1000/119/Music/v4/f1/7b/d6