Mercurial > libavformat.hg
annotate rawenc.c @ 6478:1e6ebac87d44 libavformat
Check for the IPPROTO_IPV6 define before using it
This fixes building on FreeBSD in some configurations, if the IPv6 multicast
structs are available, but IPPROTO_IPV6 isn't defined.
| author | mstorsjo |
|---|---|
| date | Mon, 20 Sep 2010 06:38:40 +0000 |
| parents | eb68008daac2 |
| children |
| rev | line source |
|---|---|
| 885 | 1 /* |
| 6448 | 2 * RAW muxers |
|
4251
77e0c7511d41
cosmetics: Remove pointless period after copyright statement non-sentences.
diego
parents:
4206
diff
changeset
|
3 * Copyright (c) 2001 Fabrice Bellard |
|
868
c6b1dde68f3a
Ingenient MJPEG support, more at http://www.artificis.hu/files/texts/ingenient.txt
alex
parents:
858
diff
changeset
|
4 * Copyright (c) 2005 Alex Beregszaszi |
| 0 | 5 * |
|
1358
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1245
diff
changeset
|
6 * This file is part of FFmpeg. |
|
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1245
diff
changeset
|
7 * |
|
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1245
diff
changeset
|
8 * FFmpeg is free software; you can redistribute it and/or |
| 0 | 9 * modify it under the terms of the GNU Lesser General Public |
| 10 * License as published by the Free Software Foundation; either | |
|
1358
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1245
diff
changeset
|
11 * version 2.1 of the License, or (at your option) any later version. |
| 0 | 12 * |
|
1358
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1245
diff
changeset
|
13 * FFmpeg is distributed in the hope that it will be useful, |
| 0 | 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
| 16 * Lesser General Public License for more details. | |
| 17 * | |
| 18 * You should have received a copy of the GNU Lesser General Public | |
|
1358
0899bfe4105c
Change license headers to say 'FFmpeg' instead of 'this program/this library'
diego
parents:
1245
diff
changeset
|
19 * License along with FFmpeg; if not, write to the Free Software |
|
896
edbe5c3717f9
Update licensing information: The FSF changed postal address.
diego
parents:
887
diff
changeset
|
20 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
| 0 | 21 */ |
| 3286 | 22 |
| 0 | 23 #include "avformat.h" |
| 6448 | 24 #include "rawenc.h" |
| 0 | 25 |
| 6425 | 26 int ff_raw_write_packet(AVFormatContext *s, AVPacket *pkt) |
| 0 | 27 { |
|
2771
d52c718e83f9
Use dynamically allocated ByteIOContext in AVFormatContext
andoma
parents:
2545
diff
changeset
|
28 put_buffer(s->pb, pkt->data, pkt->size); |
|
d52c718e83f9
Use dynamically allocated ByteIOContext in AVFormatContext
andoma
parents:
2545
diff
changeset
|
29 put_flush_packet(s->pb); |
| 0 | 30 return 0; |
| 31 } | |
| 32 | |
|
3545
2949f7da8931
Add a note to remind people to add new raw formats to the Makefile.
diego
parents:
3543
diff
changeset
|
33 /* Note: Do not forget to add new entries to the Makefile as well. */ |
|
2949f7da8931
Add a note to remind people to add new raw formats to the Makefile.
diego
parents:
3543
diff
changeset
|
34 |
| 4206 | 35 #if CONFIG_AC3_MUXER |
| 1167 | 36 AVOutputFormat ac3_muxer = { |
| 0 | 37 "ac3", |
|
3424
7a0230981402
Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents:
3405
diff
changeset
|
38 NULL_IF_CONFIG_SMALL("raw AC-3"), |
| 885 | 39 "audio/x-ac3", |
| 0 | 40 "ac3", |
| 41 0, | |
| 42 CODEC_ID_AC3, | |
| 3289 | 43 CODEC_ID_NONE, |
| 2305 | 44 NULL, |
| 6425 | 45 ff_raw_write_packet, |
|
1245
e59b75051ded
dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents:
1169
diff
changeset
|
46 .flags= AVFMT_NOTIMESTAMPS, |
| 0 | 47 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
48 #endif |
| 0 | 49 |
| 4206 | 50 #if CONFIG_DIRAC_MUXER |
|
3272
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
51 AVOutputFormat dirac_muxer = { |
|
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
52 "dirac", |
|
3424
7a0230981402
Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents:
3405
diff
changeset
|
53 NULL_IF_CONFIG_SMALL("raw Dirac"), |
|
3272
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
54 NULL, |
|
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
55 "drc", |
|
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
56 0, |
| 3289 | 57 CODEC_ID_NONE, |
|
3272
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
58 CODEC_ID_DIRAC, |
|
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
59 NULL, |
| 6425 | 60 ff_raw_write_packet, |
|
3272
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
61 .flags= AVFMT_NOTIMESTAMPS, |
|
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
62 }; |
|
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
63 #endif |
|
07038dc492ab
Import Dirac demuxer/muxer from SoC branch; written by Marco Gerards,
lu_zero
parents:
3269
diff
changeset
|
64 |
| 4206 | 65 #if CONFIG_DNXHD_MUXER |
| 4004 | 66 AVOutputFormat dnxhd_muxer = { |
| 67 "dnxhd", | |
| 68 NULL_IF_CONFIG_SMALL("raw DNxHD (SMPTE VC-3)"), | |
| 69 NULL, | |
| 70 "dnxhd", | |
| 71 0, | |
| 72 CODEC_ID_NONE, | |
| 73 CODEC_ID_DNXHD, | |
| 74 NULL, | |
| 6425 | 75 ff_raw_write_packet, |
| 4004 | 76 .flags= AVFMT_NOTIMESTAMPS, |
| 77 }; | |
| 78 #endif | |
| 79 | |
| 4206 | 80 #if CONFIG_DTS_MUXER |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
81 AVOutputFormat dts_muxer = { |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
82 "dts", |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
83 NULL_IF_CONFIG_SMALL("raw DTS"), |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
84 "audio/x-dca", |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
85 "dts", |
| 931 | 86 0, |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
87 CODEC_ID_DTS, |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
88 CODEC_ID_NONE, |
| 931 | 89 NULL, |
| 6425 | 90 ff_raw_write_packet, |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
91 .flags= AVFMT_NOTIMESTAMPS, |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
92 }; |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
93 #endif |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
94 |
| 4206 | 95 #if CONFIG_EAC3_MUXER |
| 3862 | 96 AVOutputFormat eac3_muxer = { |
| 97 "eac3", | |
| 98 NULL_IF_CONFIG_SMALL("raw E-AC-3"), | |
| 99 "audio/x-eac3", | |
| 100 "eac3", | |
| 101 0, | |
| 102 CODEC_ID_EAC3, | |
| 103 CODEC_ID_NONE, | |
| 104 NULL, | |
| 6425 | 105 ff_raw_write_packet, |
| 3862 | 106 .flags= AVFMT_NOTIMESTAMPS, |
| 107 }; | |
| 108 #endif | |
| 109 | |
| 6469 | 110 #if CONFIG_G722_MUXER |
| 111 AVOutputFormat g722_muxer = { | |
| 112 "g722", | |
| 113 NULL_IF_CONFIG_SMALL("raw G.722"), | |
| 114 "audio/G722", | |
| 115 "g722", | |
| 116 0, | |
| 117 CODEC_ID_ADPCM_G722, | |
| 118 CODEC_ID_NONE, | |
| 119 NULL, | |
| 120 ff_raw_write_packet, | |
| 121 .flags= AVFMT_NOTIMESTAMPS, | |
| 122 }; | |
| 123 #endif | |
| 124 | |
| 4206 | 125 #if CONFIG_H261_MUXER |
| 1167 | 126 AVOutputFormat h261_muxer = { |
|
576
f701ba509d0c
H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents:
567
diff
changeset
|
127 "h261", |
|
3424
7a0230981402
Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents:
3405
diff
changeset
|
128 NULL_IF_CONFIG_SMALL("raw H.261"), |
|
576
f701ba509d0c
H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents:
567
diff
changeset
|
129 "video/x-h261", |
|
f701ba509d0c
H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents:
567
diff
changeset
|
130 "h261", |
|
f701ba509d0c
H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents:
567
diff
changeset
|
131 0, |
| 3289 | 132 CODEC_ID_NONE, |
|
576
f701ba509d0c
H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents:
567
diff
changeset
|
133 CODEC_ID_H261, |
| 2305 | 134 NULL, |
| 6425 | 135 ff_raw_write_packet, |
|
1245
e59b75051ded
dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents:
1169
diff
changeset
|
136 .flags= AVFMT_NOTIMESTAMPS, |
|
576
f701ba509d0c
H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents:
567
diff
changeset
|
137 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
138 #endif |
|
576
f701ba509d0c
H.261 encoder by (Maarten Daniels <maarten dot daniels at luc dot ac dot be>)
michael
parents:
567
diff
changeset
|
139 |
| 4206 | 140 #if CONFIG_H263_MUXER |
| 1167 | 141 AVOutputFormat h263_muxer = { |
| 0 | 142 "h263", |
|
3424
7a0230981402
Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents:
3405
diff
changeset
|
143 NULL_IF_CONFIG_SMALL("raw H.263"), |
| 0 | 144 "video/x-h263", |
| 145 "h263", | |
| 146 0, | |
| 3289 | 147 CODEC_ID_NONE, |
| 0 | 148 CODEC_ID_H263, |
| 2305 | 149 NULL, |
| 6425 | 150 ff_raw_write_packet, |
|
1245
e59b75051ded
dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents:
1169
diff
changeset
|
151 .flags= AVFMT_NOTIMESTAMPS, |
| 0 | 152 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
153 #endif |
| 0 | 154 |
| 4206 | 155 #if CONFIG_H264_MUXER |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
156 AVOutputFormat h264_muxer = { |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
157 "h264", |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
158 NULL_IF_CONFIG_SMALL("raw H.264 video format"), |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
159 NULL, |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
160 "h264", |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
161 0, |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
162 CODEC_ID_NONE, |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
163 CODEC_ID_H264, |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
164 NULL, |
| 6425 | 165 ff_raw_write_packet, |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
166 .flags= AVFMT_NOTIMESTAMPS, |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
167 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
168 #endif |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
169 |
|
6320
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
170 #if CONFIG_CAVSVIDEO_MUXER |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
171 AVOutputFormat cavsvideo_muxer = { |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
172 "cavsvideo", |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
173 NULL_IF_CONFIG_SMALL("raw Chinese AVS video"), |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
174 NULL, |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
175 "cavs", |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
176 0, |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
177 CODEC_ID_NONE, |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
178 CODEC_ID_CAVS, |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
179 NULL, |
| 6425 | 180 ff_raw_write_packet, |
|
6320
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
181 .flags= AVFMT_NOTIMESTAMPS, |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
182 }; |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
183 #endif |
|
c12a0b951902
add Chinese AVS encoding via external library libxavs
stefang
parents:
6308
diff
changeset
|
184 |
| 4206 | 185 #if CONFIG_M4V_MUXER |
| 1167 | 186 AVOutputFormat m4v_muxer = { |
| 0 | 187 "m4v", |
|
3424
7a0230981402
Make long_names in lavf/lavdev optional depending on CONFIG_SMALL.
diego
parents:
3405
diff
changeset
|
188 NULL_IF_CONFIG_SMALL("raw MPEG-4 video format"), |
| 0 | 189 NULL, |
| 190 "m4v", | |
| 191 0, | |
| 192 CODEC_ID_NONE, | |
| 193 CODEC_ID_MPEG4, | |
| 2305 | 194 NULL, |
| 6425 | 195 ff_raw_write_packet, |
|
1245
e59b75051ded
dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents:
1169
diff
changeset
|
196 .flags= AVFMT_NOTIMESTAMPS, |
| 0 | 197 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
198 #endif |
| 0 | 199 |
| 4206 | 200 #if CONFIG_MJPEG_MUXER |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
201 AVOutputFormat mjpeg_muxer = { |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
202 "mjpeg", |
| 4501 | 203 NULL_IF_CONFIG_SMALL("raw MJPEG video"), |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
204 "video/x-mjpeg", |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
205 "mjpg,mjpeg", |
| 100 | 206 0, |
| 207 CODEC_ID_NONE, | |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
208 CODEC_ID_MJPEG, |
| 2305 | 209 NULL, |
| 6425 | 210 ff_raw_write_packet, |
|
1245
e59b75051ded
dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents:
1169
diff
changeset
|
211 .flags= AVFMT_NOTIMESTAMPS, |
| 100 | 212 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
213 #endif |
| 100 | 214 |
| 4901 | 215 #if CONFIG_MLP_MUXER |
| 4899 | 216 AVOutputFormat mlp_muxer = { |
| 217 "mlp", | |
| 218 NULL_IF_CONFIG_SMALL("raw MLP"), | |
| 219 NULL, | |
| 220 "mlp", | |
| 221 0, | |
| 222 CODEC_ID_MLP, | |
| 223 CODEC_ID_NONE, | |
| 224 NULL, | |
| 6425 | 225 ff_raw_write_packet, |
| 4899 | 226 .flags= AVFMT_NOTIMESTAMPS, |
| 227 }; | |
| 228 #endif | |
| 229 | |
| 6308 | 230 #if CONFIG_SRT_MUXER |
| 231 AVOutputFormat srt_muxer = { | |
| 232 .name = "srt", | |
| 233 .long_name = NULL_IF_CONFIG_SMALL("SubRip subtitle format"), | |
| 234 .mime_type = "application/x-subrip", | |
| 235 .extensions = "srt", | |
| 6425 | 236 .write_packet = ff_raw_write_packet, |
| 6308 | 237 .flags = AVFMT_NOTIMESTAMPS, |
| 238 .subtitle_codec = CODEC_ID_SRT, | |
| 239 }; | |
| 240 #endif | |
| 241 | |
| 4751 | 242 #if CONFIG_TRUEHD_MUXER |
| 243 AVOutputFormat truehd_muxer = { | |
| 244 "truehd", | |
| 245 NULL_IF_CONFIG_SMALL("raw TrueHD"), | |
| 246 NULL, | |
| 247 "thd", | |
| 248 0, | |
| 249 CODEC_ID_TRUEHD, | |
| 250 CODEC_ID_NONE, | |
| 251 NULL, | |
| 6425 | 252 ff_raw_write_packet, |
| 4751 | 253 .flags= AVFMT_NOTIMESTAMPS, |
| 254 }; | |
| 255 #endif | |
| 256 | |
| 4206 | 257 #if CONFIG_MPEG1VIDEO_MUXER |
| 1167 | 258 AVOutputFormat mpeg1video_muxer = { |
| 0 | 259 "mpeg1video", |
| 4501 | 260 NULL_IF_CONFIG_SMALL("raw MPEG-1 video"), |
| 0 | 261 "video/x-mpeg", |
| 814 | 262 "mpg,mpeg,m1v", |
| 0 | 263 0, |
| 3289 | 264 CODEC_ID_NONE, |
| 0 | 265 CODEC_ID_MPEG1VIDEO, |
| 2305 | 266 NULL, |
| 6425 | 267 ff_raw_write_packet, |
|
1245
e59b75051ded
dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents:
1169
diff
changeset
|
268 .flags= AVFMT_NOTIMESTAMPS, |
| 0 | 269 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
270 #endif |
| 0 | 271 |
| 4206 | 272 #if CONFIG_MPEG2VIDEO_MUXER |
| 1167 | 273 AVOutputFormat mpeg2video_muxer = { |
|
637
76e36d97a27a
Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents:
576
diff
changeset
|
274 "mpeg2video", |
| 4501 | 275 NULL_IF_CONFIG_SMALL("raw MPEG-2 video"), |
|
637
76e36d97a27a
Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents:
576
diff
changeset
|
276 NULL, |
|
76e36d97a27a
Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents:
576
diff
changeset
|
277 "m2v", |
|
76e36d97a27a
Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents:
576
diff
changeset
|
278 0, |
| 3289 | 279 CODEC_ID_NONE, |
|
637
76e36d97a27a
Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents:
576
diff
changeset
|
280 CODEC_ID_MPEG2VIDEO, |
| 2305 | 281 NULL, |
| 6425 | 282 ff_raw_write_packet, |
|
1245
e59b75051ded
dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents:
1169
diff
changeset
|
283 .flags= AVFMT_NOTIMESTAMPS, |
|
637
76e36d97a27a
Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents:
576
diff
changeset
|
284 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
285 #endif |
|
637
76e36d97a27a
Patch for creating m2v files by (Fabrizio Gennari <fabrizio.ge tiscali it)
michael
parents:
576
diff
changeset
|
286 |
| 4206 | 287 #if CONFIG_RAWVIDEO_MUXER |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
288 AVOutputFormat rawvideo_muxer = { |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
289 "rawvideo", |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
290 NULL_IF_CONFIG_SMALL("raw video format"), |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
291 NULL, |
|
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
292 "yuv,rgb", |
| 0 | 293 0, |
| 3289 | 294 CODEC_ID_NONE, |
|
3546
45c3d2b2b2fb
Alphabetically order AVInputFormat/AVOutputFormat declarations.
diego
parents:
3545
diff
changeset
|
295 CODEC_ID_RAWVIDEO, |
| 2305 | 296 NULL, |
| 6425 | 297 ff_raw_write_packet, |
|
1245
e59b75051ded
dont be too picky about timestampsbeing wrong if the destination container is without timestamps and raw of the raw video / raw audio sort
michael
parents:
1169
diff
changeset
|
298 .flags= AVFMT_NOTIMESTAMPS, |
| 0 | 299 }; |
|
3726
514470f7afed
cosmetics: Remove redundant #endif comments that are very close to the #ifdef
diego
parents:
3725
diff
changeset
|
300 #endif |
