Creating AVI from command line

Questions about Wine on Linux
Locked
t0p0linik
Newbie
Newbie
Posts: 2
Joined: Thu Mar 06, 2014 6:28 am

Creating AVI from command line

Post by t0p0linik »

So, there is this small command line application called xvid_encraw which ships with xvid source tarball.
It creates a compressed mpeg4 asp bitstream using the internal libxvidcore.
When compiled in win32 environment, avi file support gets enabled and the executable can put the compressed stream into an avi container. Under different OSs it doesn't (there is another container available anyway). Which is a pity, since avi file support would be great in order to edit video in virtualdub, which runs flawlessly in wine. I really would like to have avi writing support in non-redmond OSs. (I know, container conversion can easily be done with mencoder but I would really like to save time!)
Now, the question.
The source code itself does a few calls to the avi api (vfw/avifilesomething, it DOES NOT need compression stuff, it does those calls just for opening/closing file and for adding chunks to the sequence) and adding the right headers and linking to the right libraries are all easy steps. But you know, I did a little googleing before stumbling into this forum, and I already know the executable crashes when calling the first wine function because the whole emulation environment needs proper setup/initialization.
How can this be done?
User avatar
Bob Wya
Level 12
Level 12
Posts: 3068
Joined: Sat Oct 16, 2010 7:40 pm

Re: Creating AVI from command line

Post by Bob Wya »

Hi @t0p0linik,

Interesting post but I'm finding it so garbled that I cannot understand what you are trying to achieve or what is actually going wrong. Can you cut down on the coffee and re-write!! :?

1) First off - do you need a non-native solution?
When I first switched to a casual Linux user to a more of a 24/7 user I had to make some drastict adjustments. One was switching from MeGUI to (finally) h264enc. If you don't need to do any major/complex filtering this is easily the best KISS tool for Linux. I use it all the time. It's reliable and easy to setup.

2) Your post got me interested to see what's happening in the "Avisynth World" for Linux. I was interested to read about Vapoursynth. A pun on the fabled Avisynth 3.x project. This project exists and I see is in ARCH AUR. Interesting times :-)

3) If you can't find what you are looking for natively (under Linux) then perhaps you could detail what you are trying to and what is going wrong. You need to supply far more information - if you really want anyone else to be able help with your issue.
What version of Wine are you trying?
Are you trying to compile the xvid_encraw utility on Linux? Why are you not running a Windows binary - run via Wine?
Your workflow involves just encoding/spitting out an avi file to edit in VirtualDub - is that right?
I think it would helpful to see a dump of what commands you are using to Wine.

Thanks
Bob
t0p0linik
Newbie
Newbie
Posts: 2
Joined: Thu Mar 06, 2014 6:28 am

Re: Creating AVI from command line

Post by t0p0linik »

Hi Bob,
sorry if my post was too garbled, you know, I'm not a native english speaker, and this means I'll have to improve my written english :oops:
Anyway, my only goal was to have avi write support into a full native solution for encoding (that is, xvid_encraw). My first attempt was towards wine because it provides all the functions xvid_encraw needs but now I realize, if I can have win32 api support at the cost of the full emulation environment then, well, maybe I can turn myself over to a full emulated solution, as you suggest (running xvid_encraw.exe).
Taking into account that in order to get xvid_encraw.exe one must play with a cross compiler (or a real windows os), the thing I was after was a simple workaround. But getting this is way too complex for this case.
Thank you.
Locked