[FFmpeg-devel] [PATCH] ffmpeg: Add -copystreamid

Tomas Härdin git at haerdin.se
Fri Apr 12 11:54:17 EEST 2024


fre 2024-04-12 klockan 00:32 +0200 skrev Michael Niedermayer:
> On Thu, Apr 11, 2024 at 05:41:48PM +0200, Tomas Härdin wrote:
> > Hi
> > 
> > Patch attached allows preserving PIDs when remuxing MPEG-TS. James
> > suggested we could generalize this to allow copying from specific
> > streams, but I think if we want to handle a more general case then
> > it
> > would be better to handle streamid via metadata.
> > 
> > Passes FATE.
> > 
> > /Tomas
> 
> >  doc/ffmpeg.texi           |   10 ++++++++++
> >  fftools/ffmpeg.h          |    1 +
> >  fftools/ffmpeg_mux_init.c |    4 ++++
> >  fftools/ffmpeg_opt.c      |    5 +++++
> >  4 files changed, 20 insertions(+)
> > a926f3ca3c894dfa1dc91d479d32278ab7863bfa  0001-ffmpeg-Add-
> > copystreamid.patch
> > From 63b10983876077fd0e2b41c21a3c188b8557c602 Mon Sep 17 00:00:00
> > 2001
> > From: =?UTF-8?q?Tomas=20H=C3=A4rdin?= <git at haerdin.se>
> > Date: Thu, 11 Apr 2024 16:52:33 +0200
> > Subject: [PATCH] ffmpeg: Add -copystreamid
> > 
> > This causes streamid's to be copied from all input streams to all
> > output streams.
> > Individual streams' streamid can still be set explicitly with -
> > streamid.
> > ---
> >  doc/ffmpeg.texi           | 10 ++++++++++
> >  fftools/ffmpeg.h          |  1 +
> >  fftools/ffmpeg_mux_init.c |  4 ++++
> >  fftools/ffmpeg_opt.c      |  5 +++++
> >  4 files changed, 20 insertions(+)
> 
> rm doc/ffmpeg.pod doc/ffmpeg-all.1 ; make -j32 doc/ffmpeg-all.1
> doc/ffmpeg.pod
> rm: cannot remove 'doc/ffmpeg-all.1': No such file or directory
> MAN     doc/ffmpeg-all.1
> POD     doc/ffmpeg.pod
> @example ended by @end table at line 2502

Right, should be @end example. Wrote the doc after running FATE. No
matter, I have another solution in the works.

/Tomas


More information about the ffmpeg-devel mailing list