Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //
- // ffserver.conf
- //
- Port 8090
- BindAddress 0.0.0.0
- MaxClients 10
- MaxBandwidth 40000
- NoDaemon
- CustomLog -
- <Feed feed1.ffm>
- File /tmp/feed1.ffm
- FileMaxSize 200M
- ACL allow localhost
- ACL allow 192.168.0.0 192.168.255.255
- </Feed>
- <Stream stream.mp4>
- Feed feed1.ffm
- Format mp4
- VideoCodec libx264
- VideoFrameRate 25
- # VideoBufferSize 40
- VideoBitRate 512K
- VideoSize 1280x720
- # VideoGopSize 15
- # StartSendOnKey
- NoAudio
- # i had problems with videostreaming with file. player said that header were corrupted, so i used this config, but it doesnt help. i still let it in.
- AVOptionVideo flags +global_header
- # ffpreset-fast (i think you can remove this in latest ffmpeg)
- AVOptionVideo coder 1
- AVOptionVideo flags +loop
- AVOptionVideo cmp +chroma
- AVOptionVideo partitions +parti8x8+parti4x4+partp8x8+partb8x8
- AVOptionVideo me_method hex
- AVOptionVideo subq 6
- AVOptionVideo me_range 16
- AVOptionVideo g 250
- AVOptionVideo keyint_min 25
- AVOptionVideo sc_threshold 40
- AVOptionVideo i_qfactor 0.71
- AVOptionVideo b_strategy 1
- AVOptionVideo qcomp 0.6
- AVOptionVideo qmin 10
- AVOptionVideo qmax 51
- AVOptionVideo qdiff 4
- AVOptionVideo bf 3
- AVOptionVideo refs 2
- AVOptionVideo directpred 1
- AVOptionVideo trellis 1
- AVOptionVideo flags2 +bpyramid+mixed_refs+wpred+dct8x8+fastpskip
- AVOptionVideo wpredp 2
- AVOptionVideo rc_lookahead 30
- </Stream>
- <Stream stat.html>
- Format status
- ACL allow localhost
- ACL allow 192.168.0.0 192.168.255.255
- </Stream>
- <Redirect index.html>
- URL http://www.ffmpeg.org/
- </Redirect>
- //
- // Command
- //
- ffmpeg -i rtsp://xxx.xxx.xxx.xxx:8080/ -acodec copy -vcodec copy http://localhost:8090/feed1.ffm
- //
- // Output
- //
- [rtsp @ 0x15f3780]Estimating duration from bitrate, this may be inaccurate
- Seems stream 0 codec frame rate differs from container frame rate: 60.00 (60/1) -> 30.00 (60/2)
- Input #0, rtsp, from 'rtsp://xxx.xxx.xxx.xxx:8080/':
- Metadata:
- title : Unnamed
- comment : N/A
- Duration: N/A, start: 435.315922, bitrate: N/A
- Stream #0.0: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 60 fps, 30 tbr, 90k tbn, 60 tbc
- Output #0, ffm, to 'http://localhost:8090/feed1.ffm':
- Metadata:
- encoder : Lavf52.64.2
- Stream #0.0: Video: libx264, yuv420p, 1280x720, q=10-51, 1000k tbn, 30 tbc
- Stream mapping:
- Stream #0.0 -> #0.0
- Press [q] to stop encoding
- [ffm @ 0x16399c0]st:0 error, non monotone timestamps 2333325 >= 1566667
- av_interleaved_write_frame(): Operation not permitted
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement