Displaying 5 results from an estimated 5 matches for "avpacket".
2015 Jun 19
2
Muxing vorbis in WebM
.../FFmpeg/blob/master/libavcodec/libvorbisenc.c#L345l
To me it seems the breakdown of ffmpeg's libvorbis_encode_frame is:
- get an ogg_packet from libvorbis (I think this contains a *single*
vorbis block, right?)
- store just the data from that packet (no header) in ffmpeg's own
AVPacket struct
- eventually this AVPacket data will be inserted as the contents of a
WebM (Matroska) block:
https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/matroskaenc.c#L1584
Starting with question 1, some important context comes from this excerpt of
the vorbis spec:
*Data is not ret...
2015 Jun 24
0
Muxing vorbis in WebM
...bvorbisenc.c#L345l
>
> To me it seems the breakdown of ffmpeg's libvorbis_encode_frame is:
>
> - get an ogg_packet from libvorbis (I think this contains a *single*
> vorbis block, right?)
> - store just the data from that packet (no header) in ffmpeg's own
> AVPacket struct
> - eventually this AVPacket data will be inserted as the contents of a
> WebM (Matroska) block:
>
> https://github.com/FFmpeg/FFmpeg/blob/master/libavformat/matroskaenc.c#L1584
>
> Starting with question 1, some important context comes from this excerpt
> of th...
2004 Dec 16
0
[patch] ffmpeg2theora A/V sync
...the input file, which
might not be true for many file formats. I have especially bad problems
with MPEG-TS streams that I recorded via DVB-T (sync off by 0.5 seconds
etc.). Encoding chapter-ranges from DVD might yield similar problems.
The attached patch fixes that, using audio/video timestamps
(AVPacket::pts) for implementing sync correction by duplicating/dropping
frames. This also helps when transcoding files that have missing frames
(again, this can sometimes happen with DVB-T streams tue to bit-errors
etc.).
Not sure whether the patch works in all cases, as I don't have much
experience w...
2003 Oct 02
2
GNOME 2 port is broken?
...n
this
scope
/usr/local/include/ffmpeg/rtp.h:27: `codec' was not declared in this scope
/usr/local/include/ffmpeg/rtp.h:28: `AVFormatContext' was not declared in
this
scope
/usr/local/include/ffmpeg/rtp.h:28: `s1' was not declared in this scope
/usr/local/include/ffmpeg/rtp.h:28: `AVPacket' was not declared in this
scope
/usr/local/include/ffmpeg/rtp.h:28: `pkt' was not declared in this scope
/usr/local/include/ffmpeg/rtp.h:29: syntax error before `unsigned'
/usr/local/include/ffmpeg/rtp.h:29: initializer list being treated as
compound
expression
/usr/local/include/ffm...
2004 Nov 20
0
ffmpeg2theora start and end time support
...ULL;
}
}
else{
this->audio_index = -1;
}
}
if (this->video_index >= 0 || this->audio_index >=0){
AVFrame *frame=NULL;
AVFrame *frame_tmp=NULL;
AVFrame *output=NULL;
AVFrame *output_tmp=NULL;
AVFrame *output_resized=NULL;
AVFrame *output_buffered=NULL;
AVPacket pkt;
int len;
int len1;
int got_picture;
int first = 1;
int e_o_s=0;
int ret;
uint8_t *ptr;
int16_t *audio_buf= av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE);
int16_t *resampled= av_malloc(4*AVCODEC_MAX_AUDIO_FRAME_SIZE);
if(this->video_index >= 0)
info.audio_only=0;...