mp4

FFmpeg: Read profile level information from mp4

浪子不回头ぞ 提交于 2019-12-04 19:56:59
问题 I have a mp4 file and need the profile level of it. FFmpeg says, it has baseline profile, which is what I need, but I need also the level. Here is what I get from FFmpeg: ffmpeg version 0.8, Copyright (c) 2000-2011 the FFmpeg developers built on Jul 20 2011 13:32:19 with gcc 4.4.3 configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264

Get MP4 stream lengths

China☆狼群 提交于 2019-12-04 17:54:38
I'm working in an app in wich we use IMediaDet to get stream lengths. Now we're starting to work with MP4 containers. The problem is, when I try an IMediaDet::put_fileName() with the MP4 file, I get HRESULT = -2147024770 (ERROR_MOD_NOT_FOUND). Using a comercial mp4 demuxer, I see the video stream uses mpg2 encoding. My questions: How to get the stream length of a stream inside a MP4 container? Is there a way to make IMediaDet accept these files? Is there a way to point what demuxer IMediaDet should use? Any help would be much appreciated. Thanks. Unfortunately, DirectShow does not contain an

Ffmpeg creating m3u8 from mp4, video file size

ぃ、小莉子 提交于 2019-12-04 17:13:12
I am using ffmpeg to convert mp4 to m3u8. But first I need to make mp4 smaller. I use this code to make it smaller: ffmpeg -i big.mp4 -b 1000000 small.mp4 Then I use this code to convert it to m3u8 ffmpeg -i small.mp4 -g 60 -hls_time 2 -hls_list_size 0 -hls_segment_size 500000 output.m3u8 Is there a way to do this in once? Just combine them: ffmpeg -i big.mp4 -b:v 1M -g 60 -hls_time 2 -hls_list_size 0 -hls_segment_size 500000 output.m3u8 Note that you're transcoding the video twice in your current workflow. Since the 2nd command hasn't set video codec option to copy, it gets transcoded again -

Android - Playing Mp4

ε祈祈猫儿з 提交于 2019-12-04 16:41:06
I am trying to play video files from http urls in my app. Why is that my app plays only certain mp4 files (I tried 512k mp4 and it worked), and doesn't play some others? Here's the snippet of my code: mVideoView.setVideoPath(myVideoURL); mVideoView.setMediaController(new MediaController(this)); mVideoView.seekTo(currentPosition); mVideoView.requestFocus(); Thanks Chris Make sure your mp4's aren't DRM'd, and that they're not wider than 320 pixels (videoView will not scale them for you). Are you getting any useful errors in LogCat? 来源: https://stackoverflow.com/questions/2910292/android-playing

MFCreateFMPEG4MediaSink does not generate MSE-compatible MP4

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-04 16:15:14
I'm attempting to stream a H.264 video feed to a web browser. Media Foundation is used for encoding a fragmented MPEG4 stream ( MFCreateFMPEG4MediaSink with MFTranscodeContainerType_FMPEG4 , MF_LOW_LATENCY and MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS enabled). The stream is then connected to a web server through IMFByteStream . Streaming of the H.264 video works fine when it's being consumed by a <video src=".."/> tag. However, the resulting latency is ~2sec, which is too much for the application in question. My suspicion is that client-side buffering causes most of the latency. Therefore, I'm

Coding a certain MP4 GOP with FFMPEG

半腔热情 提交于 2019-12-04 15:39:16
I have a .y4m video file, and I want to convert it to .mp4 using FFmpeg. The problem is that I want a certain kind of GOP, this one: IBBPBBPBBPBB . But what I get, when I set the GOP size to 12 ( -g 12 ) is IPPPPPPPPPPP . I've also tried using the -bf 8 option, but I get results like IPBBB... and the video doesn't play right. Could you please tell me how to get the exact IBBPBBPBBPBB GOP using FFmpeg? Thanks for your help I think you want something to the effect of : -g 12 -bf 2 sgop The -g flag sets the GOP size (as you already mentioned), the -bf 2 says that 2 B-frames should be inserted

