Opened 8 months ago

Last modified 8 months ago

#7147 new defect

Can't encode with libvorbis to buffer (avio)

Reported by: lzanoni Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: ogg, streaming
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I've taken the avio_writing.c sample found here:
https://ffmpeg.org/pipermail/ffmpeg-devel/2014-November/164996.html

With .mp3 file as input, I get the same result as output, but with an libvorbis ogg (ffapi.ogg) file as input, I get a completely bogus output file (remux.ogg).

Is there an update to the avio 'buffering' sample code ?

Attachments (2)

ffapi.ogg (6.2 KB) - added by lzanoni 8 months ago.
input file
remux.ogg (8.0 KB) - added by lzanoni 8 months ago.
corrupted output file

Download all attachments as: .zip

Change History (4)

Changed 8 months ago by lzanoni

input file

comment:1 Changed 8 months ago by lzanoni

  • Version changed from 3.4 to git-master

comment:2 Changed 8 months ago by lzanoni

I replaced the line

ret = avformat_alloc_output_context2(&ofmt_ctx, NULL, "mpegts", NULL);

by

ret = avformat_alloc_output_context2(&ofmt_ctx, NULL, "ogg", NULL);

Changed 8 months ago by lzanoni

corrupted output file

Note: See TracTickets for help on using tickets.