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")
291 ||!strcmp(tag->
key,
"datasize")
292 ||!strcmp(tag->
key,
"lasttimestamp")
293 ||!strcmp(tag->
key,
"totalframes")
294 ||!strcmp(tag->
key,
"hasAudio")
295 ||!strcmp(tag->
key,
"hasVideo")
296 ||!strcmp(tag->
key,
"hasCuePoints")
297 ||!strcmp(tag->
key,
"hasMetadata")
298 ||!strcmp(tag->
key,
"hasKeyframes")
317 data_size =
avio_tell(pb) - metadata_size_pos - 10;
319 avio_seek(pb, metadata_count_pos, SEEK_SET);
322 avio_seek(pb, metadata_size_pos, SEEK_SET);
333 "%s codec %s not compatible with flv\n",
335 desc ? desc->
name :
"unknown");
357 "at most one video stream is supported in flv\n");
372 "use vstrict=-1 / -strict -1 to use it anyway.\n");
377 "Muxing VP6 in flv will produce flipped video on playback.\n");
383 "at most one audio stream is supported in flv\n");
391 "16-bit big-endian audio in flv is valid but most likely unplayable (hardware dependent); use s16le\n");
400 av_log(s,
AV_LOG_ERROR,
"Subtitle codec '%s' for stream %d is not compatible with FLV\n",
463 avio_seek(pb, -data_size - 10, SEEK_CUR);
530 "Packets are not in the proper order with respect to DTS\n");
573 "use the audio bitstream filter 'aac_adtstoasc' to fix it "
574 "('-bsf:a aac_adtstoasc' option with ffmpeg)\n");
583 "8 frames per packet. Adobe Flash "
584 "Player cannot handle this!\n");
589 if (size + flags_size >= 1<<24) {
591 size + flags_size, 1<<24);
597 avio_w8(pb, (ts >> 24) & 0x7F);
603 int64_t metadata_size_pos =
avio_tell(pb);
623 data_size =
avio_tell(pb) - metadata_size_pos;
624 avio_seek(pb, metadata_size_pos - 10, SEEK_SET);
626 avio_seek(pb, data_size + 10 - 3, SEEK_CUR);
661 .mime_type =
"video/x-flv",