如何高质量把qsv格式无损的转换成mp4

感情迁移 提交于 2019-12-04 13:41:00
对于爱奇艺视频播放器想必大部分人都不陌生,爱奇艺由于拥有众多优质的独家资源深受广大用户的喜爱,而爱奇艺也逐渐成为人们手机中必不可少的软件之一。但爱奇艺所下载的qsv格式是不能用别的播放器打开的,想使用别的播放器打开qsv格式通常可以用迅捷视频转换器转换成mp4然后再打开。 1、打开转换器选择“视频转换”功能并添加好通过爱奇艺下载的qsv文件,添加时可以点击软件左上角的“添加文件”或“添加文件夹”按钮,也可以直接把视频拖拽到软件空白处提高视频添加的效率。 2、随后设置好输出格式中输出的视频格式和视频分辨率,因为要把qsv转成mp4格式,所以把其中的视频格式设置为‘mp4’格式,分辨率则尽量设置为相同分辨率的‘同原文件’格式。 3、如果不想把“输出格式”设置为‘mp4同原文件’格式或其它预设格式,可以根据需求点击“添加自定义设置”对‘视频’的视频编码、比特率、分辨率、帧数和或‘音频’的音频编码、比特率、取样频率、声道的参数进行相应的调整。 4、随后把默认的输出路径设置为想要保存到电脑的路径,设置时可以直接把路径写入或粘贴到输入框中,也可以点击‘更改路径’按钮选择想要保存的路径。 5、以上各项参数都设置好后点击“转换”或“全部转换”按钮就可以把qsv格式转成mp4,转换完成后到之前预设好的路径就可以找到并打开转换后的mp4视频文件了。 上述就是把爱奇艺的qsv格式转换成mp4的方法

怎么高质量的把mp4视频转换成mp3音频

北城以北 提交于 2019-12-04 13:23:56
我们都知道mp4是视频格式,而mp3则是一种音频格式,两者之间格式不同,在我们看视频时遇到喜欢的mv或bgm时有没有想把视频里的音频拿来制作铃声的冲动呢,那怎么把mp4视频格式转换成mp3音频格式提取其中的音频呢? 1、首先准备好要提取音频的视频。这时小编准备了一个<see you again>的mv用来转换成mp3格式以供大家参考。 2、随后把下载好的mp4格式视频添加到迅捷视频转换器中,添加的时候可以点击“添加文件”/“添加文件夹”按钮也可以直接把视频批量拖拽到转换器中。 3、添加好视频文件后对“输出格式”进行调整,调整时记得要先选择‘音频’按钮,不然会自动选择输出为默认的‘视频’格式。接着设置为‘mp3同原文件’格式(同原文件指和原音频格式相同的音频频率)。 4、紧接着需要设置的是“输出路径”,设置时可以在输入框中直接写入要输出的路径,也可以点击右侧的‘更改路径’按钮选择存储路径。同时也可以在‘打开文件夹’确认路径。 5、以上步骤都设置好后点击软件右上角的“转换”或右下角的“全部转换”按钮进行转换。随后到达之前预设的路径就可以找到并打开转换后的mp3音频文件了。 上述就是把mp4视频转换成mp3音频格式提取音频的方法了,希望对你有所帮助。 视频转换器www.xunjieshipin.com/download-converter 来源: https://my.oschina

Serving mp4 video to iPad

一曲冷凌霜 提交于 2019-12-04 13:14:47
I want to serve a mp4 video in a HTML document but it doesn't play on the live server. Locally it works. Even using only the file without any HTML it does play when I use my local Apache. On the webserver the iPad says "Movie could not be played" The header for the file is "video/mp4" on both Servers. What could be the problem here? Regards UPDATE: Header local Apache: Accept-Ranges bytes Cache-Control max-age=86400 Connection Keep-Alive Content-Length 8993646 Content-Type video/mp4 Date Thu, 23 Feb 2012 14:40:58 GMT Etag "733258-893b6e-36d96c80" Keep-Alive timeout=15, max=100 Last-Modified