[asterisk-commits] rizzo: branch rizzo/video_v2 r85445 - /team/rizzo/video_v2/channels/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Thu Oct 11 12:21:18 CDT 2007


Author: rizzo
Date: Thu Oct 11 12:21:18 2007
New Revision: 85445

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85445
Log:
after much debugging found out that
ffmpeg h261 produces incorrect output if rtp_payload_size != 0

So clear the field when encoding in h261.

There is still one problem left with packetization.


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=85445&r1=85444&r2=85445
==============================================================================
--- team/rizzo/video_v2/channels/console_video.c (original)
+++ team/rizzo/video_v2/channels/console_video.c Thu Oct 11 12:21:18 2007
@@ -916,6 +916,7 @@
 static int h261_enc_init(struct video_out_desc *v)
 {
 	v->enc_ctx->gop_size = 0; // v->fps*5;
+	v->enc_ctx->rtp_payload_size = 0; /* important - ffmpeg fails otherwise */
 
 	return 0;
 }
@@ -1882,7 +1883,7 @@
 		ast_channel_lock(chan);
 #if 0 /* loop back */
 		for (p = f; p; p = AST_LIST_NEXT(p, frame_list)) {
-			uint16_t seqno = 10;
+			static uint16_t seqno = 10;
 			p->seqno = seqno++;
 			console_write_video(chan, p);
 		}




More information about the asterisk-commits mailing list