Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

How to play 3gp files in JW Media Player


Hello. Flash has added support for 3gp from version 9. Why is 3gp playback not supported in the JW Media Player? How can I play a .3gp file in the JW Media Player? Thank you in advance.

18 Community Answers

JW Player

User  
0 rated :

Any help guys? Please.

JW Player

User  
0 rated :

The player in the trunk will definitely play them. Here is the list of file types it will play.bc.. '3g2':'video',
'3gp':'video',
'aac':'video',
'f4b':'video',
'f4p':'video',
'f4v':'video',
'flv':'video',
'gif':'image',
'jpg':'image',
'm4a':'video',
'm4v':'video',
'mov':'video',
'mp3':'sound',
'mp4':'video',
'png':'image',
'rbs':'sound',
'sdp':'video',
'swf':'image',
'vp6':'video'
Here's a quick example *http://mymail.playourvideo.net/3gpmail.htm?id=h264test.3g2* This file has no audio but it should confirm that the 3gp & 3g2 formats can be used in the JW Player.

Regards - Jimb

JW Player

User  
0 rated :

Obviously the latest trunk does not play 3gp. Any comments?

JW Player

User  
0 rated :

No problem playing 3gp test files with v4.6.234.

Do you have a 3gp file that doesn't work that we can test?

JW Player

User  
0 rated :

Hello,

Try to play this file: http://www.freeform-framework.com/t/w.3gp

Tried with player.swf rev. 236. It just shows the loading spinner. When trying with an mp3, all works ok. But any 3gp does not play at all (and to error is reported, like in case of wrong file URL).

JW Player

User  
0 rated :

Both 3gp and 3g2 files play fine for me. Have you tried including a type = "video" flashvar for the file?

Can you watch either or both of these?bc.. *http://mymail.playourvideo.net/3gpmail.htm?id=h264test.3g2
http://mymail.playourvideo.net/3gpmail.htm?id=h264test.3gp*
What software are you using to create your files? Just wondering if they are following the mpeg 4 part 10 closely enough to create fully compatible files.

In my case I modified the RTMPModel.as file of the source so I don't need to include the type flashvar.bc.. /** Extract the correct rtmp syntax from the file string. **/
protected function getID(url:String):String {
var ext:String = url.substr(-4);
if(ext == '.mp3') {
return 'mp3:'+url.substr(0,url.length-4);
} else if(ext == '.mp4' || ext == '.mov' || ext == '.m4v' || ext == '.m4a' || ext == '.aac' || ext == '.m4a' || ext == '.f4v' || *ext == '.3gp' || ext == '.3g2'*) {
return 'mp4:'+url;
} else if (ext == '.flv') {
return url.substr(0,url.length-4);
} else {
return url;
}
};


Regards - Jimb

JW Player

User  
0 rated :

Your file *w.3gp* has samr audio, which is not supported by Flash.

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

Try to encode with mp3 or aac audio.

JW Player

User  
0 rated :

Hmm weird how it's an audio file when Media Player Classic plays it as a video - it's a trailer of the Worms game.

Another file is a video recorded by my Motorola K1 phone, which again plays perfectly with MPC, but not with your player.

Interestingly enough, the file you linked to plays well (I downloaded it from the site and played through the same setup which was unable to play my files).

Please check my file with MPC or other desktop player.

JW Player

User  
-1 rated :

Oops I missed your point - you were speaking about the audio stream...

My point is that at least several types of portable devices like cell phones encode audio into unsupported format, which will make impossible their playback with JW/Flash.

As I am no expret in Flash, is it possible to omit the audiostream when it's not supported? Play just the video?

Thanks

JW Player

User  
0 rated :

@Dennis

Playing them will just require you take an extra step BEFORE you upload your files to your web server.

You need to process your files with any software that will play them and encode them as H264/AAC files. Then they will play as expected.

Jimb

JW Player

User  
0 rated :

@Jimb

Yes, I see that. Unfortunately, this is not acceptable if people are uploading their own files.

I tried to use ffmpeg to strip out samr audio and play the file withour audio stream at all, but it still does not work.

JW Player

User  
0 rated :

hi
i m not able to play 3gp using jw player. The player keeps on loading.
Please help.
below is my code

<script type='text/javascript' src='../include/inc_js/swfobject.js'></script>
<script type='text/javascript'>
var s1 = new SWFObject('player.swf','player','400','300','9');

s1.addParam('allowfullscreen','true');
s1.addParam('allowscriptaccess','always');
s1.addParam('flashvars','file=e004240980bc28d6aa55a34279ce0135.3gp');
s1.write('preview');
</script>

JW Player

User  
0 rated :

i get same question,Any help guys? Please.

Ethan Feldman

JW Player Support Agent  
0 rated :

How did you encode your 3gp file?

JW Player

User  
0 rated :

Got this same problem...

My parameters to encode the file, from a FLV to 3GP are:

Video:
- Codec video: MPEG4 (DivX/Xvid compatible)
- 320 x 240
- Bitrate: 670
- 15 fps
Audio:
- Codec audio: MPEG-2/4 Audio
- 32000 Hz
- 16 bit.
- 64 kbps
- Mono

Audio plays but with no video! Appreciate any help.

Ethan Feldman

JW Player Support Agent  
1 rated :

Can you provide a link?

JW Player

User  
0 rated :

Hello Ethan,

I am trying to play the 3GP file at http://bit.ly/nw840c without any success, any ideas

Thanks

Ethan Feldman

JW Player Support Agent  
1 rated :

How was it encoded?

http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/12539/supported-video-and-audio-formats

3GPP ( .3gp, .3g2 ) Flash only

Video in the 3GPP container format. These files must contain video encoded with the H.263 codec and audio encoded with the AAC codec. Used widely for mobile phones because it is easy to decode. More and more devices switch to H264 though.

This question has received the maximum number of answers.