[FFmpeg-user] Can ffmpeg restream data from another ffmpeg
Navin Math
hinavinmath at gmail.com
Fri Feb 8 08:07:21 CET 2013
Hi
Can FFmpeg stream the data came from another FFmepg.
for example I am streaming sample mp4 file in one system (IP: 10.10.10.1)
ffserver -f ffserver.conf
ffmpeg -i /home/sample.mp4 http://10.10.10.1:8090/feed1.ffm
so in system-2(10.10.10.2) using ffplay i play the stream data
ffplay http://10.10.10.1:8090/test.mpg
Instead of playing this stream here in system-2, i want to use ffmppeg to
re-stream it again.
ffmpeg -i http://10.10.10.1:8090/test.mpg http://10.10.10.2:feed1.ffm
1. is possible to restream the input stream??
2. Do I need to start ffserver and ffmpeg to stream the incoming stream in
the system 2.
ffserver.conf:
# Port on which the server is listening. You must select a different
# port from your standard HTTP web server if it is running on the same
# computer.
Port 8090
# Address on which the server is bound. Only useful if you have
# several network interfaces.
BindAddress 0.0.0.0
# Number of simultaneous HTTP connections that can be handled. It has
# to be defined *before* the MaxClients parameter, since it defines the
# MaxClients maximum limit.
MaxHTTPConnections 2000
# Number of simultaneous requests that can be handled. Since FFServer
# is very fast, it is more likely that you will want to leave this high
# and use MaxBandwidth, below.
MaxClients 1000
# This the maximum amount of kbit/sec that you are prepared to
# consume when streaming to clients.
MaxBandwidth 1000
# Port on which the server is listening. You must select a different
# port from your standard HTTP web server if it is running on the same
# computer.
RTSPPort 7654
# Address on which the server is bound. Only useful if you have
# several network interfaces.
RTSPBindAddress 0.0.0.0
# Number of simultaneous requests that can be handled. Since FFServer
# is very fast, it is more likely that you will want to leave this high
# and use MaxBandwidth, below.
MaxClients 1000
# This the maximum amount of kbit/sec that you are prepared to
# consume when streaming to clients.
MaxBandwidth 1000
<Feed feed1.ffm>
File /sdcard/feed1.ffm
</Feed>
# Access log file (uses standard Apache log file format)
# '-' is the standard output.
CustomLog -
# Suppress that if you want to launch ffserver as a daemon.
NoDaemon
<Stream test.mpg>
Feed feed1.ffm
Format h264
NoAudio
VideoCodec mpeg4
VideoFrameRate 30
VideoBitRate 366
VideoSize cif
VideoBufferSize 40
VideoGopSize 12
VideoQMin 25
</Stream>
#<Stream 1.mp4>
#Format rtp
#</Stream>
<Stream 1.mp4>
Format rtp
File "/sdcard/1.mp4"
</Stream>
<Stream 1.mp3>
Format rtp
File "/sdcard/1.mp3"
</Stream>
Thanks
Math
More information about the ffmpeg-user
mailing list