mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
the PSP rejects video with too high bitrates so lets claim they arent too high ...
Originally committed as revision 5267 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7b748aff2c
commit
9e282ba382
@ -1510,6 +1510,8 @@ static void mov_write_uuidprof_tag(ByteIOContext *pb, AVFormatContext *s)
|
||||
AVCodecContext *AudioCodec = s->streams[1]->codec;
|
||||
int AudioRate = AudioCodec->sample_rate;
|
||||
int FrameRate = ((VideoCodec->time_base.den) * (0x10000))/ (VideoCodec->time_base.num);
|
||||
int audio_kbitrate= AudioCodec->bit_rate / 1000;
|
||||
int video_kbitrate= FFMIN(VideoCodec->bit_rate / 1000, 800 - audio_kbitrate);
|
||||
|
||||
put_be32(pb, 0x94 ); /* size */
|
||||
put_tag(pb, "uuid");
|
||||
@ -1535,8 +1537,8 @@ static void mov_write_uuidprof_tag(ByteIOContext *pb, AVFormatContext *s)
|
||||
put_tag(pb, "mp4a");
|
||||
put_be32(pb, 0x20f );
|
||||
put_be32(pb, 0x0 );
|
||||
put_be32(pb, AudioCodec->bit_rate / 1000);
|
||||
put_be32(pb, AudioCodec->bit_rate / 1000);
|
||||
put_be32(pb, audio_kbitrate);
|
||||
put_be32(pb, audio_kbitrate);
|
||||
put_be32(pb, AudioRate );
|
||||
put_be32(pb, AudioCodec->channels );
|
||||
|
||||
@ -1547,8 +1549,8 @@ static void mov_write_uuidprof_tag(ByteIOContext *pb, AVFormatContext *s)
|
||||
put_tag(pb, "mp4v");
|
||||
put_be32(pb, 0x103 );
|
||||
put_be32(pb, 0x0 );
|
||||
put_be32(pb, VideoCodec->bit_rate / 1000);
|
||||
put_be32(pb, VideoCodec->bit_rate / 1000);
|
||||
put_be32(pb, video_kbitrate);
|
||||
put_be32(pb, video_kbitrate);
|
||||
put_be32(pb, FrameRate);
|
||||
put_be32(pb, FrameRate);
|
||||
put_be16(pb, VideoCodec->width);
|
||||
|
Loading…
Reference in New Issue
Block a user