Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908959 - media-video/raspberrypi-omxplayer-0_p20160528-r3 fails to build when using ffmpeg4
Summary: media-video/raspberrypi-omxplayer-0_p20160528-r3 fails to build when using ff...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM Linux
: Normal normal (vote)
Assignee: Miroslav Šulc
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2023-06-21 12:38 UTC by Mathias Vaterlaus
Modified: 2023-10-23 21:17 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch for raspberrypi-omxplayer to compile against ffmpeg4 (ffmpeg4.patch,2.70 KB, patch)
2023-06-21 12:38 UTC, Mathias Vaterlaus
Details | Diff
emerge --info (emerge-info,5.75 KB, text/plain)
2023-06-26 09:17 UTC, Mathias Vaterlaus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mathias Vaterlaus 2023-06-21 12:38:39 UTC
Created attachment 864334 [details, diff]
Patch for raspberrypi-omxplayer to compile against ffmpeg4

I'm having problems compiling omxplayer against ffmpeg v4. The problem is discussed in here [1]. The follwing build errors occur:


In file included from BitstreamConverter.h:27,
                 from BitstreamConverter.cpp:26:
DllAvFormat.h: In member function 'virtual int DllAvFormat::url_feof(AVIOContext*)':
DllAvFormat.h:117:51: error: '::url_feof' has not been declared
   virtual int url_feof(AVIOContext *s) { return ::url_feof(s); }
                                                   ^~~~~~~~
DllAvFormat.h:117:51: note: suggested alternative: 'avio_feof'
   virtual int url_feof(AVIOContext *s) { return ::url_feof(s); }
                                                   ^~~~~~~~
                                                   avio_feof
make: *** [Makefile:48: BitstreamConverter.o] Error 1


I created a patch according to the solution presented here [2]. With this patch, omxplayer can be built and used successfully.

[1] https://github.com/popcornmix/omxplayer/issues/633
[2] https://github.com/popcornmix/omxplayer/pull/634/commits/d6c72cc2ec4210765c8321f65b747eed884f5765
Comment 1 Mathias Vaterlaus 2023-06-26 09:17:40 UTC
Created attachment 864626 [details]
emerge --info

Sorry, I forgot to attach the emerge --info output.
Comment 2 James Le Cuirot gentoo-dev 2023-10-22 22:05:37 UTC
I've been trying to bring raspberrypi-userland up to date and came to update this accordingly. It may have been fixed for ffmpeg 4, but we're up to 6 now, the breakage looks a lot heavier, and upstream has basically said this project is obsolete. This is only going to get worse, so I think the only option is to last-rite this. That's a shame, because it may still be the best option on older Pi models, but I don't know how it stacks up against mpv. I don't have an older Pi to try it with.
Comment 3 Mathias Vaterlaus 2023-10-23 13:59:51 UTC
@james: I could test mpv against an older Pi, maybe i have a Pi 2 somewhere at my workplace. Does it make sense to test it against a Pi 1, since it is somehow limited in Memory. Also, omxplayer needs fbdev driver to work correctly. I couldn't get it to work with the v3d driver.
Comment 4 James Le Cuirot gentoo-dev 2023-10-23 21:17:05 UTC
Thanks for helping out. There's no point testing Pi 1 if you have Pi 2 in this case. I would have thought omxplayer would work with v3d, but I suppose it doesn't matter now.