Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old 1 Day Ago   #641
andrew.46
Still having fun...
 
andrew.46's Avatar
 
Join Date: Dec 2006
Beans: 3,011
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Install and use the latest FFmpeg and x264

Hi liquidox,

Quote:
Originally Posted by liquidox View Post
Coincidentally I can't get mplayer to compile with x264 support either
Just a small point: MPlayer does not require x264 to run successfully and play back h264 media files. However x264 is required by MEncoder to create h264 media. I presume you need MEncoder as well as MPlayer?

Andrew
__________________
Do you think that's air you're breathing?
andrew.46 is offline   Reply With Quote
Old 23 Hours Ago   #642
liquidox
First Cup of Ubuntu
 
Join Date: Oct 2009
Beans: 12
Re: HOWTO: Install and use the latest FFmpeg and x264

Quote:
Originally Posted by andrew.46 View Post
Hi liquidox,

Just a small point: MPlayer does not require x264 to run successfully and play back h264 media files. However x264 is required by MEncoder to create h264 media. I presume you need MEncoder as well as MPlayer?

Andrew
Yea I meant the compilation of mencoder, it just wont find h264, neither does ffmpeg now, so I'm thinking it's possibly a Mythbuntu problem?

Just wondering if anyone with Mythbuntu 9.10 has gotten this to work, maybe I should ask in that subforum as well or instead.
liquidox is offline   Reply With Quote
Old 21 Hours Ago   #643
osced
First Cup of Ubuntu
 
Join Date: Oct 2009
Location: Sweden
Beans: 10
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Install and use the latest FFmpeg and x264

Quote:
Originally Posted by FakeOutdoorsman View Post
More information would be useful. When do you get this error? What version of Ubuntu are you using?
Oh Sorry I forgot to put more info in my post, but I tried again today and it worked this time..it was probably something I did wrong yesterday

/Osced
osced is offline   Reply With Quote
Old 21 Hours Ago   #644
Bachstelze
Ubuntu French Roast
 
Bachstelze's Avatar
 
Join Date: Nov 2005
Location: Bordeaux, France
Beans: 7,160
Ubuntu Development Release
Send a message via AIM to Bachstelze Send a message via MSN to Bachstelze
Re: HOWTO: Install and use the latest FFmpeg and x264

Quote:
Originally Posted by andrew.46 View Post
Hi liquidox,



Just a small point: MPlayer does not require x264 to run successfully and play back h264 media files. However x264 is required by MEncoder to create h264 media. I presume you need MEncoder as well as MPlayer?

Andrew
Actually, it is not. libavcodec has a builtin version of libx264, and mencoder uses that by default, so a separate installation of x264 is not required.
__________________
ROMEO: I dreamt a dream to-night.
MERCUTIO: And so did I.
ROMEO: Well, what was yours?
MERCUTIO: That dreamers often lie.
Bachstelze is online now   Reply With Quote
Old 21 Hours Ago   #645
andrew.46
Still having fun...
 
andrew.46's Avatar
 
Join Date: Dec 2006
Beans: 3,011
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Install and use the latest FFmpeg and x264

Hi Bachstelze,

Quote:
Originally Posted by Bachstelze View Post
Actually, it is not. libavcodec has a builtin version of libx264, and mencoder uses that by default, so a separate installation of x264 is not required.
My apologies I was not aware of this...

Andrew
__________________
Do you think that's air you're breathing?
andrew.46 is offline   Reply With Quote
Old 14 Hours Ago   #646
Nepherte
Fresh Brewed Ubuntu
 
Join Date: Apr 2007
Location: Belgium
Beans: 1,526
Send a message via MSN to Nepherte
Re: HOWTO: Install and use the latest FFmpeg and x264

Quote:
Originally Posted by andrew.46 View Post
Hi Bachstelze,



My apologies I was not aware of this...

