-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to compile from source code? #1778
Comments
Are you talking about smart cut bit rate? https://github.com/mifi/lossless-cut/blob/master/.github/workflows/build.yml |
What should I do with this file? Will GitHub build it?
Yes. |
yes you can either use github actions in your fork, or you can translate/run commands from that file locally on your computer
I already increased bitrate by 20%, but maybe that was not enough: c01f0cf see also existing discussions here: #126 (comment) What does |
I installed nodejs 18.18.2 in /usr/local
In lossless-cut/src/smartcut.js
The program starts slowly in this mode, I encountered a packaging problem. I had two video files:
On both of them only multiplier 20 is good. |
I don't know how to use GitHub Actions, never tried it. |
Can you share info about your file? Multiplier 20 seems quite extreme. I wonder why such a multiplier is necesaary |
Do your files by any chance have bit rate «N/A» for the video track? |
I think there’s a bug in the code that estimates bitrate when bit_rate is N/A. It estimates bit rate from size/duration, but that is bytes/sec, ffmpeg -b expects bits, so we need to multiply by 8 here: Line 46 in c01f0cf
this also explains your high multiplier and also some people who complained about low quality some times |
you can try new nightly build tomorrow if you like |
The file is regular, downloaded from YouTube https://www.youtube.com/watch?v=RtFocW6gi5c with yt-dlp, streams 247+251, mux in ffmpeg 6.0. WebM (VP9 720p + Opus). I don't have much traffic left, please download it yourself.
How can I check this?
LosslessCut selects a bitrate 3 times lower. I checked.
I could try. But I also like to choose the bitrate myself in my build. |
I tried the nightly build. It's much better now. The bitrate is higher by a factor of x1.07 ... x1.37. This was clearly a bit/byte problem, which you fixed. Thanks. |
The nightly builds have an expiration date and require a github account, so I've re-uploaded them. They may be useful for those who don't have a github account. |
cool. note that nightly builds will eventually turn into an actual release |
I have a lot of issues to go through, so in order to make it easier for me to help you, I ask that you please try these things first
Description
Provide instructions, please. I have Ubuntu 22.04. I would like to recompile the program and increase the bitrate, it is too low, poor quality.
Graph using plotbitrate:
![lossless-cut](https://private-user-images.githubusercontent.com/107228652/283005381-c0ce1a5e-a485-48d3-973c-93860d1b3d03.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxOTU0MDMsIm5iZiI6MTczOTE5NTEwMywicGF0aCI6Ii8xMDcyMjg2NTIvMjgzMDA1MzgxLWMwY2UxYTVlLWE0ODUtNDhkMy05NzNjLTkzODYwZDFiM2QwMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEwJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxMFQxMzQ1MDNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xYWE0N2Q2NGQ1ZTc3MTliMTExYzI0OTdlYzMwMTNmZGU2MWIzOGU0ZTE4NjNiYTczYzgxMGQ4MDY2ODc1MGVlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.bI5lZ_uQ1ZK_TqMIAJxF1Vi3OIQV5CCW4ZsXuICStnE)
The text was updated successfully, but these errors were encountered: