Skip to content

Commit 523a924

Browse files
committed
Fixed appending for flv. Refactored lots of recording releated code
1 parent f44fac1 commit 523a924

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<parent>
44
<groupId>org.red5</groupId>
55
<artifactId>red5-parent</artifactId>
6-
<version>1.0.10-M2</version>
6+
<version>1.0.10-M3</version>
77
</parent>
88
<modelVersion>4.0.0</modelVersion>
99
<artifactId>red5-server</artifactId>

src/main/server/conf/red5-common.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,10 +170,19 @@
170170
<property name="arguments" value="4096"/>
171171
</bean>
172172

173+
<!-- Use injection to set the FLV implementation for writing FLV files -->
174+
<bean class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
175+
<property name="staticMethod">
176+
<value>org.red5.io.flv.impl.FLVWriter.setFLV</value>
177+
</property>
178+
<property name="arguments" ref="flv.impl"/>
179+
</bean>
180+
173181
<!-- Low level access for recording to file -->
174182
<bean id="fileConsumer" scope="prototype" lazy-init="true" class="org.red5.server.stream.consumer.FileConsumer">
175183
<property name="delayWrite" value="${fileconsumer.delayed.write}"/>
176184
<property name="queueThreshold" value="${fileconsumer.queue.size}"/>
185+
<property name="waitForVideoKeyframe" value="${fileconsumer.wait.for.keyframe}"/>
177186
</bean>
178187

179188
<!-- ClientBroadcastStream and PlaylistSubscriberStream

src/main/server/conf/red5.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ keyframe.cache.entry.max=500
148148
war.deploy.server.check.interval=600000
149149
fileconsumer.delayed.write=true
150150
fileconsumer.queue.size=120
151+
fileconsumer.wait.for.keyframe=true
151152
subscriberstream.buffer.check.interval=5000
152153
subscriberstream.underrun.trigger=100
153154
subscriberstream.max.pending.frames=10

0 commit comments

Comments
 (0)