[FFmpeg-devel] [PATCH] lavc/libopusenc: add support for specifying signal type

2018-06-16 Thread Takayuki 'January June' Suwa
--- doc/encoders.texi | 14 ++ libavcodec/libopusenc.c | 11 +++ 2 files changed, 25 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 7b095754d1..6d0fc8e63e 100644 --- a/doc/encoders.texi +++ b/doc/encoders.texi @@ -986,6 +986,20 @@ If set to 0, dis

[FFmpeg-devel] [PATCH] lavf/tcp: return EOF on read, but not 0

2017-10-20 Thread Takayuki 'January June' Suwa
related to commit '858db4b01fa2b55ee55056c033054ca54ac9b0fd'. --- libavformat/tcp.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 07b4ed9..5438122 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -220,7 +220,12 @@ st

[FFmpeg-devel] [PATCH] avformat/async: allow to set buffer size [v2]

2017-09-22 Thread Takayuki 'January June' Suwa
- add "-asyncbufsize" option to async: - refactor async.c - remove READ_BACK_CAPACITY and the 3rd arg of ring_init() - replace some magicnums with symconst macros --- doc/protocols.texi | 6 ++ libavformat/async.c | 18 +++--- 2 files changed, 17 insertions(+), 7 deletions(-)

[FFmpeg-devel] [PATCH] avformat/async: allow to set buffer size

2017-09-21 Thread Takayuki 'January June' Suwa
--- doc/protocols.texi | 6 ++ libavformat/async.c | 7 ++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/protocols.texi b/doc/protocols.texi index a7968ff56e3..f321664d7bf 100644 --- a/doc/protocols.texi +++ b/doc/protocols.texi @@ -57,6 +57,12 @@ Asynchronous data f

[FFmpeg-devel] [PATCH] lavd/alsa: add workarounds for ALSA cleanup problem

2017-05-09 Thread Takayuki 'January June' Suwa
- Add snd_config_update_free_global() after closing ALSA PCM handle, as aplay does. - Add snd_pcm_hw_free(h) before closing the handle. see https://www.google.com/search?q=Without+the+snd_pcm_hw_free,+snd_pcm_close+sometimes+fails --- libavdevice/alsa.c | 4 1 file changed, 4 insertions(+)

[FFmpeg-devel] [PATCH] lavd/alsa: fixes ALSA resource leak on closing the PCM handle

2017-05-07 Thread Takayuki 'January June' Suwa
By avoiding thread race condition (CAS-ing with null handle) --- libavdevice/alsa.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libavdevice/alsa.c b/libavdevice/alsa.c index 1bbff30..81187ab 100644 --- a/libavdevice/alsa.c +++ b/libavdevice/alsa.c @@ -30,6 +30,7 @@

[FFmpeg-devel] [PATCH] avdevice/alsa: wait until playback buffers are drained before closing

2017-05-06 Thread Takayuki 'January June' Suwa
This fixes early abort on ALSA playback --- libavdevice/alsa.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavdevice/alsa.c b/libavdevice/alsa.c index 8d27913..1bbff30 100644 --- a/libavdevice/alsa.c +++ b/libavdevice/alsa.c @@ -300,6 +300,8 @@ av_cold int ff_alsa_close(AVFormatContex

[FFmpeg-devel] [PATCH] avformat/nut: add DSDs support

2017-05-01 Thread Takayuki 'January June' Suwa
codec tags for DSDs are similar to PCMs: 'D', where 'D' means DSD, or pulse-Density-modulation, is 'L' for LSB-first, 'M' for MSB-first is 'D' for default, 'P' for planar is always binary one :) --- libavformat/nut.c | 4 1 file changed, 4 insertions(+) diff --git a/libavformat/nut.c

[FFmpeg-devel] [PATCH] dsddec: correct for DSD silence bit-ordering

2017-03-31 Thread Takayuki 'January June' Suwa
--- libavcodec/dsddec.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/libavcodec/dsddec.c b/libavcodec/dsddec.c index 880d691..2c5c357 100644 --- a/libavcodec/dsddec.c +++ b/libavcodec/dsddec.c @@ -31,10 +31,18 @@ #include "avcodec.h" #include "dsd.h" +

[FFmpeg-devel] [PATCH] avfilter: support for output samplerate fallbacking

2017-03-09 Thread Takayuki 'January June' Suwa
Thank you for reviewing @ #2781. > I do not think this option should be global. I agree that public global options should not be added (or removed :) w/o discussion. > Possibly, the good solution may be to extend the "sws_flags=" feature > to allow to set more graph options from the graph descri

