[FFmpeg-devel] [Uncompressed MP4] RFC - Draft Encoder
Michael Niedermayer
michael at niedermayer.cc
Fri Oct 11 23:57:07 EEST 2024
On Wed, Oct 09, 2024 at 07:38:43AM -0600, Devon Sookhoo wrote:
> With this patch, I was able to use the following command to generate an
> uncompressed mp4:
> $ ffmpeg -i input.mp4 -c:v rawvideo -pix_fmt rgb24 -tag:v uncv
> out.mp4
>
> The output file successfully played in GPAC.
>
> My first question is whether to reuse the existing AV_CODEC_ID_RAWVIDEO, or
> if a brand new codec should be created specifically for handling
> uncompressed MP4 files. For those not familiar with ISO/IEC 23001-17:2024,
> this uncompressed codec has many input parameters, making it configurable
> enough to handle just about any type of data. A complete
> implementation would be quite involved which is why I'm questioning if
> "-c:v rawvideo" is the correct choice.
>
> Any feedback would be greatly appreciated.
> libavcodec/rawenc.c | 18 ++++++++++
> libavformat/movenc.c | 88 +++++++++++++++++++++++++++++++++++++++++++++++++++
> 2 files changed, 106 insertions(+)
> 84f6e16f8e6ae76bdbeb9517e94576a930fa4d01 0001-Encode-RGB-interleaved-8-bit-uncompressed-mp4.patch
> From 62b59527bd25d7759b374fb47b398140df740946 Mon Sep 17 00:00:00 2001
> From: dukesook <devonsookhoo14 at gmail.com>
> Date: Tue, 24 Sep 2024 12:27:31 -0600
> Subject: [PATCH] Encode RGB interleaved 8 bit uncompressed mp4
breaks:
fate-mov-vfr
--- - 2024-10-11 22:55:50.346184682 +0200
+++ tests/data/fate/mov-vfr 2024-10-11 22:55:50.338195434 +0200
@@ -1 +1 @@
-1558b4a9398d8635783c93f84eb5a60d
+73f24e1cfcbbf1e6da06ff8658424df2
TEST shortest
TEST ffmpeg-filter-in-eof
Test mov-vfr failed. Look at tests/data/fate/mov-vfr.err for details.
TEST ffmpeg-streamcopy-t
make: *** [tests/Makefile:311: fate-mov-vfr] Error 1
make: *** Waiting for unfinished jobs....
thx
[...]
--
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Nations do behave wisely once they have exhausted all other alternatives.
-- Abba Eban
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20241011/27333d1d/attachment.sig>
More information about the ffmpeg-devel
mailing list