![]() |
![]() |
![]() |
![]() |
|
|
#1 |
|
Junior Member
Join Date: Jun 2008
Posts: 9
|
I've made some improvements to the program, cleaning up the source a bit and, more importantly, adding source file parsing. Now the script will automatically set the proper aspect ratio and mix-down a 6-channel surround sound file to stereo. Call it version 0.2. Or call it Diane if you prefer.
As before, you only need to type: Code:
movieToD2 <filename> Now out of date. The latest version (1.52) has several improvements. See the link in my last post. Last edited by scipero; 09-06-2008 at 20:05.. Reason: New version |
|
|
|
|
#2 |
|
B4NZ0R'd!
Join Date: Feb 2008
Location: United States
Posts: 137
|
cool thanks
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Jun 2008
Posts: 9
|
Help function fixed.
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Jun 2008
Posts: 9
|
I've been working on syncing issues and believe I've improved them a great deal. The key is the mencoder harddup filter. It produces slightly larger files, but the A/V sync is much better in the D2.
I've also added automatic detection and conversion of the source file's frame rate and two-pass encoding through the "-2" flag. As before, you can get the options by typing: Code:
movieToD2 -h Code:
movieToD2 <filename> |
|
|
|
|
#5 |
|
Junior Member
Join Date: Jul 2007
Posts: 2
|
Hi,
I'm Trying out your utility and finally got it to start converting. A couple of problems (mostly cosmetic) I hit at the beginning. First the help says you should enter the aspect as 4:3, 16:9 etc, but the colon generates and error. They have to be entered as decimals (4.3 16.9) I think. Second on my system, mencoder is not located in /usr/local/bin so putting a hard path in also generates an error. If it does exist there just invoking mencoder should be enough. Trying it now. I've had nothing but sync problems with a lot of longer shows so I'm hoping this will do the trick. Will let you know if I find anything else. Thanks for your hardwork. Randy |
|
|
|
|
#6 |
|
Junior Member
Join Date: Jun 2008
Posts: 9
|
Thanks for the feedback. The aspect problem you found was a silly regression error on my part. As it's now written the program should be given a numeric format for aspect like this:
Code:
movieToD2 -a 1.7777 <movieFile> The hard-coded paths to mencoder and mplayer are there because I have 2 versions of each program on my system. I could see how it might be better to take them out, but I'll hold off on that until I (hopefully) get more feedback. You clearly know how to change them already, but I should state here for the less experienced that the script expects to find mencoder and mplayer in the directory /usr/local/bin. If (like rwreed) they're elsewhere, say in /usr/bin, the paths can be changed easily in the script. Just open the movieToD2 program in a text editor and change these global paths at the top to match the location in your system: Code:
MENCODER = "/usr/local/bin/mencoder" MPLAYER = "/usr/local/bin/mplayer" |
|
|
|
|
#7 |
|
Junior Member
Join Date: Jun 2008
Posts: 9
|
I just discovered a standard method to avoid the hardwired paths (i.e. /usr/bin/env, for those who care). It's now fixed.
The new version number isn't really significant; I've just started using a version control system. Besides, I think the script is now working well enough to merit a 1.X number. |
|
|
|
|
#8 |
|
Junior Member
Join Date: Jun 2008
Posts: 9
|
I've finally given up on mplayer sync. It usually works, but not always. The script has been heavily edited now to transcode the video and audio separately, then mux them with ffmpeg. As an additional benefit the program now handles flash video better, though there are still some sync issues with .flv format.
The only significant change in usage is that you will now have to have ffmpeg and lame as well as mplayer. Most people who have mplayer will already have them installed; if not, all distributions have packages for them. The file is attached, as always. |
|
|
|
|
#9 |
|
Junior Member
Join Date: Jun 2008
Posts: 9
|
The main change this time is to adopt a good idea that linuxnutzer put into his recent bash script. If the program detects mp3 audio in the source file it simply copies it into the destination file without transcoding it. Saves time and produces a higher quality D2 file.
As before you need only type: Code:
movieToD2 <sourcefile> Code:
movieToD2 -h |
|
|
| Thanks from: |
|
|
#10 | |
|
Junior Member
Join Date: Dec 2007
Posts: 23
|
Quote:
Have fun linuxnutzer |
|
|
|
|
|
#11 |
|
Junior Member
Join Date: Jun 2008
Posts: 9
|
Thanks for the note; I've altered the autoscan parameter in the program and attached it again. Usage is identical to 1.51.
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|