[MPlayer-dev-eng] [PATCH] RTMP seek support
Howard Chu
hyc at highlandsun.com
Wed May 26 15:41:22 CEST 2010
Diego Biurrun wrote:
> On Tue, May 25, 2010 at 06:09:13PM -0700, Howard Chu wrote:
>> Reimar Döffinger wrote:
>>> On Sun, Mar 28, 2010 at 08:02:16PM -0700, Howard Chu wrote:
>>>> As a followon to this patch
>>>> https://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2010-March/086051.html
>>>>
>>>> this patch is needed for mplayer to support rtmp seek. (The ffmpeg
>>>> patch just gets it working for ffplay.)
>>>
>>> You will have to make sure the stream is actually lavf, and even then
>>> I'd like to think some more if this is not too hackish.
>>> However, I think first we'd need a configure patch to actually allow
>>> building with librtmp (or are you building against external FFmpeg?
>>> Even in that case rtmpe etc. should probably be added to the list
>>> of stream_ffmpeg formats so rtmpe:// works, not just ffmpeg://rtmpe://).
>>
>> Here's a patch for configure. It seems to be missing something though; if
>> building against an external FFmpeg then really this switch will have no
>> effect. Unless we decide to add the stream_rtmp.c as well. The code in
>> this email has gone a bit stale
>>
>> http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/2010-March/063988.html
>>
>> and would need to be updated.
>>
>> --- configure (revision 31217)
>> +++ configure (working copy)
>> @@ -252,6 +252,7 @@
>> --enable-nemesi enable Nemesi Streaming Media [autodetect]
>> + --enable-librtmp enable RTMPDump librtmp input [autodetect]
>
> RTMPDump librtmp sounds redundant to me.
Yeah, I probably spent more time thinking about this than any other part of
the patch.
>> @@ -7190,6 +7194,24 @@
>>
>> +echocheck "RTMPDump RTMP support (librtmp)"
>> +if test "$_librtmp" = auto&& test "$_network" = yes ; then
>> + _librtmp=no
>> + if $_pkg_config --exists librtmp ; then
>> + extra_cflags="$extra_cflags $($_pkg_config --cflags librtmp)"
>> + extra_ldflags="$extra_ldflags $($_pkg_config --libs librtmp)"
>> + _librtmp=yes
>
> Can you make a simple check instead of relying on pkg-config?
OK. But this way if librtmp depends on other libraries (like -lssl or
-lgnutls) they will have to be provided explicitly with --extra-libs.
>> +if test "$_librtmp" = yes&& test "$_network" = yes; then
>
> You don't need to test _network again here.
Actually it is, to catch an explicit --enable-librtmp --disable-network. All
of the other _network-dependent options do this check as well.
> The default indentation in configure is 2 spaces.
OK.
>> @@ -9054,6 +9076,7 @@
>> $def_inet6
>> $def_inet_aton
>> $def_inet_pton
>> +$def_librtmp
>> $def_live
>> $def_nemesi
>> $def_network
>> @@ -9202,7 +9225,6 @@
>> #define CONFIG_FFSERVER 0
>> #define CONFIG_GPL 1
>> #define CONFIG_GRAY 0
>> -#define CONFIG_LIBRTMP 0
>> #define CONFIG_LIBVORBIS 0
>> #define CONFIG_POWERPC_PERF 0
>> #define CONFIG_SMALL 0
>
> IIUC librtmp is used through FFmpeg, so the def_librtmp variable should
> be placed in the FFmpeg section of config.h.
OK.
--
-- Howard Chu
CTO, Symas Corp. http://www.symas.com
Director, Highland Sun http://highlandsun.com/hyc/
Chief Architect, OpenLDAP http://www.openldap.org/project/
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: dif.txt
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20100526/6c5a7204/attachment.txt>
More information about the MPlayer-dev-eng
mailing list