Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

N5: video play back is not possible #1092

Open
libermax opened this issue Apr 10, 2019 · 39 comments
Open

N5: video play back is not possible #1092

libermax opened this issue Apr 10, 2019 · 39 comments

Comments

@libermax
Copy link

@libermax libermax commented Apr 10, 2019

With last RC (2019-W15) on N5, media player is unable to play mp4 videos, (at least those recorded by the camera). Error message is: "Error playing video
video format is not supported"

(Playing the same videos with UTmedia works)

@libermax libermax changed the title N5: video play back is not possible N5 (RC): video play back is not possible Apr 10, 2019
@advocatux
Copy link

@advocatux advocatux commented Apr 10, 2019

I can confirm this bug (Nexus 5 2019-W15).

This is the log while recording a video https://paste.ubuntu.com/p/JX7cpH4zR4/ and this for when trying to play that video using the mediaplayer in the roll https://paste.ubuntu.com/p/HDqNYFhXkq/

The relevant part is qml: AbstractPlayer: 2:The media format type is not playable due to a missing codec.

BTW we should track camera issues in https://gitlab.com/ubports/apps/camera-app/issues and not here, isn't it? :)

Loading

@Flohack74
Copy link
Member

@Flohack74 Flohack74 commented Apr 10, 2019

Yeah we are on it a bit. Seems the camera permission fix had some side effects. It should only affect the recorded videos so far.

Loading

@rubencarneiro
Copy link

@rubencarneiro rubencarneiro commented Apr 10, 2019

Video playback on nexus 5 was always broken, first was green screen, and no thumbnails, now no thumbnails and no green screen.
Since the update to 16.04 all is broken in video on nexus 5.

Loading

@lutin11
Copy link

@lutin11 lutin11 commented May 12, 2019

