background preloader

19 ffmpeg commands

19 ffmpeg commands
Getting infos from a video file ffmpeg -i video.avi Turn X images to a video sequence ffmpeg -f image2 -i image%d.jpg video.mpg This command will transform all the images from the current directory (named image1.jpg, image2.jpg, etc…) to a video file named video.mpg. Turn a video to X images ffmpeg -i video.mpg image%d.jpg This command will generate the files named image1.jpg, image2.jpg, … The following image formats are also availables : PGM, PPM, PAM, PGMYUV, JPEG, GIF, PNG, TIFF, SGI. Encode a video sequence for the iPpod/iPhone ffmpeg -i source_video.avi input -acodec aac -ab 128kb -vcodec mpeg4 -b 1200kb -mbd 2 -flags +4mv+trell -aic 2 -cmp 2 -subcmp 2 -s 320x180 -title X final_video.mp4 Explanations : Source : source_video.aviAudio codec : aacAudio bitrate : 128kb/sVideo codec : mpeg4Video bitrate : 1200kb/sVideo size : 320px par 180pxGenerated video : final_video.mp4 Encode video for the PSP Extracting sound from a video, and save it as Mp3 Convert a wav file to Mp3 Convert .avi video to .mpg

HOWTO Convert video files Converting video formats between common file formats and codecs can easily be done from the command line. Learn to master the two standard command-line tools and you will be able to convert from any video format to any video format in an instant. This article is about command-line software for converting video files. Take a look at avidemux if you are looking for a graphical front-end program. [ edit ] Why convert There are many good reasons to convert video files you made yourself - or video files forwarded to you which you plan to distribute. Playability Size This HOWTO will to introduce to you some of the basic commands to use the most common Linux command-line program to convert video files from one format to another. The modern file-formats you want to use today are .MP4 with MPEG4 AVC video and AAC audio and .OGV with Ogg Theora video and audio . [ edit ] File-size matters Size is important, specially when publishing video on the web. [ edit ] Playability ffmpeg . [ edit ] Learning ffmpeg

9.5. Encodage au format MPEG MEncoder peut créer des fichiers au format MPEG (MPEG-PS). Habituellement, vous utilisez des formats vidéos comme le MPEG-1 ou MPEG-2 pour l'encodage vers des formats avec des contraintes spécifiques comme le SVCD, VCD, ou encore le DVD. Les exigences particulières de ces formats sont expliqués dans la section du guide de création d'un VCD ou DVD. Pour changer le format du fichier final produit par MEncoder utilisez l'option -of mpeg. Exemple : mencoder input.avi -of mpeg -ovc lavc -lavcopts vcodec=mpeg1video -oac copy autres_options -o sortie.mpg Création d'un fichier MPEG-1 lisible sur un système basique comme peu l'être un MS Windows fraîchement installé : mencoder entree.avi -of mpeg -mpegopts format=mpeg1:tsaf:muxrate=2000 -o output.mpg -oac lavc -ovc lavc \ -lavcopts acodec=mp2:abitrate=224:vcodec=mpeg1video:vbitrate=1152:keyint=15:mbd=2:aspect=4/3 Le même encodage, mais en utilisant le multiplexeur MPEG libavformat : Astuce:

FFmpeg How to compile ffmpeg/mplayer for MacOSX « Simple Things This guide shows how to build ffmpeg, libav, mplayer/mencoder and mpv binaries on MacOSX. See the bottom of this post for a revision history. What you need before you start: XcodeSome patienceSome experience in using a command line interface Miscellaneous: yasm-1.2.0.tar.gzzlib-1.2.7.tar.gzbzip2-1.0.6.tar.gzgit-1.8.5pkg-config-0.28.tar.gzcmake-2.8.12.1.tar.gz Encoder/decoder media libraries: lame-3.99.5.tar.gzfaad2-2.7.tar.bz2faac-1.28.tar.bz2xvidcore-1.3.2.tar.gzlast_stable_x264.tar.bz2libogg-1.3.1.tar.gzlibvorbis-1.3.4.tar.gzlibtheora-1.1.1.tar.bz2gsm-1.0.13.tar.gzamrwb-7.0.0.3.tar.bz2amrnb-7.0.0.2.tar.bz2speex-1.2rc1.tar.gzflac-1.3.0.tar.gzlibxavs (via subversion)vo-aacenc-0.1.3.tar.gzvo-amrwbenc-0.1.3.tar.gzlibvpx-v1.1.0.tar.bz2opus-1.1.tar.gztwolame-0.3.13.tar.gzopenal-soft-1.13.tar.bz2soxr-0.1.1-Source.tar.gzfdk-aac-0.1.3.tar.gzlibutvideo (via git)wavpack-4.70.0.tar.bz2zeromq-3.2.3.tar.gzgeorgmartius-vid.stab-release-0.98a-0-g94a4692.tar.gzlibilbc (via git)libx265 (via hg) Like this:

