I am using ffmpeg in my java project with javacpp-presets.
I want to be able to edit the ffmpeg and libx264 for my needs.
I edited the ffmpeg and libx264 source codes, compiled it and use it successfully through the command line.
now I want to use the new source code within my java code using the javacpp-preset.
how do I configure the javacpp-preset to work with my version of ffmpeg?
Related
I have installed ffmpeg using yum install in my centos.Now i want to recompile it with 'libmp3lame'.Is possible a recompilation of the installed ffmpeg or i want to remove ffmpeg and reinstall.
suggestion is highly appreciable.
Unlike AAC and some other audio formats, FFmpeg does not have a native MP3 encoder, so you have to use a supported external encoding library such as libmp3lame. You have several options if your ffmpeg is not configured with --enable-libmp3lame:
Download an already compiled binary
Download ffmpeg for Linux. This is an already compiled binary. This is the easiest solution.
See the FFmpeg Download page for links to Windows and OS X builds.
Compile ffmpeg
Follow a non-invasive step-by-step guide to Compile FFmpeg on CentOS. If you can copy and paste you can compile.
Pipe to lame
ffmpeg -i input -f wav - | lame - output.mp3
I do not consider this to be a practical solution but it may be useful to some.
Use a different format
If you don't require MP3 you can use AAC or some other audio format that has native encoding support.
configure failed
I want to use libx264 codec with ffmpeg.
when i tried to convert image files to a video using the codec, a message appears said Unknown encoder "libx264". so I tried to execute configure and make again at msys folder. I typed ./configure --enable-libx264 and it failed. :(
my ffmpeg version is 3.0.1 and x264 is also the latest version so far.
It is possible that you don't have the x264 libraries for compiling on your machine.
The last time I compiled FFMpeg I downloaded and compiled x264 also along with it to ensure I had the libraries installed.
http://www.videolan.org/developers/x264.html
It may also interest you to enable OpenH264 by Cisco.
http://www.openh264.org/
Adobe cq uses ffmpeg to transcode videos. There is a workflow that is triggered when a user uploads any video to the digital asset management (DAM) section. This workflow internally uses ffmpeg to transcode the uploaded video and spits out additional video renditions in formats like ogg, m4v, mp3.
The server (Red Hat Enterprise Linux Server release 6.5) on which adobe cq runs needs to have ffmpeg installed for the DAM workflow to function. ffmpeg has already installed been installed, but it is missing certain codecs: libmp3lame, libx264, libvo_aacenc and libvorbis.
How to add and enable these codecs ?
You can't just add support for arbitrary external libraries to an existing ffmpeg binary.
You'll either need to download a new ffmpeg binary, or compile ffmpeg. Downloading a build is easiest and supports the encoders you listed (except libvo_aacenc). Compiling allows for customization.
Avoid libvo_aacenc: it provides poor quality and support for libvo_aacenc has been removed from FFmpeg. Use the native FFmpeg AAC encoder instead. See FFmpeg Wiki: AAC for more info.
ffmpeg is asking to compile with minGW to add subtitles to video. I have installed MinGW. I am following this https://trac.ffmpeg.org/wiki/HowToBurnSubtitlesIntoVideo to add subtitles. This filter requires ffmpeg to be compiled with --enable-libass. how can i compile those filters?
You need to compile libass (the library) so that ffmpeg can link against it. https://github.com/rdp/ffmpeg-windows-build-helpers is one way (cross compiles with it). GL!
I have installed ffmpeg using yum install in my centos.Now i want to recompile it with 'libmp3lame'.Is possible a recompilation of the installed ffmpeg or i want to remove ffmpeg and reinstall.
suggestion is highly appreciable.
Unlike AAC and some other audio formats, FFmpeg does not have a native MP3 encoder, so you have to use a supported external encoding library such as libmp3lame. You have several options if your ffmpeg is not configured with --enable-libmp3lame:
Download an already compiled binary
Download ffmpeg for Linux. This is an already compiled binary. This is the easiest solution.
See the FFmpeg Download page for links to Windows and OS X builds.
Compile ffmpeg
Follow a non-invasive step-by-step guide to Compile FFmpeg on CentOS. If you can copy and paste you can compile.
Pipe to lame
ffmpeg -i input -f wav - | lame - output.mp3
I do not consider this to be a practical solution but it may be useful to some.
Use a different format
If you don't require MP3 you can use AAC or some other audio format that has native encoding support.