Bug 12168 - media player - must be warned that it is not possible to play MPEG-1 and MP3 formats
Summary: media player - must be warned that it is not possible to play MPEG-1 and MP3 ...
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: multimedia (show other bugs)
Version: 2.4
Hardware: All Multiple
: Medium enhancement
Target Milestone: 6.99
Assignee: Mathieu Dubois-Briand
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-10-03 19:32 UTC by oscar lopez arandas
Modified: 2026-08-28 07:22 UTC (History)
11 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments
video (13.91 MB, video/mp4)
2017-10-03 19:32 UTC, oscar lopez arandas
no flags Details
mp3 (2.29 MB, audio/mpeg)
2017-10-04 15:13 UTC, oscar lopez arandas
no flags Details
mpg (186.18 KB, video/mpeg)
2017-10-04 15:16 UTC, oscar lopez arandas
no flags Details
warning (1.18 KB, application/octet-stream)
2017-10-06 15:17 UTC, oscar lopez arandas
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description oscar lopez arandas 2017-10-03 19:32:58 UTC
Created attachment 4046 [details]
video

it would be convenient for the media player to show you a message on the screen, telling you that the MPEG-1 and MP3 format can not be played, or the content is not supported, as the media player starts leaving only the black screen , users who do not know it does not play MPEG-1 and MP3 would not know what's going on ...

STATUS: PASSED
BUILD: 2.4 M4: rc1-592c3449697ce39bf07864fafd7f0a61ca230561
ENVIRONMENT: Genericx86_MMAX32, Genericx86-64_nuc

STEPS TO REPRODUCE: MPEG-1
1.Copy sample MPEG-1 file to a system without the "commercial" flag.
2. Launch media player and make sure it cannot play the MPEG-1 file.

EXPECTED OUTCOME: 
MPEG-1 file can not be played on images without the "commercial" flag.
note arr

STEPS TO REPRODUCE:MP3
1. copy sample mp3 file to system
2. launch media player and make sure it cannot play the mp3 file 

EXPECTED OUTCOME:
mp3 file can not be played (the music player remains blocked on the mp3 file).

NOTE:
video in attachment
Comment 1 Bruce Ashfield 2017-10-04 14:24:15 UTC
I don't see this as a BSP question, but more general. So I'm tagging this as oe-core.
Comment 2 Leonardo Sandoval Gonzalez 2017-10-04 14:38:41 UTC
(In reply to comment #0)
> Created attachment 4046 [details]
> video
> 
> it would be convenient for the media player to show you a message on the
> screen, telling you that the MPEG-1 and MP3 format can not be played, or the
> content is not supported, as the media player starts leaving only the black
> screen , users who do not know it does not play MPEG-1 and MP3 would not
> know what's going on ...
> 
> STATUS: PASSED
> BUILD: 2.4 M4: rc1-592c3449697ce39bf07864fafd7f0a61ca230561
> ENVIRONMENT: Genericx86_MMAX32, Genericx86-64_nuc
> 
> STEPS TO REPRODUCE: MPEG-1
> 1.Copy sample MPEG-1 file to a system without the "commercial" flag.

where do you set this flag? According to your description, it is somehow set at runtime but I see no way to do the latter.

> 2. Launch media player and make sure it cannot play the MPEG-1 file.
> 

can you provide the command line to launch it the player?

> EXPECTED OUTCOME: 
> MPEG-1 file can not be played on images without the "commercial" flag.
> note arr
> 
> STEPS TO REPRODUCE:MP3
> 1. copy sample mp3 file to system
> 2. launch media player and make sure it cannot play the mp3 file 
> 
> EXPECTED OUTCOME:
> mp3 file can not be played (the music player remains blocked on the mp3
> file).
> 
> NOTE:
> video in attachment
Comment 3 oscar lopez arandas 2017-10-04 15:12:30 UTC
(
> > 
> > STEPS TO REPRODUCE: MPEG-1
> > 1.Copy sample MPEG-1 file to a system without the "commercial" flag.
> 
> where do you set this flag? According to your description, it is somehow set
> at runtime but I see no way to do the latter.
> 
> > 2. Launch media player and make sure it cannot play the MPEG-1 file.
> > 
> 
> can you provide the command line to launch it the player?

the test is manual in one core-image-sato.hddimg and the media player is opened load the mpeg-1 and give it play, attach the mpeg-1 and mp3 file
Comment 4 oscar lopez arandas 2017-10-04 15:13:23 UTC
Created attachment 4050 [details]
mp3
Comment 5 oscar lopez arandas 2017-10-04 15:16:10 UTC
Created attachment 4051 [details]
mpg
Comment 6 Ross Burton 2017-10-05 15:05:29 UTC
99% sure this used to work with gst-player showing a dialog if the pipeline throws a "missing codec" message.  Maxin, can you check and chase why this isn't working?
Comment 7 oscar lopez arandas 2017-10-06 15:17:19 UTC
(In reply to comment #6)
> 99% sure this used to work with gst-player showing a dialog if the pipeline
> throws a "missing codec" message.  Maxin, can you check and chase why this
> isn't working?

play in the terminal (gst-play-1.0 / home / root / audio \ and \ video / AUDIO / MP3 / MP3.mp3) if the warning is present, only the graphic media player is not the warning message attached evidence
Comment 8 oscar lopez arandas 2017-10-06 15:17:56 UTC
Created attachment 4059 [details]
warning
Comment 9 Maxin B. John 2017-10-09 13:55:20 UTC
In commit:afb2ba67fea2f6e545676ad4f3ade0abc7d84e63

http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=afb2ba67fea2f6e545676ad4f3ade0abc7d84e63

I removed "Add-error-signal-emission-for-missing-plugins.patch" from gst-player after finding the patch status as "committed and closed" in github. It was a mistake. A new bug opened to keep track of this in the new "gst-examples" repository:

https://bugzilla.gnome.org/show_bug.cgi?id=765934

This patch in it's current state needs some updates as per review comments and also other updates to reflect changes in the new repository here:

git://anongit.freedesktop.org/gstreamer/gst-examples
Comment 10 Maxin B. John 2018-02-21 07:56:58 UTC
Moving gstreamer bugs to Anuj.
Comment 11 Ross Burton 2018-04-19 04:46:47 UTC
This isn't a BSP thing, but simply a bug in gst-examples dropping the warning message.
Comment 12 Anuj Mittal 2018-04-19 05:03:21 UTC
I had actually taken a look at it. The patch that we used to carry applies on a code that has now been split across gst-plugins-bad and gst-examples. So it needs some work.

I had a patch that simply outputs an error when a codec is missing but that isn't generic enough.
Comment 13 Richard Purdie 2020-11-05 08:11:49 UTC
Anuj: Might your patch be better than nothing? Is it something you could have a quick look at as it might be an improvement on what we have today...
Comment 14 Randy MacLeod 2023-10-24 14:24:31 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 15 Randy MacLeod 2026-08-13 15:04:13 UTC
We need to check if our current media player (gtk-play?) reports on missing codecs.
It should not fail silently.
Comment 16 Mathieu Dubois-Briand 2026-08-25 10:14:33 UTC
I confirm we still have the same issue with gtk-play example from gstreamer. I will try to come with some solution.