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.