Opened 6 years ago

Closed 5 years ago

Last modified 5 years ago

#7147 closed defect (invalid)

Can't encode with libvorbis to buffer (avio)

Reported by: Laurent Zanoni Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
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 Laurent Zanoni 6 years ago.
input file
remux.ogg (8.0 KB ) - added by Laurent Zanoni 6 years ago.
corrupted output file

Download all attachments as: .zip

Change History (6)

by Laurent Zanoni, 6 years ago

Attachment: ffapi.ogg added

input file

comment:1 by Laurent Zanoni, 6 years ago

Version: 3.4git-master

comment:2 by Laurent Zanoni, 6 years ago

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);

by Laurent Zanoni, 6 years ago

Attachment: remux.ogg added

corrupted output file

comment:3 by Elon Musk, 5 years ago

Resolution: invalid
Status: newclosed

For this and similar questions use libav-user mailing list.

comment:4 by Carl Eugen Hoyos, 5 years ago

Component: avformatundetermined
Keywords: ogg streaming removed
Note: See TracTickets for help on using tickets.