Le blog de Jean David TECHER, un Réunionnais à Saint-Priest/Lyon

Aller au contenu | Aller au menu | Aller à la recherche


< 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 >

mercredi 1 février 2012

FFmpeg 0.10 - Download Static binary for Linux 32 bits (supported libass, libfaac, libx264, libaacplus, frei0r....)

Here are a few instructions for a personal use of FFmpeg before trying to compil FFmpeg yourself. The static binary was compiled with all the usual libraries.

1. Download

2. Examples for differents filters

2.1 Convert WMV to MP4 (x264/AAC+) with frei0r perspective effect

We will conver the video file jana_fotel.wmv to jana_fotel.mp4
./ffmpeg -i jana_fotel.wmv -vf "frei0r=perspective:0.2/0.2:0.8/0.2" -acodec libaacplus -ac 2 -ar 44100 -ab 64k -vcodec libx264 -crf 22  -threads 0 -b:v 550k -qmin 10 -qmax 30 -threads 0 jana_fotel.mp4
Now we extract two images taken at "00:02:14" from the two videos:
  • ./ffmpeg -i jana_fotel.wmv  -an -ss "00:02:14" -r 1 -vframes 1  -f mjpeg -s 400x300 jana_fotel_wmv.jpeg

    Extracted image from original video (jana_fotel.wmv) at 00:02:14
  • ./ffmpeg -i jana_fotel.mp4  -an -ss "00:02:14" -r 1 -vframes 1  -f mjpeg -s 400x300  jana_fotel_mp4.jpeg

    Extracted image from converted video (jana_fotel.mp4) with frei0r perspective effect at 00:02:14
I love this effect!

2.2 Delogo filter

  1. We extracted an original image at 00:00:06
    ./ffmpeg  -i  jana_fotel.wmv  -an -ss "00:00:06"  -r 1 -vframes 1  -f mjpeg -y extracted_image_with_logo.jpeg
    convert extracted_image_with_logo.jpeg -resize 400x300 extracted_image_with_logo.jpeg
    Here is the image
  2. Do the same but without logo
    ./ffmpeg  -i  jana_fotel.wmv -vf "delogo=572:555:202:39:0" -an -ss "00:00:06"  -r 1 -vframes 1  -f mjpeg -y extracted_image_without_logo.jpeg
    convert extracted_image_without_logo.jpeg -resize 400x300 extracted_image_without_logo.jpeg
    Here is the image

2.3 Adding subtitles (libass)

