Attempts to adjust video encoding in a way that would tolerant to less powerful machines

cusax-fix
Emil Ivov 17 years ago
parent c6d3a29340
commit b013cb32ed

@ -17,7 +17,7 @@
/**
* Encodes supplied data in h264
*
*
* @author Damian Minkov
* @author Lubomir Marinov
*/
@ -255,7 +255,8 @@ public synchronized void open() throws ResourceUnavailableException
FFMPEG.avcodeccontext_set_qcompress(avcontext, 0.6f);
int _bitRate = 768000;
//int _bitRate = 768000;
int _bitRate = 256000;
// average bit rate
FFMPEG.avcodeccontext_set_bit_rate(avcontext, _bitRate);
// so to be 1 in x264

@ -18,7 +18,7 @@
/**
* Packets supplied data and encapsulates it in RTP in accord with RFC3984.
*
*
* @author Damian Minkov
* @author Lubomir Marinov
*/
@ -28,7 +28,7 @@ public class Packetizer
private final static String PLUGIN_NAME = "H264 Packetizer";
// without the headers
private final static int MAX_PAYLOAD_SIZE = 512;
private final static int MAX_PAYLOAD_SIZE = 1024;
private final static Format[] defOutputFormats =
{

Loading…
Cancel
Save