subethasmtp - SubEtha SMTP is an easy-to-use server-side SMTP library for Java SubEtha SMTP is a Java library which allows your application to receive SMTP mail with a simple, easy-to-understand API. This component can be used in almost any kind of email processing application. Hypothetical (and not-so hypothetical) uses include: A mailing list manager (see SubEthaMail) A mail server that delivers mail to user inboxes A mail archiver like The Mail Archive An email test harness (see Wiser) An email2fax system SMTPseudo A filtering forwarding server Baton SMTP proxy for one or more backends (rules based on sender/envelope) Mireka - Mail server and SMTP proxy with detailed logging, statistics and built-in, fail-fast filters SubEthaSMTP's simple, low-level API is suitable for writing almost any kind of mail-receiving application. A Little History SubEthaSMTP was split out of the SubEthaMail mailing list manager because it is a useful standalone component. We hate reinventing wheels. Project Authors Ian McFarland contributed the first codebase to SubEtha Mail. Support

LProd | Kdenlive Installation Ubuntu Le logiciel est disponible dans les paquets officiels. Vous pouvez l'installer facilement à partir de la logithèque en recherchant kdenlive. La version qui s'installe est la 15.12.3. Si le logiciel au démarrage est en partie en français, installez en plus le paquet suivant : kde-l10n-fr Vous pouvez installer une version plus récente du logiciel en rajoutant un dépôt PPA officiel à partir d'un terminal : sudo add-apt-repository ppa:kdenlive/kdenlive-stable sudo apt-get update sudo apt-get install kdenlive Windows(c) Une version est annoncée pour la fin 2016, une affaire à suivre ici (EN) MacOSX (c) Une version embryonnaire partielle a été testée mais le développement est au point mort pour l'instant. Utilisation Interface utilisateur Vous trouverez le logiciel dans le menu applications⇒son et vidéo Le logiciel est en français, si ce n'est pas le cas, regardez ci-dessus comment obtenir une traduction complète. Tutoriels Kdenlive Pour en savoir plus sur le web

kino:montage On accéde à la section montage en cliquant sur l'onglet Montage à la droite de Kino. Insertion d'une nouvelle vidéo 1. Le bouton ouvrir ( raccourci clavier CTRL + O ) Ce bouton vous permettra d'insérer un fichier .avi , .dv encodé en qualité DV, ou un fichier de projet kino *.smil. Les vidéos sont insérées les unes derrière les autres. Kino accepte maitenant les autres types de fichiers vidéos que les fichiers contenant de la vidéo au format DV. 2. Je pense que cette image est suffisamment explicite pour m'éviter des explications inutiles. Remarque: Vous pouvez ” Glisser/Déplacer ” les diffèrentes scènes. Vous avez 3 possibilités de navigation : 1. Vous pouvez naviguer en cliquant sur le triangle bleu qui se trouve en haut de cette barre. 2. Il est intéressant de faire un effort de mémorisation des raccourcis clavier. Remarque:Les raccourcis clavier correspondent aux raccourcis clavier de l'éditeur VIM. 3. En cliquant directement sur la barre de navigation à l'endroit souhaité.

Happy 1st Anniversary YouTube and Google; Now Move Over a Bit Time for another roundup, and this one coincides with a notable first-year anniversary: that of Google’s $1.65 billion acquisition of YouTube, confirmed on October 9th, 2006. Since then, the name “YouTube” has become virtually synonymous with “online video sharing”. According to Comscore, the website maintains a sizable lead over competitors with 205,593,000 unique visitors per month. Second-place Yahoo Video trails with 48,026,000 visitors. But must YouTube remain the clear winner in the online video space? While they have certainly captured the largest audience – which may in the end be all they had needed to do to secure their position – we shouldn’t underestimate the many other companies vying for mindshare. Even if YouTube remains the destination of choice for the vast majority of consumers, producers ought to take a serious look at the alternative services. Since they are all about 80% the same, I’m not going to go through each of them one-by-one at length.

