[FFmpeg-devel] [PATCH] lavf: add samba protocol via libsmbclient

Michael Niedermayer michaelni at gmx.at
Sun Jul 13 13:47:46 CEST 2014


On Sun, Jul 13, 2014 at 12:55:47AM +0200, Lukasz Marek wrote:
> On 12.07.2014 22:31, Michael Niedermayer wrote:
> >On Sat, Jul 12, 2014 at 06:20:46PM +0200, Lukasz Marek wrote:
> >>---
> >>  Changelog                  |   1 +
> >>  configure                  |   5 ++
> >>  doc/general.texi           |   1 +
> >>  doc/protocols.texi         |  29 +++++++
> >>  libavformat/Makefile       |   1 +
> >>  libavformat/allformats.c   |   1 +
> >>  libavformat/libsmbclient.c | 207 +++++++++++++++++++++++++++++++++++++++++++++
> >>  7 files changed, 245 insertions(+)
> >>  create mode 100644 libavformat/libsmbclient.c
> 
> Updated patch is attached.
> I also bumped minor version.
> If not further remarks then it can be merged.
> 

>  Changelog                  |    1 
>  configure                  |    5 +
>  doc/general.texi           |    1 
>  doc/protocols.texi         |   29 ++++++
>  libavformat/Makefile       |    1 
>  libavformat/allformats.c   |    1 
>  libavformat/libsmbclient.c |  207 +++++++++++++++++++++++++++++++++++++++++++++
>  libavformat/version.h      |    2 
>  8 files changed, 246 insertions(+), 1 deletion(-)
> 92e135336436a65d9a428a267348230b65bd446e  0001-lavf-add-samba-protocol-via-libsmbclient.patch
> From 0d5df1dcec486521cc9dbae0d29b4b84a068d325 Mon Sep 17 00:00:00 2001
> From: Lukasz Marek <lukasz.m.luki2 at gmail.com>
> Date: Sun, 13 Jul 2014 00:54:23 +0200
> Subject: [PATCH] lavf: add samba protocol via libsmbclient
> 
> Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
> ---
>  Changelog                  |   1 +
>  configure                  |   5 ++
>  doc/general.texi           |   1 +
>  doc/protocols.texi         |  29 +++++++
>  libavformat/Makefile       |   1 +
>  libavformat/allformats.c   |   1 +
>  libavformat/libsmbclient.c | 207 +++++++++++++++++++++++++++++++++++++++++++++
>  libavformat/version.h      |   2 +-
>  8 files changed, 246 insertions(+), 1 deletion(-)
>  create mode 100644 libavformat/libsmbclient.c
> 
> diff --git a/Changelog b/Changelog
> index 87448f3..44c8c79 100644
> --- a/Changelog
> +++ b/Changelog
> @@ -32,6 +32,7 @@ version <next>:
>  - hqx filter (hq2x, hq3x, hq4x)
>  - flanger filter
>  - Image format auto-detection
> +- Samba protocol (via libsmbclient)
>  
>  
>  version 2.2:
> diff --git a/configure b/configure
> index b68e0db..cd18e94 100755
> --- a/configure
> +++ b/configure
> @@ -227,6 +227,7 @@ External library support:
>    --enable-librtmp         enable RTMP[E] support via librtmp [no]
>    --enable-libschroedinger enable Dirac de/encoding via libschroedinger [no]
>    --enable-libshine        enable fixed-point MP3 encoding via libshine [no]
> +  --enable-libsmbclient    enable Samba protocol via libsmbclient [no]
>    --enable-libsoxr         enable Include libsoxr resampling [no]
>    --enable-libspeex        enable Speex de/encoding via libspeex [no]
>    --enable-libssh          enable SFTP protocol via libssh [no]
> @@ -1349,6 +1350,7 @@ EXTERNAL_LIBRARY_LIST="
>      librtmp
>      libschroedinger
>      libshine
> +    libsmbclient
>      libsoxr
>      libspeex
>      libssh
> @@ -2472,6 +2474,7 @@ librtmpe_protocol_deps="librtmp"
>  librtmps_protocol_deps="librtmp"
>  librtmpt_protocol_deps="librtmp"
>  librtmpte_protocol_deps="librtmp"
> +libsmbclient_protocol_deps="libsmbclient gpl"
>  libssh_protocol_deps="libssh"
>  mmsh_protocol_select="http_protocol"
>  mmst_protocol_select="network"
> @@ -4240,6 +4243,7 @@ die_license_disabled_gpl() {
>  
>  die_license_disabled gpl frei0r
>  die_license_disabled gpl libcdio
> +die_license_disabled gpl libsmbclient
>  die_license_disabled gpl libutvideo
>  die_license_disabled gpl libvidstab
>  die_license_disabled gpl libx264
> @@ -4744,6 +4748,7 @@ enabled libquvi           && require_pkg_config libquvi quvi/quvi.h quvi_init
>  enabled librtmp           && require_pkg_config librtmp librtmp/rtmp.h RTMP_Socket
>  enabled libschroedinger   && require_pkg_config schroedinger-1.0 schroedinger/schro.h schro_init
>  enabled libshine          && require_pkg_config shine shine/layer3.h shine_encode_buffer

> +enabled libsmbclient      && require_pkg_config smbclient libsmbclient.h smbc_init

this fails on ubuntu 12.04 (and i suspect on some older debian)
reason is missing smbclient.pc file
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=700643

[...]

-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Those who are best at talking, realize last or never when they are wrong.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140713/8cf4550a/attachment.asc>


More information about the ffmpeg-devel mailing list