Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
* [FFmpeg-devel] [PATCH] libavformat: Add raw stream muxer
@ 2026-02-10 20:32 Timothy Crass via ffmpeg-devel
  2026-02-11  4:29 ` [FFmpeg-devel] " Gyan Doshi via ffmpeg-devel
  0 siblings, 1 reply; 2+ messages in thread
From: Timothy Crass via ffmpeg-devel @ 2026-02-10 20:32 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Timothy Crass

Hello

Please see my below patch for a raw stream muxer which is capable of mixing raw streams to files without any container. I find this useful when analysing unknown stream formats.

Regards Timothy

From: Timothy Crass <additionalbet@outlook.com>
Date: Sun, 8 Feb 2026 21:58:46 +0000
Subject: [PATCH] libavformat: Add raw stream muxer

This patch adds a raw stream muxer
which is capable of muxing raw streams into
a file with no container this is particularly
useful for extracting unknown streams from containers
for analysis
---
 doc/muxers.texi          | 3 +++
 libavformat/Makefile     | 1 +
 libavformat/allformats.c | 1 +
 libavformat/rawenc.c     | 9 +++++++++
 libavformat/version.h    | 4 ++--
 5 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/doc/muxers.texi b/doc/muxers.texi
index e1f737b1d9..a54d550b28 100644
--- a/doc/muxers.texi
+++ b/doc/muxers.texi
@@ -156,6 +156,9 @@ AV1 low overhead Open Bitstream Units muxer.
 Temporal delimiter OBUs will be inserted in all temporal units of the
 stream.
 
+@item rawstream @emph{video|audio}
+Mux any stream to a file verbatim with no container
+
 @item rawvideo @emph{video} (yuv, rgb)
 Raw uncompressed video.
 
diff --git a/libavformat/Makefile b/libavformat/Makefile
index 5b8564bf54..1d548b26b7 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -509,6 +509,7 @@ OBJS-$(CONFIG_PVF_DEMUXER)               += pvfdec.o pcm.o
 OBJS-$(CONFIG_QCP_DEMUXER)               += qcp.o
 OBJS-$(CONFIG_QOA_DEMUXER)               += qoadec.o
 OBJS-$(CONFIG_R3D_DEMUXER)               += r3d.o
+OBJS-$(CONFIG_RAWSTREAM_MUXER)           += rawenc.o
 OBJS-$(CONFIG_RAWVIDEO_DEMUXER)          += rawvideodec.o
 OBJS-$(CONFIG_RAWVIDEO_MUXER)            += rawenc.o
 OBJS-$(CONFIG_RCWT_DEMUXER)              += rcwtdec.o subtitles.o
diff --git a/libavformat/allformats.c b/libavformat/allformats.c
index 6ec361fb7b..15b86406a3 100644
--- a/libavformat/allformats.c
+++ b/libavformat/allformats.c
@@ -395,6 +395,7 @@ extern const FFInputFormat  ff_pvf_demuxer;
 extern const FFInputFormat  ff_qcp_demuxer;
 extern const FFInputFormat  ff_qoa_demuxer;
 extern const FFInputFormat  ff_r3d_demuxer;
+extern const FFOutputFormat ff_rawstream_muxer;
 extern const FFInputFormat  ff_rawvideo_demuxer;
 extern const FFOutputFormat ff_rawvideo_muxer;
 extern const FFInputFormat  ff_rcwt_demuxer;
diff --git a/libavformat/rawenc.c b/libavformat/rawenc.c
index cf298d223d..d022088ed7 100644
--- a/libavformat/rawenc.c
+++ b/libavformat/rawenc.c
@@ -587,6 +587,15 @@ const FFOutputFormat ff_obu_muxer = {
 };
 #endif
 
+#if CONFIG_RAWSTREAM_MUXER
+const FFOutputFormat ff_rawstream_muxer = {
+    .p.name            = "rawstream",
+    .p.long_name       = NULL_IF_CONFIG_SMALL("raw stream"),
+    .write_packet      = ff_raw_write_packet,
+    .p.flags           = AVFMT_NOTIMESTAMPS,
+};
+#endif
+
 #if CONFIG_RAWVIDEO_MUXER
 const FFOutputFormat ff_rawvideo_muxer = {
     .p.name            = "rawvideo",
diff --git a/libavformat/version.h b/libavformat/version.h
index 1d3a53875a..1b079ebce8 100644
--- a/libavformat/version.h
+++ b/libavformat/version.h
@@ -31,8 +31,8 @@
 
 #include "version_major.h"
 
-#define LIBAVFORMAT_VERSION_MINOR   8
-#define LIBAVFORMAT_VERSION_MICRO 102
+#define LIBAVFORMAT_VERSION_MINOR   9
+#define LIBAVFORMAT_VERSION_MICRO 100
 
 #define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
                                                LIBAVFORMAT_VERSION_MINOR, \
-- 
2.51.0

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [FFmpeg-devel] Re: [PATCH] libavformat: Add raw stream muxer
  2026-02-10 20:32 [FFmpeg-devel] [PATCH] libavformat: Add raw stream muxer Timothy Crass via ffmpeg-devel
@ 2026-02-11  4:29 ` Gyan Doshi via ffmpeg-devel
  0 siblings, 0 replies; 2+ messages in thread
From: Gyan Doshi via ffmpeg-devel @ 2026-02-11  4:29 UTC (permalink / raw)
  To: ffmpeg-devel; +Cc: Gyan Doshi



On 2026-02-11 02:02 am, Timothy Crass via ffmpeg-devel wrote:
> Hello
>
> Please see my below patch for a raw stream muxer which is capable of mixing raw streams to files without any container. I find this useful when analysing unknown stream formats.

Just use the existing data muxer.

   ffmpeg -i any-media-file -c copy -map 0:x -f data dump.bin

Regards,
Gyan

_______________________________________________
ffmpeg-devel mailing list -- ffmpeg-devel@ffmpeg.org
To unsubscribe send an email to ffmpeg-devel-leave@ffmpeg.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-02-11  4:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-02-10 20:32 [FFmpeg-devel] [PATCH] libavformat: Add raw stream muxer Timothy Crass via ffmpeg-devel
2026-02-11  4:29 ` [FFmpeg-devel] " Gyan Doshi via ffmpeg-devel

Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://master.gitmailbox.com/ffmpegdev/0 ffmpegdev/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 ffmpegdev ffmpegdev/ https://master.gitmailbox.com/ffmpegdev \
		ffmpegdev@gitmailbox.com
	public-inbox-index ffmpegdev

Example config snippet for mirrors.


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git