Diego Biurrun
a92be9b856
Replace memset(0) by zero initializations.
...
Also remove one pointless zero initialization in rangecoder.c.
13 years ago
Martin Storsjö
c4584f3c1f
rtpenc: Allow packetizing H263 according to the old RFC 2190
...
According to newer RFCs, this packetization scheme should only
be used for interfacing with legacy systems.
Implementing this packetization mode properly requires parsing
the full H263 bitstream to find macroblock boundaries (and knowing
their macroblock and gob numbers and motion vector predictors).
This implementation tries to look for GOB headers (which
can be inserted by using -ps <small number>), but if the GOBs
aren't small enough to fit into the MTU, the packetizer blindly
splits packets at any offset and claims it to be a GOB boundary
(by using Mode A from the RFC). While not correct, this seems
to work with some receivers.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Alex Converse
7181c4edee
cosmetics: Remove extra newlines at EOF
13 years ago
Anton Khirnov
1d911bb404
lavf: remove disabled FF_API_SDP_CREATE cruft
13 years ago
Martin Storsjö
0ebd4083e1
sdp: Restore the original mp4 format h264 extradata if converted
...
If the sdp is generated before the rtp muxer is initialized
(e.g. as when called from the rtsp muxer), this has to be done,
otherwise the rtp muxer doesn't know that the input really is
in mp4 format.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Martin Storsjö
04403ec2e4
rtpenc: Add support for G726 audio
...
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
357db4c263
lavc: use avpriv_ prefix for ff_split_xiph_headers.
...
It's used in lavf.
13 years ago
Anton Khirnov
59a9a23581
lavc: use avpriv_ prefix for some mpeg4audio symbols used in lavf.
...
Specifically, ff_mpeg4audio_sample_rates, ff_mpeg4audio_get_config and
ff_copy_pce_data
13 years ago
Rafaël Carré
9152880e95
rtpenc: Add a payload type private option
...
Specifying the payload type is useful when the type number has
already been negotiated before creating the stream, for example
in SIP protocol.
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Rafaël Carré
0c378ea1f7
rtp: factorize dynamic payload type fallback
...
Move the identical code in rtp_write_header() and
ff_sdp_write_media() inside ff_rtp_get_payload_type()
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Martin Storsjö
9c434ce826
sdp: Reindent after the previous commit
...
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Juan Carlos Rodriguez
0832122880
rtpenc: MP4A-LATM payload support
...
This is enabled with an AVOption on the RTP muxer. The SDP
generator looks for a latm flag in the rtpflags field.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Martin Storsjö
0558e266a2
sdp: Allow passing an AVFormatContext to the SDP generation
...
Options from the AVFormatContext can be read for modifying
the generated SDP.
Signed-off-by: Martin Storsjö <martin@martin.st>
14 years ago
Anton Khirnov
d2d67e424f
Remove all uses of now deprecated metadata functions.
14 years ago
Anton Khirnov
c234d40bd9
lavf: rename a parameter of av_sdp_create from buff->buf
...
This is more consistent with the rest of the API.
14 years ago
Anton Khirnov
c3675dfe1e
lavf: rename avf_sdp_create to av_sdp_create.
...
The new name is more consistent with the rest of the API.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
ab0287fcbd
Move find_info_tag to lavu and add av_ prefix to it
...
Signed-off-by: Janne Grunau <janne-ffmpeg@jannau.net>
14 years ago
Martin Storsjö
9b14ec5fae
sdp: Add a framesize attribute to H.263 SDP descriptions
...
While not mentioned in RFC 4629, this is required for H.263 in
3GPP TS 26.234. It is in practice required for playback with
Android stagefright and on Samsung bada phones.
Originally committed as revision 26062 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
095e5c0b6d
sdp: Conditionally compile code using AF_INET6
...
Should fix compilation in environments unaware of IPv6.
Originally committed as revision 25528 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
6898677e54
sdp: Only specify the TTL for IPv4 addresses
...
According to RFC 4566, a TTL value must not be present for IPv6 multicast.
Originally committed as revision 25412 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
87b2b40a33
Reindent
...
Originally committed as revision 25390 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
10105c9b29
sdp: Don't require the explicit ?multicast option
...
No such option is used anywhere else. Instead, detect the address type.
Originally committed as revision 25389 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Martin Storsjö
0048a2a8d3
Handle G.722 in RTP, and all the exceptions mandated in RFC 3551
...
Originally committed as revision 25125 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Andreas Öman
f06d6c751f
Make stub version of ff_sdp_write_media() match its prototype
...
Used when compiled without CONFIG_RTP_MUXER
Fallout from r24915
Originally committed as revision 24935 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
5a8693ef59
Reindent
...
Originally committed as revision 24919 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
7ad526d288
Simplify resolve_destination in sdp.c further, now that we don't enforce IPv4 any longer
...
Originally committed as revision 24918 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
1272ae7e50
10l, add new function parameters to resolve_destination for !config_network too
...
Originally committed as revision 24917 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
cc83027c67
Reindent, rewrap lines
...
Originally committed as revision 24916 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
7ad1dc5447
Properly handle IPv6 addresses in the SDP generation
...
Originally committed as revision 24915 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
7b18d94cb3
Add RTP packetization of VP8
...
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24797 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
b5c4bb989d
rtpenc_xiph: Set the ident value via a define
...
Originally committed as revision 24749 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Josh Allmann
91af5601c1
Add RTP packetization of Theora and Vorbis
...
Patch by Josh Allmann, joshua dot allmann at gmail
Originally committed as revision 24735 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
Luca Abeni
ede13f55f0
Use a bitstream filter for converting the extradata syntax when generating an SDP.
...
This allows to generate correct SDPs for H.264 video in "MP4 syntax".
Originally committed as revision 23572 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
0341b6994a
Make ff_sdp_write_media a lavf-internal function
...
This is in preparation for RTP hinting in the MOV muxer, where
it needs to be able to create SDP fragments for each media stream.
Originally committed as revision 23160 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ö
ddbeb95447
Add a lowercase parameter to ff_data_to_hex
...
Originally committed as revision 22665 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
Martin Storsjö
51a269cd97
Make sure the destination address is written as an IP address in the SDP
...
Patch by Martin Storsjo (martin AT martin DOT st)
Originally committed as revision 21163 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
9ea7f03aa0
Always set the destination address even if no port was found.
...
Patch by Martin Storsjo (martin AT martin DOT st)
Originally committed as revision 21057 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
c47b0738b5
Check the URL used for the SDP destination.
...
Patch by Martin Storsjo (martin AT martin DOT st)
Originally committed as revision 21056 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Luca Abeni
6399c17d54
Use different dynamic payload types for audio and video.
...
Originally committed as revision 20940 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Luca Abeni
f877954fd3
Use RTP_PT_PRIVATE in sdp.c instead of hardcoding 96.
...
Originally committed as revision 20922 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Luca Abeni
56e6f8309e
Emit the SDP lines in the correct order
...
Originally committed as revision 20262 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Martin Storsjö
08e696c0b2
Add support for AMR audio in the RTP muxer
...
patch by Martin Storsjö (martin AT martin DOT st)
Originally committed as revision 18375 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Martin Storsjö
9edfaf3c6c
Add support for H.263 video in the RTP muxer
...
patch by Martin Storsjö (martin AT martin DOT st)
Originally committed as revision 18347 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Martin Storsjö
99f373f3a6
Only insert the SPS and PPS NALs in sprop-parameter-sets
...
Patch by Martin Storsjö (martin AT martin DOT st)
Originally committed as revision 18343 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Luca Abeni
0550b58f4e
Rename rtp_get_payload_type() to ff_rtp_get_payload_type(), as it is not
...
a static function
Originally committed as revision 17364 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
7be75dd7df
cosmetics: comment grammar/spelling fixes
...
Originally committed as revision 17077 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago