Skip to content
This repository has been archived by the owner on Jul 17, 2024. It is now read-only.

Cannot play transcoded hls stream on video.js and hls player #86

Open
jenbhu opened this issue Jun 22, 2023 · 1 comment
Open

Cannot play transcoded hls stream on video.js and hls player #86

jenbhu opened this issue Jun 22, 2023 · 1 comment

Comments

@jenbhu
Copy link

jenbhu commented Jun 22, 2023

The transcoded stream file works fine on VLC.

However, it does not play on web players like video.js or hls.js.

Is this normal or is there a special config to make ?

@0000sir
Copy link

0000sir commented Nov 16, 2023

I have the same problem, this project was abandoned, it use ffmpeg for transcoding videos, but not run it directly, instead reference from github.com/riltech/streamer, that's much more difficult to debug.

In streamer project, the vcodec was copy to target ts, so if the source RTSP video can't play on videojs or reacthls, then the hls cannot be played too.

processCommands := []string{
		"-y",
		"-fflags",
		"nobuffer",
		"-rtsp_transport",
		"tcp",
		"-i",
		URI,
		"-f",
		"lavfi",
		"-i",
		"anullsrc=channel_layout=stereo:sample_rate=44100",
		"-vsync",
		"0",
		"-copyts",
		"-vcodec",
		"copy",
		"-movflags",
		"frag_keyframe+empty_moov",
	}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants