PRINT_UTC_LOG("[Line : %d][%s] media_format_set_video_mime failed, API returned %d. Invalid=%d, invalid ope=%d",
__LINE__, API_NAMESPACE, ret, MEDIA_FORMAT_ERROR_INVALID_PARAMETER, MEDIA_FORMAT_ERROR_INVALID_OPERATION);
}
- media_format_set_video_width(media_format, 320);
- media_format_set_video_height(media_format, 180);
- media_format_set_video_avg_bps(media_format, 10);
- media_format_set_video_max_bps(media_format, 10);
+ media_format_set_video_width(media_format, 640);
+ media_format_set_video_height(media_format, 480);
+ media_format_set_video_avg_bps(media_format, 1200);
+ media_format_set_video_max_bps(media_format, 1580);
}
mediamuxer_set_data_sink(g_media_muxer, uri, format);
int ret = MEDIAMUXER_ERROR_INVALID_PARAMETER;
FILE *pvFile = NULL;
- unsigned int vsize = 1395;
+ unsigned int vsize = 5637;
uint64_t pts_vid = 0;
uint64_t dts_vid = 0;
- uint64_t duration_vid = 40000000;
+ uint64_t duration_vid = 33000000;
int track_index_vid = 1;
int ret_scan;
media_packet_h vid_pkt;
media_format_make_writable(media_format, &media_format2);
- if (media_format_set_video_width(media_format2, 320)) {
+ if (media_format_set_video_width(media_format2, 640)) {
PRINT_UTC_LOG("media_format_set_video_width failed\n");
goto ERROR;
}
- if (media_format_set_video_height(media_format2, 180)) {
+ if (media_format_set_video_height(media_format2, 480)) {
PRINT_UTC_LOG("media_format_set_video_height failed\n");
goto ERROR;
}
/*frame rate is came from the caps filter of demuxer*/
- if (media_format_set_video_frame_rate(media_format2, 25)) {
+ if (media_format_set_video_frame_rate(media_format2, 30)) {
PRINT_UTC_LOG("media_format_set_video_frame_rate failed\n");
goto ERROR;
}