Commit ce4de643 authored by Tal Aloni's avatar Tal Aloni Committed by Fiona Glaser

Show FPS when importing a raw YUV file

parent c6e72b86
......@@ -639,7 +639,7 @@ static int Parse( int argc, char **argv,
&& sscanf( psz, "%ux%u", &param->i_width, &param->i_height ) == 2 )
{
if( param->i_log_level >= X264_LOG_INFO )
fprintf( stderr, "x264 [info]: file name gives %dx%d\n", param->i_width, param->i_height );
fprintf( stderr, "x264 [info]: %dx%d (given by file name) @ %.2f fps\n", param->i_width, param->i_height, (double)param->i_fps_num / (double)param->i_fps_den);
break;
}
}
......@@ -647,6 +647,8 @@ static int Parse( int argc, char **argv,
else
{
sscanf( argv[optind++], "%ux%u", &param->i_width, &param->i_height );
if( param->i_log_level >= X264_LOG_INFO )
fprintf( stderr, "x264 [info]: %dx%d @ %.2f fps\n", param->i_width, param->i_height, (double)param->i_fps_num / (double)param->i_fps_den);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment