[FFmpeg] Introduce FFmpeg-Rockchip for hyper fast video transcoding via CLI

isn’t the JPEG engine super fast too?

The only use case for this is if someone uses it to decode MJPEG video from USB cameras. It’s much faster than the software MJPEG decoder in FFmpeg, which only utilizes a single CPU core. Apparently ARM is weak on single core perf.

3 Likes

@nyanmisaka

While testing the your latest FFmpeg, I found a glitch: RGB32 is swapped with BGR32, see below:

The file contents has rgba colors but it’s displayed incorrectly.

ffplay -f rawvideo -pixel_format rgb32 -video_size 1920x1080 -i 1920x1080.rgba

Input #0, rawvideo, from ‘1920x1080.rgba’:
Duration: 00:00:00.04, start: 0.000000, bitrate: 1658880 kb/s
Stream #0:0: Video: rawvideo (BGRA / 0x41524742), bgra, 1920x1080, 1658880 kb/s, 25 tbr, 25 tbn
7.50 M-V:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

To fix:

ffplay -f rawvideo -pixel_format bgr32 -video_size 1920x1080 -i 1920x1080.rgba

Input #0, rawvideo, from ‘1920x1080.rgba’:
Duration: 00:00:00.04, start: 0.000000, bitrate: 1658880 kb/s
Stream #0:0: Video: rawvideo (RGBA / 0x41424752), rgba, 1920x1080, 1658880 kb/s, 25 tbr, 25 tbn
1.61 M-V:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

On common little-endian systems:
AV_PIX_FMT_RGB32 = AV_PIX_FMT_BGRA
AV_PIX_FMT_BGR32 = AV_PIX_FMT_RGBA

If you choose to use .rgba as the file extension, you should also use -pix_fmt rgba to describe it.

Failed to set value ‘rgba’ for option ‘pix_fmt’: Option not found

I forgot that pix_fmt is an ffmpeg option. ffplay should continue using -pixel_format.

i used rgb32, rgba worked, thanks.