Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't convert .AVI files #37

Open
web-roman opened this issue Mar 24, 2016 · 5 comments
Open

Can't convert .AVI files #37

web-roman opened this issue Mar 24, 2016 · 5 comments
Labels

Comments

@web-roman
Copy link

Actually files with ext .AVI after converting don't have video stream, there is only audio. Maybe it will help you to fix this issue - the parameter "-pix_fmt yuv420p" fixes the problem

@joedean3
Copy link

joedean3 commented Apr 9, 2016

same issue here... I just spent a long time looking at this thinking it was a problem with all videos but it seems to be just avi.

@AydinAdn
Copy link
Owner

Thank you @web-roman, I'll add that on the next push, were you converting to .mp4?

@web-roman
Copy link
Author

yes, i'm was converting to .mp4

@joedean3
Copy link

I tried it using WinFF v 1.54 and it went through the motions and created a file that didn’t play at all. Your library gave me audio without video.

From: Aydin [mailto:notifications@github.com]
Sent: Sunday, 10 April 2016 12:00 PM
To: AydinAdn/MediaToolkit MediaToolkit@noreply.github.com
Cc: joedean3 joe@joedean.net
Subject: Re: [AydinAdn/MediaToolkit] Can't convert .AVI files (#37)

Are you able to convert the .avi content outside of the library? It may be due to the version of FFmpeg that's packaged with the release


You are receiving this because you commented.
Reply to this email directly or view it on GitHub #37 (comment) https://github.com/notifications/beacon/AEihI7cIQZ6ezQwbfOfLImyYLvV7ihOgks5p2HW2gaJpZM4H34Z5.gif

@rexn8r
Copy link

rexn8r commented Nov 24, 2016

hello

i am facing problem converting AVI file. The file gets converted OK and plays fine in Windows Media Player as well as Media Player Classic, but it doesn't play in HTML5 video element in a web app.

As suggested by "web-roman" , i added following line in CommandBuilder.cs file;

commandBuilder.AppendFormat(" -i "{0}" ", inputFile.Filename);
commandBuilder.AppendFormat(" -pix_fmt "{0}" ", "yuv420p"); (AS per web-roman suggestion)
commandBuilder.AppendFormat(" -vcodec "{0}" ", "libx264");
return commandBuilder.AppendFormat(" "{0}" ", outputFile.Filename).ToString();

but that doesn't help either.

can anybody throw light on this AVI file conversion issue?

thanks
rex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants