[SOLVED] FFmpeg confusion

Kernels & Hardware, configuring network, installing services

[SOLVED] FFmpeg confusion

Postby laxmidd50 » 2017-12-27 17:44

Hello,
The system I am working with is Debian Jessie (cannot change for now).
I am trying to use a library that requires FFmpeg. When loading the .so it says:
Code: Select all
error while loading shared libraries: libswscale-ffmpeg.so.3: cannot open shared object file: No such file or directory

It also depends on libavcodec-ffmpeg56, libavformat-ffmpeg56, libswscale-ffmpeg3, and libavutil-ffmpeg54
I added jessie-backports to my sources.list, and installed ffmpeg. This gave me libavcodec.so.57, libavformat.so.57, libswscale.so.4, and libavutil.so.55. All of these versions are one version newer than what I need. Also, the packages don't end in -ffmpeg. I did try to make symbolic links like so:
Code: Select all
libswscale-ffmpeg.so.3 -> libswscale.so.4

But that, predictably, didn't work.
Code: Select all
/usr/lib/i386-linux-gnu/libswscale-ffmpeg.so.3: version `LIBSWSCALE_FFMPEG_3' not found (required by /opt/bf/lib/libptgreyvideoencoder.so.1)


I then installed "libswscale3" from the repository and created a symbolic link:
Code: Select all
sudo ln libswscale.so.3 libswscale-ffmpeg.so.3

With the same results:
Code: Select all
/usr/lib/i386-linux-gnu/libswscale-ffmpeg.so.3: version `LIBSWSCALE_FFMPEG_3' not found (required by /opt/bf/lib/libptgreyvideoencoder.so.1)

Though, I think this libswscale3 in the repo is not actually from ffmpeg, but libav?

I read through this thread: viewtopic.php?f=6&t=129299&p=621320&hilit=+libswscale+ffmpeg+#p621320
But am still confused about this. Somebody mentioned snapshot.debian.org, but that is not the right way to do it and I should edit out the -ffmpeg dependencies, but I'm not sure how.
Any help on this would be appreciated, Thanks!
Last edited by laxmidd50 on 2017-12-28 15:10, edited 2 times in total.
laxmidd50
 
Posts: 5
Joined: 2017-12-27 16:28

Re: FFmpeg confusion

Postby peter_irich » 2017-12-27 18:15

Is libswscale-dev installed?

Peter.
peter_irich
 
Posts: 1233
Joined: 2009-09-10 20:15
Location: Saint-Petersburg, Russian Federation

Re: FFmpeg confusion

Postby laxmidd50 » 2017-12-27 18:21

Is libswscale-dev installed?

No. I just installed it, didn't help.
laxmidd50
 
Posts: 5
Joined: 2017-12-27 16:28

Re: FFmpeg confusion

Postby debiman » 2017-12-27 18:34

laxmidd50 wrote:I am trying to use a library that requires FFmpeg.

what is this mysterious library, how did it find its way onto your system, and how are you using it?
User avatar
debiman
 
Posts: 2900
Joined: 2013-03-12 07:18

Re: FFmpeg confusion

Postby laxmidd50 » 2017-12-27 18:43

what is this mysterious library, how did it find its way onto your system, and how are you using it?

Yes sorry. https://www.ptgrey.com/spinnaker-sdk
It's a proprietary sdk for a camera. It's closed source, and I only have the .so's. It seems that they developed this for Ubuntu 16.04, so that is where the incompatibilities come from. I will attempt to contact them also, but I don't expect them to be helpful unfortunately. This is an existing system I'm writing software for which has to stay on Jessie.
I'm writing software to use the camera, but I can't even load the runtime dependencies right now.
laxmidd50
 
Posts: 5
Joined: 2017-12-27 16:28

Re: FFmpeg confusion

Postby stevepusser » 2017-12-27 19:42

You need a version of this backported for Jessie:

http://snapshot.debian.org/package/ffmp ... .6-1:2b:b3

or if that doesn't work, the ffmpeg version in Ubuntu 16.04 ported over to Jessie.

I'll see it I can easily set it up in an OBS Jessie repository...

Yeah, not that difficult. I'll port over the Ubuntu 16.04 ffmpeg to provide the exact match. Building now...
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 9991
Joined: 2009-10-06 05:53

Re: FFmpeg confusion

Postby laxmidd50 » 2017-12-27 20:16

Yes thank you, I think that makes sense. It needs more than just the libswscale-ffmpeg3 though. It also needs libavcodec-ffmpeg56, libavformat-ffmpeg56, and libavutil-ffmpeg54.
Edit: Just saw your edit, I think that would work, thanks!
laxmidd50
 
Posts: 5
Joined: 2017-12-27 16:28

Re: FFmpeg confusion

Postby stevepusser » 2017-12-27 20:20

laxmidd50 wrote:Yes thank you, I think that makes sense. It needs more than just the libswscale-ffmpeg3 though. It also needs libavcodec-ffmpeg56, libavformat-ffmpeg56, and libavutil-ffmpeg54.


Those will all get built from the Ubuntu source package and appear in the OBS repo when finished. The numbering scheme allows these to be added to your system without breaking other packages that depend on something like libavcodec55, for example.


We need to be grateful to SUSE for providing this free service; here's the current progress:

https://build.opensuse.org/project/show ... ert:ffmpeg
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 9991
Joined: 2009-10-06 05:53

Re: FFmpeg confusion

Postby stevepusser » 2017-12-27 20:48

OK, 32-bit's done, so the instructions were generated. 64-bit should be done pretty soon.

To add the repo, run this command in a root terminal. Sudo users can become root with "sudo -i".

Code: Select all
echo 'deb http://download.opensuse.org/repositories/home:/stevepassert:/ffmpeg/Debian_8.0/ /' > /etc/apt/sources.list.d/ffmpeg.list


Then, as a normal user, download the repository key:

Code: Select all
rm -f Release.key && wget -nv https://download.opensuse.org/repositories/home:stevepassert:ffmpeg/Debian_8.0/Release.key -O Release.key


Switch back to root in the terminal, then install the key and update your package database to see the new packages:

Code: Select all
apt-key add - < Release.key
apt-get update
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 9991
Joined: 2009-10-06 05:53

Re: FFmpeg confusion

Postby laxmidd50 » 2017-12-28 15:06

It worked perfectly, thank you for all your help!

For future deployment, should I copy these off to a local repository? I imagine this will never make it's way into an official jessie repo, correct?
laxmidd50
 
Posts: 5
Joined: 2017-12-27 16:28

Re: [SOLVED] FFmpeg confusion

Postby stevepusser » 2017-12-29 00:07

No, they'll never be in an official repo. Do you have all the debs already? Usually they are on your machine if you installed from my repo in /var/cache/apt/archives, but you can also just surf to the repo address in the instructions and manually download them, though ffmpeg generates a lot of packages for sure.
The MX Linux repositories: Backports galore! If we don't have something, just ask and we'll try--we like challenges. New packages: Kdenlive 18.08.1, Pale Moon 28.1.0, wine-staging 3.17, qBittorrent 4.1.3, Liquorix kernel 4.18-13, Audacity 2.3.0
User avatar
stevepusser
 
Posts: 9991
Joined: 2009-10-06 05:53


Return to System configuration

Who is online

Users browsing this forum: No registered users and 3 guests

fashionable