Re: [FFmpeg-user] When AIFF to WAV, ReplayGain is not extracted as Side data.

2019-03-13 Thread yas tam
Thank you for posted patch.
I applied that patch to source code and built them.
It works perfectly. Great!
ReplayGain works correctly when decoding AIFF with FFmpeg.
Thank you from the bottom of my heart.


2019年3月13日(水) 18:31 Moritz Barsnick :

> On Wed, Mar 13, 2019 at 12:30:16 +0900, yas tam wrote:
> > I uploaded the sample file of AIFF with ReplayGain.
> > I also uploaded Flac file and Apple Lossless file of the same sound
> source.
> >
> >
> https://www.dropbox.com/sh/zk3l8sn69zo2skc/AACgAyNqfgW2Pdsob90R7MBva?dl=0
>
> Nice, thanks!
>
> I have posted a proposed patch to the ffmpeg development mailing list:
> http://ffmpeg.org/pipermail/ffmpeg-devel/2019-March/241033.html
>
> It works for me with your provided AIFF file - I can now see the
> sidedata displayed for the input file, and the volume filter takes
> effect when used with "-af volume=replaygain=track".
>
> If you build your own ffmpeg from source, you can apply that patch and
> try for yourself. Otherwise wait and see whether the maintainers accept
> it.
>
> Cheers,
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] When AIFF to WAV, ReplayGain is not extracted as Side data.

2019-03-12 Thread yas tam
Thanks Moritz.

I uploaded the sample file of AIFF with ReplayGain.
I also uploaded Flac file and Apple Lossless file of the same sound source.

https://www.dropbox.com/sh/zk3l8sn69zo2skc/AACgAyNqfgW2Pdsob90R7MBva?dl=0

※ These sound sources were created from free samples of 2L High Resolution
Music.
http://www.2l.no/hires/

Regards,


2019年3月13日(水) 1:24 Moritz Barsnick :

> On Tue, Mar 12, 2019 at 19:33:48 +0900, yas tam wrote:
> > Who should I ask about fix for adding ff_replaygain_export() to
> > aiff_read_header()?
> > Should I ask questions on the libav-user mailing list?
>
> No, the libav-user mailing list handles the use of the libav* libraries
> through their APIs and ABIs.
>
> You would post a ticket as an enhancement request at
> https://trac.ffmpeg.org/.
>
> I tried modifying this myself, but I was incapable of creating an AIFF
> sample with replaygain metadata to test with (ffmpeg doesn't seem to
> map arbitrary metadata into AIFF ID3v2). Can you provide a link to a
> sample AIFF file with replaygain?
>
> If I succeed, I can post the change to the appropriate mailing list for
> review (if no-one gets to it before me).
>
> Cheers,
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

Re: [FFmpeg-user] When AIFF to WAV, ReplayGain is not extracted as Side data.

2019-03-12 Thread yas tam
Hi Moritz,

Who should I ask about fix for adding ff_replaygain_export() to
aiff_read_header()?
Should I ask questions on the libav-user mailing list?

2019年3月12日(火) 18:02 Moritz Barsnick :

> On Tue, Mar 12, 2019 at 17:14:21 +0900, yas tam wrote:
> > When AIFF to WAV, ReplayGain is not extracted as Side data.
> > ReplayGain is correctly extracted as Side data when Flac to WAV or Apple
> > Lossless (m4a) to WAV.
>
> As far as I can tell, exporting replaygain as side data isn't
> implemented for AIFF. aiff_read_header() is probably just missing a
> call to ff_replaygain_export().
>
> Moritz
> ___
> ffmpeg-user mailing list
> ffmpeg-user@ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".
___
ffmpeg-user mailing list
ffmpeg-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-requ...@ffmpeg.org with subject "unsubscribe".

[FFmpeg-user] When AIFF to WAV, ReplayGain is not extracted as Side data.

2019-03-12 Thread yas tam
When AIFF to WAV, ReplayGain is not extracted as Side data.
ReplayGain is correctly extracted as Side data when Flac to WAV or Apple
Lossless (m4a) to WAV.

Side data:
  replaygain: track gain - -10.88, track peak - 0.23, album
