mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Fix: hls fmp4 init.mp4 filename to stream flac files
This commit is contained in:
		
							parent
							
								
									74d2987310
								
							
						
					
					
						commit
						ee1dc92898
					
				@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "audiobookshelf-client",
 | 
					  "name": "audiobookshelf-client",
 | 
				
			||||||
  "version": "1.4.14",
 | 
					  "version": "1.4.15",
 | 
				
			||||||
  "description": "Audiobook manager and player",
 | 
					  "description": "Audiobook manager and player",
 | 
				
			||||||
  "main": "index.js",
 | 
					  "main": "index.js",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
 | 
				
			|||||||
@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "audiobookshelf",
 | 
					  "name": "audiobookshelf",
 | 
				
			||||||
  "version": "1.4.14",
 | 
					  "version": "1.4.15",
 | 
				
			||||||
  "description": "Self-hosted audiobook server for managing and playing audiobooks",
 | 
					  "description": "Self-hosted audiobook server for managing and playing audiobooks",
 | 
				
			||||||
  "main": "index.js",
 | 
					  "main": "index.js",
 | 
				
			||||||
  "scripts": {
 | 
					  "scripts": {
 | 
				
			||||||
 | 
				
			|||||||
@ -273,7 +273,8 @@ class Stream extends EventEmitter {
 | 
				
			|||||||
    ]
 | 
					    ]
 | 
				
			||||||
    if (this.hlsSegmentType === 'fmp4') {
 | 
					    if (this.hlsSegmentType === 'fmp4') {
 | 
				
			||||||
      hlsOptions.push('-strict -2')
 | 
					      hlsOptions.push('-strict -2')
 | 
				
			||||||
      var fmp4InitFilename = Path.join(this.streamPath, 'init.mp4')
 | 
					      // var fmp4InitFilename = Path.join(this.streamPath, 'init.mp4')
 | 
				
			||||||
 | 
					      var fmp4InitFilename = 'init.mp4'
 | 
				
			||||||
      hlsOptions.push(`-hls_fmp4_init_filename ${fmp4InitFilename}`)
 | 
					      hlsOptions.push(`-hls_fmp4_init_filename ${fmp4InitFilename}`)
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    this.ffmpeg.addOption(hlsOptions)
 | 
					    this.ffmpeg.addOption(hlsOptions)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user