Converted HLS stream is very poor quality

0

I have a large (150MB) mp4 video that I want to convert to HLS. I'm very new to using video on the web but I decided, for performance reasons, that streaming the video would be the best option.

I tried using AWS Elemental MediaConvert to convert to HLS. However, I've tested the outputted files and the quality is awful. I tried implementing it using https://github.com/video-dev/hls.js/ , a JavaScript HLS client, but the video doesn't even seem to load, let alone play.

Here are my MediaConvert output settings:
Video settings: H264, 5 Kbps
Audio settings: AAC, 96 Kbps, 48000

I've not found implementation details in the AWS docs so far. Can someone tell me where I'm going wrong?
Thank you

已提问 5 年前616 查看次数
2 回答
0

Hello,

Knowing output bitrate isn't necessarily enough to go on. Complexity of the video content, framerate, resolution, and other encoding settings such as GOP, # of B Frames, and more all make an impact on the output quality.

I have a few questions to help troubleshoot:

A) When you have a moment, could you PM me your Account ID, the Job ID, and the region the job was ran? This will help me get a closer look at your settings.

B) Did you run this job based off of an existing MediaConvert Preset? Or did you build the job settings from scratch?

C) May I ask what exactly about the output video quality is bad?

Thank you!
-Jared

AWS
已回答 5 年前
0

After a very helpful reply from @awsjarede, I got a really great output.

Firstly, I went from a bitrate of 5000 to 5000000

From the reply:
"Other settings I would suggest in general would be:
Specify the Framerate, rather than using Follow Source. This helps make sure all your output framerates are consistent regardless of the input framerates.
-Pixel Aspect ratio: Square Pixels (again, same logic as not following the framerate)
-GOP Size: 2 Seconds (I tend to see this across most customers, should very slightly improve video quality)
-Flicker Adaptive Quantization: Enabled (again, very slight VQ improvement)"

"The only other setting I might recommend would be to change the segment length in the HLS Output from 10 seconds to 2 seconds. It allows players to download segments faster and I see it commonly used by customers."

已回答 5 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则