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

Michael Niedermayer michael at niedermayer.cc
Fri Apr 12 01:32:02 EEST 2024


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
doc/Makefile:88: recipe for target 'doc/ffmpeg.pod' failed
make: *** [doc/ffmpeg.pod] Error 255
make: *** Waiting for unfinished jobs....
pod2man: unable to format doc/ffmpeg-all.pod
doc/Makefile:98: recipe for target 'doc/ffmpeg-all.1' failed
make: *** [doc/ffmpeg-all.1] Error 1


[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The real ebay dictionary, page 1
"Used only once"    - "Some unspecified defect prevented a second use"
"In good condition" - "Can be repaird by experienced expert"
"As is" - "You wouldnt want it even if you were payed for it, if you knew ..."
-------------- 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/20240412/18950416/attachment.sig>


More information about the ffmpeg-devel mailing list