[MPlayer-users] a.mpg += b.jpg

Carl Karsten carl at personnelware.com
Sun Nov 4 03:51:30 CET 2007


Part of a weather station is a web cam pointed at the horizon.  Want to have a 
web page with a few "last X hour" links that will do a few seconds of time laps.

Plan A: generate a .mpg every time someone clicks.  that's lame.

Plan B: add the jpg's to one big .mpg as the jpgs come in. then slice off the 
last X frames and serve that up.

I can do A.  don't want to.  I want to do B, so how do I add a .jpg to an mpg?

I hear I should create a .mpg out of the single .jpg, and then merge the 2 mpg's 
together, but I fail:

carl at dell29:~/temp/$ mencoder 071103100100.jpg -nosound -ovc lavc -lavcopts 
vcodec=mpeg2video:cmp=2:subcmp=2:mbd=2:trell:vqscale=31: -of mpeg -ofps 30 -vf 
harddup -o q.mpg
MEncoder 2:1.0~rc1-0ubuntu13 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 2, Stepping: 9)
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 - 0xbd2b
============ Sorry, this file format is not recognized/supported =============
=== If this file is an AVI, ASF or MPEG stream, please contact the author! ===
Cannot open demuxer.

Carl K



More information about the MPlayer-users mailing list