Hi, I am trying to convert a RTSP stream to a series of frames that I send to a stdout PIPE with a low latency .
I first tried this command. "ffmpeg -hwaccel cuda -flags +low_delay -fflags +nobuffer -nostats -debug_ts -re -rtsp_flags prefer_tcp -rtsp_transport tcp -i RTSP_STREAM -f rawvideo -fps_mode passthrough -pix_fmt rgb24 pipe:1 > /dev/null" Instead of dev/null I plug my app. Interestingly, most of the time is spent in the encode part. >>>> latency(total:136.931ms, decode 3.355ms/2%, decode-filter: 8.426ms/6%, filter 3.191ms/2%, encode 120.774ms/88%) latency(total:73.519ms, decode 1.592ms/2%, decode-filter: 2.047ms/2%, filter 2.928ms/3%, encode 66.856ms/90%) latency(total:139.766ms, decode 1.885ms/1%, filter 1.898ms/1%, encode 135.023ms/96%) latency(total:71.03ms, decode 3.524ms/4%, decode-filter: 1.503ms/2%, filter 1.189ms/1%, encode 64.743ms/91%) latency(total:134.037ms, decode 1.935ms/1%, encode 130.176ms/97%) <<<<< If I compare this to multiple BMP files "ffmpeg -hwaccel cuda -flags +low_delay -fflags +nobuffer -debug_ts -nostats -re -rtsp_flags prefer_tcp -rtsp_transport tcp -i RTSP_STREAM -fps_mode passthrough -pix_fmt rgb24 output_image_%03d.bmp" >>>> latency(total:18.478ms, decode 3.222ms/17%, decode-filter: 9.715ms/52%, filter 2.576ms/13%, encode 2.771ms/14%) latency(total:13.019ms, decode 1.857ms/14%, decode-filter: 2.184ms/16%, filter 3.348ms/25%, encode 5.468ms/42%) latency(total:6.565ms, decode 1.642ms/25%, decode-filter: 1.1ms/16%, filter 0.63ms/9%, encode 3.105ms/47%) latency(total:6.628ms, decode 2.116ms/31%, decode-filter: 1.131ms/17%, filter 1.851ms/27%, filter-encode: 0.085ms/1%, encode 1.324ms/19%, encode-mux: 0.075ms/1%) latency(total:3.932ms, decode 1.642ms/41%, decode-filter: 0.588ms/14%, filter 0.863ms/21%, encode 0.779ms/19%) latency(total:4.528ms, decode 1.91ms/42%, decode-filter: 0.766ms/16%, filter 1.061ms/23%, encode 0.694ms/15%) <<<< Then the encoded time is much more acceptable. Do you know why such a difference exists ? Thanks for your help, Clement _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".