Newest 'ffmpeg' Questions - Stack Overflow
Les articles publiés sur le site
-
Compile FFmpeg with libfdk_aac
18 février 2017, par ToydorI been reading on how to convert mp3 to m4a, and found that I must compile FFmpeg if I'll use the AAC encoder, libfdk_aac.
But reading FFmpeg guide on how to compile FFmpeg with libfdk_aac makes no sense for a beginner like me.
To use libfdk_aac the encoding guide says:
Requires ffmpeg to be configured with --enable-libfdk_aac --enable-nonfree.
Where do I put those flags?
Do I put it here somewhere?:
cd ~/ffmpeg_sources git clone --depth 1 git://github.com/mstorsjo/fdk-aac.git cd fdk-aac autoreconf -fiv ./configure --prefix="$HOME/ffmpeg_build" --disable-shared make make install make distclean
Or maybe here somewhere?
cd ~/ffmpeg_sources git clone --depth 1 git://source.ffmpeg.org/ffmpeg cd ffmpeg PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" export PKG_CONFIG_PATH ./configure --prefix="$HOME/ffmpeg_build" \ --extra-cflags="-I$HOME/ffmpeg_build/include" --extra-ldflags="-L$HOME/ffmpeg_build/lib" \ --bindir="$HOME/bin" --extra-libs="-ldl" --enable-gpl --enable-libass --enable-libfdk-aac \ --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx \ --enable-libx264 --enable-nonfree --enable-x11grab make make install make distclean hash -r
If I'm reading the compile guide right I guess that these two chunks of code is what I need to compile FFmpeg.
I'm using Ubuntu server 12.4
UPDATE
After upgrading my system to Ubuntu 16.04 I had to install ffmpeg again. I still needed libfdk-aac. Fortunately there's a good step-by-step guide at http://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu on how to compile ffmpeg.
I thought I would share how to compile if just interested in compiling ffmpeg with libfdk-aac and libmp3lame.
If you haven't already a bin in home directory:
mkdir ~/bin
Install dependencies. Didn't need the non-server packages:
sudo apt-get update sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libtheora-dev libtool libvorbis-dev pkg-config texinfo zlib1g-dev
Then install the encoders. Had to install yasm as well, otherwise I got errors when compiling.
sudo apt-get install libfdk-aac-dev sudo apt-get install libmp3lame-dev sudo apt-get install yasm
Then compile ffmpeg with needed flags
cd ~/ffmpeg_sources wget http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2 tar xjvf ffmpeg-snapshot.tar.bz2 cd ffmpeg PATH="$HOME/bin:$PATH" PKG_CONFIG_PATH="$HOME/ffmpeg_build/lib/pkgconfig" ./configure \ --prefix="$HOME/ffmpeg_build" \ --pkg-config-flags="--static" \ --extra-cflags="-I$HOME/ffmpeg_build/include" \ --extra-ldflags="-L$HOME/ffmpeg_build/lib" \ --bindir="$HOME/bin" \ --enable-libass \ --enable-libfdk-aac \ --enable-libfreetype \ --enable-libtheora \ --enable-libvorbis \ --enable-libmp3lame \ --enable-nonfree \ --enable-gpl PATH="$HOME/bin:$PATH" make make install make distclean hash -r
-
What is wrong with my FFMPEG command for streaming ? [duplicate]
18 février 2017, par Muhammad UmerThis question is an exact duplicate of:
I am trying to stream to Facebook by using one image, but I get
Packets are not in the proper order with respect to DTS7kbits/s
av_interleaved_write_frame(): Invalid argumentThis is the command I am writing:
ffmpeg \ -re -y \ -loop 1 \ -f image2 \ -i ./maxresdefault.jpg \ -i ./audio.mp3 \ -b:a 128k \ -c:a aac -strict experimental \ -vcodec libx264 \ -g 30 \ -r 30 \ -f flv \ "rtmp://rtmp-api.facebook.com:80/rtmp/..."
-
FFmpeg hardware acceleration on Raspberry PI
17 février 2017, par Cristian GaborI am building a program that use ffmpeg to stream webcam content over internet. I would like to know if it is possible to use the GPU for the streaming part on the raspberry pi model 3. If yes, how could I implement this on ffmpeg?
-
ffmpeg doesn't always create wave picture
17 février 2017, par Sean@LordNeckbeard and other ffmpeg experts,
can you please help me with generating wave picture. the following command works perfectly on some videos and it doesn't on other videos:
ffmpeg -i "input.mp4" -filter_complex "[0:a]aformat = channel_layouts = mono, compand = gain = -6, showwavespic = s = 1920x384: colors =red|blue[fg]; color = s = 1920x384: color =#444444, drawgrid = width = 38:height = 38:color =#555555@0.5[bg]; [bg][fg]overlay = format = rgb, drawbox = x = (iw - w) / 2:y = (ih - h) / 2:w = iw:h = 2:color =#000000@0.4" -vframes 1 "output.png"
when working, it generates the following wave pic: working example
on other videos, it shows the grid but it seems that the wave signal is hidden behind the grid
Your help is greatly appreciated!
Thank you, Sean.
-
How to Loop Input video x number of time using FFMPEG ?
17 février 2017, par Hitesh ShuklaI want to loop same video 4 times and output as video using ffmpeg. SO I create code like this in ffmpeg.
ffmpeg -loop 4 -i input.mp4 -c copy output.mp4
but when i run it it give the error like this.
Option Loop Not Found.
how to do this withour error. Please Help Me