[FFmpeg-devel] Decoding performance -f rawvideo pipe:1 vs BMP images output
Clément Péron
peron.clem at gmail.com
Sun Dec 8 13:09:46 EET 2024
Hi,
On Sat, 7 Dec 2024 at 17:43, Leo Izen <leo.izen at gmail.com> wrote:
>
> On 12/6/24 1:30 PM, Clément Péron wrote:
> > Hi,
> >
> > On Fri, 6 Dec 2024 at 18:55, Clément Péron <peron.clem at gmail.com> wrote:
> >>
> >> 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.
> >>
>
> In general, user issues are for the ffmpeg-user mailing list, rather
> than ffmpeg-devel. However, you did bring up an issue with the codebase
> after further investigation.
>
> What happens if you use -thread_queue_size 0 before the output?
Unfortunately the same issue :(
>>>>>
$> ./ffmpeg -allowed_media_types video -hwaccel cuda -loglevel info
-flags +low_delay -fflags +nobuffer -debug_ts -max_port 65000
-min_port 5000 -nostats -re -rtsp_flags prefer_tcp -rtsp_transport tcp
-i RTSP_STREAM -fps_mode passthrough -f rawvideo -pix_fmt rgb24
-thread_queue_size 0 pipe:1 > /dev/null 2> latency.log
$> grep -ro "latency(.*)" latency.log
latency(total:114.746ms, decode 3.7ms/3%, decode-filter: 9.804ms/8%,
filter 3.543ms/3%, filter-encode: 1.583ms/1%, encode 96.08ms/83%)
latency(total:69.574ms, decode 1.157ms/1%, decode-filter: 1.635ms/2%,
filter 3.429ms/4%, encode 63.295ms/90%)
latency(total:141.911ms, decode 1.194ms/0%, decode-filter: 0.744ms/0%,
filter 1.074ms/0%, encode 138.797ms/97%)
latency(total:68.283ms, decode 1.195ms/1%, decode-filter: 0.655ms/0%,
filter 1.237ms/1%, encode 65.144ms/95%)
latency(total:138.438ms, decode 1.255ms/0%, decode-filter: 0.87ms/0%,
filter 1.081ms/0%, encode 135.118ms/97%)
latency(total:72.512ms, demux-decode: 0.117ms/0%, decode 1.225ms/1%,
decode-filter: 0.975ms/1%, filter 0.861ms/1%, encode 69.302ms/95%)
latency(total:139.057ms, decode 4.971ms/3%, decode-filter: 0.868ms/0%,
filter 1.577ms/1%, encode 131.572ms/94%)
latency(total:69.479ms, decode 1.143ms/1%, decode-filter: 0.956ms/1%,
filter 1.921ms/2%, encode 65.315ms/94%)
latency(total:149.823ms, decode 1.262ms/0%, decode-filter: 0.762ms/0%,
filter 2.256ms/1%, encode 145.436ms/97%)
latency(total:79.051ms, demux-decode: 0.084ms/0%, decode 1.223ms/1%,
decode-filter: 0.668ms/0%, filter 0.904ms/1%, filter-encode:
0.138ms/0%, encode 76.02ms/96%)
latency(total:116.629ms, decode 3.299ms/2%, decode-filter: 0.591ms/0%,
filter 0.898ms/0%, encode 111.763ms/95%)
latency(total:68.378ms, decode 1.14ms/1%, decode-filter: 0.957ms/1%,
filter 0.935ms/1%, encode 65.287ms/95%)
latency(total:138.234ms, decode 1.229ms/0%, decode-filter: 0.745ms/0%,
filter 0.908ms/0%, encode 135.225ms/97%)
latency(total:68.714ms, decode 1.15ms/1%, decode-filter: 0.916ms/1%,
filter 0.961ms/1%, encode 65.591ms/95%)
latency(total:138.556ms, decode 1.337ms/0%, decode-filter: 1.182ms/0%,
filter 0.972ms/0%, encode 134.991ms/97%)
latency(total:67.964ms, decode 1.385ms/2%, decode-filter: 0.719ms/1%,
filter 1.328ms/1%, encode 64.44ms/94%)
latency(total:138.237ms, decode 1.224ms/0%, decode-filter: 0.75ms/0%,
filter 0.931ms/0%, encode 135.283ms/97%)
latency(total:68.255ms, decode 1.234ms/1%, decode-filter: 1.079ms/1%,
filter 0.873ms/1%, encode 65.016ms/95%)
latency(total:149.837ms, decode 1.287ms/0%, decode-filter: 0.619ms/0%,
filter 1.234ms/0%, encode 146.642ms/97%)
latency(total:80.012ms, decode 1.196ms/1%, decode-filter: 0.83ms/1%,
filter 0.92ms/1%, encode 77ms/96%)
latency(total:116.61ms, decode 3.518ms/3%, decode-filter: 0.762ms/0%,
filter 1.511ms/1%, encode 110.698ms/94%)
latency(total:65.107ms, decode 1.159ms/1%, decode-filter: 0.833ms/1%,
filter 1.001ms/1%, encode 62.053ms/95%)
latency(total:141.841ms, decode 1.261ms/0%, decode-filter: 1.075ms/0%,
filter 0.897ms/0%, encode 138.518ms/97%)
latency(total:68.732ms, decode 1.197ms/1%, decode-filter: 1.004ms/1%,
filter 0.874ms/1%, encode 65.607ms/95%)
latency(total:133.049ms, decode 2.111ms/1%, decode-filter: 0.635ms/0%,
filter 0.872ms/0%, encode 129.287ms/97%)
latency(total:72.451ms, decode 1.212ms/1%, decode-filter: 0.639ms/0%,
filter 1.014ms/1%, encode 69.513ms/95%)
<<<<
>
> - Leo Izen (Traneptora)
>
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
More information about the ffmpeg-devel
mailing list