RVDowning Posted December 5, 2007 Share Posted December 5, 2007 I've been trying to convert jpg images to an mpg using "convert *.jpg test.mpg" but it fails looking for "mpeg2encode". Anybody know an rpm that contains this item? Link to comment Share on other sites More sharing options...
scarecrow Posted December 5, 2007 Share Posted December 5, 2007 Most likely you're after that one, which is just an mencoder/mjpegtools frontend: http://encode2mpeg.sourceforge.net/ Link to comment Share on other sites More sharing options...
Greg2 Posted December 5, 2007 Share Posted December 5, 2007 I'm guessing you're using convert from imagemagic, and I think you need mjpegtools? Link to comment Share on other sites More sharing options...
RVDowning Posted December 5, 2007 Author Share Posted December 5, 2007 I am using convert from imagemagic. I thought I had mjpegtools installed, but maybe not. I'll have to check when I get back home. Thanks for the responses. I'll let you know. Link to comment Share on other sites More sharing options...
RVDowning Posted December 6, 2007 Author Share Posted December 6, 2007 Well, I have mjpegtools, but still no mpeg2encode as the following attests. [root@localhost rvd]# urpmi mjpegtools Package mjpegtools-1.9.0-0.rc2.3mdv2008.0.i586 is already installed [root@localhost rvd]# updatedb [root@localhost rvd]# locate mpeg2encode [root@localhost rvd]# When I try the following: [rvd@localhost ImageRecording]$ convert *.jpg test.mpg I get: sh: mpeg2encode: command not found convert: Delegate failed `"mpeg2encode" "%i" "%o"'. [rvd@localhost ImageRecording]$ Any more ideas? Link to comment Share on other sites More sharing options...
lavaeolus Posted December 6, 2007 Share Posted December 6, 2007 Seems that someone has the same problem: http://www.imagemagick.org/pipermail/magic...ril/012579.html there seems to be a package named ppmtompeg, don't know if this is the case with mandriva, after some googling I found someone referring to netpbm, maybe it's part of this package, haven't used this so far, so I'm not really sure. Link to comment Share on other sites More sharing options...
RVDowning Posted December 6, 2007 Author Share Posted December 6, 2007 lavaeolus said: Seems that someone has the same problem: That is a bit dated though. The message was posted in April of 2004. I didn't have this problem with Mandriva 2007.* I may have had to install some encoder/decoder, but if so, I simply don't remember what it was. Link to comment Share on other sites More sharing options...
mmodem Posted December 6, 2007 Share Posted December 6, 2007 To search what rpm has a certain file you do urpmf: in this case: urpmf mpeg2encode ~]$ urpmf mpeg2encode lib64mjpegtools1.9_0-devel:/usr/include/mjpegtools/mpeg2enc/mpeg2encoder.hh but what you need is mpeg2enc ~]$ urpmf -f mpeg2enc lib64mjpegtools1.9_0-1.9.0-0.rc2.3mdv2008.0.x86_64:/usr/lib64/libmpeg2encpp-1.9.so.0 lib64mjpegtools1.9_0-1.9.0-0.rc2.3mdv2008.0.x86_64:/usr/lib64/libmpeg2encpp-1.9.so.0.1.1 mjpegtools-1.9.0-0.rc2.3mdv2008.0.x86_64:/usr/bin/mpeg2enc mjpegtools-1.9.0-0.rc2.3mdv2008.0.x86_64:/usr/share/man/man1/mpeg2enc.1.bz2 Link to comment Share on other sites More sharing options...
Greg2 Posted December 6, 2007 Share Posted December 6, 2007 You could try using a symlink ln -s /usr/bin/mpeg2enc /usr/bin/mpeg2encode it may work, but I can't be sure. Link to comment Share on other sites More sharing options...
RVDowning Posted December 6, 2007 Author Share Posted December 6, 2007 Ah, didn't realize that it was mpeg2enc that I needed instead of mpeg2encode. I'll see if I have it, and if so try the symlink. Thanks Link to comment Share on other sites More sharing options...
RVDowning Posted December 7, 2007 Author Share Posted December 7, 2007 (edited) Well, I tried "ln -s /usr/bin/mpeg2enc /usr/bin/mpeg2encode" and was close but no cigars. :sad: I get: [root@localhost ImageRecording]# convert *.jpg test3.mpg **ERROR: [mpeg2encode] Output file name (-o option) is required! Seems the convert program does not pass the appropriate options to mpeg2enc. I'm not sure what to do about this -- perhaps just wait for 2008.1 and see if stuff is fixed then. Sigh....... Edited December 7, 2007 by RVDowning Link to comment Share on other sites More sharing options...
mmodem Posted December 7, 2007 Share Posted December 7, 2007 Yes i see the problem but thats a convert problem, but you could simply try speaking with convert author about this bug, this isnt a mandriva bug. Link to comment Share on other sites More sharing options...
RVDowning Posted December 7, 2007 Author Share Posted December 7, 2007 (edited) I know it is not a Mandriva bug. It is just a bug in a program included by default in the distribution. Thought folks here might have an idea how to get the original mpeg2encode that the convert program wanted, or otherwise perhaps suggest a fix or workaround. Edited December 7, 2007 by RVDowning Link to comment Share on other sites More sharing options...
Greg2 Posted December 7, 2007 Share Posted December 7, 2007 RVDowning said: Thought folks here might have an idea how to get the original mpeg2encode that the convert program wantedThe latest source code that I can find is from July 19, 1996. It compiles without any problems on Mandriva 2008, but I haven't tried to convert anything with it. If you would like to try it, do:wget ftp://202.136.100.225/mnt5/FreeBSD/ports/distfiles/mpeg2vidcodec_v12.tar.gz tar xvzf mpeg2vidcodec_v12.tar.gz cd mpeg2 make cd src/mpeg2dec cp mpeg2decode /usr/local/bin cd ../mpeg2enc cp mpeg2encode /usr/local/bin Then you must remove the mpeg2encode symlink from /usr/bin and you should clean up (delete) the ~/mpeg2 directory you've created for the compile. Please let us know if this works for you? Link to comment Share on other sites More sharing options...
dexter11 Posted December 8, 2007 Share Posted December 8, 2007 RVDowning said: Well, I tried "ln -s /usr/bin/mpeg2enc /usr/bin/mpeg2encode" and was close but no cigars. :sad: I get: [root@localhost ImageRecording]# convert *.jpg test3.mpg **ERROR: [mpeg2encode] Output file name (-o option) is required! According to the error message you used wrong syntax in your command. It should be: convert *.jpg -o test3.mpg Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now