Mans Rullgard
efa6ce9982
ffserver: put gcc attribute under proper ifdef
14 years ago
Reinhard Tartler
bf7aa642c3
ffserver: cleanup
...
remove the trivial function do_switch_stream as it doesn't help to make
the code easier to understand.
(cherry picked from commit 305ca590cf
)
14 years ago
Reinhard Tartler
305ca590cf
ffserver: cleanup
...
remove the trivial function do_switch_stream as it doesn't help to make
the code easier to understand.
14 years ago
Luca Barbato
2a12706710
Unbreak ffserver
...
Make sure the sample_aspect_ratio is 0 and not 0/0.
Originally committed as revision 26254 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
77223c5388
rtsp: Pass the method name to ff_rtsp_parse_line
...
Originally committed as revision 26191 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
6e872935db
Implement get_preset_file() in cmdutils.h and use it to factorize code
...
from ffmpeg.c and ffserver.c.
Originally committed as revision 25679 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
aff8810172
ffserver: use a local MAX_STREAMS limit
...
Originally committed as revision 25495 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Aurelien Jacobs
9389b925f1
ffserver: fix prepare_sdp_description() to dynamically allocate streams
...
Originally committed as revision 25494 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
126b638ea0
Deprecate av_parse_video_frame_size() and av_parse_video_frame_rate()
...
in favor of the newly added corresponding functions
av_parse_video_size() and av_parse_video_rate() defined in
libavcore/parseutils.h.
This change also adds a linking-time dependency of libavcodec and of
libavfilter on libavcore.
Originally committed as revision 24518 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Howard Chu
0aee2a57c8
Also use 503 for bandwidth limit exceeded
...
Originally committed as revision 24107 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Howard Chu
2a22187f39
Fix "server too busy" status code
...
Originally committed as revision 24105 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
f3bfe388b5
Make ff_url_split() public
...
ff_url_split() is retained as an alias, as it was used by ffserver,
to avoid breaking ABI compatibility with it.
Originally committed as revision 23822 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
5634f30c4a
ffserver: Use avcodec_copy_context instead of manually copying an AVCodecContext
...
Originally committed as revision 23692 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Howard Chu
d9aac26761
When reading a stream, should retry on EAGAIN instead of just failing. Also,
...
when reading a live feed, should retry regardless of whether any client has
opened the stream.
Originally committed as revision 23621 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Howard Chu
8190f62f9b
Support presets in ffserver.conf
...
Originally committed as revision 23524 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
f475f35fdd
ffserver: Calculate cur_pts using first_pts as origin instead of ist->start_time
...
This fixes cases where ist->start_time wasn't initialized. This also makes
cur_pts calculated against the same origin for all streams.
Originally committed as revision 23450 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
3b963552bc
ffserver: Allow floating point audio bit rates
...
This allows setting bit rates that aren't an exact multiple of 1000.
Originally committed as revision 23419 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
577ee94871
ffserver: Send a Content-Base header in the reply to RTSP DESCRIBE requests
...
This is needed for QuickTime Player to be able to connect properly.
Originally committed as revision 23325 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
111c935980
ffserver: Fix one of the codec parameter checks
...
This is probably what was originally intended; the codec pointers are all NULL.
Fix by Howard Chu, hyc at highlandsun dot com
Originally committed as revision 23295 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
a5ba4cedf2
ffserver: Fix streaming with more than one stream
...
Fix by Howard Chu, hyc at highlandsun dot com
Originally committed as revision 23294 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Howard Chu
e175b55edf
ffserver: Fix extradata handling
...
Patch by Howard Chu, hyc at highlandsun dot com
Originally committed as revision 23293 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
c966c91279
ffserver: Fix an out of bounds read
...
Fix by Howard Chu, hyc at highlandsun dot com
Originally committed as revision 23292 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
9cc9a15510
ffserver: Fix another memory leak
...
Don't allocate st->codec, it will be overwritten by the memcpy a few
lines further down.
Fix by Howard Chu, hyc at highlandsun dot com
Originally committed as revision 23291 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Howard Chu
ea4f8aabab
ffserver: Plug some memory leaks
...
Patch by Howard Chu, hyc at highlandsun dot com
Originally committed as revision 23290 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
576fb48e6d
Make ff_random_get_seed public, rename to av_get_random_seed, export the header
...
Keep an old ff_ named function for binary compatibility until the
next major bump.
Originally committed as revision 23254 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Howard Chu
686d6f4022
ffserver: Avoid busylooping while reading non-blocking input
...
Patch by Howard Chu, hyc at highlandsun dot com
Originally committed as revision 23210 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
90c9210028
Cosmetics: reindent
...
Originally committed as revision 23156 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Howard Chu
1bf5228eb6
ffserver: Don't set me_method unconditionally
...
Patch by Howard Chu, hyc at highlandsun dot com
Originally committed as revision 23155 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Howard Chu
0156fcf252
ffserver: Write proper GMT date/times in Date headers
...
Patch by Howard Chu, hyc at highlandsun dot com
Originally committed as revision 23154 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
43d09fafd4
ffserver: Make sure a destination URL is set when creating the SDP
...
Debugged by Howard Chu, hyc at highlandsun dot com.
Originally committed as revision 23151 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
2ef6c1242a
Mark av_metadata_set() as deprecated, and use av_metadata_set2()
...
in its place.
av_metadata_set() is going to be dropped at the next major bump.
Originally committed as revision 22961 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
472e12f510
Implement ffserver.c:report_config_error() and a macro for logging
...
error messages / updating the error count.
Originally committed as revision 22960 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
6675a5bf73
Statically initialize ffserver.c:config_filename, simplify.
...
Originally committed as revision 22959 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Luca Barbato
bacde6466c
Make ffserver support rfc3550
...
Originally committed as revision 22907 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Benjamin Larsson
58f48adb51
Add DynamicACL support for FFserver.
...
Originally committed as revision 22815 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
d9521cb119
Fix FFM-based streaming from ffmpeg to ffserver. The basic problem is that
...
we'd memset() the codec context to zero, thereby setting audio input to U8
and video to YUV420P. For most video encoders, that actually works, but for
most audio codecs, it doesn't. This patch changes defaults to those set by
avcodec_context_get_defaults() and have ffmpeg figure out the optimal encoding
format itself if not set explicitely (as it does for the non-ffserver-cases
also).
Originally committed as revision 22751 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Jean-Daniel Dupas
cc947f04cc
Replace all occurences of PKT_FLAG_KEY with AV_PKT_FLAG_KEY.
...
Patch by Jean-Daniel Dupas, devlists shadowlab org
Originally committed as revision 22744 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
2626308abb
Actually parse the auth headers in RTSP
...
Originally committed as revision 22677 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
22f73dccad
Move resolve_host() to ffserver.c
...
This deprecated function is only used by ffserver, yet does not have
a prototype visible there.
In the long term, ffserver should be made IPv6-aware. In the meantime,
this change removes cruft from lavf and fixes some warnings in ffserver.
Originally committed as revision 22329 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
c5c6e67c28
Rename url_split to ff_url_split
...
Since this function isn't in the public API, it should have an ff_ prefix.
Originally committed as revision 22321 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
ffabdaa14a
ffserver: remove bogus comment
...
Originally committed as revision 22303 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
6580d5e377
Remove hacks not required since HAVE_AV_CONFIG_H was unset for the apps
...
Originally committed as revision 22295 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
acd0026c0b
ffserver: do not use intreadwrite.h
...
intreadwrite.h is not part of the public API and should thus
not be used by the ff* applications.
Originally committed as revision 22293 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
fd7bec5e3c
ffserver: use av_stristr()
...
Originally committed as revision 22252 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
19c8c4ecf4
Update to work with chunked encoding HTTP streams (as served by FFmpeg since
...
a few months now). Fixes issue 1738.
Originally committed as revision 22175 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Ronald S. Bultje
3307e6ea86
Prefix non-static RTSP functions with ff_.
...
Originally committed as revision 21974 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Diego Biurrun
7f6a384a4f
Mark http_log() as static; it is only used in this file.
...
Originally committed as revision 21017 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
aa13b573b4
Use av_match_ext() in place of the deprecated match_ext() function.
...
Originally committed as revision 21000 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
0f52ef1a00
Use av_guess_format() in place of the deprecated guess_format().
...
Originally committed as revision 20994 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago