mp4

Writing x264 from OpenCV 3 with FFmpeg on Linux

匿名 (未验证) 提交于 2019-12-03 02:00:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having trouble writing h264 video with OpenCV 3 via FFmpeg ("'X','2','6','4'" FOURCC). I've seen all the related posts so far on SO, but nothing helps. Code: cv::VideoWriter writer(output_path.string(), CV_FOURCC('X','2','6','4'), 60, frame_size); Output: OpenCV: FFMPEG: tag 0x34363258/'X264' is not supported with codec id 28 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x00000021/'!???' The resulting video is extremely small (byte-wise) and unreadable. Setting the four_cc to -1 results in "unknown tag"

Edit MP4 Metadata with exiftool

匿名 (未验证) 提交于 2019-12-03 01:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have an MP4 file with Title metadata: exiftool movie.mp4 Which gives: Audio Bits Per Sample : 16 Audio Sample Rate : 48000 Handler Type : Metadata Handler Vendor ID : Apple Title : Movie Title I want to completely remove this Title metadata. I have tried overwriting the title: exiftool -Title="" movie.mp4 exiftool -Title= movie.mp4 exiftool -Title="" -overwrite_original movie.mp4 The command takes awhile to execute, but exits with: 0 image files updated 1 image files unchanged What am I doing incorrectly? How can I view what the exiftool

FFmpeg iOS -> output file is invalid

匿名 (未验证) 提交于 2019-12-03 01:22:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using following library to convert mkv to mp4: https://github.com/SterlingOnLoop/FFmpegWrapper . - (void)convertUsingFFmpegWrapper { NSString *mp4Extension = @"mp4"; NSString *mkvExtension = @"mkv"; NSString *videoName = @"file1"; // NSString *videoName = @"file2"; NSString *mkvVideoFilePath = [[NSBundle mainBundle] pathForResource:videoName ofType:mkvExtension]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = paths[0]; NSString *mp4VideoFilePath = [NSString

Recommendation on the best quality/performance H264 encoder for video encoding?

岁酱吖の 提交于 2019-12-03 00:39:41
I am looking for a video encoder that is fast, requires less CPU power and produces very good quality mp4 video. The input videos can be in any format and uploaded by users. Only thing I know is FFMPEG library. Is there anything else that is better? The program must have a batch utility (exe) that I am interested in. I would appreciate if you kindly share your knowledge. Thanks llogan Use x264 . It's fast and flexible enough for it to suit your needs. Other H.264 video encoders are junk compared to it and this isn't just my opinion. You can use it directly or via ffmpeg . You can get recent

FFmpeg 常用命令

匿名 (未验证) 提交于 2019-12-02 23:49:02
原文链接: http://www.cnblogs.com/-yan/p/5088509.html 推送rtmp :ffmpeg -re -i test.mp4 -c copy -f flv rtmp://192.168.2.122/live/name 1.ffmpeg -i ss.flv -ss 1 -t 1 test.jpg ffmpeg -i demo.mp4 -ss 10.1 -t 0.001 1.jpg 截取demo.mp4的视频 从10.1秒开始 -t 0.001表示截取10.1秒的这张图片 保存为 1.jpg ffmpeg 裁剪 ffmpeg -i demo.mp4 -filter:v "crop=10:20:100:100" out.mp4 crop里的参数依次为: 左边距:右边距:宽度:高度 2.ffmpeg -f dshow -i video="screen-capture-recorder" -f dshow -i audio="virtual-audio-capturer" -pix_fmt yuv420p -vcodec libx264 -acodec libvo_aacenc -s 1280x720 -r 25 -q 10 -ar 44100 -ac 2 -tune zerolatency -preset ultrafast -f mpegts - |

mencoder及ffmpeg的基本命令

匿名 (未验证) 提交于 2019-12-02 23:03:14
前段时间想在ubuntu下对视频进行格式转换,多方查找之后,接触了mencoder与ffmpeg。 mencoder mencoder 是一款命令行方式的视频处理软件,是Mplayer自带的编码工具,所有操作并没有可视化的界面,但是功能极其强大。 命令格式举例:mencoder input.avi -o output.avi -oac mp3lame -lameopts cbr:br=32 -ovc x264 -x264encopts bitrate=440 -vf scale=448:-3 其中:input.avi 是指输入的视频,也就是你要转换的视频。 -o output.avi 中的“-o”是指你要输出视频,输出的视频名为output.avi。 -oac 设置音频编码器。 mp3lame 设置音频编码器为mp3lame,也是就mp3。 -lameopts 设置mp3lamer的相关参数。 cbr:br=32 设置音频的码率为32。 -ovc 设置视频编码器。 x264 设置视频编码器为x264。 -x264encopts 设置x264的参数。 bitrate-440 设置x264的视频的码率为440。 以下是一些固定格式(仅供参考): RMVB ת AVI mencoder 1.rmvb - oac mp3lame - lameopts preset = 64 - ovc

python合并视频

匿名 (未验证) 提交于 2019-12-02 22:51:30
视频合并 输出为:我的合并视频.mp4+一个音频文件 from moviepy.editor import * import os # 定义一个数组 def getFileList(path): L=[] listmv=os.listdir(path) print(listmv) for each in listmv: if os.path.isfile(path+'\\'+each) : if each.endswith('.mp4') or each.endswith('.MP4'): # print(int(each.strip('.mp4')))#注意我的文件夹里的视频都是数字+.mp4的!如果不是这种命名格式就修改下面代码!!!!!!!!!!!!!!!!!!!!!!!!! L.append(int(each.split('.')[0])) L.sort() # videofileclip载入视频 mvFiles=[VideoFileClip(path+'\\'+str(e)+'.mp4') for e in L] return mvFiles def main(inpath,outMvNmae): mvTemp=getFileList(inpath) final_clip = concatenate_videoclips(mvTemp) final_clip.to

批量导出MP4的音频 Python+ffmpeg

匿名 (未验证) 提交于 2019-12-02 22:11:45
需求:先把把视频素材用 无损视频裁剪合并编辑工具SolveigMM Video Splitter Business Edition 5 剪切成很多段mp4,然后用这个脚本提取所有mp4的音频 import os #批量导出MP4的音频 indir = "G:/PythonIO/video" def dirlist(path, allfile): filelist = os.listdir(path) for filename in filelist: #广义 filepath = os.path.join(path, filename) if os.path.isdir(filepath): dirlist(filepath, allfile) elif filepath.endswith("mp4"): filepath = filepath.replace("\\","/") allfile.append(filepath) print(filepath) return allfile allfile = dirlist(indir,[]) i = 1 for infile in allfile: os.system("ffmpeg -i \""+ infile +"\" -f mp3 "+str(i)+".mp3") i+=1 文章来源: https://blog.csdn

existing swf mp4 player? [closed]

主宰稳场 提交于 2019-12-02 21:30:31
I have a mp4 file put in my website, say http://example.com/a.mp4 , I want a swf player that can be embedded into my html, and play the mp4 file. I don't know how to write actionscript so I just want to have an existing swf file. Requirement: small, fancy, full function, ad free. Thanks. There are plenty of players available, for example http://www.longtailvideo.com/players/jw-flv-player/ or http://flowplayer.org/ . I was recently looking for a simple, robust, usable, non-branded swf video player to use as a flash fallback when using the HTML5 <video> element, and I found the Strobe Media

Create mp4 files on Android using Jcodec

ぐ巨炮叔叔 提交于 2019-12-02 21:13:13
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>(); ArrayList<ByteBuffer> ppsListTmp = new ArrayList<ByteBuffer>(); // Encoder private MediaCodec mediaCodec =