Flash video why storing .m4v as well as .mp4 ?

I have noticed that the flash video player system stores converted videos in 2 formats .mp4 and .m4v. Why is this? To save space could I just delete the .m4v files once a month or something, assuming the video plays just plays the .mp4 files?

Quote · 15 Mar 2011

I am just stabbing in the dark here but looking at the diffrence in file sizes and the fact that they are not fla extensions could it be so peeps can veiw your site videos on the i phone app ? via the smaller file size movie?

just trying to help you drink the vodka with a lemon slice much nicer way to enjoy life lil ups and downs :O)

 

happy thoughts

 

Quote · 15 Mar 2011

LOL yea well m4v is a format developed by iTunes, so makes sence. But seeing that Apple, iTunes, iPod, iPhone etc are a complete waste of space, I'm guessing the m4v files are a complete waste of space on my server too! The sort of people who actually use these iDevices, do I really want them using my sites, and server resources? There's a crap app for thatSmile

Quote · 15 Mar 2011

Like i said it was just a guess :O) I haven't a clue about file extensions regards apple , but you did sort of answer your own question before you typed it ...

perhaps what  you should have asked is, will my site show me some of the classic boonex logic if i delete these files  and will my local off license start selling limes laced with mace...

 

well i stole your lil message php mod :O) how do you get the users avatar to show up in the same box..

 

just thought i would give you something else to do just in case you had your finger on the delete button again :O)

 

happy thoughts

Quote · 15 Mar 2011
Hmmm just taking a shot in the dark here but you don't have an iPhone or IPad? LoL I guess several million users is the reason you would not want them on your site? The real question is why do you format a movie in a format that is not able to be seen in the player on the device you formatted it for?
Csampson
Quote · 15 Mar 2011

I have managed to get videos to play on an ipad. The video is the m4v version of the uploaded video and actually clearer than the mp4 version when viewing on an ipad or iphone. The only problem I have is that I do not know where to place my code so that A- I can use the exact same variables, and B- I cna have my code take effect on the videos uploaded. Currently, I have to use a php block in which I am checking the UserAgent for the device type and playing the video accordingly. If it is an iphone or ipad, it will play the m4v version and if it is any other, it will play the flash version - which is using the RMS.

caredesign.net
Quote · 16 May 2011

just a quick addition to this thread - With the assistance of scriptologist - the m4v versions of the uploaded videos now have a purpose.

First, Open up modules/boonex/videos/templates/base/view_unit.html

 

Once you have that open, look for __file__

replace __file__ with

 

var agent=navigator.userAgent.toLowerCase();
var is_iphone = (agent.indexOf('iphone')!='-1');
var is_ipad = (agent.indexOf('ipad')!='-1');
if (is_iphone) {
document.write("<video src='http://mtsco.net/flash/modules/video/files/__fileID__.m4v' controls='controls' width='100%' height='280'></video>");
}
else if (is_ipad) {
document.write("<video src='http://mtsco.net/flash/modules/video/files/__fileID__.m4v' controls='controls' width='100%' height='280'></video>");
}
else {
document.write("<object style='display:block;' width='100%' height='400'><param name='movie' value='http://mtsco.net/flash/modules/global/app/holder_as3.swf'></param><param name='allowScriptAccess' value='always'></param><param name='allowFullScreen' value='true'></param><param name='base' value='http://mtsco.net/flash/modules/video/'></param><param name='bgcolor' value='#FFFFFF'></param><param name='wmode' value='opaque'></param><param name='flashVars' value='url=http://mtsco.net/flash/XML.php&module=video&app=player&id=__fileID__&user=&password='></param><embed src='http://mtsco.net/flash/modules/global/app/holder_as3.swf' type='application/x-shockwave-flash' width='100%' height='400' allowScriptAccess='always' allowFullScreen='true' base='http://mtsco.net/flash/modules/video/' bgcolor='#FFFFFF' wmode='opaque' flashVars='url=http://mtsco.net/flash/XML.php&module=video&app=player&id=__fileID__&user=&password='></embed></object>");
}
</script>

 

and voila - now your uploaded videos will play the m4v version on ipads and iphones, and the lash version for all else.

caredesign.net
Quote · 18 May 2011

I put this code in the file, but it does not work.

modules/boonex/videos/templates/base/view_unit.html

 

<?php if(eregi('(iphone)|(ipod)',$_SERVER['HTTP_USER_AGENT'])){ ?>

<video><source src="/flash/modules/video/__fileID__.m4v" type="video/mp4"></video>

<?php }else{ ?>

__file__

<?php } ?>

Quote · 2 Dec 2011

i was rereading my post and I fopund an errror in my cript that may not work on everyone elses:

var agent=navigator.userAgent.toLowerCase();
var is_iphone = (agent.indexOf('iphone')!='-1');
var is_ipad = (agent.indexOf('ipad')!='-1');
if (is_iphone) {
document.write("<video src='http://mtsco.net/flash/modules/video/files/__fileID__.m4v' controls='controls' width='100%' height='280'></video>");
}
else if (is_ipad) {
document.write("<video src='http://mtsco.net/flash/modules/video/files/__fileID__.m4v' controls='controls' width='100%' height='280'></video>");
}
else {
document.write("<object style='display:block;' width='100%' height='400'><param name='movie' value='http://mtsco.net/flash/modules/global/app/holder_as3.swf'></param><param name='allowScriptAccess' value='always'></param><param name='allowFullScreen' value='true'></param><param name='base' value='http://mtsco.net/flash/modules/video/'></param><param name='bgcolor' value='#FFFFFF'></param><param name='wmode' value='opaque'></param><param name='flashVars' value='url=http://mtsco.net/flash/XML.php&module=video&app=player&id=__fileID__&user=&password='></param><embed src='http://mtsco.net/flash/modules/global/app/holder_as3.swf' type='application/x-shockwave-flash' width='100%' height='400' allowScriptAccess='always' allowFullScreen='true' base='http://mtsco.net/flash/modules/video/' bgcolor='#FFFFFF' wmode='opaque' flashVars='url=http://mtsco.net/flash/XML.php&module=video&app=player&id=__fileID__&user=&password='></embed></object>");
}
</script>

 

please make sure items in red correspond to your site address

caredesign.net
Quote · 30 Jan 2012
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.