Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Forums

/

Black screen with flvplayer and MP4

9 replies [Last post]

Hello,

I've made two pages with ...Hello,

I've made two pages with the JW player. One with the flv player, and another
with the wmv player. Both work good, with resp. flv and wmv files.
But trying to play a MP4 file with the flv player, gives a black screen.
The sound is OK.

The code:
<head>
<script type="text/javascript" src="http://www.thirdhand.nl/swfobject.js"></script>
</head>

<body>

<body>
<p id="player1"><a href="http://www.thirdhand.nl/video.flv">Get the
Flash Player</a> to see this player.</p>
<p> </p>
<script type="text/javascript">
var s1 = new SWFObject("player-viral.swf","single","25%","25%","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","Manfrotto 785B.mp4");
s1.addVariable("image","preview1.jpg");
s1.addVariable("width","300");
s1.addVariable("height","170");
s1.write("player1");
</script>

</body>

</html>

Hi Rolf,

This is Ethan from LongTail here to help you.

Can you link me to where you are running our player on your site so I can take a look at your implementation so I can better help you?

Please email me directly at ethan [at] longtailvideo [dot] com to follow up if you have any other questions, thank you.

Best Regards,
-Ethan

Hello Ethan,

Thanks for the reaction.
The link:
http://www.thirdhand.nl/videomp4.htm
The MP4 file is made with Pinnacle (14 HD Ultimate) , as MPEG4.

The flvplayer with an flv file, and the wmv player with an
wmv file, which work good, resp.: http://www.thirdhand.nl/videoswf3.htm
http://www.thirdhand.nl/videwmv.htm.

The video's are only short clips, for testing.

Best Regards,
Rolf.
kroes122@gmail.com

 
Incorrect code:

Change this:s1.addVariable("file","Manfrotto 785B.mp4",Filetype="video/x-m4v");
To this:s1.addVariable("file","Manfrotto 785B.mp4");

Unsupported video codec in Manfrotto 785B.mp4.

General
Complete name                    : C:\wget\Manfrotto 785B.mp4
Format                           : MPEG-4
Format profile                   : Base Media / Version 2
Codec ID                         : mp42
File size                        : 2.62 MiB
Duration                         : 42s 680ms
Overall bit rate                 : 515 Kbps
Encoded date                     : UTC 2009-11-12 19:30:05
Tagged date                      : UTC 2009-11-12 19:30:05

Video
ID                               : 1
<strong>Format                           : MPEG-4 Visual</strong>
Format profile                   : Simple@L3
Format settings, BVOP            : No
Format settings, QPel            : No
Format settings, GMC             : No warppoints
Format settings, Matrix          : Default (H.263)
Codec ID                         : 20
Duration                         : 42s 680ms
Bit rate mode                    : Variable
Bit rate                         : 404 Kbps
Maximum bit rate                 : 740 Kbps
Width                            : 512 pixels
Height                           : 288 pixels
Display aspect ratio             : 16/9
Frame rate mode                  : Constant
Frame rate                       : 25.000 fps
Resolution                       : 24 bits
Colorimetry                      : 4:2:0
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.110
Stream size                      : 2.06 MiB (79%)
Encoded date                     : UTC 2009-11-12 19:30:05
Tagged date                      : UTC 2009-11-12 19:30:05

Audio
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Format settings, SBR             : No
Codec ID                         : 40
Duration                         : 42s 645ms
Bit rate mode                    : Variable
Bit rate                         : 105 Kbps
Maximum bit rate                 : 134 Kbps
Channel(s)                       : 2 channels
Channel positions                : L R
Sampling rate                    : 48.0 KHz
Resolution                       : 16 bits
Stream size                      : 546 KiB (20%)
Encoded date                     : UTC 2009-11-12 19:30:05
Tagged date                      : UTC 2009-11-12 19:30:05

Flash supports these codecs:
http://kb2.adobe.com/cps/402/kb402866.html

I've changed the code.
But, same result: sound, but no output on the screen.
So i've changed the file, another MPEG-4 file. Which can be played with Adobe Flash Player 10.
Link: http://www.thirdhand.nl/videomp4.htm.
But also the same result: audio, but no video.

