View Full Version : Unknown encoder 'mpeg2video'
jpascone
10-26-2009, 06:51 PM
I finally got Pytivo up and running on Ubuntu and now i am getting the error from message from ffmpeg noted in the subject line when I actually go to play a Video.. When will this madness end?? Running the latest version of Ubuntu.
Thanks,
Jeffrey
windracer
10-26-2009, 09:07 PM
What version of ffmpeg are you using? It sounds like it's missing some codec support.
jpascone
10-26-2009, 09:22 PM
It also fails with streambaby, different error:
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
At least one output file must be specified
windracer
10-26-2009, 09:35 PM
Hmmm ... I'm no expert, but it seems like you might want to roll your own ffmpeg to replace that older one. What kind of file are you trying to transcode, just a plain MPEG-2? Here's what my current build looks like (compiled it myself):
FFmpeg version SVN-r19309, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr --enable-gpl --enable-postproc --enable-nonfree --enable-libvorbis --enable-libtheora --disable-debug --enable-libmp3lame --enable-libfaad --enable-pthreads --enable-libx264 --disable-ffplay --disable-ffserver --enable-libxvid --enable-shared --enable-memalign-hack --enable-runtime-cpudetect --enable-libgsm --disable-decoder=aac --enable-postproc
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.32. 0 / 52.32. 0
libavformat 52.36. 0 / 52.36. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 1 / 0. 7. 1
libpostproc 51. 2. 0 / 51. 2. 0
built on Jun 30 2009 15:50:40, gcc: 4.3.3
wmcbrine
10-26-2009, 09:38 PM
http://pytivo.sourceforge.net/forum/get-the-right-ffmpeg-for-ubuntu-t756.html
jpascone
10-27-2009, 09:52 AM
http://pytivo.sourceforge.net/forum/get-the-right-ffmpeg-for-ubuntu-t756.html
I ran
sudo wget http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list \
--output-document=/etc/apt/sources.list.d/medibuntu.list &&
sudo apt-get -q update &&
sudo apt-get --yes -q --allow-unauthenticated install medibuntu-keyring &&
sudo apt-get -q update
then I ran
sudo apt-get install libdvdcss2
then for fun I ran
sudo apt-get install w32codecs
Rebooted, and ffmpeg still has the same versions. I am using your fork. Did I miss a step?
Thanks!
Jeffrey
jpascone
10-27-2009, 01:09 PM
C. Installing the ubuntu-restricted-extras package
Another option for Jaunty and Ibex is to install the ubuntu-restricted-extras package. This is a metapackage, which means that it will install multiple packages including the "unstripped" FFmpeg libraries. This is a sledgehammer approach, especially if you are bandwidth limited, and will install a large amount of other packages that you may not want. To install this package, open up Terminal (Applications -> Accessories -> Terminal) and enter:
Code:
sudo apt-get install ffmpeg ubuntu-restricted-extras
wmcbrine
10-27-2009, 05:10 PM
Rebooted, and ffmpeg still has the same versions. I am using your fork. Did I miss a step?As indicated in the linked post, Medibuntu is the solution for 8.04, not for 8.10 or later. Edit: I've updated my post to emphasize this point, and to include the new instructions for 9.10.
Glad you got it sorted now. That "C" implies that you're quoting from somewhere? Ah, found it: http://ubuntuforums.org/showthread.php?t=1117283
lrhorer
10-27-2009, 05:55 PM
Actually, I was doing some testing with some h.264 video, and I was getting the same error. This is very puzzling since transcoding certainly used to work, back when I had to have pyTivo transcode to prevent errors in the video on very high bandwidth .mpg files. I'm not at my house right now, so I can't do any testing, but I'll try to do some a bit later.
Edit: The last time I tried to download and compile ffmpeg, I could not get it to work for what I was trying to do. I was trying to use ffmpeg to encode some h.264 video, and the version of ffmpeg in the Debian "Lenny" distro did not have the libx264, and libfaac libraries compiled in it. I downloaded the source for ffmpeg and compiled it, but I was never successful in getting h.264 coding to work. I finally got ffmpeg, libx264, and libfaac to build, but for some reason the libx264 didn't like my version of yasm, and I had to disable asm compilation. I was then able to compile, and the resultant binary would run, but when I tried to use the libx264 codec, I got a segmentation fault. I'm pretty sure I reverted to the ffmpeg in the distro. I'm running "Lenny" on the 2.6.15 (I think) AMD 64 kernel.
lrhorer
10-27-2009, 10:46 PM
The pertinent info:
RAID-Server:/usr/share/pyTivo# ffmpeg -version
FFmpeg version r11872+debian_0.svn20080206-18, Copyright (c) 2000-2008 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-libfaad --enable-pp --enable-swscaler --enable-x11grab --prefix=/usr --enable-libgsm --enable-libtheora --enable-libvorbis --enable-pthreads --disable-strip --enable-libdc1394 --enable-shared --disable-static
libavutil version: 49.6.0
libavcodec version: 51.50.0
libavformat version: 52.7.0
libavdevice version: 52.0.0
built on Jul 2 2009 03:48:11, gcc: 4.3.2
FFmpeg r11872+debian_0.svn20080206-18
libavutil 3212800
libavcodec 3355136
libavformat 3409664
libavdevice 3407872
RAID-Server:/usr/share/pyTivo# uname -a
Linux RAID-Server 2.6.26-2-amd64 #1 SMP Thu May 28 21:28:49 UTC 2009 x86_64 GNU/Linux
vBulletin® v3.6.8, Copyright ©2000-2012, Jelsoft Enterprises Ltd.