[FFmpeg-devel] [PATCH] avfiltergraph: add -sample_rate_fallback

2017-03-06 Thread Takayuki 'January June' Suwa
dedicated to all audiophiles :) examples: -sample_rate_fallback closest -i 48ksps_source -af "aformat=sample_rates=44100|88200|176400|352800" => 44.1ksps (default behavior) -sample_rate_fallback higher => 88.2ksps -sample_rate_fallback higher2x => 176.4ksps -sample_rate_fallba

[FFmpeg-devel] [PATCH] matroska: add DSD support

2017-03-06 Thread Takayuki 'January June' Suwa
this patch makes transporting several (low-bitrate to hi-res) music data more simpler. almost major/defacto-std lossy/lossless audio codecs such as MP3, AAC, FLAC, etc. and now DSD can be muxed by the single way :) global/per-stream metadata seems to be exported correctly. --- libavformat/matro

[FFmpeg-devel] [PATCH] af_aresample: add 'sample_rate_list' option

2017-03-05 Thread Takayuki 'January June' Suwa
From: Takayuki 'January June' Suwa This adds '|'-separated list of desired sample rates. examples: -i 44.1k_from_cd_da_source -af "aresample=sample_rate_list=44100|48000|192000" ... -i 48k_from_dat_source -af "aresample=sample_rate_list=44100|48000|19

[FFmpeg-devel] [PATCH] omx: Add support for specifying H.264 profile [v5']

2017-03-02 Thread Takayuki 'January June' Suwa
From: Takayuki 'January June' Suwa This adds "-profile[:v] profile_name"-style option. --- libavcodec/omx.c | 18 ++ 1 file changed, 18 insertions(+) diff --git a/libavcodec/omx.c b/libavcodec/omx.c index 16df50e..19b4f33 100644 --- a/libavcodec/omx.c ++

[FFmpeg-devel] [PATCH] omx: Add support for specifying H.264 profile [v5]

2017-03-01 Thread Takayuki 'January June' Suwa
From: Takayuki 'January June' Suwa This adds "-profile[:v] profile_name"-style option. --- libavcodec/omx.c | 33 + 1 file changed, 33 insertions(+) diff --git a/libavcodec/omx.c b/libavcodec/omx.c index 16df50e..c0d64e2 100644 --- a/li

[FFmpeg-devel] [PATCH] omx: Add support for specifying H.264 profile [v4]

2017-02-12 Thread Takayuki 'January June' Suwa
From: Takayuki 'January June' Suwa This adds "-profile[:v] profile_name"-style option. --- libavcodec/omx.c | 31 +++ 1 file changed, 31 insertions(+) diff --git a/libavcodec/omx.c b/libavcodec/omx.c index 16df50e..cfe2613 100644 --- a/li

[FFmpeg-devel] [PATCH] omx: Add support for specifying H.264 profile [v3]

2017-02-09 Thread Takayuki 'January June' Suwa
From: Takayuki 'January June' Suwa This adds "-profile[:v] profile_name"-style option IOW. Now default/unknown profile means FF_PROFILE_H264_HIGH strictly, for both better coding style and preserving the original behavior. --- libavcodec/omx.c | 20

[FFmpeg-devel] [PATCH] omx: Add support for specifying H.264 profile [v2']

2017-02-07 Thread Takayuki 'January June' Suwa
From: Takayuki 'January June' Suwa This adds "-profile[:v] profile_name"-style option IOW. Thanks for reviewing my poor ugly patch, Mark... and I get back to an original purpose - forcing OMX to use baseline profile. (eg. RasPiCam-to-Ustream webcasting w/o additional xcod

[FFmpeg-devel] [PATCH] omx: Add support for specifying H.264 profile [v2]

2017-02-06 Thread Takayuki 'January June' Suwa
This adds "-profile[:v] profile_name"-style option IOW. Thanks for reviewing my poor ugly patch, Mark... and I get back to an original purpose - forcing OMX to use baseline profile. (eg. RasPiCam-to-Ustream webcasting w/o additional xcoding) --- libavcodec/omx.c | 19 +++ 1 fi

[FFmpeg-devel] [PATCH] omx: Add support for specifying H.264 profile

2017-02-05 Thread Takayuki 'January June' Suwa
This adds "-profile[:v] profile_name"-style option IOW. "constrained," "baseline," "main" and "high" will work well on Raspbian Jessie / RasPi3B. The others aren't checked due to unsupported. --- libavcodec/omx.c | 91 1 file changed, 9