Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffserver.conf:
- Port 51888
- BindAddress 0.0.0.0
- MaxHTTPConnections 2000
- MaxClients 1000
- MaxBandwidth 3000
- CustomLog -
- #NoDaemon
- <Feed feed1.ffm>
- File /tmp/feed1.ffm
- FileMaxSize 200K
- ACL allow 127.0.0.1
- ACL allow 188.x.x.x
- </Feed>
- # if you want to use mpegts format instead of flv
- # then change "live.flv" to "live.ts"
- # and also change "Format flv" to "Format mpegts"
- <Stream live.flv>
- Format flv
- Feed feed1.ffm
- VideoCodec libx264
- VideoFrameRate 30
- VideoBitRate 512
- VideoSize 320x240
- AVOptionVideo crf 23
- AVOptionVideo preset medium
- # for more info on crf/preset options, type: x264 --help
- AVOptionVideo flags +global_header
- AudioCodec aac
- Strict -2
- AudioBitRate 128
- AudioChannels 2
- AudioSampleRate 44100
- AVOptionAudio flags +global_header
- </Stream>
- ##################################################################
- # Special streams
- ##################################################################
- #<Stream stat.html>
- # Format status
- # # Only allow local people to get the status
- # ACL allow localhost
- # ACL allow 192.168.0.0 192.168.255.255
- #</Stream>
- #
- # Redirect index.html to the appropriate site
- #<Redirect index.html>
- # URL http://www.ffmpeg.org/
- #</Redirect>
- ##################################################################
- -----------------------------------------------------------------------------------------------------------
- ffserver cmd & output:
- ffserver -d -f ffserver.conf
- ffserver version N-47342-g5473f62 Copyright (c) 2000-2012 the FFmpeg developers
- built on Dec 1 2012 14:30:43 with gcc 4.4.5 (Debian 4.4.5-8)
- configuration: --disable-shared --enable-static --prefix=/x/ --extra-ldflags=-I/x/include --extra-ldflags=-L/x/lib --extra-cflags=-I/x/include --enable-gpl --enable-libaacplus --enable-libmp3lame --enable-librtmp --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-vdpau --enable-bzlib --enable-pthreads --enable-zlib --disable-stripping --enable-runtime-cpudetect --enable-postproc --enable-swscale
- libavutil 52. 10.100 / 52. 10.100
- libavcodec 54. 78.100 / 54. 78.100
- libavformat 54. 41.100 / 54. 41.100
- libavdevice 54. 3.101 / 54. 3.101
- libavfilter 3. 23.104 / 3. 23.104
- libswscale 2. 1.103 / 2. 1.103
- libswresample 0. 17.101 / 0. 17.101
- libpostproc 52. 2.100 / 52. 2.100
- Sun Dec 2 10:04:35 2012 FFserver started.
- Sun Dec 2 10:04:42 2012 188.x.x.x. - - New connection: POST /feed1.ffm
- Sun Dec 2 10:04:43 2012 188.x.x.x - - [POST] "/feed1.ffm HTTP/1.1" 200 834
- ------------------------------------------------------------------------------------------------------------
- ffmpeg cmd & output: (on the same box)
- ffmpeg -re -i x.mp4 -f flv -ar 44100 http://127.0.0.1:51888/feed1.ffm
- ffmpeg version N-47342-g5473f62 Copyright (c) 2000-2012 the FFmpeg developers
- built on Dec 1 2012 14:30:43 with gcc 4.4.5 (Debian 4.4.5-8)
- configuration: --disable-shared --enable-static --prefix=/x/ --extra-ldflags=-I/x/include --extra-ldflags=-L/x/lib --extra-cflags=-I/x/include --enable-gpl --enable-libaacplus --enable-libmp3lame --enable-librtmp --enable-libvorbis --enable-libx264 --enable-nonfree --enable-version3 --enable-vdpau --enable-bzlib --enable-pthreads --enable-zlib --disable-stripping --enable-runtime-cpudetect --enable-postproc --enable-swscale
- libavutil 52. 10.100 / 52. 10.100
- libavcodec 54. 78.100 / 54. 78.100
- libavformat 54. 41.100 / 54. 41.100
- libavdevice 54. 3.101 / 54. 3.101
- libavfilter 3. 23.104 / 3. 23.104
- libswscale 2. 1.103 / 2. 1.103
- libswresample 0. 17.101 / 0. 17.101
- libpostproc 52. 2.100 / 52. 2.100
- Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'x.mp4':
- Metadata:
- major_brand : isom
- minor_version : 1
- compatible_brands: isom
- creation_time : 2012-11-26 18:03:39
- Duration: 00:20:56.64, start: 0.000000, bitrate: 1137 kb/s
- Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x404, 1018 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
- Metadata:
- creation_time : 2012-11-26 17:56:19
- handler_name : GPAC ISO Video Handler
- Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 114 kb/s
- Metadata:
- creation_time : 2012-11-26 18:03:40
- handler_name : GPAC ISO Audio Handler
- Output #0, flv, to 'http://127.0.0.1:51888/feed1.ffm':
- Metadata:
- major_brand : isom
- minor_version : 1
- compatible_brands: isom
- encoder : Lavf54.41.100
- Stream #0:0(und): Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 720x404, q=2-31, 200 kb/s, 1k tbn, 23.98 tbc
- Metadata:
- creation_time : 2012-11-26 17:56:19
- handler_name : GPAC ISO Video Handler
- Stream #0:1(und): Audio: mp3 ([2][0][0][0] / 0x0002), 44100 Hz, stereo, fltp
- Metadata:
- creation_time : 2012-11-26 18:03:40
- handler_name : GPAC ISO Audio Handler
- Stream mapping:
- Stream #0:0 -> #0:0 (h264 -> flv)
- Stream #0:1 -> #0:1 (aac -> libmp3lame)
- Press [q] to stop, [?] for help
- av_interleaved_write_frame(): Connection reset by peer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement