ffmpeg+rtsp+dss

1. push stream to dss

ffmpeg -f mpegts -re -i film.v -c:v libx264 -s 352x288 -aspect 4:3 -b:v 300k -c:a libfaac  -ac 1  -f rtsp 'rtsp://127.0.0.1/live1.sdp'


2. play stream from dss

ffmpeg -i 'rtsp://test:[email protected]:554/live1.sdp'  -an -c:v rawvideo -s 352x288 -f rawvideo  v1.yuv

ffmpeg -i 'rtsp://192.168.137.66:8000/live1.sdp' -an -c:v rawvideo -s 352x288 -f rawvideo  v1.yuv

ffmpeg -i 'rtsp://192.168.137.66:8000/live1' -an -c:v rawvideo -s 352x288 -f rawvideo  v1.yuv

转载自:http://blog.csdn.net/fanbird2008/article/details/9044885

你可能感兴趣的:(ffmpeg+rtsp+dss)