Tutorial

Ever since Dolphin 7 came out the quality of video uploads have been less than decent when compared to the previous version 6.1x video upload quality.

You can check your Dolphin 7 settings in your Administration area. Find Modules, flash apps, and then check the Video Player Settings.

A screen will open up where you can change a few things, but by default the highest settings seem to be selected already. The recording quality can be a value of 0-100, and recording FPS (Frames Per Second) can be 10-25.

Dolphin 7 Video Player Settings




There is also the option near the top to use H264 codec. This codec is supposed to do a good job at reducing file size with very good output quality and very little loss from the original. The only problem is for many it will not work at all. If it does you should see files like 1.flv, 1.jpg, 1.m4v, and 1_small.jpg as output files in /flash/modules/video/files/ folder or directory.

For many the H264 codec just don't work. So if you enable this and you don't see any video being processed you should probably disable it (uncheck/untick) it.

Dolphin 7 H264 Video Codec




To increase the quality of your video uploads in Dolphin 7 you can try the following. I have tested this and it does help quite a bit, but the quality still isn't impressive. Be sure you do not have the H264 option enabled in your Dolphin Administration as mentioned above.

Your test video you are uploading should be of decent pixel height and width to begin with, as well as the actual quality of the video. If you are testing with a lower pixel video that is fuzzy or blurs, then this isn't going to do you much good for testing purposes.

There is one file you can edit or modify slightly depending on whether you have Dolphin 7.0.0 or Dolphin 7.0.1.

For Dolphin 7.0.0 download and back up:
/flash/modules/video/inc/functions.inc.php

Then open the file with a text editor and find:
$sTmpl = $sFfmpegPath . " -y -i " . $sInputFile . " -r " . getVideoFps() . " -s " . getVideoSize($sSize) . $sSound;

Change it to:
$sTmpl = $sFfmpegPath . " -y -i " . $sInputFile . " -r " . getVideoFps() . " -s " . getVideoSize($sSize) . $sSound . " -qmin 3 -qmax 6 ";

Save the changes back to your host/server/account.

The -qmin 3 -qmax 6 can have a value of 1-31. 1 is the best and 31 is the worst. Setting this to 1 is similar to no compression and the file size can get rather big. Because of this it's not recommended to set it to 1. You might experiment with 2-10 ranges.

Also note after making the change you will have to upload the same video again with the new settings to see the change applied to a new upload. It won't make a video previously uploaded better because it would have already been processed with the older less quality settings.

Basically after each change or adjustment you will have to verify by uploading the same video again until you find the quality setting you like.


For Dolphin 7.0.1 download and back up:
/flash/modules/video/inc/header_inc.php

Then open the file with a text editor and find:
"play" => $GLOBALS['sFfmpegPath'] . " -y -i #input# -r #fps# -s #size# #video_filters# #audio_options# #output#",

Change it to:
"play" => $GLOBALS['sFfmpegPath'] . " -y -i #input# -r #fps# -s #size# -qmin 3 -qmax 6 #video_filters# #audio_options# #output#",

Save the changes back to your host/server/account.

Again the -qmin 3 -qmax 6 can have a value of 1-31. 1 is the best and 31 is the worst. Setting this to 1 is similar to no compression and the file size can get rather big. Because of this it's not recommended to set it to 1. You might experiment with 2-10 ranges.

Also note after making the change you will have to upload the same video again with the new settings to see the change applied to a new upload. It won't make a video previously uploaded better because it would have already been processed with the older less quality settings.

Basically after each change or adjustment you will have to verify by uploading the same video again until you find the quality setting you like.


Again be sure you are not to using the H264 codec in the video player settings if applying this quality video improvement setting.

You can read more about this in the Boonex Unity Forums which was originally posted by:
Sydeburnz


Here:
Dolphin 7.0.0 - Flash Video Quality Mod!
http://www.boonex.com/unity/forums/topic/Flash-Video-Quality-Mod-.htm


Dolphin 7.0.1 - 7.0.1 - Video Quality Mod
http://www.boonex.com/unity/forums/topic/7-0-1-Video-Quality-Mod.htm


Also Note About Upgrades/Patches:

Should Boonex provide an update/patch that happens to overwrite these you will either need to reapply the changes above, and/or the code, file, or the area could change to another location.

Any problems replace the affected file with the original file to restore the changes back to original.

 
Written By
Tutorial by: Jeremy LeSarge (AKA Ray)

I am the owner and administrator of DialMe.com. I write Tutorials for Boonex Dolphin as well as tips and resources surrounding website programming and development. I enjoy working with WordPress, SEO, and Web Hosting / Servers. I also maintain a WordPress Blog here on this site where you will find a variety of technology and webmaster resources.

Actions
Recommend
Sponsored Links