-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Reg input video formats supported #1278
Comments
Thanks
We are doing some research on video files.
Please help me with command line to take hevc as input and write hevc as
output.
…On Thu, 2 Jan 2025 at 6:12 PM, K4YT3X ***@***.***> wrote:
Theoretically all formats FFmpeg supports are supported by Video2X, since
it uses the FFmpeg C libraries. The HEVC codec should already be supported,
also raw HEVC streams:
image.png (view on web)
<https://github.com/user-attachments/assets/e2464fcb-cbe1-41c6-9f29-bc6432663320>
...although I don't quite get why you don't want to put it in a container.
—
Reply to this email directly, view it on GitHub
<#1278 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADAN4KAFY4EJNMM7HFFP57T2IUX3FAVCNFSM6AAAAABUPWGWLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRXG4YTQNJXHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
You can see my screenshot |
I tried as per your screenshot, but got an output which is just 175kb file and not an actual video. video2x -i output_4k.hevc -o output_hd.hevc -e crf=20 -e preset=slow -p libplacebo -w 1920 -h 1080 --libplacebo-shader anime4k-v4-a -c libx265 --no-copy-streams encoded 1 frames in 31.60s (0.03 fps), 69059.60 kb/s, Avg QP:27.80 |
Hmm I think the timestamp got messed up when it tries to process the hevc file. I'll investigate. |
@gopi77 I did some tests, it turns out the issue isn't with the PTS, but that libplacebo always return Other filters that don't have this mechanism don't have this problem. You should be able to process with Real-ESRGAN, Real-CUGAN, and RIFE just fine. I'll look into why libplacebo has these problems. |
Thanks, it works. The command line: encoded 498 frames in 442.19s (1.13 fps), 34771.72 kb/s, Avg QP:36.00 [2025-01-04 11:24:27] [info] Video processed successfully |
So I ended up giving it another try. It seems like the reason why libplacebo cannot process the video properly is because the .hevc container doesn't contain PTS (presentation timestamp) information. This issue can be addressed by manually specifying a framerate and calculating the PTS of each frame before they are passed to libplacebo, but it is outside the normal use case. |
I've implemented this change in eae89ce. You can build from the latest commit if you want to try it out. |
Hi
I'm able to provide a mp4 input file, and it works fine.
Ubuntu 24, Command Line:
video2x -i ducks_take_off_1920x1080_50Hz_8bit_P420.mp4 -o output.hevc -p libplacebo -w 3840 -h 2160 -c libx265
I'm looking for support to provide hevc as input.
Also would like to know the other input video formats supported by this project (Ex: yuv/y4m files).
The text was updated successfully, but these errors were encountered: