Here is some MacOSX guidance documentation on different things with MediaFork or HandBrake open source projects. This documentation is intended as summonized guidance and more detailed information can be obtained from http://handbrake.m0k.org, and http://handbrake.m0k.org/forum, web searches.
The topics discussed are:
Creating the HandBrake 0.7.1 application and binaries from sources is very straightforward. The authors who released this open source version have made this build very easy with the use of 'jam' tool. The jam build downloads and creates the needed eleven open source libraries. The libraries are created and only installed in the local 'contrib' directory of the project.
- Verify the Apple development tools are installed ( http://developer.apple.com/tools/xcode/ )
- Get the HandBrake sources ( http://download.m0k.org/handbrake/HandBrake-0.7.1.tar.gz )
getting file using Terminal:
% curl http://download.m0k.org/handbrake/HandBrake-0.7.1.tar.gz -o HandBrake-0.7.1.tar.gz
% tar -xzf HandBrake-0.7.1.tar.gz- Open the Terminal application
- Change directories into the uncompressed HandBrake sources
% cd HandBrake-0.7.1- Get and create jam tool if needed ( ftp://ftp.perforce.com/pub/jam/jam-2.5.tar )
% curl ftp://ftp.perforce.com/pub/jam/jam-2.5.tar -o jam-2.5.tar
% tar -xf jam-2.5.tar
% cd jam-2.5
% make
copy 'jam' tool from bin.macosxXXX directory to root directory of HandBrake
% cd ../- % ./configure
- % ./jam
- DONE - 'HandBrake.app' and 'HBTest' should now exist in the HandBrake directory
Creating the MediaFork 0.8.0b1 application and binaries from sources is very straightforward. The authors who released this open source version have made this build very easy with the use of the included 'jam' tool. The jam build downloads and creates the needed eleven open source libraries. The libraries are created and only installed in the local 'contrib' directory of the project.
- Verify the Apple development tools are installed ( http://developer.apple.com/tools/xcode/ )
- Get the MediaFork sources ( http://download.m0k.org/handbrake/testing/MediaFork-0.8.0b1.tar.gz )
getting file using Terminal:
% curl http://download.m0k.org/handbrake/testing/MediaFork-0.8.0b1.tar.gz -o MediaFork-0.8.0b1.tar.gz
% tar -xzf MediaFork-0.8.0b1.tar.gz- Open the Terminal application
- Change directories into the uncompressed MediaFork sources
% cd MediaFork-0.8.0b1- % ./configure
- % ./jam
- DONE - 'MediaFork.app' and 'MediaForkCLI' should now exist in the MediaFork directory
Both HandBrake 0.7.1 and MediaFork 0.8.0b1 use older library version sources than what is currently available. For curiousity and to get a better understand of the overall project, an attempt was made to build MediaFork 0.8.0b1 with the current eleven dependent open source libraries. After successfully getting the build to work with individual built libraries, a modified project file set was created to support an automated full jam build with these new libraries. The directions below will create 'MediaFork.app' and 'MediaForkCLI' with the latest released libraries. The list below shows the library changes.This new library build of MediaFork 0.8.0b1 application and binaries is straightforward when the MediaFork 0.8.0b1 source directory is patched with the patch file available below. This build continues to use the included 'jam' tool. The jam build downloads and creates the needed eleven open source libraries. The libraries are created and only installed in the local 'contrib' directory of the project.
- liba52 - no change still version 0.74
- libavcodec - many big code diffs --> new v51.39.0
- libdvdcss - no change still version 1.29
- libdvdread - old v0.9.4 --> new v0.9.7
- libfaac - old v1.29? --> new v1.31?
- libmp3lame - old v3.96.1 --> new v3.97
- libmp4v2 - old v1.3 --> new v1.5.0.1
- libmpeg2 - currently used is newer then released v0.4.1
- libogg - old v1.1.2 --> new v1.1.3
- libsamplerate - no change still version 0.1.2
- libvorbis - old v1.1.1 --> new v1.1.2
- libx264 - current appears to be up to date v0.54?
- libxvidcore - old v1.1.0 --> new v1.1.2
- the version information above is sometime a best effort on some of the libraries
- Verify the Apple development tools are installed ( http://developer.apple.com/tools/xcode/ )
- Get the MediaFork sources ( http://download.m0k.org/handbrake/testing/MediaFork-0.8.0b1.tar.gz )
getting file using Terminal:
% curl http://download.m0k.org/handbrake/testing/MediaFork-0.8.0b1.tar.gz -o MediaFork-0.8.0b1.tar.gz
% tar -xzf MediaFork-0.8.0b1.tar.gz- Open the Terminal application
- Get my project patch file ( http://www.realisticsoftware.com/public/mf080b1.patch.zip )
% curl http://www.realisticsoftware.com/public/mf080b1.patch.zip -o mf080b1.patch.zip
% unzip mf080b1.patch- Change directories into the uncompressed MediaFork sources
% cd MediaFork-0.8.0b1- Patch the build source files with project patch file
% patch -p1 < ../mf080b1.patch- % ./configure
- % ./jam
- DONE - 'MediaFork.app' and 'MediaForkCLI' should now exist in the MediaFork directory
MediaForkCLI-batch.sh is a script to batch execute the MediaForkCLI tool. After some kicking around some thoughts about HandBrake over lunch one day, it came to us that a fuller featured command line tool was needed from time to time. This shell script was created to meet a need to convert/encode an entire directory full of TS_Video source media to some desired mp4 output. The scripts most basic configuration is to set the input directory of TS_Video source media, output directory for the resulting mp4s files, and the how long of a track time should be converted. The script can also be executed without arguments and uses the default settings. The default mode would convert any DVDs mounted on the system and outputs the mp4s files to the users movies folder in a folder named 'mp4'. The script wraps the functionality of the MediaForkCLI tool so all the command line arguments available to MediaForkCLI are also available in this script (except for conflicting args like -o -i).
Are you asking yourself why a script? Well a script can quickly test the waters to see if the new functionality is really desired before making the code work investment. Also the script allows anyone to tweak it to meet their own needs.
--- version 1.0 --> DOWNLOAD ( MediaForkCLI-batch.sh v1.0 )
# Examples
# $ ./MediaForkCLI-batch.sh
# [ encodes all DVDs mounted and encodes any tracks longer then 60min ]
# [ to the mp4 folder in the users Movies folder ]
# $ MediaForkCLI-batch.sh -i ~/Movies -o toPod -b 1000 -w 576 --minGetTime 50
# [ encodes all DVDs found in the users Movies folder and encodes any ]
# [ tracks longer then 50min, with a 1000kb/s bitrate and scales the output ]
# [ movie to a width of 576 pixels and puts the resulting mp4 files in the ]
# [ toPod folder in the current directory that the command was executed from ]
While investigating media conversion solutions, these other related projects and information were located.
Fill in the form below and clicking the send button to contact the author