mpeg

ffmpeg PNG to mp4 - Black screen

江枫思渺然 提交于 2019-11-30 09:16:21
问题 I can create a mpg video using this line ffmpeg -f image2 -i 100%03d0.png movie.mpg But If I try creating an mp4 video I get a video with a black screen. ffmpeg -f image2 -i 100%03d0.png movie.mp4 My directory with figures looks like: 1000010.png,1000020.png,...1001260.png 回答1: Adding -pix_fmt yuv420p should solve the problem: ffmpeg -i input_%03d.png -pix_fmt yuv420p movie.mp4 From FFmpeg Wiki: "By default when using libx264, and depending on your input, ffmpeg will attempt to avoid color

How does MPEG4 compression work?

▼魔方 西西 提交于 2019-11-30 03:16:40
Can anyone explain in a simple clear way how MPEG4 works to compress data. I'm mostly interested in video. I know there are different standards or parts to it. I'm just looking for the predominant overall compression method, if there is one with MPEG4. MPEG-4 is a huge standard, and employs many techniques to achieve the high compression rates that it is capable of. In general, video compression is concerned with throwing away as much information as possible whilst having a minimal effect on the viewing experience for an end user. For example, using subsampled YUV instead of RGB cuts the video

Playing .mpg videos in Flash/Actionscript

对着背影说爱祢 提交于 2019-11-29 18:08:24
Is it possible to load .mpg file and play it through actionscript/flash ? The code works well with mp4 video files. If not possible to play mpg files, the one way to make it work is converting these files? package { import flash.net.NetConnection; import flash.net.NetStream; import flash.events.AsyncErrorEvent; import flash.media.Video; import se.svt.caspar.template.CasparTemplate; public class data extends CasparTemplate { var nc:NetConnection; var ns:NetStream; var vid:Video; var textfield:TextField; public function data() { nc = new NetConnection(); nc.connect(null); ns = new NetStream(nc);

How does MPEG4 compression work?

爱⌒轻易说出口 提交于 2019-11-29 00:55:02
问题 Can anyone explain in a simple clear way how MPEG4 works to compress data. I'm mostly interested in video. I know there are different standards or parts to it. I'm just looking for the predominant overall compression method, if there is one with MPEG4. 回答1: MPEG-4 is a huge standard, and employs many techniques to achieve the high compression rates that it is capable of. In general, video compression is concerned with throwing away as much information as possible whilst having a minimal

How to programmatically create videos?

蓝咒 提交于 2019-11-28 11:25:55
Is there a freely available library to create a MPEG (or any other simple video format) out of an image sequence ? It must run on Linux too, and ideally have Python bindings. I know there's mencoder (part of the mplayer project), and ffmpeg , which both can do this. ffmpeg is a great (open source) program for building all kinds of video, and converting one type of video (a sequence of images in this case) into other types of video. Usually it is utilized from the command line, but that is really just a wrapper around its internal libraries. It is expressly available to be used from within

Chromium Embedded Framework MP3 support

倖福魔咒の 提交于 2019-11-27 13:46:39
I've downloaded Chromium Embedded Framework r306 for Windows and built it. Unfortunately, it shows, that it doesn't support mp3: <script> var a = document.createElement("audio"); document.write(a.canPlayType('audio/mpeg')); </script> Output is empty and when I try to open an mp3 file, it can't be played (ogg is playable). The same time Google Chrome writes "maybe" (and it actually plays). How can I add support for MP3 in CEF? NOTE: PLEASE CONSIDER LEGAL ISSUES BEFORE PROCEEDING There is a way to enable MP3 support in CEF, but you'll have to modify the cef.gypi in the source distribution,

Live streaming through MP4

对着背影说爱祢 提交于 2019-11-27 11:07:28
I am working on an online TV service. One of the goals is for the video to be played without any additional browser plug-ins (except for Flash). I decided to use MP4, because it is supported by the majority of HTML5 browsers and by Flash (for fallback). The videos are transcoded from ASF on a server by FFMpeg. However, I found that MP4 cannot be live-streamed because it has a moov atom for metadata that has to specify the length. FFMpeg cannot directly stream mp4 to stdout, because it puts the moov at the end of the file. ( Live transcoding and streaming of MP4 works in Android but fails in

Record video from camera on Android to mp4

佐手、 提交于 2019-11-27 03:45:15
问题 There seems to be TVideoCaptureDevice in FireMonkey (Delphi XE6), but on official documentation, capturing process ends up on lines: if(VideoCamera){ //do something } What do I do to record video to mp4 on flight? Tried looking on google, but didn't find any answer... 回答1: See the following docwiki for an answer (sort-of). Delphi Video Capturing in XE7 Of course the word "capturing" here means, getting the video input and putting it on the display. "Recording" means joining the frames

Java: How do I create a movie from an array of images?

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-26 20:24:19
I basically have an matrix of bytes. Each row (meaning byte[]) represents an image. How do I create a movie out of that (any format - avi, mpeg, whatever), and save it as a file? Each image can be one of the following: int JPEG Encoded formats. int NV16 YCbCr format, used for video. int NV21 YCrCb format used for images, which uses the NV21 encoding format. int RGB_565 RGB format used for pictures encoded as RGB_565. int YUY2 YCbCr format used for images, which uses YUYV (YUY2) encoding format. int YV12 Android YUV format: This format is exposed to software decoders and applications. I can

Can FFmpeg be used as a library, instead of a standalone program?

耗尽温柔 提交于 2019-11-26 19:32:40
I'd like to add video conversion capabilities to a program I'm writing. FFmpeg's command line interface for doing this is simply ffmpeg -i InputFile OutputFile , but is there a way to make use of it as a library, so I can do something like ffmpeg_convert(InputFile, OutputFile) ? I'm hoping I won't have to use libavcodec directly, as I imagine it will be far more complex than a one-line function to convert between formats. If FFmpeg can't be easily retrofitted to do this, is there perhaps another library based on it that does? I've heard of libvlc, but that seems to only expose a video playing