Georgi Chorbadzhiyski
69688e71bc
Add service_provider and service_name metadata
...
This patch adds support in mpegts muxer for using service_provider and
service_name metadata to set service_provider_name and service_name
fields in SDT.
Example usage:
ffmpeg -i file.ts -f mpegts -re -acodec copy -vcodec copy -f mpegts \
-metadata service_provider="Some provider" \
-metadata service_name="Some Channel" \
"udp://239.0.70.2:5000?pkt_size=1316&ttl=1"
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Tomas Härdin
66be80d610
mpegtsenc: Improve PCR generation and output
...
This fixes PCR drift due to accumulating TS_PACKET_SIZE*8*90000LL/ts->mux_rate each packet, due to rounding errors when mux_rate does not evenly divide 135360000.
This patch also increases the PCR precision to 27 MHz from 90 kHz and takes the location of the PCR data into account (+11 bytes according to the spec).
Originally committed as revision 25864 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Tomas Härdin
1620939022
mpegtsenc: Indent
...
Originally committed as revision 25222 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Tomas Härdin
d1ac03517e
mpegtsenc: Write subtitle extradata if set
...
Originally committed as revision 25221 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Baptiste Coudurier
ef011e6d58
In mpegts muxer, fix rbsp trailing bits in AUD nal, fixes issue #2122
...
Originally committed as revision 24449 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
8fc0162ac4
Add av_ prefix to bswap macros
...
Originally committed as revision 24170 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
efdccce500
In mpegts muxer, print VBR instead of dummy 1 when displaying muxrate
...
Originally committed as revision 24125 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
ea59f489b0
mpegtsenc: allocate correct size for PID table
...
Originally committed as revision 23951 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Mike Scheutzow
5fd4857354
Allow setting streamid when muxing mpegts.
...
Patch by Mike Scheutzow, scheutzow alcatel-lucent com
Originally committed as revision 23918 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
9a2cb05ff9
Move the internal function declarations in avformat.h to internal.h.
...
Originally committed as revision 22843 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
2874c81cc8
Replace all remaining occurrences of AVERROR_NOMEM with
...
AVERROR(ENOMEM).
AVERROR_NOMEM is deprecated and will be dropped at the next libavutil
major bump.
Originally committed as revision 22791 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
Baptiste Coudurier
83c2bc7abb
In mpegts muxer, free adts context and temporary data
...
Originally committed as revision 22428 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
e3433702ae
reindent
...
Originally committed as revision 22427 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
8fdd542ce4
In mpegts muxer, write adts header if aac bitstream does not contain it
...
Originally committed as revision 22355 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
e17d77bb67
In mpegts muxer, search for h264 aud nal, it might not be the first nal.
...
Improve ther error message when bitstream is malformated and tell user to use
the bitstream filter.
Originally committed as revision 22354 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
7082ea56c8
mpegts vbr muxing, activated when muxing rate is not supplied by the
...
user.
Originally committed as revision 22352 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
677a1144b0
Start continuity counter at 0 for pmt as well
...
Originally committed as revision 22350 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
d73a458f27
Start continuity counter at 0 for streams
...
Originally committed as revision 22344 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
9169174fd6
10l typo, fix ts total bit rate computation
...
Originally committed as revision 22343 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Yann Coupin
8d819221db
Correctly increment continuity_counter in PCR packets.
...
Patch by Yann Coupin, yann.coupin+ffmpeg gmail
Originally committed as revision 22020 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
a1f42882e1
revert wrongly commited hunk in r21205
...
Originally committed as revision 21207 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
dcc2220ab5
remove useless declarations from mpegts.h
...
Originally committed as revision 21205 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
33931016e5
use codec rc_max_rate if set and warn if bit rate is not set
...
Originally committed as revision 21204 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
01d6bd525a
Do not split audio frames accross pes packets.
...
This was not supported by some equipment and cisco analyzer.
Originally committed as revision 21203 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Mike Scheutzow
907d916627
print more debug info about muxing parameters, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com
...
Originally committed as revision 21201 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Mike Scheutzow
c054f372e0
update mpegts_write_pes documentation, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com
...
Originally committed as revision 21200 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Mike Scheutzow
4df3bbbc68
Insert null packets to keep pcr values correct, patch by Mike Scheutzow,
...
scheutzow at alcatel-lucent dot com and Niobos, niobos at dest-unreach dot be.
Originally committed as revision 21199 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Mike Scheutzow
49f6fd8f3f
move pcr/sdt/pat period computation after ts->mux_rate is set, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com
...
Originally committed as revision 21198 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Mike Scheutzow
6b18a3f5ba
output a pcr as soon as possible, patch by Mike Scheutzow, scheutzow at alcatel-lucent dot com
...
Originally committed as revision 21197 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Niobos
906c16a11a
fix ts packet header size computation, patch by Niobos, niobos at dest-unreach dot be
...
Originally committed as revision 21196 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Niobos
080cabffca
fix sdt, pat, pcr size computation, patch by Niobos, niobos at dest-unreach dot be
...
Originally committed as revision 21195 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Baptiste Coudurier
807e4e81a8
mux all stream types except audio as one pes packet per avpacket, issue #1374
...
Originally committed as revision 20292 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Niobos
9deba199fd
fix pes overhead computation, patch by Niobos, niobos at dest-unreach dot be
...
Originally committed as revision 19902 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Niobos
1aae34890c
rename freq to period which is more correct, patch by Niobos, niobos dot be at gmail dot com
...
Originally committed as revision 19529 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
84df78b476
simplify pes timestamps fetching, based on a patch by corp186, chasedouglas at gmail dot com
...
Originally committed as revision 18910 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
corp186
c69d224102
compute total bitrate more accurately, patch by corp186, chasedouglas at gmail dot com
...
Originally committed as revision 18909 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
24ac50525a
move free data in the video case
...
Originally committed as revision 18793 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
e4358e70f8
write a single pes for video frames, some proprietary player needs it
...
Originally committed as revision 18792 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
b69017af87
ensure first pts is set, according to specs
...
Originally committed as revision 18781 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
1e8857882b
remove useless max_payload_size variable
...
Originally committed as revision 18780 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
8f14cdee73
do not write dts if pts is not set
...
Originally committed as revision 18779 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
31df40a130
fix total bitrate computation, based on patch by corp186, chasedouglas at gmail dot com
...
Originally committed as revision 18778 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Aurelien Jacobs
4b358c3e60
use new metadata API in mpegts muxer
...
Originally committed as revision 17406 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Diego Biurrun
406792e7b0
cosmetics: Remove pointless period after copyright statement non-sentences.
...
Originally committed as revision 16684 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
f3ba7c5468
use delay for subs and dirac too
...
Originally committed as revision 16614 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
a57fb91ce5
add aud nal unit if not present in h264 bitstream
...
Originally committed as revision 16613 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
89ac55ada9
consider other codecs packets contain only one access unit, not just audio
...
Originally committed as revision 16611 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
3d0a94f699
calculate pat, pmt and sdt exact size and adjust total bitrate
...
Originally committed as revision 16610 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago
Baptiste Coudurier
620b9df7a7
allow user to specify muxrate
...
Originally committed as revision 16609 to svn://svn.ffmpeg.org/ffmpeg/trunk
16 years ago