83 "FLV only supports wideband (16kHz) Speex audio\n");
111 "FLV does not support sample rate %d, "
112 "choose from (44100, 22050, 11025)\n", enc->
sample_rate);
164 size_t len = strlen(str);
174 avio_w8(pb, (ts >> 24) & 0x7F);
199 int i, metadata_count = 0;
200 double framerate = 0.0;
201 int64_t metadata_size_pos, data_size, metadata_count_pos;
217 av_log(s,
AV_LOG_ERROR,
"Video codec '%s' for stream %d is not compatible with FLV\n",
284 metadata_count = 5 * !!video_enc +
337 if( !strcmp(tag->
key,
"width")
338 ||!strcmp(tag->
key,
"height")
339 ||!strcmp(tag->
key,
"videodatarate")
340 ||!strcmp(tag->
key,
"framerate")
341 ||!strcmp(tag->
key,
"videocodecid")
342 ||!strcmp(tag->
key,
"audiodatarate")
343 ||!strcmp(tag->
key,
"audiosamplerate")
344 ||!strcmp(tag->
key,
"audiosamplesize")
345 ||!strcmp(tag->
key,
"stereo")
346 ||!strcmp(tag->
key,
"audiocodecid")
347 ||!strcmp(tag->
key,
"duration")
348 ||!strcmp(tag->
key,
"onMetaData")
367 data_size =
avio_tell(pb) - metadata_size_pos - 10;
369 avio_seek(pb, metadata_count_pos, SEEK_SET);
372 avio_seek(pb, metadata_size_pos, SEEK_SET);
399 avio_seek(pb, -data_size - 10, SEEK_CUR);
451 int flags = -1, flags_size, ret;
468 "Video codec '%s' is not compatible with FLV\n",
498 "use audio bitstream filter 'aac_adtstoasc' to fix it "
499 "('-bsf:a aac_adtstoasc' option with ffmpeg)\n");
510 "Packets are not in the proper order with respect to DTS\n");
519 "8 frames per packet. Adobe Flash "
520 "Player cannot handle this!\n");
527 avio_w8(pb, (ts >> 24) & 0x7F);
546 data_size =
avio_tell(pb) - metadata_size_pos;
547 avio_seek(pb, metadata_size_pos - 10, SEEK_SET);
549 avio_seek(pb, data_size + 10 - 3, SEEK_CUR);
581 .mime_type =
"video/x-flv",