Git Inbox Mirror of the ffmpeg-devel mailing list - see https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
 help / color / mirror / Atom feed
From: Dmitrii Okunev <xaionaro@gmail.com>
To: ffmpeg-devel@ffmpeg.org
Cc: Dmitrii Okunev <xaionaro@dx.center>
Subject: Re: [FFmpeg-devel] [PATCH] avcodec/mediacodec: Add support of dynamic bitrate
Date: Tue, 28 May 2024 23:08:39 +0100
Message-ID: <34aed5b5-fbd8-405f-bf9a-6c25d3273c0e@gmail.com> (raw)
In-Reply-To: <20240528215733.64153-1-xaionaro@dx.center>

Sorry for re-posting the patch twice. To send to the mailing list I had 
to change the settings of my local postfix and made a mistake.

Anyway, just for convenience providing the list of changes since the 
previous revision of the patch:

< on fly. This commit add possibility to use it.
---
 > on fly. This commit adds capability to use it.
32c15
<     ffmpeg -listen 1 -i rtmp://0.0.0.0:1935/live/myStream -c:v 
hevc_mediacodec -bitrate_ctrl_socket /run/bitrate.sock -b:v 8M -f rtsp 
rtsp://127.0.0.1:1935/live/reEncoded
---
 >     ffmpeg -f flv -i rtmp://0.0.0.0:1935/live/myStream -c:v 
hevc_mediacodec -bitrate_ctrl_socket /run/bitrate.sock -b:v 8M -f flv 
rtmp://127.0.0.1:1935/live/reEncoded
34c17
< An example of changing the bitrate to 1000 BPS:
---
 > An example of changing the bitrate to 1000 Kbps:
36c19
<     printf '%016X' 1000 | xxd -r -p | socat -u STDIN 
UNIX:/run/bitrate.sock
---
 >     printf '%016X' 1000000 | xxd -r -p | socat -u STDIN 
UNIX:/run/bitrate.sock
66c49
< index 96c886666a..fa288b2acc 100644
---
 > index 96c886666a..fe0e291cad 100644
93c76
< +                                    const FFAMediaFormat* format_ctx)
---
 > +                                    const FFAMediaFormat *format_ctx)
131,132c114,115
< +static int mediacodec_ndk_setParameters(FFAMediaCodec* ctx,
< +                                    const FFAMediaFormat* format_ctx)
---
 > +static int mediacodec_ndk_setParameters(FFAMediaCodec *ctx,
 > +                                    const FFAMediaFormat *format_ctx)

Please let me know if I should've amended the patch differently. I'm a 
spoiled GitHub person, so I'm open to guidance/feedback :)

Best regards, Dmitrii.
_______________________________________________
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".

      reply	other threads:[~2024-05-28 22:08 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-27 12:49 Dmitrii Okunev
2024-05-28 15:38 ` Andrew Sayers
2024-05-28 21:56   ` Dmitrii Okunev
2024-05-29  4:19     ` Zhao Zhili
2024-05-29 11:45       ` Dmitrii Okunev
2024-05-28 21:57   ` Dmitrii Okunev
2024-05-28 22:08     ` Dmitrii Okunev [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=34aed5b5-fbd8-405f-bf9a-6c25d3273c0e@gmail.com \
    --to=xaionaro@gmail.com \
    --cc=ffmpeg-devel@ffmpeg.org \
    --cc=xaionaro@dx.center \
    /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