Error media audio format unsupported [Solved]

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
Post Reply
Satscape
Level 1
Level 1
Posts: 27
Joined: Sat Jun 07, 2014 5:45 am

Error media audio format unsupported [Solved]

Post by Satscape » Fri Sep 19, 2014 5:56 am

Hi all, I wrote a little Java program that plays videos a while back, and it's stopped working, it used to run, but since I re-installed Mint, it won't play any more, it still works under windows just fine, the crash I'm getting is at the moment it tries to play the video:

Code: Select all

Caused by: MediaException: MEDIA_UNSUPPORTED : com.sun.media.jfxmedia.MediaException: "Error media audio format unsupported" : com.sun.media.jfxmedia.MediaException: "Error media audio format unsupported"
	at javafx.scene.media.MediaException.exceptionToMediaException(MediaException.java:125)
	at javafx.scene.media.MediaPlayer.init(MediaPlayer.java:474)
	at javafx.scene.media.MediaPlayer.<init>(MediaPlayer.java:383)
I've tried compiling and running it under Oracle Java 7 and 8. So, is there some nice APT-GET commands to install codecs to get this working?
pretty sure it won't work under Open-JDK, as it's using JavaFX to play the video, which doesn't seem to be included in Open-JDK.

Thanks.
Last edited by Satscape on Sat Sep 20, 2014 7:51 am, edited 1 time in total.

User avatar
eanfrid
Level 7
Level 7
Posts: 1859
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: Error media audio format unsupported

Post by eanfrid » Fri Sep 19, 2014 6:01 am

The actual question is: which one ?
Error media audio format unsupported
Main desktop: Debian GNU/Linux Jessie 64bit - MATE
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox

Satscape
Level 1
Level 1
Posts: 27
Joined: Sat Jun 07, 2014 5:45 am

Re: Error media audio format unsupported

Post by Satscape » Fri Sep 19, 2014 6:13 am

When I play the video in VLC, it shows this info about the codecs:

Video H264 -MPEG-4 AVC
Audio MPEG AAC Audio (mp4a)

User avatar
PatH57
Level 13
Level 13
Posts: 4577
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: Error media audio format unsupported

Post by PatH57 » Fri Sep 19, 2014 8:12 am

VLC brings a couple of it's own codec whereas mediaplayer relies on the ones witch are on the sytem so you may want to install the non free codecs.
check in synaptic (package manager) if ubuntu-restricted-extras is installed.
This package depends on some commonly used packages in the Ubuntu
multiverse repository.

Installing this package will pull in support for MP3 playback and
decoding, support for various other audio formats (GStreamer plugins),
Microsoft fonts, Flash plugin, LAME (to create compressed audio files),
and DVD playback.
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

Satscape
Level 1
Level 1
Posts: 27
Joined: Sat Jun 07, 2014 5:45 am

Re: Error media audio format unsupported

Post by Satscape » Fri Sep 19, 2014 9:12 am

Just checked, yeah, already have ubuntu-restricted-extras and ubuntu-restricted-addons installed.
Also followed some instructions that seem to install AAC codec, but still no go, same error. Suppose I could convert all my videos over to use MP3 audio, seems the long way around though :-)

User avatar
PatH57
Level 13
Level 13
Posts: 4577
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: Error media audio format unsupported

Post by PatH57 » Fri Sep 19, 2014 9:19 am

did you also check the java requirements?
last time I checked java 8 is not supported but you may need some more libraries to be installed like GLib?
Also not MP4 are equal
http://stackoverflow.com/questions/2409 ... untu-14-04
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

Satscape
Level 1
Level 1
Posts: 27
Joined: Sat Jun 07, 2014 5:45 am

Re: Error media audio format unsupported [RESOLVED]

Post by Satscape » Fri Sep 19, 2014 9:48 am

Resolved... Thank you!
Installed the 3 libraries mentioned libavutil51, libavformat53, libavcodec53 (using .deb files) as apt-get hasn't heard of them! Think I'll hold on to those files, might need them again.

User avatar
PatH57
Level 13
Level 13
Posts: 4577
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: Error media audio format unsupported

Post by PatH57 » Fri Sep 19, 2014 9:55 am

:D I keep a couple of libs and codecs on a stick just to avoid having to download them when I install another distro to test.
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

User avatar
eanfrid
Level 7
Level 7
Posts: 1859
Joined: Mon Apr 30, 2012 2:49 am
Location: FR

Re: Error media audio format unsupported

Post by eanfrid » Fri Sep 19, 2014 10:54 am

OK I am a bit late :) All that you needed to do was indeed to install "libav-tools" from the standard repos, which bring the required dependencies.
Main desktop: Debian GNU/Linux Jessie 64bit - MATE
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
Safer than Dropbox

Satscape
Level 1
Level 1
Posts: 27
Joined: Sat Jun 07, 2014 5:45 am

Re: Error media audio format unsupported [Solved]

Post by Satscape » Sat Sep 20, 2014 6:25 am

Thanks, noted for next time I re-install.
Last edited by Satscape on Sat Sep 20, 2014 7:51 am, edited 1 time in total.

User avatar
PatH57
Level 13
Level 13
Posts: 4577
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: Error media audio format unsupported

Post by PatH57 » Sat Sep 20, 2014 7:28 am

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

Post Reply

Return to “Sound, Multimedia, & Codecs”