search for: audio_only

Displaying 2 results from an estimated 2 matches for "audio_only".

2004 Nov 16
0
metadata switches for ffmpeg2theora
...ytesout = 0; +void theoraframes_init (theoraframes_info *info){ + info->audio_bytesout = 0; + info->video_bytesout = 0; /* yayness. Set up Ogg output stream */ srand (time (NULL)); - ogg_stream_init (&info.vo, rand ()); + ogg_stream_init (&info->vo, rand ()); - if(!info.audio_only){ - ogg_stream_init (&info.to, rand ()); /* oops, add one ot the above */ - theora_encode_init (&info.td, &info.ti); - theora_info_clear (&info.ti); + if(!info->audio_only){ + ogg_stream_init (&info->to, rand ()); /* oops, add one ot the above */ + theora_encode_init...
2004 Nov 20
0
ffmpeg2theora start and end time support
...; 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; else info.audio_only=1; if(this->audio_index>=0) info.video_only=0; else info.video_only=1; if(!info.audio_only){ frame = alloc_picture(vstream->codec.pix_fmt, vstream->codec.width,vstream->codec.height); frame_tmp = alloc_picture(vstream->co...