LinuxAnswers DiscussionThis forum is to discuss articles posted to LinuxAnswers.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi there Wapcaplet and everyone.
I really appreciate the feed back on magicvid. I am figuring all this out as I go so just stick with me and I'll get it right sooner or later. I have only tested it on mandrake Os's so far, but I hope to start using the sourceforge compile farm to test it on other machines/OS. My goal for magicvid is to make a application that is powerful but still easy to use and build. My neighbor is computer retarded and been using linux for two weeks but with magicvid she is backing up her DVDs/Cd's and making DVDs of her home movies. This is exactly the type of person that I am writing magicvid for.
This week I have been rewriting the magicvid code to interact directly with mplayer and trying to modify tcrequant to include in magicvid as well(wapcaplet are you working on frequent or tcrequant to include in tovid?). This would eliminate the need for the tovid suite and its depends transcode being the main one.
Don't get me wrong TOVID IS THE BOMB. I was not getting very far with video in linux till I started using tovid I am just trying to get rid of as many depends as possible. Hopfully magicvid will only depend on ,cdrtools,vcdimager,mplayer,mkisofs,and mpgtx to join files(I hope to work this one into magicvid as well).
Now about me and my LIMITED program experience.
What I do for money______artist/glassblower
I have owned a computer about 3 years.
I have had no formal education in computers/programing.
Over the last few years I have learned to use/admin. most windows Os's, mac Os's, and mdk linux 9.1 - 10.1(currently installed)
About two months ago I decided I wanted a GUI for a few tovid functions I use a lot.
So I learned some shell script stuff and wrote a few simple scripts this went OK so I got a program called getgui and wrote a simple version of magicvid for it.
I wanted more a more interactive interface so I got kaptain and rewrote magicvid for it. This worked really well so well I wanted to share it with my friends but I didn't want to have to have another program to run mine.
So about the first of April I decided to learn a real programming language.
I really liked the way Qt apps look and C++ didn't look to hard so I fired up QT Designer did a few of the included tutorials, looked at the code from a few other programs,and went to work.(I didn't plan on magicvid being for anyone but me and my friends but everyone said I should "put it out there for the world" so it became a sourceforge project) After a couple of days I had the first release ready to go.(I also had to learn to make RP MS, how to used the sourceforge package system,etc....).
The magicvid project has turned into way more than I had intended (1063 lines of code so far) but I plan to stick with it as long as there is some interest in it. I hope to make a configure file in the near future but I need to get the code I have tweaked out and tested first.
Tools I have used in the creation of magicvid are: Qt3Designer, kdevelop, Kompare, Kate & Kedit, Emacs, Gdb, rpm, tovid/idvid
Wapcaplet it's awesome to get suggestions from a real programmer. The issue of the button text over running the edges should be fixed in the next release. The colored buttons where for me since I get tired of looking at the same old black text all the time(i am a artist right;~) I just never changed them back to black but i guess i will. You are very right about linux users liking to tweak out the look themselves but do you think the graphic background is a bad idea? I got the idea from K3b and kind of like it myself. I am going to look into the mandrake specific makefile issue today and see if I can work that one out.
Wapcaplet
I might be interested in writing a gui for the tovid suite that uses all it's features idvid,postproc, etc........Something similiar to to magicvid or kavi2svcd maybe. Be sure to read my post above about my experiance. I am new to programming but a fast learner. So let me know what you think here or email me at magicvidman@yahoo.com
thanks
Erik
but I plan to stick with it as long as there is some interest in it. I hope to make a configure file in the near future but I need to get the code I have tweaked out and tested first.
I would love to test it for you, but i can't get it to compile....and i think a configure script should be a priority for you since most "hardcore-programmer-type" linux users don't use Mandrake. I have nothing against mandrake, just stating what its like. So, if they can't get it to work on their system, they can't test it.
But thats quite a feat for you to make something this good out of little programming experience,hope to see more soon.
I've been looking for something like tovid (tools for readying files for DVD creation) on and off, so was pleasantly suprised when I stumbled upon it. However, in my experiments, I've hit a few hurdles.
On my first main attempt, I found the audio extraction died. And I found this out after 1.5 hours of video conversion.
Seems my mplayer/mencoder doesn't support the -aofile option. A quick tweak of the tovid source and I had things working again. (It required -ao pcm:file=xxx)
While I've yet to get a chance to try again, I also did a quick test of the -half-dvd option combined with -wide and instead of getting a proper widescreen/anamorphic output, I got a file which was seemingly letterboxed AND anamorphic! Scale was "352x576 => 768x576" and definitely letterboxed.
And lastly, if you cancel a job, and restart with -overwrite, it gives an error about the existing .mpa file.
I'll do some more tinkering later and see what else I can discover.
One more question:
Is there possibility not to change relative ratio of the inpuit frame (prevent from faces being scratched)?
Adding blank part and preserving the ratio,or maybe cropping the image.
EDIT: I've forget to add: GREAT JOB!!! Way to go!!!
EDIT 2 :
These are the code changes I've did to make it work with this version of mplayer
I've added small featcher that was very annoying for me:
When I encode using tovid suite it changes overall picture proportions and the faces become scratched.
I've added functionality that prevents from proportions to change. I've tested this code only on couple of movies (its only few lines I've added)
If someone interested (developers) I can send you updated version.
NO WARRINTY THAT IT WILL WORK!!!
actually the changes are following:
Code:
< #echo "Scaling $CUR_WIDTH x $CUR_HEIGHT directly to $TGT_WIDTH x $TGT_HEIGHT"
< #VID_SCALE="-vf-add scale=$TGT_WIDTH:$TGT_HEIGHT"
< # MY ADDON !!!!!
< # The video does not change acpect ratio
< let "LBOX_HEIGHT=$TGT_WIDTH * $CUR_HEIGHT / $CUR_WIDTH"
< VID_SCALE="-vf-add scale=$TGT_WIDTH:$LBOX_HEIGHT,expand=$TGT_WIDTH:$TGT_HEIGHT"
---
> echo "Scaling $CUR_WIDTH x $CUR_HEIGHT directly to $TGT_WIDTH x $TGT_HEIGHT"
> VID_SCALE="-vf-add scale=$TGT_WIDTH:$TGT_HEIGHT"
So if someone is iterested - I've found it very usefull.
artik - thanks for the patch! I'm sure this will come in useful for some users. I will turn it into a command-line option that can be used instead of -full, -wide, or -pana (gotta think of a good name for it... maybe -keepaspect?) It'd be even better if tovid could automatically detect the correct aspect ratio, but that's not always easy; going by pixels alone is almost always wrong (consider DVD, which is always 720x480 (720x576 PAL), but may be either 4:3 or 16:9 aspect). mplayer seems to detect and use the correct aspect, so maybe I should go back and see if it's reliable enough to use it for auto-detecting the aspect.
masand - thanks for the compliments!
P.S. - the official tovid forum is now http://tovid.dk3.com/ if you want to post again in the future. I don't check this forum as often anymore
Hi there,
New to Linux (2 months!!) so usual apologies from newbies. I have looked through the questions and can't find a thread about my problem so here it is:
I run tovid as a command line and it is a marvel. I love it! I just wish someone would design a nice Icon cause I use another icon and it doesn t feel the same...
My problem:
When I try to run tovidgui I get :
Traceback (most recent call last):
File "./tovidgui.py", line 3513, in ?
frame = MainFrame(None, wxID_ANY, "tovidGUI")
File "./tovidgui.py", line 3384, in __init__
self.panDiscLayout = DiscLayoutPanel( self, wxID_ANY )
File "./tovidgui.py", line 2514, in __init__
self.idxIconMenu = self.listIcons.Add( GetMenuIcon() )
File "./tovidgui.py", line 122, in GetMenuIcon
iconMenu = zlib.decompress(
zlib.error: Error -3 while decompressing data: invalid window size
and it crashes without starting. I run Mandriva LE2005, python-2.4-5mdk,wxPythonGTK-2.5.3.1-3mdk. I don t know what to try next.
Someone else reported this error a few months ago, but I never did figure out what the problem was. The python documentation on zlib mentions that it's best to use zlib version 1.1.4 or later, although the advisory notice from zlib doesn't mention anything about window size.
I guess all I can suggest is try upgrading zlib; I'll keep searching.
hey guys:
I tried using tovid to convert a .avi file of mine to both vcd and dvd, having no luck both times. It started out looking perfect, but when it got to 98% i got the following error:
*** Encoding video: 98% complete. Estimated remaining time: 00:00:01
Encode stopped, killing all sub processes
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
tovid encountered an error during encoding:
The audio stream did not encode properly, and no output file exists.
Please view the contents of tovid.log to see what went wrong.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
the contents of tovid.log said:
MPlayer 1.0pre7-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Intel (Family: 8, Stepping: 7)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
-aofile is deprecated. Use -ao pcm:file=<filename> instead.
cat: stream.wav: No such file or directory
**ERROR: [mp2enc] EOF in WAV header
**ERROR: [mp2enc] failure reading WAV file
++ WARN: [yuvfps] Converting from 23975999:1000000 to 30000:1001
(END)
I am using tovid 0.18, and I'm not sure what's going on. Thanks.
you may have had someone else ask something similar, and I'm sorry to ask again if you have. Thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.