You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a matter of ffmpeg and the properties you need to establish are in the readme file.
Example:
`
....
var inputPath = "input.mp4"
var outputPath = "filename.m3u8"
func main() {
// Create new instance of transcoder
trans := new(transcoder.Transcoder)
// Initialize transcoder passing the input file path and output file path
err := trans.Initialize( inputPath, outputPath )
if err!=nil {
panic(err)
}
// Copy video streams
trans.MediaFile().SetVideoCodec("copy")
// Set hls list size
trans.MediaFile().SetHlsListSize(0)
// Set HLS time
trans.MediaFile().SetHlsSegmentDuration(10)
// Start transcoder process without checking progress
done := trans.Run(false)
// This channel is used to wait for the process to end
err = <-done
Can you give an example to convert mp4 to hls 360p, 480p, 720p and 1080p?
The text was updated successfully, but these errors were encountered: