How to convert avi to 3gp in c #?

Is it possible to convert an avi file to 3gp in c #? If so, how can I do this? Any ideas would be appreciated, thanks in advance.

+4
source share
2 answers

It depends on what you mean by "conversion." Both 3GP and AVI are shell formats, so are you just trying to change the container format or want to also transcode the streams?

In any case, you should probably take a look at ffmpeg ( Windows Information ). For simple cases (i.e. you have a file, one output file is required), you should probably consider it by calling it on the command line (i.e. System.Diagnostics.Process ), which is much simpler (and not related to licensing issues). If you want to access libavcodec / libavormat programmatically, I highly recommend skipping any .NET wrapper libraries (they are all in different sucking states; Tao is the best, but that doesn't say much) and writes a C ++ / CLI wrapper instead. I started to do this , and as soon as I found out about sorting data, etc., and figured out how to build it ( part 1 , part 2 ), it was not too difficult.

+6
source

There is no easy way to do this; my advice is to use ffmpeg, either using the C # shell, calling it from the outside. It seems that for ffmpeg (for example, this one has several C # wrappers), but they all seem to be at different stages of development and cannot be used. Your only option is likely to be by calling it from the outside.

0
source

Source: https://habr.com/ru/post/1309267/


All Articles