Ubuntu Multimedia :: Ffmpeg: Libx264 Error When Using Presets?
May 25, 2011
OS: Ubuntu 10.04 LTS (Lucid Lynx)
I have installed the latest ffmpeg using this tutorial : HOWTO: Install and use the latest FFmpeg and x264.
What ever I do I always get the same error when trying to use ffmpeg with the new presets setting. I've searched forums and google the whole last day and now I'm pretty lost.
Here is the command I use (I've stripped it down to it's simplest form.):
Code:
$ ffmpeg -i ~/Desktop/input.mkv -vcodec libx264 -vpre lossless_slow ~/Desktop/output.mp4
and this is the error:
[Code]....
I've tried changing the bitrate, adding -pass 1, bitrate tolerance, quality based etc... I've tried at least 60 different things... reinstall ffmpeg countless times using different tutorials. It's always the same error.
View 6 Replies
ADVERTISEMENT
Jan 12, 2015
I use ffmpeg to covert video files for the net.
Code: Select allffmpeg -i infile -vcodec libx264 -vpre ipod640 -b 250k -bt 50k -acodec libfaac -ab 56k -ac 2 -s res.mp4
which works good. I was wondering if I could use larger resolution presets, but
find /usr -iname '*.ffpreset' only gives
#/usr/share/ffmpeg/libvpx-360p.ffpreset
#/usr/share/ffmpeg/libvpx-1080p.ffpreset
#/usr/share/ffmpeg/libx264-ipod320.ffpreset
#/usr/share/ffmpeg/libvpx-1080p50_60.ffpreset
#/usr/share/ffmpeg/libx264-ipod640.ffpreset
#/usr/share/ffmpeg/libvpx-720p50_60.ffpreset
#/usr/share/ffmpeg/libvpx-720p.ffpreset
with only 2 presets for libx264.
I installed ffmpeg from deb-multimedia. Is there a package which provides further preset files? There should be e.g. hq, max etc..
View 2 Replies
View Related
Jun 12, 2011
I was trying to run record it now, and switched from recordmydesktop to ffmpeg and it kept crashing. I tried it with the command line
Code:
ffmpeg -r 30 -s 1680x1050 -f x11grab -i :0.0 -vcodec msmpg2v2 -qscale 2 filename.avi
I have the following installed, but it's wanting libx264 which I don't see at slackbuilds.org:
[Code]....
Where should I start looking for missing things or...?
I also looked for xvidcap and kazam at slackbuilds.org but didn't see them there. Are those available?
View 10 Replies
View Related
Jun 19, 2010
(1)I got ffmpeg-checkout tarball dated 5 june 2010 . It was bigger than ffmpeg-export of same date but I noticed the binary ffmpeg & ffplay generated after './configure' & 'make' are same size.
(2)I am using ubuntu 8.04 with GNOME. I am able to compile ffmpeg with following options
[Code]....
Do I have to get tarballs (of libx264 & libtheora) & compile them .
View 6 Replies
View Related
Apr 8, 2009
I would like to install on my box FFMPEG with libx264 support. First of all I've tried yum install ffmpeg, but it occurs that it downloads a version from 2007 (?) and without libx264. Than I've tried this: [URL]. And everything goes ok till last ./configure:
./configure --enable-gpl --enable-postproc --enable-nonfree --enable-postproc --enable-libfaad --enable-swscale --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay
And in this moment I do "make" and get:
-bash-3.2# make
gcc -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -I"/usr/local/lib/tmp/ffmpeg2/ffmpeg" -fomit-frame-pointer -pthread -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -O3 -fno-math-errno
-c -o libswscale/swscale.o libswscale/swscale.c .....
libswscale/swscale.c:3409: warning: assignment discards qualifiers from pointer target type
make: *** [libswscale/swscale.o] Error 1
And as you can see I get a lots of errors. Tried to install it for 5 day now, How to make this work??
View 2 Replies
View Related
Mar 11, 2010
I spent several hours adding stations that xiph did not have. Only to wake this morning and see it wiped out everything. I cannot use it if there is no backup of everything I add! what file I can backup, so next loss, I can just restore a good ini?
View 3 Replies
View Related
Jan 22, 2011
I am using 11.2, KDE 4.3.5 with Grip and Flac to rip and encode CDs. Two questions:- Have read flac -help and do not understand the -o option which is used in a few example threads. The man page suggests that -o should be used with subsequent parameters such as --output_name=FILENAME for example. In the example posts this general option is used on its own. What for?
The installation when first used, already had a string of options including --best on the command line. I cannot find any documentation for this. I assume it is a preset in the same way as for example --preset extreme in lame.
View 4 Replies
View Related
Apr 26, 2010
The only preset for mobile phone is mp3. All video presets are gone...how to install them? Im using lucid atm
View 4 Replies
View Related
Jul 20, 2010
Since ffmpeg 6 is out for some time, when will Ubuntu Lucid afford such a new ffmpeg package from its repository?
View 2 Replies
View Related
Jan 5, 2010
I noticed that a lot of software updates were ready today so I installed all of them without thinking to make a note of what they were, so I don't know if ffmpeg or one of its dependencies was amongst them. The very next time I ran ffmpeg, it gave me an error I haven't seen before. After downloading a file from BBC's iPlayer site using get-iplayer, I ran a script to convert it to a format suitable for my Samsung YP-Q2 personal media player. I copied the command out of that script and pasted it onto the command line so that I could capture the console output of that encoding session, shown below:
Code:
[garry tv]$ ffmpeg -i inputfile.mp4 -acodec libmp3lame -ar 44100 -ab 128k -ac 2 -vcodec mpeg4 -b 1024k -r 15 -s qvga outputfile.avi
FFmpeg version git-bcf9828, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Oct 25 2009 11:48:38 with gcc 4.4.1
Configuration: --enable-gpl --enable-nonfree --enable-shared --enable-pthreads --enable-libx264 --enable-libfaac --enable-libtheora
libavutil 50. 3. 0 / 50. 3. 0
libavcodec 52.37. 1 / 52.20. 0
libavformat 52.39. 2 / 52.31. 0
libavdevice 52. 2. 0 / 52. 1. 0
libswscale 0. 7. 1 / 0. 7. 1
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x9d27700]ISO: File Type Major Brand: isom
st:1 removing common factor 48 from timebase
Seems stream 0 codec frame rate differs from container frame rate: 100.00 (100/1) -> 25.00 (25/1)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'inputfile.mp4':
Duration: 00:58:39.02, start: 0.000000, bitrate: 831 kb/s
Stream #0.0(und), 1/50: Video: h264, yuv420p, 640x360, 1/100, 25 tbr, 50 tbn, 100 tbc
Stream #0.1(und), 1/1000: Audio: aac, 48000 Hz, stereo, s16
ffmpeg: symbol lookup error: ffmpeg: undefined symbol: avcodec_channel_layout_num_channels
[garry tv]$
This error, "undefined symbol" is what makes me think that either ffmpeg or one of its dependencies has been updated or the error would have occurred before now. I've been using the script with the command in the above form for some weeks now with no problems, almost always converting an MP4 (but sometimes a .mov) into an AVI. Thinking that it might be the version of ffmpeg in the standard repos, I followed the advice of this thread and removed the standard ffmpeg and installed the one from Medibuntu. (Removing the standard one took WinFF and DVDRip with it, but I reinstalled those afterwards, and I'm sure they don't come into the equation otherwise.) I re-ran the command and the error was exactly as before. Is ffmpeg recently borked or am I missing something obvious? Or something obscure, for that matter?
View 7 Replies
View Related
Jun 3, 2010
were do i get the .dev files for libx264 0.98 i think is the version it is asking for.I install the latest libx264 from git or does that install the .dev file also.
View 3 Replies
View Related
Jan 29, 2011
I'm using mencoder to encode a DVD on my computer (reading it is not an issue), and I'm having trouble getting the codec to read a certain library.My command includes these options:
Code:
-ovc lavc
-lavcopts vcodec=libx264 (I also tried with libxvid)
It spat out this error at the end:
Code:
Cannot find codec 'libxvid' in libavcodec...
Couldn't open video filter 'lavc'.
Failed to open the encoder.
Exiting...
Unless I can get this working I'll fall back on mpeg4 but I would like these codecs. I've had good experiences with them. I've checked and the libx264-98 package is installed, along with libxvidcore4 and avifile-xvid-plugin Is this a permission problem? Or do I have to set a conf file? DO NOT suggest using a different -ovc or vcodec. If you have one that works for you, keep that for yourself. I am going to use lavc.
View 4 Replies
View Related
Dec 20, 2010
I am attempting to record my microphone input using ffmpeg / alsa but always receive the following error:
[code]...
Using arecord works perfectly with hw:0,0. I had also tried to use /dev/snd/hwC0D0 as input but I receive an error from alsa saying that it doesn't exist (despite it existing and having adequate permissions). I know absolutely nothing about hardware but am comfortable around the command line
View 2 Replies
View Related
Jul 24, 2011
I am having problems with ffmpeg. My goal is to capture a video stream from my webcam and feed that into a webcam-capturing program. But to get that to work, I will need ffmpeg to work. I need the following command to work, but I get an error:
Code:
$ ffmpeg -b 100K -an -f video4linux2 -s 320x240 -r 10 -i $device -b 100K -f image2pipe -vcodec mjpeg - | perl -pi -e 's/\xFF\xD8/KIRSLESEP\xFF\xD8/ig'
ffmpeg: relocation error: /usr/lib/libavfilter.so.2: symbol avformat_find_stream_info, version LIBAVFORMAT_53 not defined in file libavformat.so.53 with link time reference
View 1 Replies
View Related
Jan 22, 2011
I'm still trying to find out if my coby mp3 player will actually play mtv video files as is advertised.
ffmpeg -formats does list mtv but the only command I really ever used was one to convert a vid to an mp3 so I tried Code: ffmpeg -i test.mp4 -acodec copy output.mtv it returns Code: Unable to find a suitable output format for 'output.mtv' I can't find any mtv files online for purchase or free for that matter, so I know this is all pretty obscure but shouldn't there be a way to convert them since ffmpeg lists mtv format?
View 6 Replies
View Related
Apr 4, 2011
Today I opened upgrade manager and found some updates grayed out. I could not click them so I went to synaptic to try and install them and got this error:
Code:
ffmpeg:
Depends: libavcodec52 but it is not going to be installed or
libavcodec-extra-52 (>=4:0.5.1-1ubuntu1.1) but 4:0.5.1-1ubuntu1 is to be installed
Depends: libavdevice52 (>=4:0.5.1-1ubuntu1.1) but 4:0.5.1-1ubuntu1 is to be installed or
libavdevice-extra-52 but it is not going to be installed
Depends: libavfilter0 (>=4:0.5.1-1ubuntu1.1) but 4:0.5.1-1ubuntu1 is to be installed or
libavfilter-extra-0 but it is not going to be installed
Depends: libavformat52 (>=4:0.5.1-1ubuntu1.1) but 4:0.5.1-1ubuntu1 is to be installed or
libavformat-extra-52 but it is not going to be installed
Depends: libavutil49 but it is not going to be installed or
libavutil-extra-49 (>=4:0.5.1-1ubuntu1.1) but 4:0.5.1-1ubuntu1 is to be installed
Depends: libpostproc51 (>=4:0.5.1-1ubuntu1.1) but 4:0.5.1-1ubuntu1 is to be installed or
libpostproc-extra-51 but it is not going to be installed
Depends: libswscale0 (>=4:0.5.1-1ubuntu1.1) but 4:0.5.1-1ubuntu1 is to be installed or
libswscale-extra-0 but it is not going to be installed
I am running ubuntu 10.04.
View 5 Replies
View Related
Jan 13, 2010
I've got a bunch of HD files in .mkv format that I want to convert to a format that the 360 will read (currently just trying .avi files) so I can stream the media to my xbox360. I'd rather avoid transcoding the entire file, so I tried unpacking the .mkv file into audio and video (and subtitle if necessary) and repacking said file into avi using ffmpeg. The repacking is where I am having the problem. Here's the commands I tried at first (it might look familiar):
Code:
mkvextract tracks file.mkv 1:temp_video.avi 2:temp_audio.ogg 3:temp_sub.srt
ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy file.avi
However, I keep getting this annoying error:
Code:
Error while opening codec for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height Where stream #0.1 is the output audio stream to the .avi file. I think I have narrowed it down to the fact that the input streams are all 6 channel (5.1 surround sound) which mp2 doesn't support (the ffmpeg audio default) so I did this instead:
Code:
ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec libmp3lame file.avi
I'm still getting the same error, but when I use
Code:
ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec libmp3lame -ac 2 file.avi
to change the sound to stereo it works. Problem is I'd like to keep my media in surround sound. Any thoughts on how to get all 6 channels in the new mp3 file? I'm fairly certain that mp3s support 5.1. And after some messing around, I haven't found that my ffmpeg can transcode audio format from 5.1 back to 5.1. So since (I think) the 360 can play .ac3 files I decided to just copy both the video and audio file to the .avi file sans transcoding using
Code:
ffmpeg -i temp_video.avi -i temp_audio.ogg -vcodec copy -acodec copy file.avi
however now about halfway through, I run into this error:
Code:
NULL @ 0x22f3a00]error, non monotone timestamps 62562 >= 62562
av_interleaved_write_frame(): Error while opening file I can't seem to find any solution to this problem anywhere online, does anyone know how to get around this? I'd prefer to use ffmpeg for this if possible. (so I can write a script and just attack an entire directory at once) For what it's worth, I'm using the latest ffmpeg in the ubuntu (karmic) default repositories.
View 1 Replies
View Related
Apr 26, 2010
i want to convert a song from ogg format to mp3 using ffmpeg the command i use to do this is
ffmpeg -i /home/john/Music/input.ogg to mp3 output.mp3
i then get then get a message back saying
"unknown format"
how do i correct this ?
View 1 Replies
View Related
May 18, 2010
The command line to convert to ogg theora
ffmpeg -y -i input.flv -sameq OUTPUT.ogv
runs perfectly on 9.04 but on 10.04 it gives errors:
Code:
ffmpeg -y -i input.flv -sameq OUTPUT.ogv
FFmpeg version SVN-r0.5.1-4:0.5.1-1ubuntu1, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --extra-version=4:0.5.1-1ubuntu1 --prefix=/usr --enable-avfilter
[Code].....
View 9 Replies
View Related
May 27, 2010
It seems more and more people are encoding with the MKV container on bit torrent these days, and a lot of the shows I'm watching are starting to release almost exclusively with .mkv formatted videos. This is not a problem if I want to watch the shows on my computer but I've become accustomed to watching them on my PlayStation3 using my thumb drive. It seems the offical documentation for the PS3 includes a list of supported codecs [URL], but when I use FFMPEG to convert with libxvid video and aac audio in the MP4 container my PS3 says the output video is not supported. I've also tried most combinations of libxvid, libx264, mpeg4 for -vcodec and aac, libmp3lame for -acodec in several different container formats but nothing seems to work. I have found one option that always works:
Code:
ffmpeg -i inputfile.mkv -sameq -ac 2 outputfile.mpeg
I don't like doing it this way, however, as the output file is twice the size and the audio quality is terrible. If I don't reduce the audio channels to only two using -ac 2 FFMPEG throws an error (apparently MKV audio supports 6 channels). And preserving the video quality in MPEG video using -sameq produces too a large file (and I prefer to keep my files as lossless as possible). Ideally I want to save the files on an external HD I have but if a single episode of a show is 1.5 GB it's not very pratical.
Anyway, the PS3 docs say it supports h264 and xvid with aac audio, but apparently I'm doing something wrong. Has anyone sucessfully used FFMPEG to convert an MKV to MP4 for use on a PS3?
View 3 Replies
View Related
Jul 28, 2010
I have a .mkv container with proper video (h264/~6000kbps) and audio (DTS/1500kbps). For some reason I want to have similar quality but with another video and audio codecs. For video it goes well and ffmpeg is very helpful here, no problems. Also, I want DTS to become AC3/320-448kbps/5-6 channels. Commands like this:
Quote:
ffmpeg -i in.dts/mkv -acodec ac3 -ac 5 -ab 448k out.ac3
gives me not proper reordered sound in channels, so I hear center on the right, music on the left, etc.
Is there a way to make that properly with ffmpeg?
Also, I have a question about multi core encoding cause I have a quad processor. Ffmpeg seems not using them in all the way, I get something like 25% of CPU usage while encoding. Command -threads, even using the h264, does not make any extra load of cpu.
View 4 Replies
View Related
Jul 29, 2010
I'm making little animated bits in GIMP with the gap package. I can only get GIMP to encode the files as .avi. Problem here is that when I try to use any converter, it compresses 80MB files down to 1MB-4MB files and, unsurprisingly, the video quality is terrible. WinFF and ffmpeg (via terminal) output at a drastically reduced size. Is there some way to keep the files big/big-ish? I don't want to lose any detail.
View 6 Replies
View Related
Aug 31, 2010
i want to convert DVD movie to mp4 using x264 and aac. I'm having some issues with GUI apps.I use ffmpeg in terminal for all my single file converts and prefer to use it but don't know how to use it in terminal for a DVD movie to mp4.
View 9 Replies
View Related
Nov 4, 2010
Recently I installed gtk-recordMyDesktop, so that I could record my movements and send the Media File to my dad, so he could learn how to use Ubuntu too [plug]My problem is converting the .ogv file to .avi - I have tried ffmpeg but it loses quality dramatically.Can anyone tell me how to get better quality video out of ffmpeg, or let me know another way to convert the .ogv file to .avi or something that is widely used?
View 3 Replies
View Related
Feb 13, 2011
I've been recording one of my classes with my android phone, and the file it gives me is an .amr file. I'd like to convert that to .mp3, and I was hoping I could use ffmpeg to do it via the command line. Here's what I did, and the output that I got:
Quote:
roger@KarmaLaptop:~/Desktop$ ffmpeg -i Net202-week6.amr Net202-week6.mp3
FFmpeg version 0.6-4:0.6-2ubuntu6, Copyright (c) 2000-2010 the FFmpeg developers
built on Oct 5 2010 22:36:53 with gcc 4.4.5
configuration: --extra-version=4:0.6-2ubuntu6 --prefix=/usr --enable-avfilter
[Code]....
View 5 Replies
View Related
Jul 17, 2011
i have a mp4 file and i will convert it with ffmpeg and add new subtitle i use this command
Code:
ffmpeg -i Taylor-Swift-Mine.mp4 -b 768000 -r 24 -s 640x360 -aspect 16:9 -newsubtitle Mine.srt -ab 128000 -ac 2 -ar 44100 out.mp4
and output command
Code:
ffmpeg version N-30884-g54dd50d, Copyright (c) 2000-2011 the FFmpeg developers
built on Jun 20 2011 19:09:46 with gcc 4.4.3
configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-libfaac --enable-libopencore-amrnb --enable-
[code]...
At least one output file must be specified Do you see i can't convert my file now how i add subtitle to my video in ffmpeg
View 1 Replies
View Related
May 1, 2010
My system had a child related crash(apparently glowing switches are fun to play with) while mplayer was running and now libx264.so.59 is missing. I've tried searching for it and can only seem to come up with RPMs
View 6 Replies
View Related
Jan 14, 2010
have downloaded from internet to a mp4 format, so I can play them in my Nokia 5800.This is command line that works perfectly:ffmpeg -i "input.avi" -f mp4 -vcodec libxvid -s 640x360 -b 768kb -r 25 -aspect 16:9 -acodec libfaac -ab 96kb -ar 44100 -ac "output.mp4"n:Is there a way to make it really quiet so I can run it from cron..
View 2 Replies
View Related
Jan 17, 2010
I installed Audacity to convert an mp4 to an mp3. Now, I don't necessarily need Audacity to do this, but for the time being I'm more concerned with getting Audacity to work properly as opposed to getting an mp3 onto my iPod.
In Audacity, I went to Edit>Preferences>Libraries. For the MP3 Export Library, Audacity recognizes LAME, but under the FFmpeg Import/Export Library it says "FFmpeg library not found." I hit the Download button and read this page on how to install FFmpeg, noticing the warning about needing FFmpeg 0.5 or later on Linux.
I fired up Synaptic and searched for "ffmpeg," chose the vanilla version and installed it along with two dependencies which I don't exactly remember but I bet they were libavformat52 and libavdevice52.
Back in the Audacity Preferences window I chose the "Locate..." button to point to the newly installed libraries, but Audacity is not recognizing/installing them successfully. I've tried pointing to the following files:
/usr/lib/libavformat.so.52
/usr/lib/libavformat.so.52.36.0
/usr/lib/i686/cmov/libavformat.so.52
/usr/lib/i686/cmov/libavformat.so.52.36.0
/usr/share/lintian/overrides/libavformat52
[Code]....
Did I install the wrong version of FFmpeg or libavformat? Any pointers?
View 4 Replies
View Related
Mar 15, 2010
I have a file with about 6 .flv files and I wish to batch convert them to libmp3lame. I have tried making a #!bin/bash script with all the files in e.g.
Code:
ffmpeg -i filename.flv -sameq -acodec libmp3lame -f asf filename.mp3
I have inserted all the filenames individually into the script but when I ran it I got too many errors and i was wondering if someone knew a quicker way to do it e.g. a script that would batch convert all .flv files in that folder to .mp3 format.
View 8 Replies
View Related