gain - -10.88, album peak - 0.23,



How can I extract ReplayGain as Side data when using AIFF to WAV?

AIFF, Flac, Apple Lossless (m4a), I attach the logs when converted each to
WAV.
$ ffmpeg -i 01\ Hello.aiff aiff_output.wav
ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.1 --enable-shared 
--enable-pthreads --enable-version3 --enable-hardcoded-tables 
--enable-avresample --cc=clang 
--host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include
 
-I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include/darwin'
 --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom 
--enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband 
--enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis 
--enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid 
--enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r 
--enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb 
--enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox 
--disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
  libavutil  56. 22.100 / 56. 22.100
  libavcodec 58. 35.100 / 58. 35.100
  libavformat58. 20.100 / 58. 20.100
  libavdevice58.  5.100 / 58.  5.100
  libavfilter 7. 40.101 /  7. 40.101
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale  5.  3.100 /  5.  3.100
  libswresample   3.  3.100 /  3.  3.100
  libpostproc55.  3.100 / 55.  3.100
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, aiff, from '01 Hello.aiff':
  Metadata:
REPLAYGAIN_TRACK_GAIN: -10.88 dB
REPLAYGAIN_TRACK_PEAK: 0.998840
Dynamic Range (R128): 17.064826
Dynamic Range (DR): 5
REPLAYGAIN_ALBUM_GAIN: -10.88 dB
REPLAYGAIN_ALBUM_PEAK: 0.998840
Album Dynamic Range (R128): 17.097127
Album Dynamic Range (DR): 5
TOTALTRACKS : 14
ALBUMARTIST : Adele
TOTALDISCS  : 1
TSO2: Adele
comment : 
C70E1D0E+271166+14+150+22312+39043+65190+87008+105415+123447+140354+161800+178830+199215+218092+232969+253249
composer: Greg Kurstin
album   : 25
title   : Hello_AIFF
artist  : Adele
genre   : Pop
date: 2015
track   : 1/14
album_artist: Adele
disc: 1/1
album-sort  : 25
  Duration: 00:04:55.49, start: 0.00, bitrate: 1416 kb/s
Stream #0:0: Audio: pcm_s16be, 44100 Hz, stereo, s16, 1411 kb/s
Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 1240x1240 
[SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
  comment : Cover (front)
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16be (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Output #0, wav, to 'aiff_output.wav':
  Metadata:
REPLAYGAIN_TRACK_GAIN: -10.88 dB
REPLAYGAIN_TRACK_PEAK: 0.998840
Dynamic Range (R128): 17.064826
Dynamic Range (DR): 5
REPLAYGAIN_ALBUM_GAIN: -10.88 dB
REPLAYGAIN_ALBUM_PEAK: 0.998840
Album Dynamic Range (R128): 17.097127
Album Dynamic Range (DR): 5
TOTALTRACKS : 14
ALBUMARTIST : Adele
TOTALDISCS  : 1
TSO2: Adele
ICMT: 
C70E1D0E+271166+14+150+22312+39043+65190+87008+105415+123447+140354+161800+178830+199215+218092+232969+253249
composer: Greg Kurstin
IPRD: 25
INAM: Hello_AIFF
IART: Adele
IGNR: Pop
ICRD: 2015
IPRT: 1/14
album_artist: Adele
disc: 1/1
album-sort  : 25
ISFT: Lavf58.20.100
Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, 
s16, 1411 kb/s
Metadata:
  encoder : Lavc58.35.100 pcm_s16le
size=   50904kB time=00:04:55.49 bitrate=1411.2kbits/s speed= 542x
video:0kB audio:50903kB subtitle:0kB other streams:0kB global headers:0kB 
muxing overhead: 0.000541%

$ ffmpeg -i 01\ Hello.flac flac_output.wav
ffmpeg version 4.1.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.5)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.1 --enable-shared 
--enable-pthreads --enable-version3 --enable-hardcoded-tables 
--enable-avresample --cc=clang 
--host-cflags='-I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include
 
-I/Library/Java/JavaVirtualMachines/openjdk-11.0.2.jdk/Contents/Home/include/darwin'
 --host-ldflags