Anton Khirnov
d754ed4172
riffenc: take an AVStream instead of an AVCodecContext
...
It will be useful in the following commits.
Also, rename the AVCodecContext pointer name from 'stream' to 'codec'.
11 years ago
Anton Khirnov
f792d3cbb8
lavf: add the notimestamps flag to the muxers missing it
11 years ago
Anton Khirnov
cfbdd7ffbd
rtpenc: base max_frames_per_packet on avg_frame_rate, not codec timebase
...
Fall back to 1 (which is what is used for most cases anyway) when the
framerate is not set.
11 years ago
Anton Khirnov
894682a973
Remove avserver.
...
It has not been properly maintained for years and there is little hope
of that changing in the future.
It appears simpler to write a new replacement from scratch than
unbreaking it.
11 years ago
Josh Allmann
74bc945805
flvenc: Don't over-count metadata.
...
Over-counting occurs if framerate is not set.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
11 years ago
Michael Niedermayer
2fbdfba0f2
avformat/flvdec: Support live flv / NGINX RTMP streams
...
Fixes Ticket3553
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
7b7afaf849
avformat/dump: put copyright back from the file from which dump.c was split out
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
c1b15c16ef
avformat/smoothstreamingenc: Use av_mallocz_array()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
153b5fb2fd
avformat/framecrcenc: print the checksum and size of extradata as well
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
86a9370e2b
avformat/mpc: attempt to allocate a packet that is not smaller than the data inside it
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Vittorio Giovara
711aa2a827
lavf: dump stream side data when probing
11 years ago
Vittorio Giovara
2dc265619a
lavf: group dump functions together
11 years ago
Diego Biurrun
dca7ba4bff
Remove some unnecessary CONFIG_FOO_COMPONENT ifdefs
...
The files are only ever compiled if that condition is true.
11 years ago
Michael Niedermayer
27b8ef5bb7
avformat/oggparsevorbis: Dont attempt to calculate timestamps from gp=0
...
Fixes Ticket3710
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Luca Barbato
f121dbd9f7
mpegts: Provide an option to override the pcr period
...
Certain hardware demuxer have specific restrictions for PCR periodicity.
11 years ago
Luca Barbato
3f7e94eccd
mpegts: Move the option section to the bottom
...
Makes it consistent with the rest of the formats and ease usage
of macros constants for the defaults.
11 years ago
Michael Niedermayer
3a76d7f73d
avformat/nutenc: cleaner version check
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
d7f398c542
avformat/nutenc: Fix error handling in nut_write_packet()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
0f0f626048
avformat/rawdec: Increase probe score when "Content-Type: image/jpeg" is found at the file start
...
Based-on code by: Carl Eugen Hoyos and Andrey Utkin
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
5482780a3b
Allow values >31bit for -analyzeduration.
11 years ago
Michael Niedermayer
ec2b6ee59a
avformat/utils: dont wait for a first dts on demuxers which have AVFMT_NOTIMESTAMPS set
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
b45a451dbe
avformat/rawdec: mark raw vc1 and mjpeg as having no timestamps
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
65571ee4e3
avformat/rawdec: add FF_DEF_RAWVIDEO_DEMUXER2, which allows specifying the flags
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
2351ea8a2e
avformat/nutenc: Fix error handling in write_sm_data()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
958168d505
lavf/mpegts: Reduce number of "Predefined SLConfigDescriptor" warnings shown.
11 years ago
Michael Niedermayer
2d3842f541
avformat: add mjpeg_probe()
...
Fixes Ticket3679
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
52e563bb2f
avformat/cavsvideodec: Fix probing when the file extension is avs
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
7c3af60016
avformat/movenc: use av_malloc(z)_array()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
b2d1e22c2a
avformat/udp: fix build on MINIX
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
74760883fc
avformat/flvenc: Do not allow creating h263/mpeg4 in flv without unofficial format extensions being enabled.
...
Found-by: Jean-Baptiste Kempf <jb@videolan.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Vignesh Venkatasubramanian
c80181352c
lavf/matroskaenc: Fix Cues on Audio for WebM DASH
...
Fix a change that was broken by [1]. Cues must be added for audio frames
on cluster start for WebM when the DASH flag is passed. Restoring
correct functionality.
[1] http://goo.gl/xYLq7Z
Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Martin Storsjö
103243ca64
oggenc: Set the right AVOption size for the pref_duration option
...
On big endian machines, the default value set via the faulty
AVOption ended up as 2^32 times too big.
This fixes the fate-lavf-ogg test which currently is broken on
big endian machines, broken since 3831362
. Since that commit,
a final zero-sized packet is written to the ogg muxer in that test,
which caused different flushing behaviour on little and big endian
depending on whether the pref_duration option was handled as it
should or not.
CC: libav-stable@libav.org
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
27b893b231
avformat/mov: fix "warning: variable altitude set but not used" warning
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Martin Storsjö
e7d6d0bf3c
mov: Export geotag metadata fields
...
The '?xyz' form is used by android devices (and according to apple
mailing list archives, also by older iOS devices). The 'loci' field
(defined in 3GPP 26.244) is used by recent iOS devices.
Even though the loci field can contain an altitude, it was plain
0 in my sample. Just export longitude and latitude, in a string
format matching the one used by the '?xyz' metadata field.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Carl Eugen Hoyos
d58bcc1921
Allow >2G for skip_initial_bytes.
11 years ago
Martin Storsjö
95b7fa1729
oggenc: Support flushing the muxer
...
This allows the caller to write all buffered data to disk, allowing
the caller to know at what byte position in the file a certain
packet starts (any packet written after the flush will be located
after that byte position).
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Michael Niedermayer
571ab8344a
avformat/avidec: allow rounding errors between scale/rate and timebase
...
Fixes Ticket3670
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Lou Logan
88f2586adb
fix various typos
...
Signed-off-by: Lou Logan <lou@lrcd.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
72e4ceeb79
avformat/asfdec: Use a parser for mpeg4-asp to find has_b_frames
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
763e714442
Do not limit blocksize when reading PCM from aiff.
...
Fixes ticket #3695 .
11 years ago
Michael Niedermayer
1a426d5404
avformat/utils/avformat_find_stream_info: Move max_analyze_duration setup out of the packet loop
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
6f6edfe1c0
avformat/utils: Call ff_rfps_add_frame() only for video
...
This avoids some unneeded computations
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
bfb3ed1a9d
avformat/mux: Dont leave stale side data pointers in ff_interleave_add_packet()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Michael Niedermayer
74ece44373
avformat/mux: fix memleak of side data in flac fate tests
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
11 years ago
Carl Eugen Hoyos
f284e85714
Report "unknown codec" instead of "unspecifed size" if the codec is unknown.
11 years ago
Uwe L. Korn
59cb5747ec
rtmpproto: read metadata to set correct FLV header
...
In the presence of no metadata, do not set any stream flag in the FLV
header but let the demuxer handle the detection and creation of streams
as data arrives.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Uwe L. Korn
3b18857ab3
rtmppkt: Add method to read an AMF string that is not prefixed by its type
...
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Uwe L. Korn
a1859032e3
flvdec: Do not default to a video and audio stream
...
If no streams were indicated in the FLV header, do not automatically
allocate by default a video and an audio stream. Instead, in the case
that the header did not indicate the presence of any data, allocate no
stream until data actually arrives for one type.
Signed-off-by: Martin Storsjö <martin@martin.st>
11 years ago
Anton Khirnov
e19d48dfce
flac muxer: support reading updated extradata from side data
11 years ago
Anton Khirnov
0097cbea69
flac muxer: accept only STREAMINFO extradata
...
The other format (full flac header blocks) should not be exported by any
demuxers anymore.
This allows to drop an avpriv_ function and also simplify the following
commits.
11 years ago