rigaya / rkmppenc

Rockchip系SoCのHWエンコーダ(rkmpp)の性能実験
https://rigaya34589.blog.fc2.com/blog-category-35.html
Other
78 stars 8 forks source link

Decrement the reference of handle が発生する #4

Closed techmadot closed 12 months ago

techmadot commented 1 year ago

本エンコーダーを使用していて以下の症状を見つけたのでご報告致します。 今のところ使用は出来ているので致命的というほどではないとは感じています。

発生している課題

rga_mm: [tgid:57216] Decrement the reference of handle[36] when the user exits というようなメッセージが、エンコード完了後にシステムのログに記録されます。 処理したファイルにも依存するのかもしれませんが、以下のような感じで複数出力されるようです。

257410.760176] rga_mm: [tgid:61113] Decrement the reference of handle[49] when the user exits
[257410.760202] rga_mm: [tgid:61113] Decrement the reference of handle[50] when the user exits
[257410.760207] rga_mm: [tgid:61113] Decrement the reference of handle[51] when the user exits
[257410.760211] rga_mm: [tgid:61113] Decrement the reference of handle[52] when the user exits
[257410.760216] rga_mm: [tgid:61113] Decrement the reference of handle[53] when the user exits
[257410.760221] rga_mm: [tgid:61113] Decrement the reference of handle[54] when the user exits
[257410.760225] rga_mm: [tgid:61113] Decrement the reference of handle[55] when the user exits
[257410.760229] rga_mm: [tgid:61113] Decrement the reference of handle[56] when the user exits
[257410.760233] rga_mm: [tgid:61113] Decrement the reference of handle[57] when the user exits
[257410.760237] rga_mm: [tgid:61113] Decrement the reference of handle[58] when the user exits
[257410.760241] rga_mm: [tgid:61113] Decrement the reference of handle[59] when the user exits
[257410.760245] rga_mm: [tgid:61113] Decrement the reference of handle[60] when the user exits
[257410.760250] rga_mm: [tgid:61113] Decrement the reference of handle[61] when the user exits

再現のための手順

以下のコマンドの場合で発生しました。

--avhw --codec h264 --output-format mp4 --preset medium --cqp 23  --output-res 1280x720 -i  input.ts -o output.mp4

一方で以下のコマンドでは、当該の症状は発生しませんでした。

--avhw --codec h264 --output-format mp4 --preset medium --cqp 23 -i  input.ts -o output.mp4

なお、エラーのログについては dmesg コマンドや syslog ファイルあたりで確認をしました。

環境情報

実行時の rkmppenc が出力した情報が以下です。

arm_release_ver of this libmali is 'g6p0-01eac0', rk_so_ver is '6'.
rkmppenc (aarch64) 0.02 (r166) by rigaya, Sep  6 2023 23:06:05 (gcc 11.3.0/Linux)
OS:            Armbian 23.02.2 Jammy (5.10.110-rockchip-rk3588) aarch64
CPU:           Cortex-A76 aarch64 (4P+4E,8C/8T)
Input Info:    avmpp: MPEG2, 1920x1080, 30000/1001 fps
VPP            resize(rga_bicubic): 1920x1080 -> 1280x720
Output:        H.264/AVC  high @ Level 5.1
               1280x720p 0:0 29.970fps (30000/1001fps)
               avwriter: h264 => mp4
CQP:           23:23
GOP Len:       300 frames
rga_api version 1.9.1_[4]

もしかすると環境要因かもしれません。 この警告ログに対し回避策が思いつくようであれば教えていただけると助かります。

rigaya commented 12 months ago

特に動作に影響ないようですので、従来のままでも問題ないと思いますが、念のためrkmppenc 0.03でメッセージが出ないようにしたつもりですので、お試しいただければと思います。

techmadot commented 12 months ago

0.03 を用いて、こちらの件が解決されているのを確認しました。 早急に対応していただいたこと、ありがとうございます。