Must I set those frame rate, pixel format etc? #2374
-
|
On Windows, sometimes I downloaded some TV show which normally are 1080p, encoded in h264, 1 audio stream (usually aac). 1 episode is around 3-4 Gb. Now usually after I watch them, I just delete them but sometimes I do kept them but for that size it's quite big so I normally would use ffmpeg and do a simple transcode to h265/hevc using the following very simple command and that'll bring the size to half (1.5-2Gb).
The result is satisfactory for a TV show episode. If there's any quality loss, I can't really tell so it's good. No playback issue whatsoever, and audio and video are synced nicely. I'm trying to achieve the same using JavaCV and its built in ffmpeg. I refer to this code in here but it includes the following: I'm wondering if those
If I we're to proceed, maybe I'll just use Another sample code that I found by googling also suggest the same (except this one there's no So...idk. For things like these I hope there's a default (that matches the source video) if I don't set them via code. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
We can easily accomplish this with the ffmpeg program: |
Beta Was this translation helpful? Give feedback.
We can easily accomplish this with the ffmpeg program:
http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html