88 "FLV only supports wideband (16kHz) Speex audio\n");
116 "FLV does not support sample rate %d, "
117 "choose from (44100, 22050, 11025)\n", enc->
sample_rate);
169 size_t len = strlen(str);
179 avio_w8(pb, (ts >> 24) & 0x7F);
203 int metadata_count = 0;
204 int64_t metadata_size_pos, data_size, metadata_count_pos;
279 if( !strcmp(tag->
key,
"width")
280 ||!strcmp(tag->
key,
"height")
281 ||!strcmp(tag->
key,
"videodatarate")
282 ||!strcmp(tag->
key,
"framerate")
283 ||!strcmp(tag->
key,
"videocodecid")
284 ||!strcmp(tag->
key,
"audiodatarate")
285 ||!strcmp(tag->
key,
"audiosamplerate")
286 ||!strcmp(tag->
key,
"audiosamplesize")
287 ||!strcmp(tag->
key,
"stereo")
288 ||!strcmp(tag->
key,
"audiocodecid")
289 ||!strcmp(tag->
key,
"duration")
290 ||!strcmp(tag->
key,
"onMetaData")
309 data_size =
avio_tell(pb) - metadata_size_pos - 10;
311 avio_seek(pb, metadata_count_pos, SEEK_SET);
314 avio_seek(pb, metadata_size_pos, SEEK_SET);
338 "at most one video stream is supported in flv\n");
343 av_log(s,
AV_LOG_ERROR,
"Video codec '%s' for stream %d is not compatible with FLV\n",
355 "use vstrict=-1 / -strict -1 to use it anyway.\n");
360 "Muxing VP6 in flv will produce flipped video on playback.\n");
366 "at most one audio stream is supported in flv\n");
374 "16-bit big-endian audio in flv is valid but most likely unplayable (hardware dependent); use s16le\n");
441 avio_seek(pb, -data_size - 10, SEEK_CUR);
508 "Packets are not in the proper order with respect to DTS\n");
526 "Video codec '%s' is not compatible with FLV\n",
556 "use the audio bitstream filter 'aac_adtstoasc' to fix it "
557 "('-bsf:a aac_adtstoasc' option with ffmpeg)\n");
566 "8 frames per packet. Adobe Flash "
567 "Player cannot handle this!\n");
572 if (size + flags_size >= 1<<24) {
574 size + flags_size, 1<<24);
580 avio_w8(pb, (ts >> 24) & 0x7F);
585 int64_t metadata_size_pos =
avio_tell(pb);
605 data_size =
avio_tell(pb) - metadata_size_pos;
606 avio_seek(pb, metadata_size_pos - 10, SEEK_SET);
608 avio_seek(pb, data_size + 10 - 3, SEEK_CUR);
643 .mime_type =
"video/x-flv",