Convert continuous images into videos in Linux

Source: Internet
Author: User
From: bytes

Recently, a video recording function was added to the android client of the robot. Of course, it is not a step-by-step Direct storage of a video file (data is transmitted from the robot's camera to the datastream on the Android device, and I do not know how to implement it), but each frame of image is saved!

Then, copy the saved continuous images to the PC and convert them into video files after secondary processing by mencoder:

$ CD 20110729185048 // enter the image directory first
$ Mencoder MF ://*. jpg-mf w = 320: H = 240: FPS = 24: TYPE = jpg-OVC lavc-lavcopts vcodec = MPEG4: mbd = 2: trell-OAC copy-O output. avi
Command parameters:

* In the mencoderline, all .jpg images under the current directory are converted into a. AVI Video.

* W = 320: H = 240-the image size is 320x240, which can be changed as needed

* FPS = 24: TYPE = jpg-24 frames per second. The file type is JPG, which can be changed according to the actual situation.

*-OVC-specify the Video Encoding

*-OAC-specifies the audio encoding. Copy indicates that no audio is changed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.