Bug #2857

MediaPlayer, MediaException: ERROR_MEDIA_INVALID: ERROR_MEDIA_INVALID

Added by Matthieu Decorde almost 3 years ago. Updated almost 2 years ago.

Status:New Start date:06/12/2020
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:Media Spent time: -
Target version:TXM 0.8.4

Description

reported by SJ with TXM 0.8.1 beta2, under Windows 7

Preparing media...
JFX Player Error:
MediaException: UNKNOWN : [com.sun.media.jfxmediaimpl.platform.gstreamer.GSTMediaPlayer@6557dcea] ERROR_MEDIA_INVALID: ERROR_MEDIA_INVALID
    at javafx.scene.media.MediaException.getMediaException(MediaException.java:160)
    at javafx.scene.media.MediaPlayer$_MediaErrorListener.onError(MediaPlayer.java:2615)
    at com.sun.media.jfxmediaimpl.NativeMediaPlayer$EventQueueThread.HandleErrorEvents(NativeMediaPlayer.java:691)
    at com.sun.media.jfxmediaimpl.NativeMediaPlayer$EventQueueThread.run(NativeMediaPlayer.java:425).

file information

CLAPI_reunion_orga_dh_transcription_transcriber.mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42
File size                                : 1.57 GiB
Duration                                 : 1h 42mn
Overall bit rate                         : 2 193 Kbps
Encoded date                             : UTC 2017-01-27 13:09:48
Tagged date                              : UTC 2017-01-27 13:10:28

Video
ID                                       : 2
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L3.2
Format settings, CABAC                   : No
Format settings, ReFrames                : 2 frames
Format settings, GOP                     : M=2, N=60
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 1h 42mn
Duration_LastFrame                       : -3ms
Bit rate                                 : 1 997 Kbps
Width                                    : 940 pixels
Height                                   : 1 120 pixels
Display aspect ratio                     : 0.839
Frame rate mode                          : Constant
Frame rate                               : 30.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.063
Stream size                              : 1.43 GiB (91%)
Language                                 : English
Encoded date                             : UTC 2017-01-27 11:59:39
Tagged date                              : UTC 2017-01-27 13:10:28
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 1
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 1h 42mn
Source duration                          : 1h 42mn
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 140 MiB (9%)
Source stream size                       : 140 MiB (9%)
Language                                 : English
Encoded date                             : UTC 2017-01-27 11:59:38
Tagged date                              : UTC 2017-01-27 13:10:28

Hypothesis

Is it a Windows only problem ?

MD: it seems: I could open the file correctly in TXM 0.8.1 on Ubuntu 18.04.

The sample version of the file could be read correctly.

JavaFX codecs documentation: https://docs.oracle.com/javafx/2/api/javafx/scene/media/package-summary.html#SupportedMediaTypes

Diagnostic

https://stackoverflow.com/questions/24630448/javafx-mediaplayer-error-media-invalid
gives some advice about "AAC ... decoding have certain platform-dependent limitations"
for example
https://www.oracle.com/java/technologies/javase/products-doc-jdk8-jre8-certconfig.html
gives some advice about jdk8, JavaFX Media, Windows 7, AAC ... decoder filters :

The pre-installed Microsoft AAC and H.264 DirectShow decoder filters are used by default. However, if the MainConcept H.264/AVC Pro Decoder Pack is installed on your system, then the first available AAC or H.264 decoder from the following list is used within the following order:

    MainConcept
    Microsoft
    DivX Plus
    MainConcept trial version (demo codecs from Showcase)

If none of these decoders is available, AAC and H.264 decoding will fail.

History

#1 Updated by Matthieu Decorde almost 3 years ago

  • Description updated (diff)

#2 Updated by Serge Heiden almost 3 years ago

  • Description updated (diff)

#3 Updated by Matthieu Decorde almost 2 years ago

  • Target version changed from TXM 0.8.2 to TXM 0.8.4

Also available in: Atom PDF