It isn't really a problem. Because the goal was to play HD video. Pinnacle 14 HD Ultimate can transfer to:
Audio
AVI
DivX
Flash VideoiPod compatibel
MOV
MPEG-1
MPEG-2
MPEG-2 TS
MPEG-4
Real Media
Sony PSP COmpatibel
Windows Media
3GP

One of those codecs, Windows Media, is of HD quality, and can be played with the JW WMV Player.
The FLV files, made with Pinnacle, are of bad quality.

Two samples:
* Aircleaner with FLV (highest quality level): http://www.thirdhand.nl/videoflv.htm
* Aircleaner with WMV (quality level medium):
http://www.thirdhand.nl/videowmv3.htm

Thanks for the support.
Now i know that the MP4 files made with Pinnacle can't be played with the JW FLV player. (Or maybe, that i didn't try, MP4 files with another format and quality.)

With regards,
Rolf.

I'm having the same problem playing mp4 files: audio but no video. Flash .flv files play just fine.

I'm using the latest JWPlayer (5) and SWFObject 2.2. I am using a CMS (and have paid for the commercial license), which generates the player/object code on this page:

http://will.illinois.edu/metadata/medialist/

The .flv plays audio and video, the .mp4 files play only video. Whaa?

I could encode everything to .flv but would prefer not to just because of the workflow.

Thanks,
Jack

 
You can only use audio and video codecs that are supported by the Adobe Flash Player.

    http://kb2.adobe.com/cps/402/kb402866.html

pf1992-05-14-c.mp4

General
Complete name                    : C:\wget\bin\pf1992-05-14-c.mp4
Format                           : MPEG-4
Format profile                   : Base Media / Version 2
Codec ID                         : mp42
File size                        : 31.1 MiB
Duration                         : 8mn 31s
Overall bit rate                 : 509 Kbps
Encoded date                     : UTC 2007-09-23 22:50:08
Tagged date                      : UTC 2007-09-23 22:53:37

Video
ID                               : 2
<strong>Format                           : MPEG-4 Visual</strong>
Format profile                   : AdvancedSimple@L3
Format settings, BVOP            : Yes
Format settings, QPel            : No
Format settings, GMC             : No warppoints
Format settings, Matrix          : Default (H.263)
Codec ID                         : 20
Duration                         : 8mn 31s
Bit rate mode                    : Constant
Bit rate                         : 443 Kbps
Nominal bit rate                 : 449 Kbps
Width                            : 320 pixels
Height                           : 240 pixels
Display aspect ratio             : 4:3
Frame rate mode                  : Constant
Frame rate                       : 29.970 fps
Resolution                       : 24 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.192
Stream size                      : 27.0 MiB (87%)
Language                         : English
Encoded date                     : UTC 2007-09-23 22:50:09
Tagged date                      : UTC 2007-09-23 22:53:37

Audio
ID                               : 1
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format version                   : Version 4
Format profile                   : LC
Format settings, SBR             : No
Codec ID                         : 40
Duration                         : 8mn 31s
Bit rate mode                    : Constant
Bit rate                         : 64.0 Kbps
Channel(s)                       : 2 channels
Channel positions                : L R
Sampling rate                    : 32.0 KHz
Resolution                       : 16 bits
Stream size                      : 3.91 MiB (13%)
Language                         : English
Encoded date                     : UTC 2007-09-23 22:50:09
Tagged date                      : UTC 2007-09-23 22:53:37

hobbs you assume we know what the heck that means. What do we do to get pinnacle movies output to mp4 and playable in jw player ? ? ? ? ? ? ? ? ? ? ? ? ? ? I'm loosing my mind pissed at jw player for saying it plays mp4 and it doesn't no matter what I output from pinnacle or what I convert the file to using 3rd party file converters. Help if possible otherwise longtailvideo should stop saying jw player plays mp4 videos!!!!!

@frusterated - we never say "it plays mp4", we say "it plays H.264", there is a difference. Flash itself won't play MP4 files that are not encoded in H.264!

Thanks Ethan, I had the same problem and managed to solve it by encoding the file with H.264.