Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants