mp4

How to have ffmpeg calculate the width after modifying by set height ratio?

最后都变了- 提交于 2019-12-01 11:07:30
问题 After finding the resolution was the source of all my webm to MP4 codec conversion errors on my Android. I came across another problem. To break down my question: What all MP4 resolutions are supported on most devices? I know they go by p from certain height value for them to work. 720p /?X720 for example. Is there an easier way to calculate the width based from the height change while keeping the ratio? ffmpeg -i old.webm -t 00:00:03 -s 320x240 new.mp4 I currently use the -s setting

Convert MP4 Version - FFmpeg

六月ゝ 毕业季﹏ 提交于 2019-12-01 09:27:51
问题 I have two mp4 File : out.mp4: ISO Media, MP4 Base Media v1 [IS0 14496-12:2003] video/rio2016/finale/brasse/200.mp4: ISO Media, MP4 v2 [ISO 14496-14] How can I convert 1 to 2 (mp41 to mp42) ? Thanks ! 回答1: Using ffmpeg, it's ffmpeg -i out.mp4 -c copy -map 0 -brand mp42 out2.mp4 来源: https://stackoverflow.com/questions/43606730/convert-mp4-version-ffmpeg

getting PVMFErrContentInvalidForProgressivePlayback error while playing mp4 files on samsung devices

两盒软妹~` 提交于 2019-12-01 08:38:47
问题 I'm using classic VideoView implementation to play video on Android. Same mp4 file url works fine on HTC Desire. However it doesn't work on Samsung devices. Samsung Galaxy S1 and Samsung Galaxy Tab say: "Cannot play video. Unable to play video. Invalid streaming data" Samsung 5110 says: "Cannot play video. Sorry this video is not valid for streaming to this device" When I looked at mp4 file with a text editor, I realized that mdat tag is before moov . My question is how does it work on HTC

h264 mp4 index to front command line

心已入冬 提交于 2019-12-01 06:11:15
Is there any command line tools to move an h264/mp4 index to the beginning so that flash will start playing the file quicker over the net? I am aware of the tool QTIndexSwapper however it is not command line. Alternatively is there an ffmpeg command to place the index at the front during an encoding? Thanks. user1133275 As answered a few years later; ffmpeg -i input.mp4 -codec copy -movflags +faststart output.mp4 mirswith After enough poking around I managed to find a python script called qt-faststart that does it. So far so good. qt-faststart 来源: https://stackoverflow.com/questions/7614635

How can I play a mp4 movie using Moviepy and Pygame

谁都会走 提交于 2019-12-01 05:56:12
How do you play an mp4 video in Pygame? I have tried pygame.movie but this does not work... Theres also moviepy, but I am having trouble changing the title of the window that pops up. It says "MoviePy", not sure how to change that. import moviepy from moviepy.editor import * import os os.environ["SDL_VIDEO_CENTERED"] = "1" clip = VideoFileClip('qq.mp4') clip.preview() execfile("qq.py") # Execute my game right after the clip shows How would I change the title from "MoviePy" to my "my game name" Any help would be appreciated! First: you can use import moviepy print(moviepy.__file__) to find

Android: cannot play mp4 video

血红的双手。 提交于 2019-12-01 05:48:17
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 library into my app? Below are details from logcat: E/MediaExtractor( 242): **********MediaExtractor::Create

视频抽帧那点事

假如想象 提交于 2019-12-01 05:36:26
视频文件是多媒体数据中比较常见的一种,也是入门门槛比较高的一个领域。视频数据相关的领域任务包括视频物体检测、视频物体追踪、视频分类、视频检索和视频摘要抽取等。 视频数据与图像数据非常类似,都是由像素点组成的数据。在视频数据在非音频部分基本上可以视为多帧(张)图像数据的拼接,即三维图像的组合。由于视频数据与图像数据的相似性,在上述列举的视频领域任务中大都可以借助图像方法来完成。 文本将讲解视频抽帧的几种方法,具体包括以下几种抽帧方式: 抽取视频关键帧(IPB帧) 抽取视频场景转换帧 按照时间进行均匀抽帧 抽取制定时间的视频帧 在进行讲解具体的抽帧方式之前,我不得不介绍下FFmpeg。FFmpeg是一套可以用来编码、解码、合成和转换音频和视频数据的开源软件,提供了非常全面的音视频处理功能。如果你的工作内容是视频相关,那么ffmpeg是必须要掌握的软件了。FFmpeg提供了常见音视频和编解码方式,能够对众多的音视频格式进行读取,基本上所有的软件都会借助FFmpeg来完成音视频的读取操作。 FFmpeg的学习资料可以参考: http:// ffmpeg.org/documentatio n.html https:// blog.csdn.net/leixiaohu a1020/article/details/15811977 # 查看视频信息 > ffmpeg -i 666051400

h264 mp4 index to front command line

 ̄綄美尐妖づ 提交于 2019-12-01 05:09:01
问题 Is there any command line tools to move an h264/mp4 index to the beginning so that flash will start playing the file quicker over the net? I am aware of the tool QTIndexSwapper however it is not command line. Alternatively is there an ffmpeg command to place the index at the front during an encoding? Thanks. 回答1: As answered a few years later; ffmpeg -i input.mp4 -codec copy -movflags +faststart output.mp4 回答2: After enough poking around I managed to find a python script called qt-faststart

How can I turn a series of images into a video using JCodec?

不羁的心 提交于 2019-12-01 00:41:27
I'm trying to use JCodec to turn a series of images into a video inside of a Java SE desktop application. The few methods I've tried all resulted in a video that Windows Media Player could not play. It is unclear to me if this is a codec issue (doubtful) or if I'm not creating the video properly. When I try to play the video in Windows Media Player I get: Windows Media Player cannot play the file. The Player might not support the file type or might not support the codec that was used to compress the file. Here is the cobbled together sample that I've been using most recently. I really don't

Play Mp4 video from server android

两盒软妹~` 提交于 2019-11-30 22:45:36
I want to play video of mp4 format and size 4-5Mb from server in streaming mode.I am using sdk version 2.3,on emulator it gives only sound but not any picture. I also tested it on devices Samsung(android sdk ver 2.1) and LG optimus(android sdk ver 2.2) and only get "cannot play video:sorry this video is not valid for streaming to this device" message. I have searched on this but not getting any solution, if anybody have any solution please help me.Thanks in advance. Here is my code: public class ShowVideo extends Activity { private static ProgressDialog progressDialog; public String video_url;