Videos Flv en tu Web

Algunos players para poder reproducir videos flv, via Web y poder tener videos en nuestra Web.

flv1.jpg

Convertir avi a flv:
Utilizando la libreria ffmpeg podemos convertir un archivo avi o mpg a flv, una vez que lo convertimos ya lo tenemos preparado para utilizarlo en alguno de los players que vimos.

*****************:~/software/peliculas$ ffmpeg -i La_Locura_Automatica.avi -s396x324 -ar 22050 La_Locura_Automatica.flv

Y comenzará el proceso de conversión:

FFmpeg version SVN-r11174, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: –prefix=/usr –libdir=${prefix}/lib –shlibdir=${prefix}/lib –incdir=${prefix}/include/ffmpeg –enable-shared –enable-libmp3lame –enable-gpl –enable-libfaad –mandir=${prefix}/share/man –enable-libvorbis –enable-pthreads –enable-libfaac –enable-libxvid –enable-pp –enable-libamr-nb –enable-libamr-wb –enable-x11grab –enable-libgsm –enable-libx264 –enable-liba52 –enable-libtheora –extra-cflags=-Wall -g -fPIC -DPIC –cc=ccache cc –enable-swscaler –disable-mmx
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 52.1.0
built on Feb 20 2008 15:55:22, gcc: 4.2.3 (Debian 4.2.3-1)Seems stream 0 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 29.97 (30000/1001)
Input #0, avi, from ‘La_Locura_Automatica.avi’:
Duration: 00:04:06.2, start: 0.000000, bitrate: 2583 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 512×384 [PAR 1:1 DAR 4:3], 29.97 tb(r)
Stream #0.1: Audio: mp3, 44100 Hz, stereo, 192 kb/s
ffmpeg: unrecognized option ‘-s396x324’
ggerman@comandante:~/software/peliculas$ ffmpeg -i La_Locura_Automatica.avi -s 396×324 -ar 22050 La_Locura_Automatica.flv
FFmpeg version SVN-r11174, Copyright (c) 2000-2007 Fabrice Bellard, et al.
configuration: –prefix=/usr –libdir=${prefix}/lib –shlibdir=${prefix}/lib –incdir=${prefix}/include/ffmpeg –enable-shared –enable-libmp3lame –enable-gpl –enable-libfaad –mandir=${prefix}/share/man –enable-libvorbis –enable-pthreads –enable-libfaac –enable-libxvid –enable-pp –enable-libamr-nb –enable-libamr-wb –enable-x11grab –enable-libgsm –enable-libx264 –enable-liba52 –enable-libtheora –extra-cflags=-Wall -g -fPIC -DPIC –cc=ccache cc –enable-swscaler –disable-mmx
libavutil version: 49.5.0
libavcodec version: 51.48.0
libavformat version: 52.1.0
built on Feb 20 2008 15:55:22, gcc: 4.2.3 (Debian 4.2.3-1)Seems stream 0 codec frame rate differs from container frame rate: 2997.00 (2997/1) -> 29.97 (30000/1001)
Input #0, avi, from ‘La_Locura_Automatica.avi’:
Duration: 00:04:06.2, start: 0.000000, bitrate: 2583 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 512×384 [PAR 1:1 DAR 4:3], 29.97 tb(r)
Stream #0.1: Audio: mp3, 44100 Hz, stereo, 192 kb/s
Output #0, flv, to ‘La_Locura_Automatica.flv’:
Stream #0.0: Video: flv, yuv420p, 396×324 [PAR 12:11 DAR 4:3], q=2-31, 200 kb/s, 29.97 tb(c)
Stream #0.1: Audio: libmp3lame, 22050 Hz, stereo, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
invalid new backstep 590
invalid new backstep 517.6 size= 295kB time=5.5 bitrate= 436.7kbits/s
invalid new backstep 513.1 size= 1070kB time=25.1 bitrate= 349.0kbits/s
invalid new backstep 527.0 size= 1320kB time=32.1 bitrate= 336.9kbits/s
invalid new backstep 514
invalid new backstep 530.0 size= 1868kB time=48.3 bitrate= 316.5kbits/s
invalid new backstep 527.0 size= 1902kB time=49.5 bitrate= 314.7kbits/s
invalid new backstep 513.0 size= 2364kB time=63.1 bitrate= 307.1kbits/s
invalid new backstep 529.0 size= 3083kB time=82.3 bitrate= 306.7kbits/s
invalid new backstep 520.0 size= 3319kB time=87.3 bitrate= 311.3kbits/s
invalid new backstep 513.0 size= 3460kB time=91.0 bitrate= 311.4kbits/s
invalid new backstep 513.8 size= 4215kB time=107.1 bitrate= 322.2kbits/s
invalid new backstep 513.0 size= 4292kB time=109.3 bitrate= 321.7kbits/s
invalid new backstep 521.0 size= 4414kB time=113.3 bitrate= 319.0kbits/s
invalid new backstep 515.0 size= 4447kB time=114.4 bitrate= 318.3kbits/s
invalid new backstep 519.8 size= 4577kB time=118.4 bitrate= 316.8kbits/s
invalid new backstep 518.0 size= 4815kB time=125.0 bitrate= 315.6kbits/s
invalid new backstep 514.0 size= 5039kB time=132.5 bitrate= 311.6kbits/s
invalid new backstep 529.8 size= 5144kB time=136.0 bitrate= 309.9kbits/s
invalid new backstep 514.0 size= 5603kB time=146.4 bitrate= 313.5kbits/s
invalid new backstep 518.0 size= 6089kB time=157.0 bitrate= 317.7kbits/s
invalid new backstep 517.0 size= 6418kB time=165.6 bitrate= 317.5kbits/s
invalid new backstep 515.0 size= 6573kB time=169.3 bitrate= 318.1kbits/s
invalid new backstep 514.0 size= 7052kB time=182.5 bitrate= 316.5kbits/s
invalid new backstep 522.0 size= 7067kB time=183.0 bitrate= 316.4kbits/s
invalid new backstep 515.0 size= 7280kB time=190.9 bitrate= 312.4kbits/s
invalid new backstep 515.0 size= 7750kB time=205.0 bitrate= 309.7kbits/s
invalid new backstep 517.0 size= 8157kB time=215.9 bitrate= 309.5kbits/s
invalid new backstep 521.0 size= 8508kB time=223.6 bitrate= 311.7kbits/s
invalid new backstep 525.0 size= 8545kB time=224.1 bitrate= 312.3kbits/s
invalid new backstep 591.0 size= 9694kB time=244.2 bitrate= 325.1kbits/s
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591.0 size= 9708kB time=244.5 bitrate= 325.2kbits/s
invalid new backstep 590
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 590
invalid new backstep 591.0 size= 9729kB time=245.0 bitrate= 325.3kbits/s
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
invalid new backstep 591
frame= 7379 fps= 31 q=31.0 Lsize= 9759kB time=246.1 bitrate= 324.8kbits/s
video:7573kB audio:1923kB global headers:0kB muxing overhead 2.767141%
*************:~/software/peliculas$

flv2.jpgEn el caso de as3flvplayer_release_01.zip lo que hice fue remplazar en el archivo “as3flvplayer_release_01/db/xml/test.xml” el nombre del archivo flv que tenia en el ejemplo por el que yo queria incluir.

url=”../../db/flv/La_Locura_Automatica.flv”

flv3.jpgDe esta manera como vemos en las imagenes podemos incluir videos en nuestras aplicaciones Web.

La información mas detallada de como convertir videos a flv, se encuentra en http://victorcastelan.blogspot.com/2007/04/convertir-video-mpeg-flv-y-crear.html con esa info podremos personalizar la conversión de nuestros videos.

flv4.jpgSaludos y espero que le s sirva este tip.

Advertisements

3 thoughts on “Videos Flv en tu Web

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s