The final result will be something like
  1. We use the following file - subtitle.ass - for the subtitles
    [Script Info]
    Title: Default Subtitle
    ScriptType: v4.00+
    WrapStyle: 0
    PlayResX: 640
    PlayResY: 480
    ScaledBorderAndShadow: yes
    Video Aspect Ratio: 0
    Video Zoom: 6
    Video Position: 0
    Last Style Storage: Default
    
    [V4+ Styles]
    Format: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding
    Style: Default,Nimbus Sans L,35,&H00FFFFFF,&H000000FF,&H00000000,&H00000000,0,0,0,0,100,100,0,0,1,2,1,2,10,10,10,1
    
    [Events]
    Format: Layer, Start, End, Style, Name, MarginL, MarginR, MarginV, Effect, Text
    Dialogue: 0,0:00:00.00,0:00:02.00,Default,,0000,0000,0000,,JANA DEFI IS THE MOST BEAUTIFULL MODEL ON THE WEB
    Dialogue: 0,0:00:02.00,0:00:04.00,Default,,0000,0000,0000,,Jana Defi is the best model\N for my FFmpeg's test
    Dialogue: 0,0:00:04.00,0:00:06.00,Default,,0000,0000,0000,,Jana I hope you come back... :)
    Dialogue: 0,0:00:06.00,0:00:10.00,Default,,0000,0000,0000,,Something is missing\N...FFmpeg tests are different without U :(
    
  2. We add the subtitle to the video using libASS
    ./ffmpeg -i jana_fotel.wmv -vf "ass=subtitle.ass"  -t "00:00:10" -sameq -y -s 400x300 jana_fotel_2.wmv
 /root/ffmpeg -i jana_fotel.wmv -vcodec libx264 -vpre hq -crf 26 -threads 0 -acodec libaacplus -ac 2 -ar 44100 -ab 64k -s svga -y jana_fotel.mp4

vendredi 27 janvier 2012

Mistress

wget -q -U Firefox http://www.venus360.com/gallery/jordan-carver-59/Jordan-Carver-Mistress.jpg
seq -w 2 20 |xargs -i wget -q -U Firefox http://www.venus360.com/gallery/jordan-carver-59/Jordan-Carver-Mistress_{}.jpg
zip Jordan-Carver-Mistress.zip Jordan-Carver-Mistress*
rm -vf Jordan-Carver-Mistress*jpg

jeudi 26 janvier 2012

Url à mettre de côté

Projet PS3 Media Server à regarder de près http://www.ps3mediaserver.org/forum/viewtopic.php?f=3&t=12110#p57416

mercredi 25 janvier 2012

Libav 0.8 - Installer for static binaries on Linux 32 Bits

1. Informations

  • libav 0.8 (http://libav.org) has been released 01/21/2012.
  • I build all binaries avconc, avprobe, avserver (except avplay not provided here). Binaries are static. Built with support for libfaac, libvo-aacenc, x264, WebM (VPX)
  • There are no '/lib' and no '/include'
  • Tested on Ubuntu Lucid 10.04.3 32 bits and Ubuntu Hardy 8.04.3 32 bits

2. Download installer

wget http://techer.pascal.free.fr/download/libav-0.8-linux-installer.run

3. Install binaries and presets

You can choose graphic mode or text mode (from terminal)

3.1 Option 1: installation from terminal

david@gemini:~$ chmod +x libav-0.8-linux-installer.run
david@gemini:~$ sudo ./libav-0.8-linux-installer.run --mode text
[sudo] password for david: 
----------------------------------------------------------------------------
Welcome to the LibAV Setup Wizard.

----------------------------------------------------------------------------
Please read the following License Agreement. You must accept the terms of this 
agreement before continuing with the installation.

Press [Enter] to continue :
        LIBAV 0.8 STATIC BINARIES FOR LINUX 32 BITS
        ============================================

This installer will install 

* the following binaries

 - avconv
 - avprobe
 - avserver

* the specific presets for WebM and x264


INFORMATION
===========
The binaries will be build using

./configure
	--extra-ldflags=-static
	--extra-cflags=-static
	--enable-static
	--disable-ffmpeg
Press [Enter] to continue :
	--enable-runtime-cpudetect
	--enable-memalign-hack
	--enable-version3
	--enable-libopencore-amrnb
	--enable-libopencore-amrwb
	--enable-libx264
	--enable-libtheora
	--enable-libvorbis
	--enable-libmp3lame
	--enable-libxvid
	--enable-libvpx
	--enable-gpl
	--enable-nonfree
	--enable-pthreads
	--enable-libopenjpeg
	--enable-zlib
	--enable-bzlib
	--enable-libxavs
	--enable-libdirac
	--enable-libschroedinger
	--enable-libvo-amrwbenc
	--enable-libfreetype
	--enable-libnut
Press [Enter] to continue :
	--enable-libspeex
	--enable-x11grab
	--enable-libfaac
	--enable-libvo-aacenc
	--enable-small
	--enable-postproc
	--enable-vdpau



Press [Enter] to continue :

Do you accept this license? [y/n]: y

----------------------------------------------------------------------------
Please specify the directory where LibAV will be installed.

Installation Directory [/opt/libav/0.8]: 

----------------------------------------------------------------------------
Setup is now ready to begin installing LibAV on your computer.

Do you want to continue? [Y/n]: Y

----------------------------------------------------------------------------
Please wait while Setup installs LibAV on your computer.

 Installing
 0% ______________ 50% ______________ 100%
 #########################################

----------------------------------------------------------------------------
Setup has finished installing LibAV on your computer.

3.2 Option 2: Installation graphic mode

chmod +x libav-0.8-linux-installer.run 
sudo ./libav-0.8-linux-installer.run