informatica:linux:ffserver
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
informatica:linux:ffserver [2009/11/27 10:29] – creado 192.168.1.30 | informatica:linux:ffserver [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ffserver ====== | ||
+ | |||
ffserver ffmpeg rstp server servidor | ffserver ffmpeg rstp server servidor | ||
ffserver es parte del paquete ffmpeg. En esta receta vamos a configurarlo para servir un archivo multimedia (un video) a través del protocolo rstp. | ffserver es parte del paquete ffmpeg. En esta receta vamos a configurarlo para servir un archivo multimedia (un video) a través del protocolo rstp. | ||
+ | |||
+ | ===== Instalación ===== | ||
1. Instalar el paquete ffmpeg | 1. Instalar el paquete ffmpeg | ||
Line 7: | Line 11: | ||
aptitude update && aptitude install ffmpeg | aptitude update && aptitude install ffmpeg | ||
- | 2. Mover el archivo de configuración original por si las moscas: | + | |
+ | |||
+ | ===== Servir un archivo local vía rstp ===== | ||
+ | |||
+ | 1. Mover el archivo de configuración original por si las moscas: | ||
mv / | mv / | ||
- | 3. Crear un archivo nuevo: | + | 2. Crear un archivo nuevo: |
nano / | nano / | ||
Line 24: | Line 32: | ||
# Anyadido | # Anyadido | ||
- | RTSPPort | + | RTSPPort |
# Address on which the server is bound. Only useful if you have | # Address on which the server is bound. Only useful if you have | ||
Line 55: | Line 63: | ||
# | # | ||
# You can access this stream with the RTSP URL: | # You can access this stream with the RTSP URL: | ||
- | # | + | # |
# | # | ||
# A non-standard RTSP redirector is also created. Its URL is: | # A non-standard RTSP redirector is also created. Its URL is: | ||
- | # | + | # |
- | <Stream prueba.mpg> | + | <Stream prueba.mpeg> |
Format rtp | Format rtp | ||
File "/ | File "/ | ||
Line 66: | Line 74: | ||
</ | </ | ||
- | 4. Grabar y salir | + | 3. Grabar y salir |
- | 5. Arrancar ffserver como demonio: | + | **NOTA** Se pueden almacenar más de un bloque < |
+ | |||
+ | 4. Arrancar ffserver como demonio: | ||
ffserver | ffserver | ||
- | 6. Desde la misma máquina (u otra cambiando lógicamente la ip) probar: | + | 5. Desde la misma máquina (u otra cambiando lógicamente la ip) probar: |
| | ||
- | rtsp:// | + | rtsp:// |
+ | |||
+ | ===== Configuración de iptables ===== | ||
+ | |||
+ | **REVISAR** En principio funciona, pero no debería, pues creo que el protocolo rstp envía algo por UDP | ||
+ | |||
+ | iptables -A INPUT -p tcp -m tcp --dport 5666 -j ACCEPT |
informatica/linux/ffserver.1259317754.txt.gz · Last modified: 2015/04/13 20:19 (external edit)