From: Marton Balint <cus@passwd.hu>
To: FFmpeg development discussions and patches <ffmpeg-devel@ffmpeg.org>
Subject: Re: [FFmpeg-devel] [PATCH v2] libavformat/mpegtsenc.c: correctly re-emit extradata ahead of IDR pictures
Date: Mon, 20 Feb 2023 23:21:33 +0100 (CET)
Message-ID: <29346c36-e7a9-533-fdc9-b038c3c737c@passwd.hu> (raw)
In-Reply-To: <167690693976.10789.15001811257523285319@lain.khirnov.net>
On Mon, 20 Feb 2023, Anton Khirnov wrote:
> I'm wondering if there isn't a bsf that could do this in a cleaner way
> than messing with codec internals in a muxer.
I thought about that too, but in the end I sticked to the more simple
approach, because I could not decide which would be better, adding a
single new bsf which works for any codec you may want to mux into mpegts
(h264, hevc, av1) or hack some new options to existing *_metadata bsf-s to
make them create mpegts-compliant output.
The problem with using *_metadata is that I am not sure if more complex
insertion rules belong to those filters, and the way they work -
parsing everything with the CBS framework - they have significant CPU
overhead.
A separate BSF could use the same or very similar code as mpegtsenc.c
right now, but by having it separate we have to maintain it separately
from mpegtsenc, and that can also cause problems, if a newer version of
mpegtsenc expects the BSF to do something different than the older
version...
Regards,
Marton
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe".
prev parent reply other threads:[~2023-02-20 22:21 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-12 23:06 John Coiner
2023-02-17 0:36 ` Marton Balint
2023-02-18 19:35 ` John Coiner
2023-02-20 15:28 ` Anton Khirnov
2023-02-20 22:21 ` Marton Balint [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=29346c36-e7a9-533-fdc9-b038c3c737c@passwd.hu \
--to=cus@passwd.hu \
--cc=ffmpeg-devel@ffmpeg.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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