Hi. Anyone knew the .bat code for ffmpeg to printout fps for every sec of video info. Eg. If a 1 minutes video should output 60 lines in notepad of fps.
Purpose of this to check any frame drop or lag at any timestamp without need to watching video physically to check video lagness.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 6 of 6
Thread
-
-
You can modify bellow script to match your expectations
Code:@set name=%1 @echo entry,media_type,stream_index,key_frame,pkt_pts,pkt_pts_time,pkt_dts,pkt_dts_time,best_effort_timestamp,best_effort_timestamp_time,pkt_duration,pkt_duration_time,pkt_pos,pkt_size,width,height,pix_fmt,sample_aspect_ratio,pict_type,coded_picture_number,display_picture_number,interlaced_frame,top_field_first,repeat_pict,color_range,color_space,?,?,chroma_location > "%~n1.csv" @ffprobe.exe -v 32 -stats -y -hide_banner -i %name% -select_streams v -print_format csv -of csv -show_entries frame >> "%~n1.csv" @ffprobe.exe -v 32 -stats -y -hide_banner -i %name% -select_streams v -print_format json -of json -show_entries frame >> "%~n1.json"
-
Interesting, just curious how ffmpeg know, in what player with what setting will be used and how it can affect results. I think, that FFMPEG itself is most lightweight than any other players. In some players you can choose priority of player, different video renderers and so on. So my question is how is the results right when someone for example using MadVR with bit enhanced resizing algorithm. If is possible to somehow take in account in code for FFMPEG? Supposing not. Then how to setup player to be as close as possible to pure FFMPEG that created this csv output.
Watching it in real time with overlayed info, there is not problem. Simplify my question is - Can I be sure if no lag reported, in real life using any players, that I can be sure it will be without any lag?
Not sure if iam right, nor if anybody understand me.
Bernix -
Bernix - ffmpeg has three major exe files, ffmpeg, ffprobe and ffplay. That last one plays video. So it is as close to ffmpeg as it could be.
I guess those cvs or json outputs need to be evaluated afterwards to check for discrepancies. Using preferably better programming language than windows batch is. -
Similar Threads
-
Slow video transcoding ffmpeg h264 0.6 fps
By www-data in forum Video ConversionReplies: 12Last Post: 23rd May 2018, 23:58 -
FFMPEG Only Converting at 1.5-2 FPS
By aaronc1976 in forum Video ConversionReplies: 4Last Post: 29th Aug 2016, 14:16 -
Convert 51.43 fps video in 59.94 fps container to straight 50 fps video
By mr_lou in forum Video ConversionReplies: 5Last Post: 8th May 2016, 11:47 -
Syncing NTSC 29.970 fps audio to PAL 50 fps video in MKV?
By Merazomo in forum Video ConversionReplies: 10Last Post: 22nd Oct 2013, 23:21 -
Syncing NTSC 29.970 fps audio to PAL 50 fps video in MKV?
By Merazomo in forum AudioReplies: 0Last Post: 17th Oct 2013, 19:09