How can I update avconv?

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
frozenthermometer
Level 1
Level 1
Posts: 18
Joined: Wed Mar 25, 2015 9:23 pm

How can I update avconv?

Postby frozenthermometer » Tue Jun 02, 2015 11:16 pm

Hello all.
I need to update avconv to version 10.0 or newer. How do I do so?

Mute Ant
Level 11
Level 11
Posts: 3981
Joined: Tue Sep 03, 2013 7:45 pm

Re: How can I update avconv?

Postby Mute Ant » Wed Jun 03, 2015 8:23 am

Is this related to the warning from youtube-dl?
WARNING: Your copy of avconv is outdated, update avconv to version 10-0 or newer if you encounter any errors.

If so it's only a warning.

Try your official repository...

Code: Select all

sudo apt-get install libav-tools


Or compile your own version. It comes with all the library code built in, so it's unusually easy. You need some compiler tools in your system first...

Code: Select all

sudo apt-get install dpkg-dev build-essential nasm pkg-config

Download the source code...
https://libav.org/releases/libav-10.7.tar.gz
Right-click the libav-10.7.tar.gz file and Extract Here.
Right-click the new libav-10.7 folder and Open In Terminal.
One step at a time, compile the code...

Code: Select all

./configure

Code: Select all

make

...that's the binaries compiled for your machine...copy them to where they will be found first...

Code: Select all

sudo cp avconv avprobe avserver /usr/local/bin/

frozenthermometer
Level 1
Level 1
Posts: 18
Joined: Wed Mar 25, 2015 9:23 pm

Re: How can I update avconv?

Postby frozenthermometer » Wed Jun 03, 2015 11:39 pm

Mute Ant,
Yes! How did you know it's about youtube-dl?

I would ignore the warning if it stopped downloading a youtube video into unplayable formats, like webm. Anyway I updated youtube-dl to the latest version (sudo youtube-dl -U) and now, youtube-dl happily downloads youtube videos as MP4s. :)

User avatar
jimallyn
Level 16
Level 16
Posts: 6550
Joined: Thu Jun 05, 2014 7:34 pm
Location: Wenatchee, WA USA

Re: How can I update avconv?

Postby jimallyn » Thu Jun 04, 2015 3:13 am

There's another command line application called get_flash_videos that does pretty much the same thing as youtube-dl, but the other day I found a site that youtube-dl wouldn't download, but get_flash_videos would. (I think it's called get-flash-videos in Synaptic, but you have to call it from the command line as get_flash_videos.)
Image

“If the government were coming for your TVs and cars, then you'd be upset. But, as it is, they're only coming for your sons.” - Daniel Berrigan

frozenthermometer
Level 1
Level 1
Posts: 18
Joined: Wed Mar 25, 2015 9:23 pm

Re: How can I update avconv?

Postby frozenthermometer » Thu Jun 04, 2015 10:04 pm

Jimallyn, thank you! I plan to give that program a try.

reisubuntu
Level 1
Level 1
Posts: 1
Joined: Mon Aug 24, 2015 12:33 pm

Re: How can I update avconv?

Postby reisubuntu » Mon Aug 24, 2015 1:06 pm

libav-11.4.tar.gz
avconv -version
avconv version 11.4, Copyright (c) 2000-2014 the Libav developers
built on Aug 24 2015 19:57:46 with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
avconv 11.4
libavutil 54. 3. 0 / 54. 3. 0
libavcodec 56. 1. 0 / 56. 1. 0
libavformat 56. 1. 0 / 56. 1. 0
libavdevice 55. 0. 0 / 55. 0. 0
libavfilter 5. 0. 0 / 5. 0. 0
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 0. 0 / 3. 0. 0
youtube-dl -x --audio-format mp3 --audio-quality 128k https://www.youtube.com/watch?v=YqeW9_5kURI
[youtube] YqeW9_5kURI: Downloading webpage
[youtube] YqeW9_5kURI: Downloading video info webpage
[youtube] YqeW9_5kURI: Extracting video information
[youtube] YqeW9_5kURI: Downloading js player new
[youtube] YqeW9_5kURI: Downloading DASH manifest
[download] Destination: Major Lazer & DJ Snake - Lean On (feat. MØ) (Official Music Video)-YqeW9_5kURI.m4a
[download] 100% of 5.44MiB in 01:12
[ffmpeg] Correcting container in "Major Lazer & DJ Snake - Lean On (feat. MØ) (Official Music Video)-YqeW9_5kURI.m4a"
[avconv] Destination: Major Lazer & DJ Snake - Lean On (feat. MØ) (Official Music Video)-YqeW9_5kURI.mp3
ERROR: audio conversion failed: Unknown encoder 'libmp3lame'
?

Mute Ant
Level 11
Level 11
Posts: 3981
Joined: Tue Sep 03, 2013 7:45 pm

Re: How can I update avconv?

Postby Mute Ant » Mon Aug 24, 2015 3:25 pm

Code: Select all

sudo apt-get install libmp3lame0
perhaps, I didn't need to though.
http://ubuntuforums.org/showthread.php?t=1385688

Code: Select all

sudo apt-get install libav-tools
perhaps.

lmuserx4849
Level 4
Level 4
Posts: 464
Joined: Wed Dec 17, 2014 2:55 am

Re: How can I update avconv? Why not a PPA?

Postby lmuserx4849 » Tue Oct 27, 2015 7:26 pm

In a previous distribution I installed youtubedl and managed it with the option '-u'. With LM I installed via apt, more specifically synaptic. I required an update. I added ppa
"http://ppa.launchpad.net/nilarimogard/webupd8/ubuntu trusty main" based on readings. avconv was not provided by this ppa.

How do you find out what ppa's provide what package versions (ie. libav 10)? I searched at launchpad.net but got over 3500 hits.
Do you fully commit to a ppa, or do you take only what you need? For example, the update manager is showing asunder from this ppa. I'm tiptoeing into ppa's.

User avatar
Pjotr
Level 18
Level 18
Posts: 8592
Joined: Mon Mar 07, 2011 10:18 am
Location: The Netherlands (Holland)
Contact:

Re: How can I update avconv? Why not a PPA?

Postby Pjotr » Wed Oct 28, 2015 5:10 am

lmuserx4849 wrote:I'm tiptoeing into ppa's.

Watch your steps: software from PPA's (third-party repositories) is untested in your version of Linux Mint, and may damage the stability, the reliability and even the security of your system.

Furthermore, you make yourself dependent on the owner of the PPA, often only one person, who isn't being checked at all...

Therefore only use a PPA when you really (really!) have no acceptable alternative. Or when you're a tester for a particular piece of software (which you should only be doing on a non-essential test computer).

PPA's are a mixed blessing, to say the least. If used wisely and very restrictively, PPA's can occasionally be of great help. But used carelessly, they're a pest that plagues the earth.
Tip: 10 things to do after installing Linux Mint 18.2 Sonya
Keep your Linux Mint healthy: Avoid these 10 fatal mistakes
Twitter: twitter.com/easylinuxtips
All in all, horse sense simply makes sense.

j03k3rr
Level 4
Level 4
Posts: 208
Joined: Fri Aug 28, 2015 7:03 am

Re: How can I update avconv?

Postby j03k3rr » Wed Oct 28, 2015 9:43 am

Command to see what version of avconv you have:

Code: Select all

avconv 2>&1| grep version | awk '{print $3}'


This is how I updated it and keeping it up to date:

Code: Select all

sudo add-apt-repository ppa:heyarje/libav-11 && sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libav-tools


This is also how I keep up with latest youtube-dl

Code: Select all

sudo add-apt-repository ppa:nilarimogard/webupd8
sudo apt-get update
sudo apt-get install youtube-dl


If you're going to install youtube-dl from above PPA make sure you uninstall your current installation.
Check your version first,

Code: Select all

youtube-dl –-version


Code: Select all

sudo apt-get remove –-purge youtube-dl
● Windows 10 Pro 64
VMware Workstation 12 ○ Mint 18 ○ Elementary OS 0.3
● Ubuntu Server 14.04.03 Headless
Virtualbox 5.0.26 ○ Windows 7 64
● Linux Mint 18 Cinnamon 64

lmuserx4849
Level 4
Level 4
Posts: 464
Joined: Wed Dec 17, 2014 2:55 am

Re: How can I update avconv? Using PPA's

Postby lmuserx4849 » Thu Oct 29, 2015 2:48 pm

Good details. Thank you. I do plan on using PPA's infrequently and heeding all cautionary advice.

How do you find a "good" PPA?

If a user requires a new version of software & is going to use a PPA are there any suggestions for picking or searching for a good one. By good I think I mean, high karma, active dev/support, maybe a team, etc. I didn't see where you could search/sort for these keywords.

I just realized I was using the search at https://launchpad.net/ where I got 1060 hits - icks :-) - verses https://launchpad.net/ubuntu/+ppas where I got 68. I don't know what order these are in, but the Description on the first one says, "This repository is meant to hold new versions of the youtube-d...". When I selected it, it's old 2011. For libav-tools there are 56 results. How do you reduce that number?

I like the description they put on the PPA's details, "You can update your system with unsupported packages from this untrusted PPA by ...". Are there trusted PPA's?

I did my reading at PPA's and Open Build.

How do these rank as alternatives to PPA's:
  1. Download dev libs and compile it yourself
  2. Use opensuse openbuild service
  3. Create your own ppa or openbuild account. It eliminates having to dowload dev libs.

Update:
What are PPAs and how do I use them?
......Are PPA's safe to add to my system and what are some “red flags” to watch out for?

  1. Who made the PPA
  2. How many users have used the PPA
  3. How updated the PPA is


Return to “Newbie Questions”

Who is online

Users browsing this forum: INeedABetterUserName and 5 guests