plemeri / transparent-background

This is a background removing tool powered by InSPyReNet (ACCV 2022)
MIT License
791 stars 87 forks source link

video bitrate #70

Open zhouzhenneng opened 4 months ago

zhouzhenneng commented 4 months ago

When I used the transparent-background tool to process a green screen video, the source video had the following properties:

•   Duration: 00:00:14.85
•   Start: 0.000000
•   Bitrate: 8768 kb/s

However, the resulting output video had these properties:

•   Duration: 00:00:14.85
•   Start: 0.000000
•   Bitrate: 3353 kb/s

As you can see, the bitrate of the output video has been significantly reduced, leading to a decrease in video quality. How can I set a higher bitrate or maintain the original bitrate during processing?

plemeri commented 3 months ago

Hi @zhouzhenneng, I'll check if I can do for the bitrate problem in the next release. Sadly, I have no room for the update right now.

zhouzhenneng commented 3 months ago

Hi,

Taehun Kim @.***> 于2024年7月30日周二 17:05写道:

Hi @zhouzhenneng https://github.com/zhouzhenneng, I'll check if I can do for the bitrate problem in the next release. Sadly, I have no room for the update right now.

— Reply to this email directly, view it on GitHub https://github.com/plemeri/transparent-background/issues/70#issuecomment-2257850638, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOY3NYQFI6Z3XU64W57O7JLZO5JMRAVCNFSM6AAAAABLL77DX2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJXHA2TANRTHA . You are receiving this because you were mentioned.Message ID: @.***>

zhouzhenneng commented 3 months ago

Hi Taehun, Thanks for your response, looking forward to your next release

Taehun Kim @.***> 于2024年7月30日周二 17:05写道:

Hi @zhouzhenneng https://github.com/zhouzhenneng, I'll check if I can do for the bitrate problem in the next release. Sadly, I have no room for the update right now.

— Reply to this email directly, view it on GitHub https://github.com/plemeri/transparent-background/issues/70#issuecomment-2257850638, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOY3NYQFI6Z3XU64W57O7JLZO5JMRAVCNFSM6AAAAABLL77DX2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJXHA2TANRTHA . You are receiving this because you were mentioned.Message ID: @.***>

plemeri commented 1 month ago

Hi, @zhouzhenneng, I changed the bitrate option in opencv videowriter, but this will not guarantee 100% identical bitrate as the input. If you still need the bitrate to be preserved, please save video as images and process each frame, then merge them into video format.