ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Does not support H265 encoding, does not support 4K video encoding

Đang mở
#511 12 bình luận 2 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
C
Star
17.8k
Fork
1.1k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

### Describe the bug
1. Does not support h265 encoding.
2. Does not support 4K video encoding.

### Question 1
I am trying to do H265 encoding with the following code and it fails.

`await ffmpeg.run('-i', 'test.mp4' , '-vcodec' , 'libx265' , '-acodec' , 'aac' , '-b:v' , '3000k' , '-maxrate' , '4000k' , '-minrate' , '3000k' , '-s' , '1920x1080' , '-b:a' , '192k' , 'test_out.mp4');`

But it can be successful when using H264 encoding.

`await ffmpeg.run('-i', 'test.mp4' , '-vcodec' , 'libx264' , '-acodec' , 'aac' , '-b:v' , '3000k' , '-maxrate' , '4000k' , '-minrate' , '3000k' , '-s' , '1920x1080' , '-b:a' , '192k' , 'test_out.mp4');`

Maybe H265 encoding does not support multi-threading yet?

![image](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/77874665/af62ef44-f80e-4d46-9e37-baf70fe5b863)

**Error screenshot**

![image](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/77874665/51a6e296-4fb3-4491-be46-118752981353)

### Question 2

At first I tried to convert 4K video to 1080P video

`await ffmpeg.run('-i', 'test.mp4' , '-vcodec' , 'libx264' , '-acodec' , 'aac' , '-b:v' , '3000k' , '-maxrate' , '4000k' , '-minrate' , '3000k' , '-s' , '1920x1080' , '-b:a' , '192k' , 'test_out.mp4');`

The program runs fine for a short time, but errors appear soon after (An error occurs when the program executes less than 1%)

![image](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/77874665/c2bdfdf7-92d4-442b-9c95-a6b26342001b)

Then I remove the width and height constraints, the error occurs immediately

`await ffmpeg.run('-i', 'test.mp4' , '-vcodec' , 'libx264' , '-acodec' , 'aac' , '-b:v' , '3000k' , '-maxrate' , '4000k' , '-minrate' , '3000k' , '-b:a' , '192k' , 'test_out.mp4');`

**Error screenshot**

![image](https://github.com/ffmpegwasm/ffmpeg.wasm/assets/77874665/cd54e04d-c3b9-4cc4-9f89-f5a3ce5ab6a1)

I hid the website domain in the screenshot, it has nothing to do with the question

**Desktop:**
- OS: windows 10 22H2
- Browser: chrome 114.0.5735.134

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.