![]() |
tovid discussion forum
This thread began life as a forum for discussing the article: Converting video to VCD, SVCD, or DVD. It was, for a good length of time, the official discussion and support forum for the tovid suite, which grew from the above script.
Now, this thread is mostly historical, because tovid has its own forum site. Please direct inquiries there! |
Hi wapcaplet,
Thanks for the great article. I'd like to ask one small question. I've used the SVCD version of the script (divx2svcd) to convert one DivX 5.1 file to the corresponding SVCD image, but got very irritating results. First of all, the AVI length is something about 87000 frames (52 min.) and is 704 MB big. I got a dozen of files with sizes from 200 bytes to 900 MB big. This is what I found in the folder containing the AVI file and the subtitle one. The original files the AVI file itself: MyDivXFilm.avi the SUB file: MyDivXFilm.srt The transcoded files some file named MyDivXFilm.m2v and 720MB big some file named MyDivXFilm.mpa and 67 MB big some file named Pelicula.mpg and 900MB big some file named Pelicula00.mpg and 712MB big some file named Pelicula00.mpg.bin and 711MB big some file named Pelicula00.mpg.cue and 178 Bytes big some file named Pelicula01.mpg and 89MB big some file named Pelicula01.mpg.bin and 87MB big some file named Pelicula01.mpg.cue and 178 Bytes big So, what is supposed to be done with these bunch of big&mighty files? And how comes it that I got the Film split in two parts? One furter question: May I use a DVD media to write a (S)VCD where all parts of the film are in one place? Many thanks in advance. Kind regards, sbogus |
It looks like you are using divx2svcd. I cannot answer for that script, since I did not write it :) In fact, I've never been able to get anything useful out of it myself; I just borrowed some segments of it for mine.
Though, I did realize after posting my script that there is one small mistake: there are two lines towards the end, under "Cleaning up..." that read: Code:
# rm "$OUTPREFIX.$SUF"I've made a lot of changes to my script since I posted this... I'll have to see about revising the posted version. |
Here is a revised version of my script. Additions and alterations include:
Todo:
Here it is. Enjoy! Code:
#!/bin/bash |
Rather than continue to clutter the forum with updates to this script, I thought I'd just direct your attention to the tovid homepage and tovid project summary page on Sourceforge. Patches and updates are welcome!
|
Quote:
But the homesite and the download section does not work - I can't download the 0.1 version of the script&GUI. Am I doing smoething wrong or because the project is very new to SF, there's not yet mirrored files to download? Kind regards, sbogus |
Quote:
|
Okay, thanks wapcaplet,
now it worked with the download. What version of mplayer do you use with the script? Because mine is 1.0.pre4[whatever] and keeps instantly crashing when the script tries to extract the audio from the AVI file. The file itself plays perfect in the player but extracting the audio does not work. I've also played with the options, but could not manage to tell mplayer to extract the audio only using other options than the ones you've used in the script. But then again, it crashes with these options... Thanks in advance. Kind regards, sbogus |
My mplayer version is 1.0pre4-3.3.2. What error message do you get when it crashes? If it's just a segfault, I wouldn't know where to begin fixing it :) Does it crash with all video files, or just a specific format? AVI video can have a variety of different audio codecs along with it. If it's just a specific format, or a specific video file, you can find out the audio format by running:
Code:
mplayer -identify YourVideoFile |
Thanks wapcaplet,
it segfaults (crashed with signal 11). It crashes on each AVI file that has MP3 audio therein (XViD, DivX 5.x)) and unfortunately all my films&videos are either in XViD or in DivX 5.x format. The MP3 audio stream is always in 44100 Hz frequency, the codec that is used to play the stream is "lame", but sometimes it uses also "MAD" for the playing. I don't know why... Thanks for helping me continuously. Kind regards, sbogus |
OK, until I figure out a different way to extract .wav from mplayer, try changing the line in the script:
Code:
mplayer -vc dummy -vo null -ao pcm -aofile stream.wav "$INFILE"Code:
mplayer -vo null -ao pcm -aofile stream.wav "$INFILE"Since I am unable to get any of my AVIs to cause crashing, I'd like to use you as a guinea-pig for another little experiment, if you don't mind. Try this command: Code:
mplayer -dumpaudio -dumpfile stream YourAVIFileCode:
file streamCode:
sox -t mp3 stream stream.wavAnother thing to try, if you haven't already, is upgrading mplayer and/or lame. Could just be a bug with one of those. Thanks for all your feedback so far! You're my first beta-tester :) |
Hi wapcaplet,
sorry for the big delay - I've had many things to do so I didn't manage to take care about the AVI conversion until now. Brief review of what I've done and what I got: Code:
mplayer -vo null -ao pcm -aofile stream.wav "$INFILE"Code:
mplayer -dumpaudio -dumpfile stream YourAVIFileNow the script does not break, nor it segfaults anymore and it produces realy good high quality MPEG-video. I still have some problems with the conversion types and the most important thing is what to do with the resulting MPEG file?!? What I mean is following: My AVI file has the panavision aspect (2.35 : 1) and your script does the conversion wery well if I specify mode dvd with panavision screen format only. Other combinations result in 4:3 sqeezed picture, wish looks very bad. Can you tell me how can I *melt* together several AVIs to burn them on one DVD-R disk? From the several AVIs I get exact the same number MPGs, but my K3b application does not create automaticaly the needed DVD structure from them, so what is supposed to be done for these MPGs prior to put them in a K3b burn project? Many thanks in advance. Kind regards, sbogus. |
Unfortunately, k3b does not seem to support DVD video authoring at this time; that is, it can't create the file structure needed for the DVD to play in a regular DVD player. For that you'll need dvdauthor, which I'm afraid is not the easiest thing in the world to use. I've found a few good tutorials that should get you through some of it:
http://www.tappin.me.uk/Linux/dvd.html http://gecius.de/linux/dvd.html http://www.linuxjournal.com/article.php?sid=6953 If you end up with several mpeg video files that are supposed to be part of a single video (like a movie in three pieces), you can re-assemble them when you author the DVD, and insert chapter breaks in between them. dvdauthor is quite powerful, but it involves a lot of editing of XML files to lay out the DVD how you want it. I don't know of anything else that works in Linux at this time; I haven't even been able to find decent (free) Windows software to do this! Someday I may write a small utility for that, too, but at this time I'm afraid you're on your own. Thanks for your feedback and testing! I'm glad you got the script to work to your liking. If you don't mind, email me a copy of the changes you made (use the 'email' link at the bottom of my post) so I can improve the script. |
Hi wapcaplet,
I'm sorry - I do not see any e-mail address in your post. Since the change in the script is in one single place only, I guess it's enough if I post here the modified line in your script. Code:
mplayer -vo null -ao pcm -aofile stream.wav "$INFILE"When I do have enough time to play with the script I'll do some additional testing using different input parameters and I let you know what the results are. Many thanks for your help. Kind regards, sbogus |
Nice script u made there, simple but effective :D
I tested it and it took bout 5 hours for a 700mb xvid file @23fps to DVD. Which is bout the same time it took me on windows with a professional program ;) And it was actually in sync and quality wasn't too bad either :) Here's something that would be a nice addition though: *You mentioned that it will only encode to NTSC, a PAL option would be nice though; especially with my TV only supporting PAL ;p Here some useless suggestions :p : *dvdauthor support, so that it authors the mpeg2 file after it's finished for you :) Not necessary but a nice lil addon :) *and while ur at it, add mkisofs so that it creates an .iso file ready to be burned :p *Maybe an integrated bitrate caclulator, would be a bit fiddly to make I guess.. |
| All times are GMT -5. The time now is 06:43 PM. |