jbilcke-hf HF staff commited on
Commit
faac575
·
1 Parent(s): 0b2f8ce

scale up to 10 shots

Browse files
Files changed (3) hide show
  1. database.json +1 -1
  2. scripts/stream2.sh +1 -1
  3. src/index.mts +1 -1
database.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "version": 1,
3
- "startAtShotId": "ae832251-8cab-4177-b92c-1ae215421cdc",
4
  "sequences": [
5
  {
6
  "sequenceId": "0489dbc6-791c-4cb8-97f6-ada01092fa91",
 
1
  {
2
  "version": 1,
3
+ "startAtShotId": "9988a33e-741e-46c4-bb28-42b26409d096",
4
  "sequences": [
5
  {
6
  "sequenceId": "0489dbc6-791c-4cb8-97f6-ada01092fa91",
scripts/stream2.sh CHANGED
@@ -18,7 +18,7 @@ while true; do
18
 
19
  # echo "Trying to create the final stream for channel 2.."
20
  ffmpeg -y -nostdin -re -f concat -safe 0 -i "channel_2_video_list_a.txt" -loglevel error -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/webtv2
21
- # ffmpeg -y -nostdin -re -f concat -safe 0 -i "channel_2_video_list_a.txt" -i "channel_2_audio_list_a.txt" -loglevel error -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/webtv
22
 
23
  # echo "Live stream for channel 2 got interrupted, will try again in 1 sec"
24
  done
 
18
 
19
  # echo "Trying to create the final stream for channel 2.."
20
  ffmpeg -y -nostdin -re -f concat -safe 0 -i "channel_2_video_list_a.txt" -loglevel error -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/webtv2
21
+ # ffmpeg -y -nostdin -re -f concat -safe 0 -i "channel_2_video_list_a.txt" -i "channel_2_audio_list_a.txt" -loglevel error -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/webtv2
22
 
23
  # echo "Live stream for channel 2 got interrupted, will try again in 1 sec"
24
  done
src/index.mts CHANGED
@@ -18,7 +18,7 @@ const status = `${process.env.WEBTV_STATUS || 'dry_run'}` as RunMode
18
  console.log(`Web TV server status: ${status}`)
19
 
20
  // to add more diversity to the stream, let's cut down on the length
21
- const maxShotsPerSequence = 6
22
 
23
  const main = async () => {
24
  if (status === 'paused') {
 
18
  console.log(`Web TV server status: ${status}`)
19
 
20
  // to add more diversity to the stream, let's cut down on the length
21
+ const maxShotsPerSequence = 10
22
 
23
  const main = async () => {
24
  if (status === 'paused') {