Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
General questions about ffmpeg transcoding
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
Demo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2022
Posts: 123

PostPosted: Fri Jun 21, 2024 7:11 pm    Post subject: General questions about ffmpeg transcoding Reply with quote

Hello folks ...

I'm a ffmpeg noob, I don't know much about it except for a basic idea about encoding/decoding and a few videos I watched over youtube about it's usage. I also don't have a big background in digital video, I only watch he occasional movie or course or stream, etc....

I have an intel machine with an i7-6700 which is slow. And I have a 30 Gig folder of lectures encoded in old real media format ".rm" and I was trying ffmpeg on it.
Code:
ffmpeg -init_hw_device "vulkan=vk:0" -hwaccel vulkan -hwaccel_output_format vulkan -i input.rm -c:v hevc output.mp4

The result was impressive, the input file was 144 meg, the output was 95 meg which is a little over 30% reduction.

40%+ came out with avi files also which made me interested in knowing more about ffmpeg, and leads me to the question behind the post, why did I get such big size reduction in video output? Is it just more efficient compression ratio for x265 format or there was comparable data loss from the original files? And how would I measure that data loss? What tools to use if any to see what kind of data was in the input and what came out in the output?

Trying the crf switch with 18 always generates larger files than the input which's the reason why I'm asking.

One thing more I wanted to mention, vulkan as an acceleration option seems to be sketchy, working sometimes and not all the time, qsv on the other hand is not working at all, what should I do to get them to work?

I do have the media-libs/oneVPL-intel-gpu-24.2.2 installed, media-libs/mesa-24.1.1 as well. I need to mention also that I tweaked mesa to only compile iris and vulkan, neither crocus_dri.so, swrast_dri.so, libvulkan_intel_hasvk.so are built. I don't see any difference in functionality with them not being built.

Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum