LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-06-2007, 07:32 AM   #1
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Rep: Reputation: 39
Mencoder to output GIF


I am trying to convert some files to animated GIF in order to use them on my site.
The files are .avi and .mpeg captured with Xvidcap.
I understand it is possible with Mencoder, but I can't seem to figure how. I have been looking at this, but it is not the most straightforward of texts. Any ideas?
I get this output:
Code:
~ $ mencoder -ovc copy -o cap.gif capt-0000.mpeg
MEncoder 1.0rc1-3.4.6 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Celeron(R) M processor         1.40GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2


WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
success: format: 0  data: 0x0 - 0x3a20c
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO:  [FMP4]  192x144  24bpp  7.000 fps  181.9 kbps (22.2 kbyte/s)
[V] filefmt:3  fourcc:0x34504D46  size:192x144  fps: 7.00  ftime:=0.1429
videocodec: framecopy (192x144 24bpp fourcc=34504d46)
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.
Pos:   1.1s      8f ( 6%)  0.00fps Trem:   0min   0mb  A-V:0.000 [154:0Pos:   1.3s      9f ( 9%)  0.00fps Trem:   0min   0mb  A-V:0.000 [187:0Pos:   1.4s     10f (13%)  0.00fps Trem:   0min   0mb  A-V:0.000 [233:0Pos:   1.6s     11f (18%)  0.00fps Trem:   0min   0mb  A-V:0.000 [300:0Pos:   1.7s     12f (25%)  0.00fps Trem:   0min   0mb  A-V:0.000 [344:0Pos:   1.9s     13f (31%)  0.00fps Trem:   0min   0mb  A-V:0.000 [355:0Pos:   2.0s     14f (35%)  0.00fps Trem:   0min   0mb  A-V:0.000 [337:0Pos:   2.1s     15f (36%)  0.00fps Trem:   0min   0mb  A-V:0.000 [326:0Pos:   2.3s     16f (37%)  0.00fps Trem:   0min   0mb  A-V:0.000 [308:0Pos:   2.4s     17f (38%)  0.00fps Trem:   0min   0mb  A-V:0.000 [297:0Pos:   2.6s     18f (39%)  0.00fps Trem:   0min   0mb  A-V:0.000 [287:0Pos:   2.7s     19f (40%)  0.00fps Trem:   0min   0mb  A-V:0.000 [272:0Pos:   2.9s     20f (40%)  0.00fps Trem:   0min   0mb  A-V:0.000 [259:0Pos:   3.0s     21f (40%)  0.00fps Trem:   0min   0mb  A-V:0.000 [246:0Pos:   3.1s     22f (40%)  0.00fps Trem:   0min   0mb  A-V:0.000 [238:0Pos:   3.3s     23f (40%)  0.00fps Trem:   0min   0mb  A-V:0.000 [240:0Pos:   3.4s     24f (42%)  0.00fps Trem:   0min   0mb  A-V:0.000 [235:0Pos:   3.6s     25f (43%)  0.00fps Trem:   0min   0mb  A-V:0.000 [238:0Pos:   3.7s     26f (46%)  0.00fps Trem:   0min   0mb  A-V:0.000 [252:0Pos:   3.9s     27f (50%)  0.00fps Trem:   0min   0mb  A-V:0.000 [264:0Pos:   4.0s     28f (55%)  0.00fps Trem:   0min   0mb  A-V:0.000 [274:0Pos:   4.1s     29f (59%)  0.00fps Trem:   0min   0mb  A-V:0.000 [282:0Pos:   4.3s     30f (63%)  0.00fps Trem:   0min   0mb  A-V:0.000 [290:0Pos:   4.4s     31f (67%)  0.00fps Trem:   0min   0mb  A-V:0.000 [296:0Pos:   4.6s     32f (71%)  0.00fps Trem:   0min   0mb  A-V:0.000 [301:0Pos:   4.7s     33f (74%)  0.00fps Trem:   0min   0mb  A-V:0.000 [292:0Pos:   4.9s     34f (74%)  0.00fps Trem:   0min   0mb  A-V:0.000 [284:0Pos:   5.0s     35f (74%)  0.00fps Trem:   0min   0mb  A-V:0.000 [276:0Pos:   5.1s     36f (74%)  0.00fps Trem:   0min   0mb  A-V:0.000 [281:0Pos:   5.3s     37f (78%)  0.00fps Trem:   0min   0mb  A-V:0.000 [284:0Pos:   5.4s     38f (81%)  0.00fps Trem:   0min   0mb  A-V:0.000 [287:0Pos:   5.6s     39f (84%)  0.00fps Trem:   0min   0mb  A-V:0.000 [287:0Pos:   5.7s     40f (86%)  0.00fps Trem:   0min   0mb  A-V:0.000 [288:0Pos:   5.9s     41f (89%)  0.00fps Trem:   0min   0mb  A-V:0.000 [288:0Pos:   6.0s     42f (91%)  0.00fps Trem:   0min   0mb  A-V:0.000 [286:0Pos:   6.1s     43f (93%)  0.00fps Trem:   0min   0mb  A-V:0.000 [284:0Pos:   6.3s     44f (94%)  0.00fps Trem:   0min   0mb  A-V:0.000 [281:0Pos:   6.4s     45f (95%)  0.00fps Trem:   0min   0mb  A-V:0.000 [276:0Pos:   6.6s     46f (96%)  0.00fps Trem:   0min   0mb  A-V:0.000 [270:0Pos:   6.7s     47f (96%)  0.00fps Trem:   0min   0mb  A-V:0.000 [264:0Pos:   6.9s     48f (96%)  0.00fps Trem:   0min   0mb  A-V:0.000 [259:0Pos:   7.0s     49f (96%)  0.00fps Trem:   0min   0mb  A-V:0.000 [253:0Pos:   7.1s     50f (96%)  0.00fps Trem:   0min   0mb  A-V:0.000 [248:0Pos:   7.3s     51f (96%)  0.00fps Trem:   0min   0mb  A-V:0.000 [244:0Pos:   7.4s     52f (96%)  0.00fps Trem:   0min   0mb  A-V:0.000 [239:0Pos:   7.6s     53f (96%)  0.00fps Trem:   0min   0mb  A-V:0.000 [235:0Pos:   7.7s     54f (96%)  0.00fps Trem:   0min   0mb  A-V:0.000 [230:0Pos:   7.9s     55f (96%)  0.00fps Trem:   0min   0mb  A-V:0.000 [228:0Pos:   8.0s     56f (97%)  0.00fps Trem:   0min   0mb  A-V:0.000 [225:0Pos:   8.1s     57f (97%)  0.00fps Trem:   0min   0mb  A-V:0.000 [222:0Pos:   8.3s     58f (97%)  0.00fps Trem:   0min   0mb  A-V:0.000 [218:0Pos:   8.4s     59f (98%)  0.00fps Trem:   0min   0mb  A-V:0.000 [216:0Pos:   8.6s     60f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [213:0Pos:   8.7s     61f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [210:0Pos:   8.9s     62f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [208:0Pos:   9.0s     63f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [204:0Pos:   9.1s     64f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [201:0Pos:   9.3s     65f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [198:0Pos:   9.4s     66f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [195:0Pos:   9.6s     67f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [192:0Pos:   9.7s     68f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [189:0Pos:   9.9s     69f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [187:0Pos:  10.0s     70f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [184:0Pos:  10.1s     71f (99%)  0.00fps Trem:   0min   0mb  A-V:0.000 [181:0Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream:  181.927 kbit/s  (22740 B/s)  size: 230657 bytes  10.143 secs  71 frames
But the cap.gif which is the result of the output of the command, is not a gif file - and so the encoder says, cap.gof plays as an AVI file.

Last edited by mjjzf; 02-06-2007 at 07:43 AM.
 
Old 02-06-2007, 01:03 PM   #2
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
Hi,

Check
Code:
mencoder -of help
and see if gif is supported.

Happy Penguins!
 
Old 02-07-2007, 06:03 AM   #3
mjjzf
Member
 
Registered: Feb 2004
Location: Valby, Denmark / Citizen of the Web
Distribution: Slackware 14.1
Posts: 879

Original Poster
Rep: Reputation: 39
It seems it is not, thank you for the hint.
I got a good tip from a mate about using Ffmpeg for it instead.
 
  


Reply

Tags
gif, mencoder



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gif strycnine Linux - Newbie 5 01-11-2007 06:05 AM
need shell script to copy 1.gif to 1-100.gif stefaandk Programming 6 03-23-2006 06:20 PM
help with gif rksprst General 6 07-03-2005 05:19 PM
GIF help oldstinkyfish Linux - Software 1 12-03-2004 12:49 AM
no gif raven Linux - General 0 03-16-2002 05:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration