mp4

ffpmeg drops last frame when compressing from MP4 to MP4 (libx264)

血红的双手。 提交于 2019-12-25 01:58:55
问题 So, I'm using this code to compress my *mp4 file. I need to get lower quality and decrease bitrate: ffmpeg -i input.mp4 -c:v libx264 output.mp4 The problem is: the last frame of footage is dropped after ffmpeg compression. Screenshot is here: screenshot_ffmpeg_drop frame I tried to use full preferences I need, but the problem is the same. ffmpeg -i input.mp4 -c:v libx264 -vf scale=1280:720 -preset fast -crf 29 -r 25 -c:a copy output.mp4 logfile during ffmpeg encoding: Input #0, mov,mp4,m4a

How to play MP4 videos stored on assets folder on Android 1.5?

此生再无相见时 提交于 2019-12-25 01:13:50
问题 Ineed to play a short MP4 video on my android app I'm searching info about how to load mp4 videos but i can't find the way to do it on Android 1.5. My app sould be compatible from Android 1.5 to 4.0 I tryed with a lot of tutorials from google, but none of them works. For example, now i'm trying with the VideoViewDemo from android developers: http://developer.android.com/resources/samples/ApiDemos/src/com/example/android/apis/media/VideoViewDemo.html I have a video on my ASSETS folder, and i

Mix 2 videos with FFmpeg (overlay one on top of other)

一个人想着一个人 提交于 2019-12-25 01:06:14
问题 I using ffmpeg through Android-NDK . I've 2 pieces of the videos , The first one is my main video and the second one is my effect video. Now I wanna mix this 2 videos together, Is it possible ? Note : Both videos decoding through MP4 format. 回答1: I don't know how to translate this into the API offhand, but the command-line version of what you're trying to do is something like: ffmpeg -i main.mp4 -vf 'movie=effect.mp4 [f];[in][f] overlay=0:0 [out]' out.mp4 See the docs on movie and overlay for

MPMoviePlayerViewController play from NSData (MP4)

爷,独闯天下 提交于 2019-12-25 00:21:38
问题 NSString *p = [app getFilePathFor:name]; // Printing description of p: // /Users/Jackson/Library/Application Support/iPhone Simulator/5.0/Applications/7FE97EDD-D080-4E5E-8EDD-3D9FFA8F6CF5/Documents/6681a4d7-8630-4a12-90c6-f95d72650a42 NSData *data = [NSData dataWithContentsOfFile:p]; // Printing description of data: // <01401dc2 a15ebc27 e473ee79 316568ff 19dc7000 df3f7c5c dc206870 01a1c00e 00010000 00000000 00e10288 00000003 01060020 08c80038 00080000 88edffbf 02000119 0000050e 00000000

mp4, 3gp, mpeg, mp3 streamed inside or outside of webview

*爱你&永不变心* 提交于 2019-12-24 21:42:22
问题 Is there any confirmed solution to running mp4, 3gp or mp3 files via webView? I finally have my code working public boolean shouldOverrideUrlLoading(WebView view, String url) { if (url.endsWith(".mp3")) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse(url), "audio/*"); view.getContext().startActivity(intent); return true; } else if (url.endsWith(".mp4") || url.endsWith(".3gp")) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setDataAndType(Uri.parse

MP4 video working on desktop, not on mobile devices

≡放荡痞女 提交于 2019-12-24 20:35:20
问题 I embedded a video in the following URL: https://www.speurtochten.nl/over-ons/ I made it with Premiere Pro CC, exported it as H.264. The code I use in WordPress: [video src="https://speurtochten.nl/sbsfilm.mp4"][/video] I tried uploading several dummy videos instead (http://www.sample-videos.com/video/mp4/720/big_buck_bunny_720p_1mb.mp4), and they worked perfectly fine on the desktop AND on a mobile phone. On my iPhone, I get "Error loading this resource". 回答1: Accepting and agreeing with the

NetStream.seek() for mp4 to exact position not keyframe

眉间皱痕 提交于 2019-12-24 18:56:57
问题 It seems seek() on mp4 file seeks to the closest keyframe (seekpoint). Is it possible to seek to exact position in between of keyframes? Thanks! 回答1: It does in fact seek to the nearest key frame. If you want to be able to seek to more specific parts of the stream you'll need to add more key frames. Of course more key frames usually results in larger file size. Good luck! 来源: https://stackoverflow.com/questions/3338795/netstream-seek-for-mp4-to-exact-position-not-keyframe

Wrong Presentation time at H264 streams [Live555 OpenRtspClient]

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-24 17:52:54
问题 I modify the OpenRtspClient so that Now instead of writing frames to file I collect them in a queue with incoming presenttaion times Then give the h264 frames to MP4 muxer [ Geraint Davies MP4 mux filter] Finally write muxed data to file... So I can able to save h264 stream into MP4 container... But the problem is that, some of the recorded data [NOT all of them] has wrong values for time duration: Suppose that a 10 minute record seems that it was 12 h stream... VLC play the 10 minute that

mp4 video only loads when chrome dev tools are open

会有一股神秘感。 提交于 2019-12-24 16:53:29
问题 The video i have set for background of the div will only start playing when i refresh the page and the chrome dev tools are open. html: <div id="videoDiv"> <div id="videoBlock"> <img src="" id="vidSub"> <video preload="preload" id="vid1" autoplay="autoplay" loop="loop"> <source src="images/solPromo.mp4" type="video/mp4"></source> </video> css: #vid1 { display: none; } #vidSub { display:block; width:100%; height:auto; max-width:100%; } @media only screen and (min-width: 992px) { #vid1 {

MP4 filewriter in android 4.1+

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 16:13:54
问题 Starting from Android 4.1 (API level 16) MediaCodec APIs have been introduced. These APIs support Elementary stream Decoding & Encoding. Also MediaExtractor API will give elementary track details by analyzing Media streams. My Question is, I setup a video encoder using MediaCodec API, which gives me encoded file in .h264 format. I want to write .h264 file into a .mp4 file for playing/storing/sharing purposes. I don't find any .MP4 file-writer API for android. Is there any way to achieve it?