Compiling current clone of FFMPEG on OS X 10.7 Lion | the mergy notes Upgrading to OS X 10.7 (Lion) has really caused some issues for me. A big issue for me was not being able to easily grab the current clone of ffmpeg from the git repository. I was able to compile after doing the following. 1. 2. 3. 4. # fink install pkgconfig as root or do it with sudo. 5. 6. #. Then # make # make install 7. Hope this helps. Chris Granger - Musings and such. Kdenlive | Ubuntu.fr KDEnLive (prononcez Ka-Dé-Euh-N'-Laïve, comme vous le feriez pour Rock-N'-Roll.) est un logiciel intermédiaire de montage vidéo. Il est capable d'édition non linéaire de vidéo et utilise le framework vidéo MLT comme base. Il gère aussi de nombreuses pistes audio / vidéo, permet l'utilisation de transitions, d'effets vidéo et audio avec une interface claire et intuitive. Permet une très bonne utilisation du canal Alpha pour superposer des vidéos les unes sur les autres et ainsi faire du compositing. La dernière version stable de KDEnLive est la version 0.9.6 (juin 2013). Installation Le support de KDEnLive (rapport de bug, par exemple) est seulement réalisé sur la version recommandée (KDEnLive 0.9.6 & MLT 0.8.8 en juin 2013). Sous Oneiric (11.10) avec les dépôts officiels Ubuntu, il existe un problème de compatibilité entre MLT et KDEnLive, qui empêche de démarrer ce dernier. Depuis les dépôts officiels Il suffit d'installer le paquet kdenlive. Configuration Ajouter des plugins vidéo

kino:exporter A ce stade, vous disposez dans l'onglet Montage de Kino de votre vidéo définitive en qualité DV, 720×576, PAL, 25 images/s. Activation du module export de Kino Réglages d'export pour faire un DVD Aller dans l'onglet MPEG. Sélectionner le format de fichier : 8 - DVD Sélectionner le désentrelacement : YUV Cliquer sur Exporter. Le désentrelacement permet de retirer l'effet “peigne” de vos vidéos. À propos des choix de désentrelacement : aucun : votre vidéo aura un effet “peigne”, et sera trop contrastée. désentrelaceur interne : l'image est trop contrastée. Réglages et choix des codecs d'exports vidéos Choisissez en (1) le type de sortie vidéo désirée, si vous ne trouvez pas votre bonheur, fouillez l'onglet autres en (2) saisissez le nom de votre fichier vidéo de sortie, sans extension Définissez le type de codec vidéo utilisé, ici le codec libre ogg vorbis/théora (3), le codec audio de la bande son sera automatiquement et correctement associé . Pour en savoir plus sur Internet

Seam carving: content-aware image resizing Ariel Shamir and Shai Avidan have presented the coolest digital image effect I have ever seen. “Seam carving” allows an image to be resized non-uniformly, so you can change the height to width ratio in the image without cropping, but also without distorting important features in the image (such as faces). If I understood the demonstration correctly, the algorithm detects horizontal and vertical paths which span the whole image and have the least gradient magnitude along the span. You need to watch the video to really see this in action, but the technique can also be used to remove whole portions of an image without perceptible artifacts. Seam Carving for Content-Aware Image Resizing – [via] Video: Link PDF: Link High-res copy of the above video @ Dr. Related

MacOSXCompilationGuide – FFmpeg Compiling on Mac OS X is as easy as any other *nix machine, there are just a few caveats. The general procedure is ./configure <flags>; make && sudo make install, but some use a different configuration scheme, or none at all. You can also install the latest stable version of FFmpeg without the need to compile it yourself, which saves you a bit of time. XCode ¶ Starting with Lion 10.7, Xcode is available for free from the Mac App Store and is required to compile anything on your Mac. Homebrew ¶ To get FFmpeg for OS X, you first have to install ​Homebrew: ruby -e "$(curl -fsSL Shortcut: Compile FFmpeg through Homebrew ¶ If you want to use Homebrew for compiling, you can simply run: brew install ffmpeg to get the latest stable 1.x version. You can run brew info ffmpeg to see additional configuration options, e.g. in order to enable libfdk_aac or libvpx. Remaining Dependencies ¶ First, we need to install a few dependencies: Pkg-config & GLib ¶ Yasm ¶

Related: