ffmpeg fix

ljaffe

Joined: 2004-03-15
Posts: 5
Posted: Thu, 2005-08-18 13:12

I was having trouble with ffmpeg creating thumbnails from my avi movies. I ended up having to update my ffmpeg to the latest version and found that the 'singlejpeg' format is no longer supported. it has been replaced by the 'mjpeg' argument.

You can fix G2 by replacing 'singlejpeg' wth 'mjpeg'in file g2/modules/ffmpeg/classes/FfmpegToolkit.class.

Thanks for a great tool and for all your hard work.

Larry

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Thu, 2005-08-18 14:50

ljaffe, what version of ffmpeg is that? can you do us a favor and research when (in which ffmpeg version) that change first appeared? oh, and can you file a bug on sourceforge, with a link to this forum topic? Thanks!

 
buglerroller

Joined: 2005-07-25
Posts: 28
Posted: Fri, 2005-08-19 18:37

hmm.. giving it a shot. :P

 
buglerroller

Joined: 2005-07-25
Posts: 28
Posted: Fri, 2005-08-19 20:07

didnt work..

 
ljaffe

Joined: 2004-03-15
Posts: 5
Posted: Mon, 2005-08-22 21:06

This is the version to which I have upgraded:

ffmpeg version CVS, build 3211266, Copyright (c) 2000-2004 Fabrice Bellard
configuration: --enable-memalign-hack --make=gmake --disable-ffserver --disable-ffplay
built on Aug 17 2005 21:45:18, gcc: 3.3.5 (propolice)
ffmpeg CVS
libavcodec 3211266
libavformat 3211520

here is the post that first alerted me to the deprication of singlejpeg.

http://comments.gmane.org/gmane.comp.video.ffmpeg.user/1874

 
sogood007

Joined: 2005-08-22
Posts: 11
Posted: Mon, 2005-09-12 05:35

replace singlejpeg with mjpeg work for me. I have same ffmpeg CVS version (from Gentoo) as ljaffe

 
grnjelloman

Joined: 2003-01-06
Posts: 44
Posted: Sun, 2005-10-02 23:55

replacing the singlejpeg with mjpeg also wound up working for me as well.

 
leahcim

Joined: 2005-12-06
Posts: 3
Posted: Thu, 2005-12-08 12:58

Me Too™. :P

I can also confirm that recent versions of ffmpeg in Debian (eg. testing/etch) lack singlejpeg:

sarge version (0.cvs20050313-2):

michael@wibble:/usr/share/gallery2/modules/ffmpeg$ ffmpeg -formats|grep jpeg
ffmpeg version 0.4.9-pre1, build 4747, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --build i386-linux --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-a52 --enable-dts --disable-debug --prefix=/usr 
  built on Mar 22 2005 00:10:18, gcc: 3.3.5 (Debian 1:3.3.5-12)
 DE mjpeg           MJPEG video
  E mpjpeg          Mime multipart JPEG format
  E singlejpeg      single JPEG image
 DEA    adpcm_ima_smjpeg
  EV    ljpeg
 DEV D  mjpeg
 D V D  mjpegb

current etch version (0.cvs20050918-5):

michael@wibble:/usr/share/gallery2/modules/ffmpeg$ ffmpeg -formats|grep jpeg
ffmpeg version CVS, build 3276800, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --build i486-linux-gnu --enable-gpl --enable-pp --enable-zlib --enable-vorbis --enable-libogg --enable-theora --enable-a52 --enable-dts --enable-dc1394 --enable-libgsm --disable-debug --prefix=/usr 
  built on Nov 19 2005 00:08:41, gcc: 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)
 DE mjpeg           MJPEG video
  E mpjpeg          Mime multipart JPEG format
 DEA    adpcm_ima_smjpeg
  EV    ljpeg
 DEV D  mjpeg
 D V D  mjpegb

-MD (relieved that .AVI thumbs work now)

--
This is not a double .sig
--
This is not a double .sig

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Thu, 2005-12-08 13:55

this has been fixed in g2 a while ago.

just get a recent nightly snapshot of g2 and you're set.

 
dgtlmonk

Joined: 2006-01-27
Posts: 1
Posted: Fri, 2006-01-27 11:55

hi, i am using ffmpeg from http://www.videohelp.com/download/ffmpeggui03c.zip ... and i am trying to produce a thumb from a video clip but i can't see the image tho it's 22kb! i tried to output .tmp file and drag it to the browser .. somehome quicktime plug renders the image and i saw it .. tried to rename the .tmp file to .jpg but i can't see it ....

btw, that ffmpeg is version 0.4.9 build 4743 with --enable-mp3lame --enable-vorbis --enable-faad --enable-faac --enable-xvid --enable-mingwin32 --enable-a52 --enable-dts --enable-pp --enable-gpl and --enable-memalink-hack

my command to make a simple thumb is ffmpeg -i retro.avi -t 0:0:001 -f mpeg test.jpg

please help me ...

thanks!

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2006-01-27 17:37

mjpeg instead of mpeg?

just an idea, didn't really look at the code.

 
eyesore
eyesore's picture

Joined: 2006-01-21
Posts: 8
Posted: Sat, 2006-01-28 18:58

I've used both, ffmpeg is a little shaky, a great alternative is the Mplayer plugin, it just works and has a better API for your backend.

I was able to compile and "make" in a directory at my site at Bluehost without having to perform the final "make install" command which want's to
install at root level...something bluehost does not let you do.

::::::::::::eyesore

 
jvincent

Joined: 2007-03-23
Posts: 4
Posted: Fri, 2007-03-23 19:52

Replacing singlejpeg by mjpeg in FfmpegToolkit.class works for me on Ubuntu 6.06 using Gallery 2.0.2-1ubuntu0.1 / ffmpeg 3:0.cvs20050918-5ubuntu1.1.

Thanks of lot.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Fri, 2007-03-23 20:03

2.0.2 is really old. this has been fixed a long time ago. and the current stable version is 2.2 and is available in debian's experimental repository.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
jvincent

Joined: 2007-03-23
Posts: 4
Posted: Sat, 2007-03-24 00:07

I know that 2.0.2 is old but this is what ships with the latest Ubuntu with LTS (Long Term Support), version 6.06. So from that perspective it is not that old.

I prefer to use distribution packages as much as possible. Ubuntu is already testing Debian, I don't want to go with anything unstable and spend countless hours fixing other problems. I would have upgraded if there was no other solution but the patch worked for me.

Ideally, Ubuntu 6.06 would release an upgrade for Gallery.

Thanks.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sat, 2007-03-24 00:36

> So from that perspective it is not that old.
> I prefer to use distribution packages as much as possible.

ubuntu or debian are not providing support for gallery2. and they don't release stable release of gallery 2.
we do that. g2.0.x is too old.

if you have the choice between g2.0.x and g2.2 (or g2.1.2 for that matter), you have the choice between an older more buggy release with some security issues and a newer stable release with less bugs, more features and no known security issues.

--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage

 
jvincent

Joined: 2007-03-23
Posts: 4
Posted: Sat, 2007-03-24 23:00

> if you have the choice between g2.0.x and g2.2 (or g2.1.2 for that matter), you have the choice between an older more buggy release with some security issues and a newer stable release with less bugs, more features and no known security issues.

I am sure that g2.2 is more stable, has less bugs, more features, etc.. But not using provided packages involves more work in the short term and in the long run, one eventually needs to become a package maintainer. Most people can't do that for the hundreds of packages they use in a typical Linux installation. After all this is what distributions are for.

I am an Open Source user, I spend a lot of time trying to convince people that Open Source is good and sometimes better. This is how I contribute, but I am not a package maintainer.

If there are security issues in Gallery 2.0.2 that have not been released as Debian and Ubuntu security updates, then there is a problem. I don't know if this a Debian or Ubuntu or Gallery problem but overall this is an Open Source problem.

Maybe someone should contact the maintainers of these packages. I am not familiar with the process for package updates. Are the maintainers for the Gallery Debian packages active enough? Should some active Gallery contributor become part of the maintainers of these packages?

Open Source needs to become usable by everyone if it is to become mainstream. Firefox is one of the best examples of what excellent Open Source can be because anyone can download, install and use it and it comes with automatic (security and al) updates.

Overall I thing Gallery is great. Thanks.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Sun, 2007-03-25 05:42

debian is a special case, as the package maintainer is a member of the gallery team.. so yes, debian gets updated in a timely fashion :-)
fyi, 2.0.4 was the last in the 2.0.x series..