search for: e_o_s

Displaying 20 results from an estimated 36 matches for "e_o_s".

2004 Nov 16
0
metadata switches for ffmpeg2theora
...er_len,info.outfile); - fwrite (info.og.body, 1, info.og.body_len, info.outfile); + fwrite (info->og.header, 1, info->og.header_len,info->outfile); + fwrite (info->og.body, 1, info->og.body_len, info->outfile); } } @@ -166,7 +164,7 @@ * @param linesize of data * @param e_o_s 1 indicates ond of stream */ -int theoraframes_add_video (uint8_t * data, int width, int height, int linesize,int e_o_s){ +int theoraframes_add_video (theoraframes_info *info, uint8_t * data, int width, int height, int linesize,int e_o_s){ /* map some things from info struk to local variables,...
2013 May 20
0
libfishsound/liboggz: How to properly set e_o_s marker when encoding?
Perhaps I am really dense, but after writing an app to encode multi-stream audio files using libfishsound and liboggz, I cannot figure out a way to reliably determine the which packet is the FINAL packet output from the encoder, so I can set the e_o_s flag on it. What is the magic for determining WHEN to set the e_o_s marker on a packet in the FishSoundEncoded callback function? Even though I know when I write the last audio buffer with fish_sound_encode_float(), I don't know how many packets my FishSoundEncoded callback will receive as a...
2006 Nov 06
3
[PATCH] Re: Strangeness with OggFlac files
...gt; http://www.mega-nerd.com/tmp/flac-end_of_stream.diff > > There's probably a more tasteful way of acheiving the same result, > but > this version does fix the problem. thanks Erik, can you confirm that this is happening only because the total_samples_estimate is 0? (so the e_o_s setting in the existing code is never triggered). Josh ____________________________________________________________________________________ Sponsored Link Degrees online in as fast as 1 Yr - MBA, Bachelor's, Master's, Associate Click now to apply http://yahoo.degrees.info
2004 Dec 16
0
[patch] ffmpeg2theora A/V sync
...ff by %.3f frames\n", + v_pts_out, framesync); + framesync = 1; + } + else + framesync = 0.0; + //now output_resized - if(theoraframes_add_video(&info, output_resized->data[0], - this->video_x,this->video_y,output_resized->linesize[0],e_o_s)){ - //this->output_width,this->output_height,output_resized->linesize[0],e_o_s)){ - ret = -1; - fprintf (stderr,"No theora frames available\n"); - break; + for (j = 0; j < 1 + framesync ; j++) + { + v_pts_out += (1/fps); + if(theorafram...
2002 Aug 13
2
Feedback on Ogg Speex file format
...ber found in header) Speex frames. These are identified with packetno starting from 2 and the granulepos is the number of the first sample encoded in that packet. The stream is terminated by a packet containing the string ``END OF STREAM'' (without terminating null). The the end of stream (e_o_s) flag set to 1. The decoder should rely on the e_o_s flag and not on the content of the packet. <p><p>Any error we made? suggestions? Thanks, Jean-Marc -- Jean-Marc Valin, M.Sc.A. LABORIUS (http://www.gel.usherb.ca/laborius) Université de Sherbrooke, Québec, Canada -----...
2004 Dec 19
0
[patch] more ffmpeg2theora improvements
...by %.2f frames\n", + v_pts_out, framesync); + frameadjust = 1; + } + else + frameadjust = 0; + //now output_resized - if(theoraframes_add_video(&info, output_resized->data[0], - this->video_x,this->video_y,output_resized->linesize[0],e_o_s)){ - //this->output_width,this->output_height,output_resized->linesize[0],e_o_s)){ - ret = -1; - fprintf (stderr,"No theora frames available\n"); - break; + for (j = 0; j < 1 + frameadjust ; j++) + { + v_pts_out += (1/fps); + if(theorafr...
2004 Nov 20
0
ffmpeg2theora start and end time support
...o_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; else info.audio_only=1; if(this->audio_index>=0) info.vide...
2009 Aug 12
1
Oggz use
...int)packetno; unsigned char buf[2]; buf[0] = 0; buf[1] = 0; memset(&op, 0, sizeof(ogg_packet)); op.packet = buf; op.bytes = 2; //op.bytes = 1; op.granulepos = granulepos; op.packetno = packetno; if (packetno == 0) op.b_o_s = 1; else op.b_o_s = 0; if (packetno == 9) op.e_o_s = 1; else op.e_o_s = 0; int ret = oggz_write_feed (oggz, &op, serialno, OGGZ_FLUSH_AFTER, NULL); switch (ret){ castatic long serialno; static ogg_int64_t granulepos = 0; static ogg_int64_t packetno = 0; static int oggzHungry(OGGZ * oggz, int empty, void * user_data) { /* Create...
2017 May 18
4
Strange behavior with OGG packets?
...>decode first and second order just fine, but writing larger matrices causes what seems to be some sort of packet corruption. The OpusHead packet is never found, but in it's place we have a packet at b_o_s=256 (which is where OpusHead usually lives), but the byte size is reported to be 0 and e_o_s=0 as well. (This is generated by parsing the packets via ogg's *ogg_stream_packetout* function. It appears a matrix larger than 7x16 causes this issue. (The matrix values are all signed short vals, so >224 bytes seems to fail. I'm not very familiar with ogg internals so any advice would...
2006 Nov 06
0
[PATCH] Re: Strangeness with OggFlac files
Josh Coalson wrote: > thanks Erik, can you confirm that this is happening only because > the total_samples_estimate is 0? (so the e_o_s setting in the > existing code is never triggered). In the Ogg code, I believe that there are two things that must be satisfied to correctly write an end of stream: - packet.e_o_s must be true - Need to call ogg_stream_flush() instead of instead of ogg_stream_pageout() I haven...
2005 Dec 08
1
A few questions how to use libogg
..._packetin? Iaw may I delay calling ogg_stream_pageout until there are no more packets to be added? 2.) I assume I have call ogg_stream_pageout until no more pages can be created and then call ogg_stream_flush if there are still bits left to be 'paged'? 3.) Do I need to manually set the e_o_s of the last packet added? 4.) may I call ogg_stream_init again on a already used ogg_stream_state struct to reuse it? 5.) Is it possible to start decoding a ogg_stream which has not yet been fully constructed iaw there are still packet's added an pageout to be called on the stream? Thank...
2015 Oct 17
1
Why does this code not generate a valid opus file?
...pre-skip 44100, //Original samplerate 0, //output gain 0}; //Mapping family ogg_packet header; header.packet = (unsigned char*)&headerContent; header.bytes = sizeof(struct OggHeader); header.b_o_s = 1; //Header must set beginning_of_stream header.e_o_s = 0; header.granulepos = -1; //This packet does not contain audio data, so granule-position = -1 header.packetno = 0; ogg_stream_packetin(&os,&header); //************** //Create the comments header struct OggCommentHeader commentHeaderContent = { {&...
2002 Sep 19
2
Vorbis files merging
...eters into one file that composed of one logical bitstream. In this connection some questions: A) Are codebooks in file headers depend only on Vorbis version and encoding parameters and don't depend on the particular source file? B) Are the following steps enough to do merging?: - unset e_o_s flags in the last packet of the first file; - unset b_o_s flags in the first packet of the second file; - write additionally to the first file data data from the second file, which located after headers of the second file, at the same time changing granuleposes and packetnos for...
2006 Nov 06
1
[PATCH] Re: Strangeness with OggFlac files
On Tue, Nov 07, 2006 at 06:31:04AM +1100, Erik de Castro Lopo wrote: > I haven't tested it, but I don't think just setting packet.e_o_s > is sufficient to close the stream. The forced ogg_stream_flush() > is required. libogg checks the e_o_s flag (and has always done so, according to svn) so you shouldn't have to call ogg_stream_flush() except when you want to force a page boundary (such as after the header packets). o...
2007 Jan 11
2
Vectored I/O for libogg
...orts are concentrated on libogg2? I had a look at libogg2 and that will not be a simple patch, so rather than attempt one I'll simply enter a feature-plea: please consider equipping libogg2 with one of these: ogg_stream_iovecin(ogg_stream_state *os, ogg_iovec_t *iov, int count, long e_o_s, ogg_int64_t granulepos) Thanks.
2006 Jun 07
1
ogg encoding
I was wondering. When doing ogg only encoding, how do you mark end of stream? I am setting ogg_packet.e_o_s and then submitting it via ogg_stream_packetin() and then, because its the last potential page ogg_stream_flush()ing it. But when I walk through the file, EOS is not set on that logical bitstream. I have been using oggenc.c/encoder.c and oggdec.c/decoder.c for examples, but because the packet assem...
2006 Jan 01
2
Re: speexenc always crashes on amd64
...9 @@ /*Write header*/ { - op.packet = (unsigned char *)speex_header_to_packet(&header, (int*)&(op.bytes)); + int packet_size; + op.packet = (unsigned char *)speex_header_to_packet(&header, &packet_size); + op.bytes = size; op.b_o_s = 1; op.e_o_s = 0; op.granulepos = 0; Regards, -- Nicolas George -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 185 bytes Desc: Digital signature Url : http://lists.xiph.org/pipermail/speex-dev/attachments/200601...
2004 Jun 18
5
Patch to stop vcut from generating broken streams
Skipped content of type multipart/mixed-------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://westfish.xiph.org/pipermail/vorbis-dev/attachments/20040618/e7bee431/attachment.pgp
2004 Sep 22
3
copying an ogg stream
...l_packetno++ write_packet(packet) the write_packet function looks like this: def write_packet(packet): ogg_stream_packetin(os, packet) ogg_page page; while (ogg_stream_pageout(os, page)): fwrite(page.header, page.header_len, f) fwrite(page.body, page.body_len, f) (if the e_o_s flag is set, then i use ogg_stream_flush() instead of ogg_stream_pageout()) my problem is: when i look at the original file, it differs from the copied file. this is the output of the first few lines with oggzdump: original file: 0000003a: serialno 1295053610, granulepos 0, packetno 0 *** bos:...
2008 Feb 25
3
eos on continued page
On 25-Feb-08, at 9:34 AM, xiphmont@xiph.org wrote: > I'd say both; libogg should ignore the incomplete packet or flag a > structural error, and the spec should be clarified. I guess libogg should return -1 if you try to ogg_stream_packetout() after the eos packet. The eos flag pretty clearly applies to the *page* not the packet, so I think how that gets translated into the