Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Best ffmpeg settings for recording

LaySoft

New Member
Joined
Jan 6, 2018
Messages
1
Reaction score
0
What is the optimal ffmpeg command parameters for the best quality to stream capturing? I'm using this command, on my Raspberry PI 2:

ffmpeg -i rtsp://192.168.111.125:554/onvif1 -strict -2 -vcodec copy -c:a aac -f segment -strftime 1 -segment_time 3600 -segment_format mp4 capture_%Y-%m-%d_%H-%M-%S.mp4

But the quality is not too good in my opinion. In the android app, the video quality (under Picture and sound setting) affected the recorded quality via rtsp stream?
 
The camera uses dual stream technology, main stream - HD resolution, substream - SD resolution. If users watch HD video through smartphone, the record video stream will be SD resolution, vice versa.

By the way, here it is the code for YouTube live via ffmpeg
Code:
ffmpeg -i rtsp://192.168.1.3:554/onvif1 -vcodec copy -acodec copy -f flv rtmp://a.rtmp.youtube.com/live2/your stream name

The video codec is h.264, audio codec is G.711 ALAW
 
Last edited:
Back
Top