mirror of
				https://github.com/zoriya/Kyoo.git
				synced 2025-11-04 03:27:14 -05:00 
			
		
		
		
	Add start_at_zero flag to make debugging easier
This commit is contained in:
		
							parent
							
								
									d71cd625d0
								
							
						
					
					
						commit
						25901cef45
					
				@ -126,7 +126,8 @@ func (ts *Stream) run(start int32) error {
 | 
				
			|||||||
	ts.lock.Unlock()
 | 
						ts.lock.Unlock()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	log.Printf(
 | 
						log.Printf(
 | 
				
			||||||
		"Starting transcode for %s (from %d to %d out of %d segments)",
 | 
							"Starting transcode %d for %s (from %d to %d out of %d segments)",
 | 
				
			||||||
 | 
							encoder_id,
 | 
				
			||||||
		ts.file.Path,
 | 
							ts.file.Path,
 | 
				
			||||||
		start,
 | 
							start,
 | 
				
			||||||
		end,
 | 
							end,
 | 
				
			||||||
@ -201,6 +202,9 @@ func (ts *Stream) run(start int32) error {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
	args = append(args,
 | 
						args = append(args,
 | 
				
			||||||
		"-i", ts.file.Path,
 | 
							"-i", ts.file.Path,
 | 
				
			||||||
 | 
							// this makes behaviors consistent between soft and hardware decodes.
 | 
				
			||||||
 | 
							// this also means that after a -ss 50, the output video will start at 50s
 | 
				
			||||||
 | 
							"-start_at_zero",
 | 
				
			||||||
		// for hls streams, -copyts is mandatory
 | 
							// for hls streams, -copyts is mandatory
 | 
				
			||||||
		"-copyts",
 | 
							"-copyts",
 | 
				
			||||||
	)
 | 
						)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user