blu2mkv title01.mkv
Switch will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /usr/local/bin/toolbox_fangorn, line 43.
Source file is of Type Matroska
Width = 1920
Height = 1080
Aspect = 1.77777777777778
Aspect should be 1.77777777777778
Source Framerate: 23.976
Input Framerate used: 23.976
Output Framerate used: 23.976
No audio stream specified. Trying to use specified languages if available in source file.
If not, default stream will be used.
extracting audio stream for later usage
MPlayer 32128-4.4.3 (C) 2000-2010 MPlayer Team

Too many audio packets in the buffer: (4096 in 21222288 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many audio packets in buffer? What is the cause for this and how to get rid of it, please?

I'm also having issues with these scripts. I have a bunch of small clips with different bitrates, some SD and some HD. I was and still am hoping that menc is the best way for me to batch encode these, but I'm getting too many errors.

Code:

menc ./foo.mp4
Switch will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /usr/local/bin/toolbox_fangorn, line 43.
File Type: MP4/3GP/3G2 ISO Media
FPS: 59.750
width: 384
height: 288
aspect: 1.33333333333333
calling external program choose_video_parameters
-> Using "Normal Quality" preset
nice: unknown_path: No such file or directory
Switch will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /usr/local/bin/toolbox_fangorn, line 43.
movie title is foo
mplayer not available in path unknown_path. Please correct this.

Hi!
How to work with scripts? , i have DVD copied to harddrive, for example, ~/video/eraserhead with audio_ts and video_ts subdirectories. I want to create a single eraserhead.mkv with highest quality possible. I can't find any documentation and examples for those scripts. Thx in advance

Too many audio packets in the buffer: (4096 in 21222288 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

Too many audio packets in buffer? What is the cause for this and how to get rid of it, please?

I read this is a feature of perl 5.10 but I have perl 5.8.8 installed. Is this right? We should install an unstable version of perl for these to work?

Regards,

Costa

[/quote]

Sorry, but yes. I originally intended to make this compatible to perl 5.8, but in the end it did not work.

Perl 5.10 is marked unstable because perl is a major core package. Many many scripts depend on it. I decided to use 5.10, but you always can install a 5.10 version in /usr/local in parallel and use this if you don't want to make it system wide._________________Video Encoding scripts collection | Project page

I'm also having issues with these scripts. I have a bunch of small clips with different bitrates, some SD and some HD. I was and still am hoping that menc is the best way for me to batch encode these, but I'm getting too many errors.

Code:

menc ./foo.mp4
Switch will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /usr/local/bin/toolbox_fangorn, line 43.
File Type: MP4/3GP/3G2 ISO Media
FPS: 59.750
width: 384
height: 288
aspect: 1.33333333333333
calling external program choose_video_parameters
-> Using "Normal Quality" preset
nice: unknown_path: No such file or directory
Switch will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at /usr/local/bin/toolbox_fangorn, line 43.
movie title is foo
mplayer not available in path unknown_path. Please correct this.

The script does not locate my mplayer, although like 370 is "$progs->{mplayer} = "/usr/bin/mplayer";" which is the correct path.

Are these scripts still maintained?

I did not run into a problem like this ever. Something seems to be wrong with your environment. Please check your perl installation (perl 5.10 or higher) and the ~/.fangorn/config file. Maybe move ~/.fangorn/config somewhere else and let it generate a new one._________________Video Encoding scripts collection | Project page

Hi!
How to work with scripts? , i have DVD copied to harddrive, for example, ~/video/eraserhead with audio_ts and video_ts subdirectories. I want to create a single eraserhead.mkv with highest quality possible. I can't find any documentation and examples for those scripts. Thx in advance

See the project page for a brief introduction. Use

Code:

riptoh264 <directoryname>

for standard encoding options for the main movie (way good enough for normal dvds if you ask me).

use -b <bitrate> to set a higher bitrate and -p uhq to change default x264 preset.

I have been trying to get the fangorn toolbox running on a Debian-based distrib. Linux Mint 10 x64 (which is based on Ubuntu 10.04 LTS more precisely).
I grabbed all the scripts from http://fangornsrealm.eu, made them executable and copied them to /usr/lib/

Just for experimenting I was trying to convert a 720p MP4 file (game test review) into an MKV container with MP3 audio. Unfortunately avi2mkv bombs out with this error messages:

Code:

avi2mkv deusexhrtest-hd.mp4 -a3
Use of uninitialized value in scalar chomp at /usr/bin/avi2mkv line 526.
Movie deusexhrtest-hd.mp4 with title deusexhrtest-hd has a geometry of 1280 x 720 and a framerate of 30.000
Video stream is 0, audio stream(s) are 1
muxing to Matroska container
file type is AVI
language not found. trying to match languages with list of known translations
file type is AVI
Use of uninitialized value in split at /usr/bin/avi2mkv line 1043.
Use of uninitialized value in substitution (s///) at /usr/bin/avi2mkv line 1045.
Use of uninitialized value in string eq at /usr/bin/avi2mkv line 1308.
Use of uninitialized value in string eq at /usr/bin/avi2mkv line 1315.
Use of uninitialized value in string eq at /usr/bin/avi2mkv line 1335.
Argument "-aid 1" isn't numeric in subtraction (-) at /usr/bin/avi2mkv line 1342.
MEncoder SVN-r1.0~rc3+svn20090426-4.4.3 (C) 2000-2009 MPlayer Team
-1 is not an MEncoder option

Exiting... (error parsing command line)
joining internal and external audio streams
Use of uninitialized value in sprintf at /usr/bin/avi2mkv line 1661.
Use of uninitialized value in sprintf at /usr/bin/avi2mkv line 1782.
sh: unknown_path: not found
cleaning up temporary files

The error in the mencoder commandline comes from a -1 as parameter.
I am really no perl expert but the error messages seem to be related to some audio related stuff,

I am sorry, but MP4 is not well tested as input for avi2mkv. Especially when not all optional parameters
are set (language codes for audio, video parameters, ...) or some non standard conformant formats
are used.

The script is mainly designed as a helper script for the encoding scripts to convert the mencoder output -
which is best done as AVI - to other containers. It also works well with AVI containers from other sources,
containing MPEG4 video and of some kind.

It should work without problems when you repackage the video with menc first.

If you don't want to degrade the video quality or invest the trancoding time, you can disable the
reencoding process with the menc option

Code:

--override_video_encoder "-ovc copy"

.

I hope you get a better user experience that way.

Have fun,
fangorn

Edit: I just recognize:

According to the help function options (-a3 for example) have to be placed between the program name and
the input filename. I don't have an idea what happens if the option is put after the filename. I have some
options that expect and use parameters that come after the inputfile. This is not good style, I know that,
but it was not doable in another way when the scripts were still shell scripts.

thanks for your quick replies both to my e-mail and here in the forum.

Quote:

I am sorry, but MP4 is not well tested as input for avi2mkv. Especially when not all optional parameters
are set (language codes for audio, video parameters, ...) or some non standard conformant formats
are used.

No big issue here. I could hack together a quick script for mencoder / ffmpeg myself for converting mp4 source to mkv.
It was just a quick experiment and I had the MP4 laying around in my download folder but no AVI available.

Quote:

The script is mainly designed as a helper script for the encoding scripts to convert the mencoder output -
which is best done as AVI - to other containers. It also works well with AVI containers from other sources,
containing MPEG4 video and of some kind.

As the name avi2mkv implies avi should give the best user experience *ggg*

Quote:

I hope you get a better user experience that way.

If your toolset helps me to shrink the roughly 30 DVDs which sit on my external HDD to MKV files with h264 / AC3 in then, I am more than happy

For users of other Linux distributions there is a script that installs the programs available at
http://progs.fangornsrealm.eu/install_linux.sh for the current user. It also checks for
the availability of external dependencies and tells the user if a program is missing.

In the process of testing the scripts on Windows a number of bugs was corrected that also
affect the linux usage.

I hope the new installation helpers make it more easy for normal users to take advantage of
these scripts.

Also welcome to the completely new users group working on Windows. The installtion process
is a little complicated due to the missing central package manager and the sub-optimal support
for command lines. You have to do many things by hand on Windows. I hope the installation
instructions are clear enough. If you have comments to the documentation or any bug reports,
et me know on progs@fangornsrealm.eu.

Hi,
First off, I just found your scripts yesterday and I think they are brilliant! Thanks for all the hard work.

If there is one thing I think your avi2mkv script could use, it would be a way to regex parse the filename to extract metadata. I realize that you can set the "title" via command line option, but if you could use a regex instead, it could batch apply titles with the correct episode number etc..

I have a large collection of files that formats the filenames with a lot of [Bracketed] information that is great to keep in the filename, but is distracting and not needed in the title displayed from a player. I realize that there are a good many considerations to implement this, but it really would be a very useful and outstanding feature.

As far as usage, I can foresee a few things.

1. a seperate command like..
--title_regex|-tr <perl-regex> a perl compatible regular expression that will parse the filename for a match and set the title from match
user will be prompted with results before processing files or use the "--title_regex_fail|-trf" switch to fallback to filename as title if no match
(Command fails if no match, prompting user to correct the regex:
Possibly return a prompt with the matches it finds for the user to accept before processing?)
ie..

Preferably bringing up just the faulty regex for editing if user presses n

2. maybe a separate command or a way to format the above command to accept a file or setting from the .fanghorn.config for regex presets.
You could even include a couple useful regex that would remove any brackets and their contents, underscores to spaces, etc...

Anyway, I already have a Bash script that does this for me using mkvpropedit, so it's no big deal to call it after I run your script. I just think it would be a nice addition to your very thorough script.