[FFmpeg-devel] [RFC] lavc/ffmpeg sample_fmt implementation

pross at xvid.org pross
Fri Aug 1 16:21:04 CEST 2008


On Thu, Jul 31, 2008 at 06:39:12PM +0200, Michael Niedermayer wrote:
> On Fri, Aug 01, 2008 at 12:02:12AM +1000, pross at xvid.org wrote:
> > On Wed, Jul 30, 2008 at 10:09:02PM +0200, Michael Niedermayer wrote:
> > > On Mon, Jul 28, 2008 at 10:23:29PM +1000, pross at xvid.org wrote:
> > > > On Sun, Jul 27, 2008 at 11:00:05PM +0200, Michael Niedermayer wrote:
> > > > > On Sun, Jul 27, 2008 at 06:17:48PM +1000, pross at xvid.org wrote:
> > > > > > On Sat, Jul 26, 2008 at 01:08:09AM +1000, pross at xvid.org wrote:
> > > > > > > Hi.
> > > > > > > 
> > > > > > > This patch adds sample_fmt conversion support to lavc (and ffmpeg).
> > > > > > 
> > > > > > Round two patches enclosed.
> > > > > > 
> > > > 
> > > > Round three.
> > > > 

Round four. FFplay patch included as well.

> > Related matter: When codecs output/input sample formats other than
> > SAMPLE_FMT_S16, existing apps that expect the avcodec_decode_audio2() and
> > avcodec_encode_audio() functions to handle shorts ints will break.
> 
> Yes, but they will need to be fixed eventually anyway and sample_fmt is not
> a new field, it was there since a long time. IMHO applicaions that ignore its
> value are already broken.
> 
> I really do not want to spend too much time thinking about what happens with
> a few applications with some codecs and latest lavc for the period of a week.
> Any maintained application will be fixed within that time, users dont need
> to use latest lavc with applications ignoreing sample_fmt for that week.
> 
> Also its no API or ABI breakage, its rather applications ignoring it because
> it happened to be always NONE/S16
> 
> [...]

Sounds ok. Pun intended.

-- Peter
(A907 E02F A6E5 0CD2 34CD 20D2 6760 79C5 AC40 DD6B)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sfmt_utils.diff
Type: text/x-diff
Size: 475 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080802/54daa0d3/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sfmt_ffmpeg.diff
Type: text/x-diff
Size: 6299 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080802/54daa0d3/attachment-0001.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sfmt_ffplay.diff
Type: text/x-diff
Size: 5544 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080802/54daa0d3/attachment-0002.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20080802/54daa0d3/attachment.pgp>



More information about the ffmpeg-devel mailing list