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

gefragt vor 5 Jahren616 Aufrufe
2 Antworten
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
beantwortet vor 5 Jahren
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."

beantwortet vor 5 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen