LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices


Reply
  Search this Thread
Old 04-15-2005, 05:20 PM   #631
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30

Quote:
on line 98 of 'Makefile' works perfectly. magicvid compiles and runs now! It looks like you have given some thought
I tried that just now, but i get this:

( cd /src/moc && make )
/bin/sh: line 0: cd: /src/moc: No such file or directory
make: *** [/bin/moc] Error 1

Where is /src/moc? I know that the $MOC is set as:

$(MOC):
( cd $(QTDIR)/src/moc && $(MAKE) )

But i don't see a directory named /src/moc anywhere that is under a qt3 directory...could /src/moc be part of a different package than qt3-dev-tools?

Quote:
How might we join our efforts? Can you think of ways we can use teamwork to make both our programs better?
I don't know how it might work either....i mean you have stayed away from c++/qt and just done python exclusively.
 
Old 04-16-2005, 12:01 AM   #632
Steel_J
Member
 
Registered: Oct 2004
Location: Montreal, Canada
Distribution: Linux Mint 21.3 Cinnamon
Posts: 359
Blog Entries: 1

Rep: Reputation: 31
HI WapCaplet.

Did you do get any chance to finissh up your modified version of dvrequant.

The arrays you had created still don't work when picking audio tracks.

You had asked me to halt devellopment. Should I resume and try to find a solution, or did you make any headway?
 
Old 04-24-2005, 07:22 AM   #633
erik
Member
 
Registered: Jul 2003
Location: USA,N.C.
Distribution: mandrake 10.1
Posts: 79

Rep: Reputation: 15
magicvid

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.

peace
Erik
 
Old 04-24-2005, 07:50 AM   #634
erik
Member
 
Registered: Jul 2003
Location: USA,N.C.
Distribution: mandrake 10.1
Posts: 79

Rep: Reputation: 15
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
 
Old 04-25-2005, 09:20 PM   #635
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
Quote:
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.


Last edited by sk545; 04-25-2005 at 09:21 PM.
 
Old 04-26-2005, 04:04 AM   #636
Dortamur
LQ Newbie
 
Registered: Apr 2005
Posts: 1

Rep: Reputation: 0
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.

Last edited by Dortamur; 04-26-2005 at 07:55 AM.
 
Old 04-26-2005, 06:18 PM   #637
sk545
Member
 
Registered: Aug 2002
Posts: 312

Rep: Reputation: 30
anyone know how to author a kvcd mpeg? I mean, i have the mpeg but its gonna need something like vcdimager so that i can get a iso to be burnt, right?
 
Old 04-30-2005, 03:48 AM   #638
Artik
Member
 
Registered: Apr 2005
Location: Israel
Distribution: Debian 3.1 Sarge, Ubuntu Breezy
Posts: 223

Rep: Reputation: 30
Hello,

I've found a problem with audio decoding using tovid script.
It is due to parameters incomparability between mplayer and tovid:

For extracting of wav adio tovid gives following parameters to mplayer
mplayer -quiet -vo null -ao pcm input.avi -vc dummy -aofile stream.wav

However current version (mplayer-586 1.0-pre7-0.0) requires following input format:

mplayer -quiet -vo null "input.avi" -vc dummy -ao pcm:file=stream.wav

After I've changing parameters in the script is started working:

I've installed mplayer from the repository: deb ftp://ftp.nerim.net/debian-marillat/ unstable main

Thanks.

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
Code:
928c928
<   AUDIO_CMD="mplayer -quiet -vo null -ao pcm \"$INFILE\""
---
>   AUDIO_CMD="mplayer -quiet -vo null \"$INFILE\""
946c946
<   AUDIO_CMD="$AUDIO_CMD -aofile stream.wav"
---
>   AUDIO_CMD="$AUDIO_CMD -ao pcm:file=stream.wav"

Last edited by Artik; 05-14-2005 at 02:54 AM.
 
Old 05-14-2005, 02:33 AM   #639
Artik
Member
 
Registered: Apr 2005
Location: Israel
Distribution: Debian 3.1 Sarge, Ubuntu Breezy
Posts: 223

Rep: Reputation: 30
Hello,

I use to encode avi to dvd very frequently,

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
 
Old 05-15-2005, 10:10 PM   #640
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
thanks for the "tovid" suggestion, it helped me
this is quite easy

i can also do the same with mplayer but tovid is really easy,no syntax problems


regards
 
Old 05-15-2005, 11:58 PM   #641
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Original Poster
Rep: Reputation: 48
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
 
Old 05-25-2005, 04:30 AM   #642
sjaglin
LQ Newbie
 
Registered: Feb 2005
Location: uk/france
Distribution: Mandriva LE2005/Knoppix
Posts: 3

Rep: Reputation: 0
Unhappy Tovidgui

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.

I can't wait to have my GUI, please help me!!!

Thanks for all your work !

Stef
 
Old 05-25-2005, 08:53 AM   #643
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Original Poster
Rep: Reputation: 48
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.
 
Old 05-31-2005, 02:35 PM   #644
bigtpumped
Member
 
Registered: May 2005
Distribution: gentoo
Posts: 39

Rep: Reputation: 15
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.
 
Old 05-31-2005, 05:37 PM   #645
wapcaplet
LQ Guru
 
Registered: Feb 2003
Location: Colorado Springs, CO
Distribution: Gentoo
Posts: 2,018

Original Poster
Rep: Reputation: 48
Open up the 'tovid' script in your favorite editor, and change lines 928 and 946:

Code:
928: AUDIO_CMD="mplayer -quiet -vo null -ao pcm \"$INFILE\""
...
946: AUDIO_CMD="$AUDIO_CMD -aofile stream.wav"
To this:

Code:
928: AUDIO_CMD="mplayer -quiet -vo null \"$INFILE\""
...
946: AUDIO_CMD="$AUDIO_CMD -ao pcm:file=stream.wav"
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert AVI to either DVD, VCD or SVCD format linux-rulz Linux - General 13 12-27-2011 01:29 PM
XVID, VCD, SVCD and so on. How to?? Thakowbbery SUSE / openSUSE 7 10-31-2005 03:39 PM
Encoding video for VCD and DVD wapcaplet LinuxQuestions.org Member Success Stories 3 08-01-2004 01:03 PM
SVCD, VCD, DVD editing asalford Linux - Software 19 07-16-2004 04:47 PM
converting *.avi file to *.vcd (or svcd) zstingx Linux - General 1 10-07-2003 06:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion

All times are GMT -5. The time now is 01:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration