I want to use avconv for audio related operations on my Ubuntu Bionic 18.04.5 system, but it's not getting installed as a part of the following packages.
sudo apt-get install ffmpeg:i386
sudo apt-get install ffmpeg
I still get..
avconv: command not found
So I tried creating a soft link.
sudo ln -s /usr/bin/ffmpeg /usr/bin/avconv
Now If I run
$avconv
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers......
Related
I need a specific version of ffmpeg to be able to read video with torchvision (0.12.0+cu113), which currently supports ffmpeg 4.2. I have already tried to upgrade ffmpeg with the next command:
add-apt-repository -y ppa:jonathonf/ffmpeg-4
But it gives me a version 4.3.2. How to install exactly 4.2?
On an Amazon Linux 2 Docker image, "yum install gcc" installs gcc 7.3.1.
I want to install gcc 8. It seems it normally can be installed as part of "devtoolset-8" (https://www.softwarecollections.org/en/scls/rhscl/devtoolset-8/), but the instructions for either CentOS or RHEL seems not working on Amazon Linux.
So the only way to install gcc 8 on Amazon Linux is to install from source?
I also need the devtoolset-8-toolchain, how can that be installed?
Add the scl repo for centos:
sudo yum-config-manager --add-repo http://mirror.centos.org/centos/7/sclo/x86_64/rh/
Install this libgfortran dependency required for devtoolset-8:(source)
sudo yum install -y wget
wget http://mirror.centos.org/centos/7/os/x86_64/Packages/libgfortran5-8.3.1-2.1.1.el7.x86_64.rpm
sudo yum install libgfortran5-8.3.1-2.1.1.el7.x86_64.rpm -y
Install devtoolset-8 with nogpgcheck:(it would be much better to install the key for the repo)
sudo yum install -y devtoolset-8 --nogpgcheck
Finally enable the scl for devtoolset-8:
scl enable devtoolset-8 bash
Running this command shows both the gcc 7 and gcc 8 in the path:
which -a gcc
Output from which -a gcc
/opt/rh/devtoolset-8/root/usr/bin/gcc
/usr/bin/gcc
After updating my mac to high sierra, I can't use ffmpeg
$ ffmpeg
dyld: Library not loaded: /opt/local/lib/libidn2.0.dylib
Referenced from: /opt/local/lib/libgnutls.30.dylib
Reason: image not found
Abort trap: 6
I appreciate any help!
I had the same problem after a security update. I found this Github issue with the same error message for ffprobe, a sister program. The solution was to uninstall and install again.
On macOS, I did:
brew uninstall ffmpeg
brew cleanup
brew install ffmpeg
Depending on your installation, you may need to run brew uninstall --ignore-dependencies ffmpeg (if you have dependencies such as opencv that require ffmpeg) or brew uninstall --force ffmpeg (if you have multiple versions).
And now FFMPEG works:
$ ffmpeg -version
ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
...
After launching Ubuntu Server 14.04 LTS (HVM), I tried to install CUDA as following
wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1404/x86_64/cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo dpkg -i cuda-repo-ubuntu1404_7.5-18_amd64.deb
sudo apt-get update
sudo apt-get install -y cuda
export PATH=/usr/local/cuda-7.5/bin:$PATH
export LD_LIBRARY_PATH=/usr/local/cuda-7.5/lib64:$LD_LIBRARY_PATH
sudo reboot
Then I run a test
cuda-install-samples-7.5.sh .
cd ~/NVIDIA_CUDA-7.5_Samples/1_Utilities/deviceQuery
make
./deviceQuery
got the error:
modprobe: ERROR: could not insert 'nvidia_352': Unknown symbol in
module, or unknown parameter (see dmesg) cudaGetDeviceCount returned
38
-> no CUDA-capable device is detected
What could be wrong here?
Upgrade Ubuntu and install linux-image-extra before install nvidia-driver
sudo apt-get update && sudo apt-get -y upgrade
sudo apt-get install -y linux-image-extra-`uname -r`
It would appear that this is a known issue within CUDA 7.5 on AWS gpu instances. The short term work around seems to be to downgrade to CUDA 7 for the moment.
Edited in December 2015 to add that Robert Crovella from NVIDIA advises that CUDA 7.5 on EC2 g2.2xlarge should now be usable with a 352.63 or later driver. So a driver update should resolve the issue.
[This answer was assembled from comments and added as a community wiki entry to get this question off the unanswered list]
Is there a step-by-step guide on how to compile avconv in Ubuntu?
It seems hard to search for any tutorial with avconv compared to ffmpeg.
I finally found out how,
1.) Make a directory avconv-source
mkdir avconv-source
2.) Download and install the x264 library
cd ~/avconv-source
git clone git://git.videolan.org/x264.git x264
cd x264
sudo ./configure --enable-static
sudo make
sudo make install
3.) Download the avconv source
cd ~/avconv-source
git clone git://git.libav.org/libav.git avconv
cd avconv
sudo ./configure
sudo ./configure --enable-gpl --enable-libx264
sudo make
sudo make install
and now you can execute
avconv -i test.mov -c:v libx264 -c:a copy test.mp4
This worked for me on Ubuntu 13.04 and Ubuntu 12.04.3 LTS.
apt-get install libavcodec-extra-53
It worked great for me on Ubuntu 12.04, except that it complained that assembler was missing.
The minimum version is yasm-1.2.0.
If you really want to compile without asm, configure with --disable-asm.
Thanks to HOWTO: Install and use the latest FFmpeg and x264, I did the following as well, and it was OK beyond that.
sudo apt-get install build-essential checkinstall
sudo apt-get build-dep yasm
wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gz && \
tar -xf yasm-1.2.0.tar.gz && cd yasm-1.2.0 && ./configure
make
sudo checkinstall --pakdir "$HOME/Desktop" --pkgname yasm --pkgversion 1.2.0 \
--backup=no --default