File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,6 +30,9 @@ public class ModuleConf : ModuleBaseConf
3030 public int tempfs_ring { get ; set ; } = 1 ;
3131
3232
33+ /// <summary>
34+ /// 256 кбит/с
35+ /// </summary>
3336 public int aac_bitrate { get ; set ; } = 256 ;
3437
3538 public int segment_seconds { get ; set ; } = 6 ;
@@ -42,7 +45,10 @@ public class ModuleConf : ModuleBaseConf
4245
4346 public bool transcodeVP9 { get ; set ; }
4447
45- public int video_bitrate { get ; set ; } = 8000 ;
48+ /// <summary>
49+ /// 10 Мбит/c
50+ /// </summary>
51+ public int video_bitrate { get ; set ; } = 10_000 ;
4652
4753
4854 public int pipeline_timeSeconds { get ; set ; } = 20 ;
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ http://IP:9118/gst.js
2828| ` tempfs_ring ` | ` 1 ` | Размер дискового кольцевого буфера в дополнительных блоках ` pipeline_videoQueue ` . |
2929| ` segment_seconds ` | ` 6 ` | Целевая длительность HLS/fMP4-сегмента в секундах. |
3030| ` aac_bitrate ` | ` 256 ` | Битрейт AAC в кбит/с. |
31- | ` video_bitrate ` | ` 8000 ` | Битрейт H.264 в кбит/с при перекодировании видео. |
31+ | ` video_bitrate ` | ` 10000 ` | Битрейт H.264 в кбит/с при перекодировании видео. |
3232| ` transcodeH264 ` | ` false ` | Перекодировать входной H.264 в H.264. |
3333| ` transcodeH265 ` | ` false ` | Перекодировать H.265 в H.264. |
3434| ` transcodeAV1 ` | ` false ` | Перекодировать AV1 в H.264. |
Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ public bool Seek(double seconds)
429429
430430 bool ok = pipeline . SeekSimple (
431431 Format . Time ,
432- SeekFlags . Flush | SeekFlags . KeyUnit | SeekFlags . SnapBefore ,
432+ SeekFlags . Flush | SeekFlags . KeyUnit | SeekFlags . SnapAfter ,
433433 ( long ) Math . Round ( seconds * 1_000_000_000d )
434434 ) ;
435435
@@ -452,10 +452,6 @@ public bool Seek(double seconds)
452452 }
453453 }
454454
455- mp4Reader . ResetSegment ( ) ;
456- mp4Reader . SeekReset ( ) ;
457- readySegment = ( - 1 , false , default ) ;
458-
459455 ret = pipeline . SetState ( State . Playing ) ;
460456 if ( ret == StateChangeReturn . Failure )
461457 {
@@ -477,6 +473,10 @@ public bool Seek(double seconds)
477473 }
478474 }
479475
476+ mp4Reader . ResetSegment ( ) ;
477+ mp4Reader . SeekReset ( seconds ) ;
478+ readySegment = ( - 1 , false , default ) ;
479+
480480 IsFrozen = false ;
481481 positionSeekSeconds = seconds ;
482482 StartBusWatch ( ) ;
You can’t perform that action at this time.
0 commit comments