Crates.io | bpg2hevc |
lib.rs | bpg2hevc |
version | 0.1.0 |
source | src |
created_at | 2023-05-04 23:26:16.545029 |
updated_at | 2023-05-04 23:26:16.545029 |
description | CLI tool to convert some BPG pictures to raw HEVC streams (and indirectly to HEIC images) |
homepage | |
repository | https://github.com/vi/bpg2hevc |
max_upload_size | |
id | 857186 |
size | 11,481 |
Command line tool that allows you to losslessly convert compatible BPG files to HEIC format that is more widely supported. The tool itself handles extraction of HEVC stream from BPG files. That stream can be consumed by other tools like FFmpeg or MP4Box.
$ bpgenc sample.png -o sample.bpg
$ bpg2hevc sample.bpg > sample.hvc
$ MP4Box -add-image sample.hvc:primary -new sample.heic
The tool was created to process my own files, which are rather uniform, and may fail to handle arbitrary BPG files.
-m
or -b
) may fail to be converted.Download a pre-built executable from Github releases or install from source code with cargo install --path .
or cargo install bpg2hevc
.
ARGS:
<path>
BPG file to read and convert to HEVC raw stream to stdout.
`MP4Box -add-image w.hvc:primary -new w.heic` would help to pack it as a HEIF image.
OPTIONS:
-h, --help
Prints help information.