LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-16-2009, 07:17 PM   #1
danpaluska
LQ Newbie
 
Registered: Dec 2009
Location: new york city and sometimes boston and hopefully sometime somewhere warmer
Distribution: i'm trying to remain agnostic. but fedora and ubuntu so far.
Posts: 20

Rep: Reputation: 0
ffmpeg unsupported codec. turnign jpgs into a movie


i've installed ffmpeg on 3 machines.
one mac and 2 fedora machines and the following line always works fine for me.

Code:
ffmpeg -i screen%04d.jpg ~/Videos/test2.avi
but now i am on a new ubuntu machine and i can't get it working.
i have tried the -vcodec option and various other things but always get an error.

like this:
Code:
Stream mapping:
  Stream #0.0 -> #0.0
Unsupported codec for output stream #0.0
or if i specify -vcodec mpeg4 i get
Code:
Unknown encoder 'mpeg4'
i searched for this on several forums and saw some references to installing some thing convertit and i believe i successfully did that but i'm a linux newb so i'm not relly sure... it wasn't a command line install, it was a graphical package manager thing.

i installed ffmpeg with the sudo apt-get on ubuntu 9.04

where to now?


oh yeah, full text of command and error.

[CODE]
ffmpeg -i screen%04d.jpg ~/Videos/test3.mp4
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-neon --disable-altivec --disable-vis --enable-shared --disable-static
libavutil 49.15. 0 / 49.15. 0
libavcodec 52.20. 0 / 52.20. 0
libavformat 52.31. 0 / 52.31. 0
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Apr 10 2009 23:18:41, gcc: 4.3.3
Input #0, image2, from 'screen%04d.jpg':
Duration: 00:00:02.76, start: 0.000000, bitrate: N/A
Stream #0.0: Video: mjpeg, yuvj420p, 1440x900 [PAR 1:1 DAR 8:5], 25 tbr, 25 tbn, 25 tbc
Output #0, mp4, to '/home/centralsqwall/Videos/test3.mp4':
Stream #0.0: Video: 0x0000, yuvj420p, 1440x900 [PAR 1:1 DAR 8:5], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Stream mapping:
Stream #0.0 -> #0.0
Unsupported codec for output stream #0.0
[\CODE]

Last edited by danpaluska; 12-16-2009 at 07:25 PM. Reason: added full text of command and error. capitalized CODe tags
 
Old 12-17-2009, 09:46 AM   #2
drgraefy
LQ Newbie
 
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
In Debian there's a package called "libavcodec52":

servo:~ 0$ apt-cache show libavcodec52
Package: libavcodec52
Priority: optional
Section: libs
Installed-Size: 9952
Maintainer: Debian multimedia packages maintainers <pkg-multimedia-maintainers@lists.alioth.debian.org>
Architecture: i386
Source: ffmpeg (4:0.5+svn20090706-2)
Version: 4:0.5+svn20090706-2+b1
Depends: libavutil49 (>= 4:0.5+svn20090706) | libavutil-extra-49 (>= 4:0.5+svn20090706), libavutil49 (<< 4:0.5+svn20090706-99) | libavutil-extra-49 (<< 4:0.5+svn20090706-99), libc6 (>= 2.7), libdirac-encoder0, libfaad2, libgsm1 (>= 1.0.13), libopenjpeg2, libschroedinger-1.0-0 (>= 1.0.0), libspeex1 (>= 1.2~beta3-1), libtheora0 (>= 0.0.0.alpha7.dfsg), libvorbis0a (>= 1.1.2), libvorbisenc2 (>= 1.1.2), zlib1g (>= 1:1.1.4)
Filename: pool/main/f/ffmpeg/libavcodec52_0.5+svn20090706-2+b1_i386.deb
Size: 3873212
MD5sum: 232579f88b030a0860fb4ea4ccae3fae
SHA1: ea5bff682f4cd907c864973c456b18813b110d39
SHA256: 0bd76cdf759807bbd382e0f1e3b19f226fc48fc5cdf226f3124cb637c185d414
Description: ffmpeg codec library
This is the codec library from the ffmpeg project. It supports most existing encoding formats (MPEG, DivX, MPEG4, AC3, DV...).
.
This package contains a Debian-specific version of the libavcodec shared object that should only be used by Debian packages.
Tag: role::shared-lib

servo:~ 0$

Do you have that package installed? Maybe there's an Ubuntu equivalent? I just did a search for "codec ffmpeg".

jamie.
 
Old 12-17-2009, 11:13 AM   #3
danpaluska
LQ Newbie
 
Registered: Dec 2009
Location: new york city and sometimes boston and hopefully sometime somewhere warmer
Distribution: i'm trying to remain agnostic. but fedora and ubuntu so far.
Posts: 20

Original Poster
Rep: Reputation: 0
i believe i found the answer. it lies here:
http://ubuntuforums.org/showthread.p...upported+codec

legal stuff, not full libraries of codec in ubuntu.

but this gets you most complete libraries.
Code:
sudo apt-get install ffmpeg libavcodec-unstripped-52
but now i get a different error...
Code:
centralsqwall@PowerSpec:~/Pictures/OMPD/test-12-16$ ffmpeg -r 20 -b 5000 -i screen%04d.jpg ~/Videos/AUTOUPLOAD/OMPD-12-16-test.mp4
FFmpeg version 0.5-svn17737+3:0.svn20090303-1ubuntu6, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --extra-version=svn17737+3:0.svn20090303-1ubuntu6 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --disable-stripping --disable-vhook --enable-libdc1394 --disable-armv5te --disable-armv6 --disable-armv6t2 --disable-armvfp --disable-neon --disable-altivec --disable-vis --enable-shared --disable-static
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Apr 10 2009 23:18:41, gcc: 4.3.3
Input #0, image2, from 'screen%04d.jpg':
  Duration: 00:00:10.90, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: mjpeg, yuvj420p, 1440x900 [PAR 1:1 DAR 8:5], 20 tbr, 20 tbn, 20 tbc
Output #0, mp4, to '/home/centralsqwall/Videos/AUTOUPLOAD/OMPD-12-16-test.mp4':
    Stream #0.0: Video: mpeg4, yuv420p, 1440x900 [PAR 1:1 DAR 8:5], q=2-31, 5 kb/s, 90k tbn, 20 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
Segmentation fault
centralsqwall@PowerSpec:~/Pictures/OMPD/test-12-16$
now i will try the full compile here:
http://ubuntuforums.org/showthread.php?t=786095
 
Old 12-17-2009, 12:08 PM   #4
danpaluska
LQ Newbie
 
Registered: Dec 2009
Location: new york city and sometimes boston and hopefully sometime somewhere warmer
Distribution: i'm trying to remain agnostic. but fedora and ubuntu so far.
Posts: 20

Original Poster
Rep: Reputation: 0
so i went through that install procedure and now i get this error

Code:

Code:
centralsqwall@PowerSpec:~/Pictures/OMPD/test-12-16$ ffmpeg
bash: /usr/bin/ffmpeg: No such file or directory
i have to link the ffmpeg directory to the /usr/bin directory? or move it?
 
Old 12-17-2009, 12:52 PM   #5
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Local compilations generally install to /usr/local/bin by default. If you want it to install to /usr/bin, you'll need to add a "--prefix=/usr" configuration option.

A better option however would be to add /usr/local/bin to your $PATH, so that commands located there are also automatically located.

Finally, you need to make sure you're entering the correct name for the codecs and formats you use in ffmpeg. "ffmpeg -formats" will list everything that's available to the version you're using.
 
Old 01-21-2010, 06:37 PM   #6
danpaluska
LQ Newbie
 
Registered: Dec 2009
Location: new york city and sometimes boston and hopefully sometime somewhere warmer
Distribution: i'm trying to remain agnostic. but fedora and ubuntu so far.
Posts: 20

Original Poster
Rep: Reputation: 0
i ended up reinstalling the OS as ubuntu 9.10 (was 9.04) and it works fine now.
 
  


Reply



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
ffmpeg - flv Unsupported audio codec JavaNinja Linux - Software 15 06-02-2011 02:08 AM
Trying to convert mp4 animation to dvd video with ffmpeg, unsupported codec? newtovanilla Linux - Newbie 4 12-29-2008 12:10 PM
ffmpeg - Unsupported codec for output stream #0.0 yitzle Linux - Software 4 01-30-2008 04:37 AM
AAC unsupported in my ffmpeg J_angel2000 Linux - Software 5 04-30-2007 12:19 PM
ffmpeg complains about codec pi314159 Linux - Software 1 11-14-2005 03:38 PM

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

All times are GMT -5. The time now is 12:28 PM.

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