So sánh encoder h264 và x264

H.264 is video encoding method, an alias name for MPEG-4 AVC compression, also known as MPEG-4 Part 10, defined in joint ISO/IC and ITU specification "Information technology — Coding of audio-visual objects — Part 10: Advanced Video Coding".

Today I changed to H264/AVC Encoder [AMD Advanced Media Framework] which was before on "veryfast" x264..

I also did experiments on medium up to ultrafast [ultrafast is too extremely pixelated, and medium is not pixelated, and in realities like "The Medium" it will cause output lags on Twitch while I experience no frame drops at all]..

On ultrafast the pixelation was higher than on veryfast, today I want to try the GPU encoder..

I use the AMD RX 570 8GB Sapphire Nitro, and AMD R5 2600, would you change to AMDH264 to broadcast in 1080p60 downscale to 900p60 or keep it on x264?

My new preset for Twitch is:

Quality Preset: Balanced Profile: Main Profile Level: Automatic Coding Type: Automatic Maximum Reference Frames is 4 Rate Control Method is CBR Pre-Pass Mode is disabled 5796 targeted bitrate +- Minimum QP 18 Maximum QP 51 Filler Data is enabled skipping every 9th frame Skip-Frame Period 0 VBAQ is disabled Enforce HRD is enabled High Motion Quality Boost is enabled VBV Buffer is automatic VBV Buffer Strictness is fifty VBV Buffer Initial Fulness is a one-hundred Keyframe Interval is 2 IDR Period in frames is zero I-Frame-Interval is zero P-Frame Interval is zero P-Frame Period is zero in frames Deblocking Filter is enabled Motion Estimation is quarter- & Half- Pixel Video API is Direct3D 11 Video Adapter is Radeon RX570 Series [VEN_10002/DEV_67df/SUB_e3531da2/REV_00ef] OpenCL Transfer is disabled OpenCL Conversion is disabled Multi-Threading is disabled [thinking about to enable it because of my R5 2600]

Still I can only use that one computer for broadcasting, I am looking forward to spent on an RX6.9K 16GB GPU + R9s + 256GB RAM for and use the other device only for OBS work connected with an VGA capture device and additional hardwares..

What do you think about that, and do you have any experienced optimization advices?

  • 3

x264 is a software encoder stack for H.264 video compression. The slower the preset, the better the quality/less bitrate is needed, but the more CPU it will use. There is no replacement for raw bitrate, in the end.

Unfortunately, the AMD AMF hardware encoder is extremely poor quality, and uses game-rendering resources for encoding. It's also so badly supported by AMD, the long-suffering main dev supporting it in OBS finally dropped it and walked away after a technical issue reach-out, AMD tried to refer him... to himself, to answer any questions he might have. Not by name, just 'talk to the OBS dev supporting it'.

If possible, it'd be suggested to swap to an nVidia 20 or 30-series card. NVENC produces video on-par with x264 Slow, with no in-game performance impact as it is a separate part of the GPU die specifically for video encoding. Probably not an option with the current GPU drought. If it was me, I'd stick with software x264 just to avoid the performance issues, much less the poor quality.

  • 4

Just next time never buy AMD GPU! 10 years same old tehnalogies stoneage encoder with shit quality and poor performance.AMD dont support game streaming and amd dont care about encoder next time pay 50$ more buy NVIDIA! and never never never buy AMD GPU FCK OFF AMD GPU ENCODER!

  • 5

I appreciate your response to these.

Yes, I also had a good experience with my x264, somehow I needed some activities like in "The Medium" to set the preset from medium to veryfast.

Now I am going to try that again with the preset on "faster", the issue is mostly, that if it is set to slow, that I will not realize the encoding lags, while with the GPU I realize it if I have encoding problems, and so on.

Công nghệ là phát triển không ngừng. Điều này cũng không ngoại lệ khi chúng ta nói đến quá trình nén và phát video. Các nhà phát triển luôn cố gắng không ngừng nghĩ nhằm cải thiện cách thức thu, nén và phát hình ảnh nhằm tối đa hiệu quả lưu trữ và thời gian truyền tải. Vào năm 2013, Liên hiệp truyền thông quốc tế ITU đã giới thiệu chuẩn nén mang tên H.265 hay còn gọi High Efficiency Video Coding – HEVC. Cũng giống như trước đó, H. 265 là thành quả của sự kết hợp giữa ITU-T VCEG và ISO/IEC MPEG.

H.265 là gì?

Chuẩn H.265 hứa hẹn sẽ là chuẩn nén thay thế xứng đáng cho chuẩn nén H.264 vốn đang rất phổ biến hiện tại. Qua tìm hiểu của Viễn thông Hoàng Gia, chuẩn nén H.265 có khả năng nén gấp đôi so với chuẩn trước đó mà chất lượng không đổi. Chuẩn này có thể hỗ trợ độ phân giải lên đến 8192 x 4320, bao gồm cả chất lượng 8k Ultra HD.

So sánh giữa H.265 và H.264

Vào ngày 29/2/2012, tại triển lãm Mobile World Congress, hãng Qualcomm đã trình chiếu hiệu năng của bộ nén mới trên tablet khi mà chuẩn nén mới đã cho chất lượng hiện thị tương đương với dung lượng gần như giảm một nửa.

Hiệu quả của H. 265 do IEEE đo lường

Tiếp theo đó thì các hãng khác cũng đã dần tích hợp và hỗ trợ chuẩn nén H.265 mới như DivX, ViXS, Windows 10. . . Apple cũng đã thông báo Iphone 6 và Iphone 6S hỗ trợ chuẩn H.265 qua mạng di động.

So sánh giữa H.264 và H.264

Ngoài việc băng thông giảm đi 1/2 so với chuẩn nén H.264, H.265 còn có thể đem lại hình ảnh, chất lượng cao nhưng dung lượng ghi hình cũng giảm đi một nữa.

Trong tương lai, các đoạn video clip trên youtube, facebook... chúng ta có thể xem với hình ảnh cực nét mà không cần phải chờ đợi để download nữa...

Cuộc đua mới cho các hãng camera giám sát H.265

Khách hàng chắc chắn sẽ là người hưởng lợi trong cuộc cách mạng về công nghệ nén video này. Chúng ta có thể chờ đợi những chiếc camera quan sát giá rẻ với chất lượng hình ảnh được hiển thị cực kì chi tiết.

Các tên tuổi lớn như Dahua, Hikvision, Vivotek, Axis. . . đều đã thông báo về việc hỗ trợ chuẩn H.265. Hãng sản xuất camera Dahua hàng đầu thế giới đã ra mắt sản phẩm camera 4K, tuy chưa chính thức hỗ trợ chuẩn H. 264 trên website của mình nhưng hãng này đã thông báo về việc cho ra mắt sản phẩm và nền tảng công nghệ dựa trên chuẩn H. 265. Ông lớn Axis của Thụy Điển đã bắt đầu bán sản phẩm hỗ trợ H. 265.

Vừa qua tại Hội nghị diễn ra vào 8/2015 của Vantech, cũng đã giới thiệu về camera H.265 và đầu ghi hình h.265. Tuy nhiên sản phẩm mới chỉ đang trong quá trình thử nghiệm, vẫn chưa có sản phẩm chính thức về Việt Nam. Hoàng Gia sẽ sớm cập nhật thông tin đến cho các bạn.

Chủ Đề