Andrew
If you want to use the external x264, you need to use the --disable-x264-lavc flag, as stated in ./configure --help
__________________
Disclaimer: I am currently suffering from severe CSD (Compulsive Sarcasm Disorder).
My Site | Linux User #452328 | Running Arch Linux on Sony Vaio VGN-SZ61XN/C since October 2008
Nepherte is offline   Reply With Quote
Old 13 Hours Ago   #647
FakeOutdoorsman
May the Ubuntu Be With You!
 
FakeOutdoorsman's Avatar
 
Join Date: Sep 2006
Location: Alaska
Beans: 1,588
Re: HOWTO: Install and use the latest FFmpeg and x264

Quote:
Originally Posted by osced View Post
Oh Sorry I forgot to put more info in my post, but I tried again today and it worked this time..it was probably something I did wrong yesterday

/Osced
You might be jumping to conclusions if you blame yourself. Most likely is was a change in x264 that FFmpeg needed to catch up with, but this is a guess. I haven't been keeping up with the changes much in the last week. Errors when compiling SVN FFmpeg occur every once in a while, but are usually fixed within a day or two.
FakeOutdoorsman is offline   Reply With Quote
Old 12 Hours Ago   #648
andrew.46
Still having fun...
 
andrew.46's Avatar
 
Join Date: Dec 2006
Beans: 3,011
Ubuntu 9.10 Karmic Koala
Re: HOWTO: Install and use the latest FFmpeg and x264

Hi Bachstelze,

Quote:
Originally Posted by Bachstelze View Post
libavcodec has a builtin version of libx264, and mencoder uses that by default, so a separate installation of x264 is not required.
Just for my own edification I have built MPlayer and MEncoder in the complete absence of any external x264 libraries. On my system this resulted in a failure to build x264 encoding support for MEncoder while still successfully compiling both MPlayer and MEncoder. Can you duplicate this result or is it an anomaly on my system?

All the best,

Andrew
__________________
Do you think that's air you're breathing?
andrew.46 is offline   Reply With Quote
Old 11 Hours Ago   #649
Bachstelze
Ubuntu French Roast
 
Bachstelze's Avatar
 
Join Date: Nov 2005
Location: Bordeaux, France
Beans: 7,160
Ubuntu Development Release
Send a message via AIM to Bachstelze Send a message via MSN to Bachstelze
Re: HOWTO: Install and use the latest FFmpeg and x264

Quote:
Originally Posted by andrew.46 View Post
Hi Bachstelze,



Just for my own edification I have built MPlayer and MEncoder in the complete absence of any external x264 libraries. On my system this resulted in a failure to build x264 encoding support for MEncoder while still successfully compiling both MPlayer and MEncoder. Can you duplicate this result or is it an anomaly on my system?

All the best,

Andrew
My mistake, I spoke a bit too fast. Even building x264 support in libavcodec requires the x264 headers. I wonder what difference it makes, then. I'll investigate that.
__________________
ROMEO: I dreamt a dream to-night.
MERCUTIO: And so did I.
ROMEO: Well, what was yours?
MERCUTIO: That dreamers often lie.
Bachstelze is online now   Reply With Quote
Old 8 Hours Ago   #650
mc4man
Ubuntu addict and loving it
 
Join Date: Jun 2007
Beans: 4,176
Re: HOWTO: Install and use the latest FFmpeg and x264

If you were to build a static x264 and then build mplayer/mencoder off of it (w/ x264 enabled) then once it's built, encoding is 'built-in'. You could then remove your x264 build, (.h, .a, .pc, x264) and mencoder would still encode.

If you built x264 with --enabled-shared and mplayer/mencoder off of the headers then you'd need the corresponding libx264-XX present for encoding ( or mplayer/mencoder to run at all

Last edited by mc4man; 8 Hours Ago at 08:24 PM..
mc4man is offline   Reply With Quote

Bookmarks

Tags
encode, ffmpeg, h264, libx264, x264

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:16 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry