aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip
diff options
context:
space:
mode:
authorEmil Ivov <emcho@jitsi.org>2009-10-05 19:20:21 +0000
committerEmil Ivov <emcho@jitsi.org>2009-10-05 19:20:21 +0000
commitb013cb32edf99a456247d4caf6209cba7a013d6a (patch)
tree56b92c486cda3d5433fc47dd74a670253a0fee01 /src/net/java/sip
parentc6d3a2934069a2714428ee833cad89bd3f0a0206 (diff)
downloadjitsi-b013cb32edf99a456247d4caf6209cba7a013d6a.zip
jitsi-b013cb32edf99a456247d4caf6209cba7a013d6a.tar.gz
jitsi-b013cb32edf99a456247d4caf6209cba7a013d6a.tar.bz2
Attempts to adjust video encoding in a way that would tolerant to less powerful machines
Diffstat (limited to 'src/net/java/sip')
-rw-r--r--src/net/java/sip/communicator/impl/media/codec/video/h264/JNIEncoder.java5
-rw-r--r--src/net/java/sip/communicator/impl/media/codec/video/h264/Packetizer.java4
2 files changed, 5 insertions, 4 deletions
diff --git a/src/net/java/sip/communicator/impl/media/codec/video/h264/JNIEncoder.java b/src/net/java/sip/communicator/impl/media/codec/video/h264/JNIEncoder.java
index 3f037da..fecceca 100644
--- a/src/net/java/sip/communicator/impl/media/codec/video/h264/JNIEncoder.java
+++ b/src/net/java/sip/communicator/impl/media/codec/video/h264/JNIEncoder.java
@@ -17,7 +17,7 @@ import net.sf.fmj.media.*;
/**
* Encodes supplied data in h264
- *
+ *
* @author Damian Minkov
* @author Lubomir Marinov
*/
@@ -255,7 +255,8 @@ public class JNIEncoder
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
diff --git a/src/net/java/sip/communicator/impl/media/codec/video/h264/Packetizer.java b/src/net/java/sip/communicator/impl/media/codec/video/h264/Packetizer.java
index e85aa2e..58a94fb 100644
--- a/src/net/java/sip/communicator/impl/media/codec/video/h264/Packetizer.java
+++ b/src/net/java/sip/communicator/impl/media/codec/video/h264/Packetizer.java
@@ -18,7 +18,7 @@ import net.sf.fmj.media.*;
/**
* 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 =
{