+ Reply to Thread
Results 1 to 7 of 7
It's a bit roundabout, but you could extract audio frame data to a CSV file with FFmpeg:
ffprobe -select_streams a -show_frames -i input_file -of csv > output_file.csvThen import to Excel, add a column to do the bitrate calculation for each row based on pkt_size (in bytes) divided by pkt_duration, and graph pkt_pts_time against the result.
What context is there a need for this? (Normally, the proportion of audio bitrate to video bitrate is so miniscule as it wouldn't matter too much in terms of budget, and all you would need would be the average, or the max).
Not for a specific reason that related to practical use...
Max and Average values can be would be enough for those cases and Mediainfo would show them...
What I need is to see how they distributed, and for a specific single value, the Minimum bitrate would be then...
But what i want is not a specific value but the general graph...
I did run the code you given...
I got the CSV, all good...
But id does not contain a header row that typically describes what fields are....
Just the values... No idea abt what are pkt_ fields...
Any idea or any place that I can find it.. ( I searched a bit and found certain examples, but those have more fields than the result I got)
Just posting first 3 rows I got for my test M4A file...
Here's a header row.
frame,media_type,key_frame,pkt_pts,pkt_pts_time,pk t_dts,pkt_dts_time,best_effort_timestamp,best_effo rt_timestamp_time,pkt_duration,pkt_duration_time,p kt_pos,pkt-size,sample_fmt,nb_samples,channels,channel_layout
A bit late but perhaps useful for somebody:
@ffprobe -select_streams a -i %1 -show_entries "frame=pkt_dts,pkt_dts_time,pkt_pts_time,pkt_duration_time,pkt_pos,pkt_size,best_effort_timestamp,best_effort_timestamp_time,sample_fmt,nb_samples,channels,channel_layout" -pretty -print_format json -of json > %1.json @ffprobe -select_streams a -i %1 -show_entries "frame=pkt_dts,pkt_dts_time,pkt_pts_time,pkt_duration_time,pkt_pos,pkt_size,best_effort_timestamp,best_effort_timestamp_time,sample_fmt,nb_samples,channels,channel_layout" -pretty -print_format csv -of csv > %1.csv