[MEncoder-users] Problem using MEncoder on .JPG files
Franco Pellegrini
frapell at gmail.com
Fri Apr 11 23:41:17 CEST 2008
On Fri, Apr 11, 2008 at 11:37 AM, Enrico Mattea <ocirne94 at virgilio.it> wrote:
> Hi!
> I have some .JPG images to encode. They're frames from a movie I
> registered in a game (torcs.sourceforge.net) and I converted from png to
> jpg using png2jpg program. In Konsole (Linux Kubuntu 7.10) first I cd to
> the input directory, then I run the following command, that I found on
> the game's site
> (http://torcs.sourceforge.net/index.php?name=Sections&op=viewarticle&artid=30):
>
> mencoder -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=1800 *.jpg -mf
> on:fps=25 -o /home/enrico/Desktop/Try1.avi
>
> So it says:
>
> MEncoder 2:1.0~rc2-0ubuntu1~gutsy1 (C) 2000-2007 MPlayer Team
> CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 7)
> CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled with runtime CPU detection.
> *-mf on has been removed, use mf:// instead.
>
> *So:
>
> enrico at enrico:~/.torcs/captures$ mencoder -ovc lavc -lavcopts
> vcodec=mpeg4:vhq:vbitrate=1800 *./*jpg*/ mf:// on:fps=25 -o
> /home/enrico/Desktop/Try1.avi
> MEncoder 2:1.0~rc2-0ubuntu1~gutsy1 (C) 2000-2007 MPlayer Team
> CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 7)
> CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled with runtime CPU detection.
>
> WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
> File not found: '*.jpg'
> Failed to open *.jpg.
> Cannot open file/device.
>
> And so (it's the last one):
>
> enrico at enrico:~/.torcs/captures$ mencoder -ovc lavc -lavcopts
> vcodec=mpeg4:vhq:vbitrate=1800 *./*JPG*/ mf:// on:fps=25 -o
> /home/enrico/Desktop/Try1.avi
> MEncoder 2:1.0~rc2-0ubuntu1~gutsy1 (C) 2000-2007 MPlayer Team
> CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 7)
> CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled with runtime CPU detection.
>
> WARNING: OUTPUT FILE FORMAT IS _AVI_. *See -of help*.
> success: format: 0 data: 0x0 - 0x65dea
> ============ 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.
>
> I saw -of help, but also using other formats it always said the same
> error message.
> Could someone help me?
> Thanks
> Yours
> Ocirne
> **
> _______________________________________________
> MEncoder-users mailing list
> MEncoder-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users
>
Hi Enrico, if you take a look at mencoder's manual, there it is an
example of what you're trying to do:
Encode all *.jpg files in the current directory:
mencoder "mf://*.jpg" -mf fps=25 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4
now... some time ago, i tried to do this for making a DVD with photos
and some music as background, and i had problems... the thing is, that
iirc, the output.avi file, will be a video in which every frame is a
jpg... i never could have a photo, say 6 seconds, showing, then other
one, etc... i wanted to do like a "memories" kind of thing... i didn't
however had enough spare time to play around and do it, so if you
manage to do it, would you paste here the command you used?
thanks and good luck,
Franco
--
"I know not with what weapons World War III will be fought, but World
War IV will be fought with sticks and stones." -- Albert Einstein
--
"Software is like sex it is better when it is free."
--
Linux User #456432
---------
More information about the MEncoder-users
mailing list