?
Solved

MP4 h.264 web videos

Posted on 2009-04-24
11
Medium Priority
?
561 Views
Last Modified: 2013-11-13
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
0
Comment
Question by:jeremyBass26
  • 6
  • 5
11 Comments
 
LVL 22

Expert Comment

by:fredshovel
ID: 24230300
What is the script you are using to play mp4 on flowplayer?
0
 
LVL 4

Author Comment

by:jeremyBass26
ID: 24230541
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

0
 
LVL 22

Expert Comment

by:fredshovel
ID: 24255445
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.
0
NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

 
LVL 4

Author Comment

by:jeremyBass26
ID: 24255501
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
0
 
LVL 22

Expert Comment

by:fredshovel
ID: 24255782
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.
0
 
LVL 4

Author Comment

by:jeremyBass26
ID: 24255907
>>>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
0
 
LVL 22

Expert Comment

by:fredshovel
ID: 24256360
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.
0
 
LVL 4

Author Comment

by:jeremyBass26
ID: 24256390
... 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...???
0
 
LVL 22

Accepted Solution

by:
fredshovel earned 2000 total points
ID: 24265231
Youtube uses Flash. The standard resolution is 320 x 240 and they actually use quite a low bitrate of around 200Kbps. Then there is the relatively new Youtube High Definition -- High Definition just means more lines and more pixels -- thus it's bigger.
Here's the Youtube recommendation for uploading videos: # H.264, MPEG-2 or MPEG-4 format
# 1280x720 resolution
# 44.1KHz Stereo MP3 or AAC audio
# Frame rate as the original video
# Up to 1GB file size and 10 min. durati
NOTE: Youtube will change this to FLASH. But what they are saying is that these specificications will preserve your video best during the encoding process.
As your boss does he want Youtube's High Def or Standard resolution.

If you use something like Prism or Super to encode to FLV at 320 x240 at 30fps and a bitrate of around 2000kbps it will look even better than Youtube standard resolution.

0
 
LVL 4

Author Comment

by:jeremyBass26
ID: 24265669
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
0
 
LVL 4

Author Closing Comment

by:jeremyBass26
ID: 31574312
We good to go... it was the outdate Super... thank you for the help...
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Batch, VBS, and scripts in general are incredibly useful for repetitive tasks.  Some tasks can take a while to complete and it can be annoying to check back only to discover that your script finished 5 minutes ago.  Some scripts may complete nearly …
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of strings in Python: declaration, operations, indices, and slicing. Strings are declared with quotations; for example: s = "string": Strings are immutable.: Strings may be concatenated or multiplied using the addition and multiplic…
Learn the basics of lists in Python. Lists, as their name suggests, are a means for ordering and storing values. : Lists are declared using brackets; for example: t = [1, 2, 3]: Lists may contain a mix of data types; for example: t = ['string', 1, T…
Suggested Courses
Course of the Month17 days, 12 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question