[svn-commits] rizzo: branch rizzo/video_v2 r86874 - /team/rizzo/video_v2/channels/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Oct 23 09:55:13 CDT 2007


Author: rizzo
Date: Tue Oct 23 09:55:12 2007
New Revision: 86874

URL: http://svn.digium.com/view/asterisk?view=rev&rev=86874
Log:
+ remove a debugging message in h264_enc;
+ also in mpeg4 send I frames every 5 seconds.

At this point we have reasonably robust behaviour with
all supported codecs:

	h261, h263, h263p, h264, mpeg4

so people interested in video are encouraged to try this out.


Modified:
    team/rizzo/video_v2/channels/console_video.c

Modified: team/rizzo/video_v2/channels/console_video.c
URL: http://svn.digium.com/view/asterisk/team/rizzo/video_v2/channels/console_video.c?view=diff&rev=86874&r1=86873&r2=86874
==============================================================================
--- team/rizzo/video_v2/channels/console_video.c (original)
+++ team/rizzo/video_v2/channels/console_video.c Tue Oct 23 09:55:12 2007
@@ -1083,6 +1083,7 @@
 	v->enc_ctx->flags |= CODEC_FLAG_LOOP_FILTER;
 	v->enc_ctx->flags |= CODEC_FLAG_H263P_SLICE_STRUCT;
 #endif
+	v->enc_ctx->gop_size = v->fps*5;
 	v->enc_ctx->rtp_payload_size = 0; /* important - ffmpeg fails otherwise */
 	return 0;
 }
@@ -1219,10 +1220,8 @@
 	}
 
 	size = d - start - 4;	/* don't count the end */
-	ast_log(LOG_WARNING, "block at %d size %d of %d\n",
-		start - out->enc_out.data, size, out->enc_out.used);
-
-	if (1 /* size < out->mtu */) {	// test - don't fragment
+
+	if (size < out->mtu) {	// test - don't fragment
 		// Single NAL Unit
 		f = create_video_frame(start, d - 4, AST_FORMAT_H264, 0, cur);
 		if (!f)




More information about the svn-commits mailing list