rm .cache/gstreamer-1.0/*
solved the problem on my OnePlusOne but not on my Nexus 5.

Loading

@lutin11
Copy link

@lutin11 lutin11 commented Aug 5, 2019

I've tryed on OTA10 rc channel, problem still present, the video can't be played with default media player but I successfully played it with UTmedia.

Loading

@nanu-c
Copy link

@nanu-c nanu-c commented Aug 11, 2019

for me this also happens now on fp2 with mp4 files

Loading

@gouchi
Copy link

@gouchi gouchi commented Oct 12, 2019

How mediaplayer-app is built for ubuntu touch ? According to the snapcraft.yaml it should be linked to gstreamer1.0-libav package but I don't see it in ubuntu touch ?

phablet@ubuntu-phablet:~$ ldd /usr/bin/mediaplayer-app
	libQt5Widgets.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Widgets.so.5 (0xb6b3c000)
	libQt5Quick.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Quick.so.5 (0xb6897000)
	libQt5Qml.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Qml.so.5 (0xb65f7000)
	libQt5Gui.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Gui.so.5 (0xb62cd000)
	libQt5Core.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Core.so.5 (0xb5f09000)
	libstdc++.so.6 => /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 (0xb5dfa000)
	libgcc_s.so.1 => /lib/arm-linux-gnueabihf/libgcc_s.so.1 (0xb5dd2000)
	libc.so.6 => /lib/arm-linux-gnueabihf/libc.so.6 (0xb5ce6000)
	/lib/ld-linux-armhf.so.3 (0xb6f4d000)
	libpthread.so.0 => /lib/arm-linux-gnueabihf/libpthread.so.0 (0xb5cc2000)
	libm.so.6 => /lib/arm-linux-gnueabihf/libm.so.6 (0xb5c4a000)
	libQt5Network.so.5 => /usr/lib/arm-linux-gnueabihf/libQt5Network.so.5 (0xb5b25000)
	libGLESv2.so.2 => /usr/lib/arm-linux-gnueabihf/libhybris-egl/libGLESv2.so.2 (0xb5b10000)
	libpng12.so.0 => /lib/arm-linux-gnueabihf/libpng12.so.0 (0xb5ae8000)
	libharfbuzz.so.0 => /usr/lib/arm-linux-gnueabihf/libharfbuzz.so.0 (0xb5a99000)
	libz.so.1 => /lib/arm-linux-gnueabihf/libz.so.1 (0xb5a77000)
	libicui18n.so.55 => /usr/lib/arm-linux-gnueabihf/libicui18n.so.55 (0xb58dd000)
	libicuuc.so.55 => /usr/lib/arm-linux-gnueabihf/libicuuc.so.55 (0xb57c0000)
	libdouble-conversion.so.1 => /usr/lib/arm-linux-gnueabihf/libdouble-conversion.so.1 (0xb57a2000)
	libdl.so.2 => /lib/arm-linux-gnueabihf/libdl.so.2 (0xb578f000)
	libglib-2.0.so.0 => /lib/arm-linux-gnueabihf/libglib-2.0.so.0 (0xb56b7000)
	libhybris-common.so.1 => /usr/lib/arm-linux-gnueabihf/libhybris-common.so.1 (0xb5699000)
	libfreetype.so.6 => /usr/lib/arm-linux-gnueabihf/libfreetype.so.6 (0xb5622000)
	libgraphite2.so.3 => /usr/lib/arm-linux-gnueabihf/libgraphite2.so.3 (0xb55fc000)
	libicudata.so.55 => /usr/lib/arm-linux-gnueabihf/libicudata.so.55 (0xb3d35000)
	libpcre.so.3 => /lib/arm-linux-gnueabihf/libpcre.so.3 (0xb3cd8000)
	librt.so.1 => /lib/arm-linux-gnueabihf/librt.so.1 (0xb3cc1000)
	libandroid-properties.so.1 => /usr/lib/arm-linux-gnueabihf/libandroid-properties.so.1 (0xb3cac000)

Currently we have those gstreamer packages installed

phablet@ubuntu-phablet:~$ dpkg -l | grep gstreamer
ii  gstreamer0.10-plugins-base:armhf                     0.10.36-2ubuntu0.2                                           armhf        GStreamer plugins from the "base" set
ii  gstreamer0.10-plugins-good:armhf                     0.10.31-3+nmu4ubuntu2.16.04.3                                armhf        GStreamer plugins from the "good" set
ii  gstreamer0.10-pulseaudio:armhf                       0.10.31-3+nmu4ubuntu2.16.04.3                                armhf        GStreamer plugin for PulseAudio
ii  gstreamer1.0-fluendo-mp3:armhf                       0.10.32.debian-1                                             armhf        Fluendo mp3 decoder GStreamer 1.0 plugin
ii  gstreamer1.0-hybris:armhf                            1.8.3-1ubuntu0.3~overlay2                                    armhf        GStreamer plugins from hybris
ii  gstreamer1.0-nice:armhf                              0.1.13-0ubuntu2                                              armhf        ICE library (GStreamer plugin)
ii  gstreamer1.0-plugins-bad-faad:armhf                  1.8.3-1ubuntu0.3~overlay2                                    armhf        GStreamer faad plugin from the "bad" set
ii  gstreamer1.0-plugins-bad-videoparsers:armhf          1.8.3-1ubuntu0.3~overlay2                                    armhf        GStreamer videoparsers plugin from the "bad" set
ii  gstreamer1.0-plugins-base:armhf                      1.8.3-1ubuntu0.3                                             armhf        GStreamer plugins from the "base" set
ii  gstreamer1.0-plugins-good:armhf                      1.8.3-1ubuntu0.4                                             armhf        GStreamer plugins from the "good" set
ii  gstreamer1.0-plugins-ugly-amr:armhf                  1.8.3-1ubuntu0.1                                             armhf        GStreamer plugins from the "ugly" set
ii  gstreamer1.0-pulseaudio:armhf                        1.8.3-1ubuntu0.4                                             armhf        GStreamer plugin for PulseAudio
ii  libgstreamer-plugins-bad1.0-0:armhf                  1.8.3-1ubuntu0.3~overlay2                                    armhf        GStreamer development files for libraries from the "bad" set
ii  libgstreamer-plugins-base0.10-0:armhf                0.10.36-2ubuntu0.2                                           armhf        GStreamer libraries from the "base" set
ii  libgstreamer-plugins-base1.0-0:armhf                 1.8.3-1ubuntu0.3                                             armhf        GStreamer libraries from the "base" set
ii  libgstreamer-plugins-good1.0-0:armhf                 1.8.3-1ubuntu0.4                                             armhf        GStreamer development files for libraries from the "good" set
ii  libgstreamer0.10-0:armhf                             0.10.36-1.5ubuntu1                                           armhf        Core GStreamer libraries and elements
ii  libgstreamer1.0-0:armhf                              1.8.3-1~ubuntu0.1                                            armhf        Core GStreamer libraries and elements

May we try to add gstreamer1.0-libav package ?

Loading

@dbdb78
Copy link

@dbdb78 dbdb78 commented Dec 15, 2019

I'm running N5 (32GB) in Swedish, when I try to play mp4 i get roughly translated "An error has occurred in the attempt to read media". This is the case for both for video made by camera and external content.

I didn't really follow the last post. Maybe there is an update that can be done, codec-wise?

Loading

@lutin11
Copy link

@lutin11 lutin11 commented Jan 28, 2020

this are some more logs from version 2020/01/28
http://paste.ubuntu.com/p/kcsKymnvZx/

Loading

@LlamasJM
Copy link

@LlamasJM LlamasJM commented Mar 12, 2020

It affects me too. Fp2 OTA12 RC Version 67. When I try to play mp4 or MOV videos, I get this message: "Error playing video
video format is not supported".
It affects Teleports too. Impossible video playback in Teleports!

Loading

@t-maes
Copy link

@t-maes t-maes commented Mar 23, 2020

Same here on my N5, and same message. The video is afterwards readable by other players, but there is no sound at all. I found no setting for that (for information, I see videos in my library taken with the same phone in mid January 2019, with no image(it wasn't working) but the sound was there).

Loading

@doniks
Copy link

@doniks doniks commented Mar 27, 2020

I wonder whether the problem is on the one hand some devices might not have support for certain video codecs in hardware and on the other hand there is a legal challenges with redistributing the software support for those codecs?!

If that is the case, maybe we could do it similar as desktop Linux does it: The codec is not included out of the box, but the user has some simple means of downloading and installing it themselves.

Maybe it could go into some ~/.codecs folder in the home dir or something. That way, ubports isn't redistributing it, it doesn't occupy space in the rootfs where space is scarce anyways and also we don't need to mess with the read only system.

Loading

@LlamasJM
Copy link

@LlamasJM LlamasJM commented Mar 27, 2020

I wonder whether the problem is on the one hand some devices might not have support for certain video codecs in hardware and on the other hand there is a legal challenges with redistributing the software support for those codecs?!

If that is the case, maybe we could do it similar as desktop Linux does it: The codec is not included out of the box, but the user has some simple means of downloading and installing it themselves.

Maybe it could go into some ~/.codecs folder in the home dir or something. That way, ubports isn't redistributing it, it doesn't occupy space in the rootfs where space is scarce anyways and also we don't need to mess with the read only system.

But I had video support in OTA 11. Mp4, MOV... And now, in OTA 12 rc, I don't. It's not a hardware problem...

Loading

@GI9VANNI
Copy link

@GI9VANNI GI9VANNI commented May 16, 2020

Unfortunately this bug is still present on Nexus 5 with OTA-12 stable.

Loading

@ubuntu-touch-testing
Copy link

@ubuntu-touch-testing ubuntu-touch-testing commented Jun 15, 2020

I also just reproduced this problem on a Nexus5.

A workaround is to play videos using UTmedia. Even the only two reviews for UTmedia in the OpenStore mention this. This is probably an issue with the app and not Ubuntu Touch.

Is this the correct place to log this error? Or should this be reported in the GitLab repository for this Gallery App? https://gitlab.com/ubports/apps/gallery-app

Reproduced on Nexus5
Channel: Release Candidate
OS Build Number: 2020-W24
UBports Image part: 20200602-30971

Loading

@t-maes
Copy link

@t-maes t-maes commented Jun 15, 2020

UT media plays videos but, if I remember well, without sound either

Loading

@ubuntu-touch-testing
Copy link

@ubuntu-touch-testing ubuntu-touch-testing commented Jun 16, 2020

I have UTmedia 0.14 installed and the sound plays in UTmedia for a video recorded on the phone (Nexus5 with the above stated versions). Please advise if anyone wants me to do further tests on this.

Loading

@t-maes
Copy link

@t-maes t-maes commented Jun 16, 2020

ok I will re-check... good news if it is corrected.

Loading

@t-maes
Copy link

@t-maes t-maes commented Jun 17, 2020

It still doesn't work here... maybe because I'm on the development channel ( 2020-06-17/2 ) ?
UTMedia 0.14
If I open the .mp4 on another pc there's no sound either.
And the micro is ok.

Loading

@ezze
Copy link

@ezze ezze commented Jun 17, 2020

UTmedia also doesn't work usually. It's not an option. I think that the issue should be fixed in core gallery application.

Loading

@ubuntu-touch-testing
Copy link

@ubuntu-touch-testing ubuntu-touch-testing commented Jun 17, 2020

Yes, of course Gallery should be fixed. I am NOT suggesting that UTmedia is a solution, it is not user friendly and does not seem maintained. The reason I report the videos working in UTmedia is to help isolate the problem.

I just retested on development also (2020-06-17/2). Front and back camera both record video and sound correctly and these videos are playable in UTmedia, but not Gallery.

Loading

@ubuntu-touch-testing
Copy link

@ubuntu-touch-testing ubuntu-touch-testing commented Jun 17, 2020

It still doesn't work here... maybe because I'm on the development channel ( 2020-06-17/2 ) ?
UTMedia 0.14
If I open the .mp4 on another pc there's no sound either.
And the micro is ok.

@tmaes04 Have you tried a forced reinstall of all the apps just in case?

System Settings --> Updates --> Update settings --> Reinstall all apps

Loading

@lduboeuf
Copy link
Collaborator

@lduboeuf lduboeuf commented Sep 10, 2020

So how can we make progress on it ? I don't understand all the pieces, is it related to the kernel, missing library ? Does halium 7.1 fix the issue ? .

Loading

@Flohack74
Copy link
Member

@Flohack74 Flohack74 commented Sep 10, 2020

Yes with Halium 7.1 we should have this fixed, among other problems. There are a few blockers still on getting 7.1 on the core devices (to avoid everyone to do a manual reinstallation) but the progress that was made is already quite far.

Loading

@rubencarneiro
Copy link

@rubencarneiro rubencarneiro commented Sep 10, 2020

Yes with Halium 7.1 we should have this fixed, among other problems. There are a few blockers still on getting 7.1 on the core devices (to avoid everyone to do a manual reinstallation) but the progress that was made is already quite far.

Is Working on halium, but untill everything is merged, no one will use it.

Loading

@lduboeuf lduboeuf changed the title N5 (RC): video play back is not possible N5: video play back is not possible Sep 10, 2020
@lduboeuf
Copy link
Collaborator

@lduboeuf lduboeuf commented Sep 10, 2020

Yes with Halium 7.1 we should have this fixed, among other problems. There are a few blockers still on getting 7.1 on the core devices

Awesome,
Any repo or bug tracking to follow ?

Loading

@rubencarneiro
Copy link

@rubencarneiro rubencarneiro commented Sep 10, 2020

Yes with Halium 7.1 we should have this fixed, among other problems. There are a few blockers still on getting 7.1 on the core devices

Awesome,
Any repo or bug tracking to follow ?

Well that will depend how much time will take to merge commits etc.

Loading

@lduboeuf
Copy link
Collaborator

@lduboeuf lduboeuf commented Sep 10, 2020

Humm i see, hard time for the maintainer(s). We need to find a way to speed up a bit PR/Review/Merge/Test for everything cause always hard to keep an eye for something done few months ago

Loading

@Mraanderson
Copy link

@Mraanderson Mraanderson commented Nov 17, 2020

Still no playback on OTA-14. File is there without thumbnail and playback through Gallery gives "An error has occurred attempting to load media"

Loading

@rubencarneiro
Copy link

@rubencarneiro rubencarneiro commented Nov 17, 2020

Loading

@nicktelindert
Copy link

@nicktelindert nicktelindert commented Jan 28, 2021

I tested the halium-7.1 image and it does not fix the video playback.

Loading

@rubencarneiro
Copy link

@rubencarneiro rubencarneiro commented Jan 28, 2021

halium 7.1 video playback is working.
Take note some video formats do not work thats not a nexus 5 problem or build problem that is a UT problem, you may not play .mkv files.
https://www.youtube.com/watch?v=UC6cGoIIj8o&feature=emb_title

Loading

@Mraanderson
Copy link

@Mraanderson Mraanderson commented Jan 28, 2021

halium 7.1 video playback is working.
Take note some video formats do not work thats not a nexus 5 problem or build problem that is a UT problem, you may not play .mkv files.
https://www.youtube.com/watch?v=UC6cGoIIj8o&feature=emb_title

Video is private.

Loading

@nicktelindert
Copy link

@nicktelindert nicktelindert commented Jan 28, 2021

@rubencarneiro I tried an mp4 file which does work on other devices with ubuntu touch.

Loading

@rubencarneiro
Copy link

@rubencarneiro rubencarneiro commented Jan 29, 2021

Loading

@nicktelindert
Copy link

@nicktelindert nicktelindert commented Jan 29, 2021

@rubencarneiro I did some more testing with multiple formats(including an ogg file) and none of them would play. I installed it with the link you shared on telegram a few days ago: https://github.com/rubencarneiro/android_device_lge_hammerhead/releases.

I used the default mediaplayer.
If you need more information don't hesitate to ask.

Loading

@rubencarneiro
Copy link

@rubencarneiro rubencarneiro commented Jan 29, 2021

Loading

@rubencarneiro
Copy link

@rubencarneiro rubencarneiro commented Jan 29, 2021

i just test and yes its not working please not latest rootfs have change to Qt, i dont know if that will influence the mediaplayer itself or codecs decoding

Loading

@rubencarneiro
Copy link

@rubencarneiro rubencarneiro commented Jan 30, 2021

@rubencarneiro I did some more testing with multiple formats(including an ogg file) and none of them would play. I installed it with the link you shared on telegram a few days ago: https://github.com/rubencarneiro/android_device_lge_hammerhead/releases.

I used the default mediaplayer.
If you need more information don't hesitate to ask.
So new rootfs wich already has qt 5.12 i can confirm that broke video playback and nexus 5 with halium 7.1 based system, now camera app does correct promote to record audio a start to record video, but since video decode/encode is not working we got nothing from this.
So status on halium 7.1 based video encode/decode on nexus 5 builds is broken.
I will dig a little more and see if i can find a solution for this at least o nexus 5 side.

01-30 22:06:22.595 0 4396 D DecodingService: Calling Pid: 7721
01-30 22:06:22.596 0 7721 V SurfaceTextureClientHybris: GLConsumerWrapperHybris gl_consumer_create_by_id_with_igbc(unsigned int, IGBCWrapperHybris)
01-30 22:06:22.597 0 7721 V SurfaceTextureClientHybris: int gl_consumer_set_frame_available_cb(GLConsumerWrapperHybris, FrameAvailableCbHybris, void *)
01-30 22:06:22.598 0 4403 V MediaCodecLayer: IGBPWrapperHybris decoding_service_get_igraphicbufferproducer()
01-30 22:06:22.598 0 4403 D DecodingService: static spandroid::BpDecodingService &android::DecodingClient::service_instance()
01-30 22:06:22.598 0 4403 D DecodingService: Entering virtual status_t android::BpDecodingService::getIGraphicBufferProducer(spandroid::IGraphicBufferProducer *)
01-30 22:06:22.598 0 4403 D DecodingService: Entering virtual status_t android::BnDecodingService::onTransact(uint32_t, const android::Parcel &, android::Parcel *, uint32_t)
01-30 22:06:22.598 0 4403 D DecodingService: Calling Pid: 4339
01-30 22:06:22.598 0 4403 D DecodingService: producer(gbp): 0xaba00e10
01-30 22:06:22.598 0 4403 V SurfaceTextureClientHybris: _SurfaceTextureClientHybris::_SurfaceTextureClientHybris(const android::spandroid::IGraphicBufferProducer &, bool)
01-30 22:06:22.598 0 4403 V SurfaceTextureClientHybris: void surface_texture_client_set_hardware_rendering(SurfaceTextureClientHybris, uint8_t)
01-30 22:06:22.652 0 4477 E libEGL : validate_display:99 error 3008 (EGL_BAD_DISPLAY)

Loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet