[MEncoder-users] concatenating two movies

Tom Poe tompoe at fngi.net
Sat Apr 12 23:23:08 CEST 2008


Gilles Pelletier wrote:
> After succeeding in making a movie from jpeg files with:
> mencoder "mf://*.jpg" -mf type=jpg:w=640:h=480:fps=0.5 -ofps 30 -ovc
> lavc -lavcopts vcodec=mjpeg -o still00001.avi
> I am now trying to concatenate this movie with another one taken (as a
> movie) with my camera: 00263.avi
> Here is the command line:
>  mencoder still00001.avi 00263.avi -ovc copy -oac copy -o output.avi
> Here is the output:
> MEncoder 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
> CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 3, Stepping: 4)
> CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled with runtime CPU detection.
> success: format: 0  data: 0x0 - 0x1da9a
> AVI file format detected.
> [aviheader] Video stream found, -vid 0
> AVI: No audio stream found -> no sound.
> VIDEO:  [MJPG]  640x480  24bpp  30.000 fps  112.1 kbps (13.7 kbyte/s)
> [V] filefmt:3  fourcc:0x47504A4D  size:640x480  fps:30.00  ftime:=0.0333
> videocodec: framecopy (640x480 24bpp fourcc=47504a4d)
> Writing header...
> ODML: Aspect information not (yet?) available or unspecified, not
> writing vprp header.
> Writing header...
> ODML: Aspect information not (yet?) available or unspecified, not
> writing vprp header.
> success: format: 0  data: 0x0 - 0x8eb4d82  0min   0mb  A-V:0.000 [112:0]
> AVI file format detected.
> [aviheader] Video stream found, -vid 0
> [aviheader] Audio stream found, -aid 1
> VIDEO:  [MJPG]  640x480  24bpp  30.000 fps  9477.2 kbps (1156.9 kbyte/s)
> [V] filefmt:3  fourcc:0x47504A4D  size:640x480  fps:30.00  ftime:=0.0333
> videocodec: framecopy (640x480 24bpp fourcc=47504a4d)
> videocodec: framecopy (640x480 24bpp fourcc=47504a4d)
>
> All video files must have identical fps, resolution, and codec for -ovc copy.
>
> Exiting...
>
> The only difference I can see is 112.1 kbps (13.7 kbyte/s) for the
> animated pictures and 9477.2 kbps (1156.9 kbyte/s) for the movie.
> Would that be the resolution? I wouldn't think so. What am I missing?
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
>   
Here's some commands I've played with to combine a title clip and a 
webcam clip to make a video.  Still a work in progress, but may have 
some use. 
Tom

$ mencoder mf://*.jpg -mf w=640:h=480:fps=1/10.375:type=jpg -audiofile 
theme.ogg -oac lavc -ovc lavc -vf scale=640:480,harddup -lavcopts 
vcodec=mjpeg:vbitrate=2554 -ofps 25 -o new5.avi



1] create webcam file:  ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 
-f oss -ac 2 -i /dev/dsp -f mp4 a.mp4
2]  convert a.mp4 to something standard:  ffmpeg -i a.mp4 -vcodec 
rawvideo b.avi
3]  convert and scale to standard:   mencoder b.avi -ovc lavc -lavcopts 
vcodec=mpeg4 -vf scale=320:240 -oac pcm -o c320x240.avi
4] merge two files:  avimerge -o -c d.avi -i title.avi c320x240.avi



More information about the MEncoder-users mailing list