vladjerca/FFMpegSharp

how should i cost mp4 to h264 codec mp4

Closed this issue · 4 comments

thank u for u work

@debin168 I'm not sure if I understand correctly.

But if you convert to mp4, is uses the LibX264 codec to achieve this.

You can take a look at the example app to see how to convert to mp4 using the library.

encoder.ToMp4(input, new FileInfo(input.FullName.Replace(input.Extension, ".mp4")));

@vladjerca thank u , i can convert it to mp4,but the mp4 can't play in mobile chrome brower, chrome brower only can play h.264 codec mp4. so what should i do . and i have another question , mobile video convert to mp4 ,but when play video in brower,the screen was out of shape ,no rotate to suit screen

@debin168 I've update the codebase today to try to improve display compatibility by reinforcing the Yuv420p pixel format as recommended by FFMpeg here.

@debin168 has the update solved your issue with mobile devices?