Link to home
Start Free TrialLog in
Avatar of jeremyBass26
jeremyBass26Flag for United States of America

asked on

MP4 h.264 web videos

Hello, I need to play videos on this site, which needs to be in .mp4 container with h.264 format. so far it's been bad... test after test and we can't get it right... try to move the atom_bit... adjust the keyframes... nothing is working... would anyone know why and how to get the videos to start right a way... I see others being able to but I just can't.... we out put with premier... and we've tested on many player and just can't get it right... Any ideas?  Thank you....

Jeremy

the testing page....

http://www.digitalbarn.tv/work.html
Avatar of fredshovel
fredshovel
Flag of Australia image

What is the script you are using to play mp4 on flowplayer?
Avatar of jeremyBass26

ASKER

I wrote more here...

http://flowplayer.org/forum/2/18485



but the current script is below... at this moment as I had to keep trying... I've set this up

http://richbellamy.com/wiki/Flash_Streaming_to_FlowPlayer_using_only_PHP

which I switched out the flv for mp4... that script seems to be working but no change... you can see in the net it is downloading... ... odd...

Thank you for the help...

Jeremy



var medialinK = '';
	$(".mediaLinks").hover(
		function () {
			medialinK = $(this).attr('href');
			$(this).attr({"href":"#media_Box"});
		}, 
		function () {
			$(this).attr({"href":""+medialinK+""});
		
		}
    );
	
	$(".mediaLinks").fancybox({
		'hideOnContentClick': false,
		'frameHeight' : 300,
		'frameWidth' : 400,
		'overlayOpacity': .5,
		'callbackOnShow': function() {
					 // alert(video);
					 
						var blankName = "flv";
						var OldString = medialinK;
						var NewString = OldString.replace("mp4", blankName);
						
						//alert(NewString);		 
						$f("fancy_div", "http://www.digitalbarn.tv/lib/JS/flowplayer-3.1.0.swf", {	
						       plugins: {
								   lighttpd: { url: 'http://www.digitalbarn.tv/lib/JS/flowplayer.pseudostreaming-3.1.2.swf' } 
								   }, 
								play: { opacity: 0,
								start: .5},
								clip: {
									
									provider: 'lighttpd',  
									autoPlay: true,
									autoBuffering: false,
									baseUrl: 'http://www.digitalbarn.tv/lib/JS/php-streamer.php',
									// play M4V with Flash 9.115+ versions - otherwise play FLV
									url: flashembed.isSupported([9, 115]) ? 
										''+ medialinK +'' : ''+ NewString +''
								}	
						});
                  } 
 
	});

Open in new window

Don't know what flowplayer is doing but using an flv player to play H.264 is a relatively new thing. You could try JW's new Longtail player, which also is an flv player that will play H.264.
well if I read this right

http://creativecommons.org/licenses/by-nc-sa/3.0/

the "Noncommercial  You may not use this work for commercial purposes. "

I can't use it to sell my products. right?  but if it just means I can't sell the app then I'll try but I'm not thinking that is the case... so I need to stay with flow player and get it to work... but for what it's worth I've had this issue with any flash player I've made too so far... I think that the files are not made right may-be...???

Thank you for the help...

Jeremy
Another alternative is toconvert the video to a good quality flash FLV.
Alternatively if you strictly want to stay in the H.264 profile you can embed Quicktime as the player, but you'll have to encode the files to .mov, which is done using the H.264 encoder, but won't stream uless specifically encoded as .mov.
Any  reason why you can't convert to flv -- they have excellent resolutions now for streaming.
>>>Another alternative is toconvert the video to a good quality flash FLV.
>>>Any  reason why you can't convert to flv -- they have excellent resolutions now for streaming.

yes there are two reason why... one FLV are to big... and two other can/are doing this and that's why I'm trying to figure out what I've done wrong...

>>>Alternatively if you strictly want to stay in the H.264 profile you can embed Quicktime as the player, but you'll have to encode the files to .mov, which is done using the H.264 encoder, but won't stream unless specifically encoded as .mov.

That kinda goes back to the heavy and others doing thing...

I'm set on the fact that if others are able to and it's so small and nice looking while looking good (like you tube for example) I just need to figure out how...  and since flowplayer is suppose to work that was the testing player...

In the end I just need to play a .mp4 back progressively but not in a player with low client availability % as QT or wmv... (flash is much higher than both so I see it as a safer bet)

Really I'm open to ideas but I need to stay in the same realm of things...

Thank you again for the help...

Jeremy
Ok. Here's what I would do. I've streamed Real, Quicktime, Windows Media and Flash. My preference by far these days is Flash. They have improved the quality right up to high definition if you like, and almost everyone on the planet has flash on their computers -- because it doesn't matter what you embed the client always has to have that player on their local machine even when the video plays in the browser. I don't know why your FLV files are so big. But I would recommend an encoder called Prism. It's very good.
Just encode the flash videos at 30fps at whatever resolution yu desire (youtube's standard resolution is 320 x 240. Also keep the bitrate reasonably high -- around 2K.
... is youtube not a .mp4?  I'm need to match the level of youtube... so says the boss... so less the lighttpd server, if your saying that is in short what youtube is doing... I'll have to get back... but I thought it was not flvs they were serving...???
ASKER CERTIFIED SOLUTION
Avatar of fredshovel
fredshovel
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You're right... the big flv size I was getting was due to me using an out dated SuperC .. I'm doing some tests now but I think it's sorted... but it's to hell with the mp4 format I'd say... I'll be back here soon...

Cheers
jeremy
We good to go... it was the outdate Super... thank you for the help...