[FFmpeg-user] ffmpeg support smb protocols

Taner Sener tanersener at gmail.com
Tue Jun 26 16:25:13 EEST 2018


You should do the same things you do when you try to build ffmpeg;

- set your toolchain paths,
- set CC, CXX, LD, AS, AR variables
- set CFLAGS, CXXFLAGS, LDFLAGS
- in samba source directory run ./configure with parameters similar to
these;

./configure \

    --prefix=<where library build biles will be installed on host>

    --with-pic \

    --with-sysroot=<NDK path>/toolchains/<your toolchain>/sysroot \

    --enable-static \

    --disable-shared \

    --cross-compile \

    --hostcc=<your ABI name, arm-linux-androideabi>


- make & make install

On Tue, 26 Jun 2018 at 15:40, Wang Kiven <kivenerwang at gmail.com> wrote:

> hi Tanner Sener
> i'm sorry,i'm an Android Developer, and i don't know  how to build
> libsmbclient,
> i just use my NDK tools :
>
> /data/ijkplayer/ijkplayer/android/contrib/build/ffmpeg-armv7a/toolchain/bin//arm-linux-androideabi-gcc
> ./libavformat/libsmbclient.c
>
> it build error and error log is that:
>
> kiven at kiven:/data/ijkplayer/ijkplayer/android/contrib/ffmpeg-armv7a$
>
> /data/ijkplayer/ijkplayer/android/contrib/build/ffmpeg-armv7a/toolchain/bin//arm-linux-androideabi-gcc
> ./libavformat/libsmbclient.c
> ./libavformat/libsmbclient.c:21:26: fatal error: libsmbclient.h: No such
> file or directory
>  #include <libsmbclient.h>
>                           ^
> compilation terminated.
>
>
> so, can you give me a help , let me know how to build libsmbclient?
>
>
> 2018-06-26 20:33 GMT+08:00 Wang Kiven <kivenerwang at gmail.com>:
>
> > hi ffmpeg,
> > i did install  libsmbclient-dev package on my Ubuntu System. and then i
> > do the same action on another computer. it also build error.
> > and i use your provided cmd : then it also build error error log : ERROR:
> > frei0r.h header not found
> >
> > 2018-06-26 17:50 GMT+08:00 DopeLabs <dopelabs at dubstep.fm>:
> >
> >> open a new shell or screen and run configure again.
> >>
> >>
> >> ~/github/ffmpeg $ ./configure --enable-shared --enable-gpl
> >> --enable-nonfree --enable-avresample --enable-avisynth --enable-gnutls
> >> --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
> >> --enable-libflite --enable-libfontconfig --enable-libfreetype
> >> --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug
> >> --enable-libmp3lame --enable-libopenjpeg --enable-libopus
> --enable-libpulse
> >> --enable-librtmp --enable-libshine --enable-libsnappy --enable-libsoxr
> >> --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame
> >> --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
> >> --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal
> >> --enable-libdc1394 --enable-libzmq --enable-frei0r --enable-libx264
> >> --enable-libopencv --enable-libsmbclient --enable-version3
> >> ERROR: libsmbclient not found
> >>
> >>
> >> ~/github/ffmpeg $ sudo apt-get install libsmbclient-dev
> >> Reading package lists... Done
> >> Building dependency tree
> >> Reading state information... Done
> >> The following packages were automatically installed and are no longer
> >> required:
> >>   linux-headers-4.4.0-112 linux-headers-4.4.0-112-generic
> >> linux-headers-4.4.0-116 linux-headers-4.4.0-116-generic
> >> linux-headers-4.4.0-119 linux-headers-4.4.0-119-generic
> >>   linux-headers-4.4.0-121 linux-headers-4.4.0-121-generic
> >> linux-headers-4.4.0-124 linux-headers-4.4.0-124-generic
> >> linux-headers-4.4.0-91 linux-headers-4.4.0-91-generic
> >>   linux-image-4.4.0-112-generic linux-image-4.4.0-116-generic
> >> linux-image-4.4.0-119-generic linux-image-4.4.0-121-generic
> >> linux-image-4.4.0-124-generic
> >>   linux-image-extra-4.4.0-112-generic
> linux-image-extra-4.4.0-116-generic
> >> linux-image-extra-4.4.0-119-generic linux-image-extra-4.4.0-121-generic
> >>   linux-image-extra-4.4.0-124-generic
> >> Use 'sudo apt autoremove' to remove them.
> >> The following NEW packages will be installed:
> >>   libsmbclient-dev
> >> 0 upgraded, 1 newly installed, 0 to remove and 129 not upgraded.
> >> Need to get 40.8 kB of archives.
> >> After this operation, 298 kB of additional disk space will be used.
> >> Get:1 http://us.archive.ubuntu.com/ubuntu xenial-updates/main amd64
> >> libsmbclient-dev amd64 2:4.3.11+dfsg-0ubuntu0.16.04.13 [40.8 kB]
> >> Fetched 40.8 kB in 0s (148 kB/s)
> >> Selecting previously unselected package libsmbclient-dev:amd64.
> >> (Reading database ... 528705 files and directories currently installed.)
> >> Preparing to unpack .../libsmbclient-dev_2%3a4.3.1
> >> 1+dfsg-0ubuntu0.16.04.13_amd64.deb ...
> >> Unpacking libsmbclient-dev:amd64 (2:4.3.11+dfsg-0ubuntu0.16.04.13) ...
> >> Setting up libsmbclient-dev:amd64 (2:4.3.11+dfsg-0ubuntu0.16.04.13) ...
> >> [5][02:46:04] dopelabs at sjc2:~/github/ffmpeg $
> >>
> >>
> >> open a new screen
> >>
> >> ~/github/ffmpeg $ ./configure --enable-shared --enable-gpl
> >> --enable-nonfree --enable-avresample --enable-avisynth --enable-gnutls
> >> --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca
> >> --enable-libflite --enable-libfontconfig --enable-libfreetype
> >> --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug
> >> --enable-libmp3lame --enable-libopenjpeg --enable-libopus
> --enable-libpulse
> >> --enable-librtmp --enable-libshine --enable-libsnappy --enable-libsoxr
> >> --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame
> >> --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp
> >> --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal
> >> --enable-libdc1394 --enable-libzmq --enable-frei0r --enable-libx264
> >> --enable-libopencv --enable-libsmbclient --enable-version3
> >>
> >> .....
> >>
> >> Enabled protocols:
> >> async                    file                     httpproxy
> >>   librtmps                 md5                      rtp
> >>   tee
> >> bluray                   ftp                      https
> >>   librtmpt                 mmsh                     sctp
> >>  tls
> >> cache                    gopher                   icecast
> >>   librtmpte                mmst                     srtp
> >>  udp
> >> concat                   hls                      librtmp
> >>   libsmbclient             pipe                     subfile
> >>   udplite
> >> crypto                   http                     librtmpe
> >>  libssh                   prompeg                  tcp
> >> unix
> >> data
> >>
> >>
> >> ........
> >>
> >>
> >> Enabled indevs:
> >> alsa                     lavfi                    openal
> >>  oss                      pulse                    v4l2
> >>  xcbgrab
> >> fbdev                    libdc1394
> >>
> >> Enabled outdevs:
> >> alsa                     caca                     fbdev
> >>   oss                      pulse                    v4l2
> >>
> >> License: nonfree and unredistributable
> >> libavutil/avconfig.h is unchanged
> >> libavcodec/bsf_list.c is unchanged
> >> [3][02:46:40] dopelabs at sjc2:~/github/ffmpeg $
> >> [3][02:46:40] dopelabs at sjc2:~/github/ffmpeg $ make -j 8
> >>
> >>
> >> .....
> >>
> >>
> >> > On Jun 26, 2018, at 2:42 28AM, Wang Kiven <kivenerwang at gmail.com>
> >> wrote:
> >> >
> >> > add config log.
> >> >
> >> > 2018-06-26 17:24 GMT+08:00 Wang Kiven <kivenerwang at gmail.com>:
> >> >
> >> >> and i use system platform is ubuntu16.04 and then i did install
> >> >> libsmbclient-dev library.
> >> >>
> >> >> 2018-06-26 17:23 GMT+08:00 Wang Kiven <kivenerwang at gmail.com>:
> >> >>
> >> >>> hi manager,
> >> >>>   i'm building ffmpeg so  library for android. and now , i find my
> >> >>> ffmpeg so library don't support play video from smb address. so, i
> >> >>> recompile the ffmpeg project and add config :
> >> >>> --enable-libsmbclient, but it build error :error info : ERROR :
> >> smbclient
> >> >>> not find.can you give me help?
> >> >>>
> >> >>
> >> >>
> >> > <config.log>_______________________________________________
> >> > ffmpeg-user mailing list
> >> > ffmpeg-user at ffmpeg.org
> >> > http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >> >
> >> > To unsubscribe, visit link above, or email
> >> > ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> >>
> >> _______________________________________________
> >> ffmpeg-user mailing list
> >> ffmpeg-user at ffmpeg.org
> >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
> >>
> >> To unsubscribe, visit link above, or email
> >> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".
> >
> >
> >
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list