File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -146,6 +146,7 @@ class FieldOrderDetector {
146146 final duration = _parseDuration (format? ['duration' ] as String ? );
147147 final frameCount = _parseFrameCount (videoStream['nb_frames' ] as String ? );
148148 final codec = videoStream['codec_name' ] as String ? ;
149+ final pixelFormat = videoStream['pix_fmt' ] as String ? ;
149150 final fieldOrder = await detect (videoPath);
150151
151152 return VideoInfo (
@@ -155,6 +156,7 @@ class FieldOrderDetector {
155156 duration: duration ?? 0 ,
156157 frameCount: frameCount ?? _estimateFrameCount (duration, frameRate),
157158 codec: codec ?? 'unknown' ,
159+ pixelFormat: pixelFormat ?? 'unknown' ,
158160 fieldOrder: fieldOrder,
159161 hasAudio: audioStream != null ,
160162 );
@@ -241,6 +243,7 @@ class VideoInfo {
241243 final double duration;
242244 final int frameCount;
243245 final String codec;
246+ final String pixelFormat;
244247 final FieldOrder ? fieldOrder;
245248 final bool hasAudio;
246249
@@ -251,6 +254,7 @@ class VideoInfo {
251254 required this .duration,
252255 required this .frameCount,
253256 required this .codec,
257+ required this .pixelFormat,
254258 this .fieldOrder,
255259 required this .hasAudio,
256260 });
Original file line number Diff line number Diff line change @@ -247,6 +247,8 @@ class _QueuePanelState extends State<QueuePanel> {
247247 _InfoRow (label: 'Frame Rate' , value: item.videoInfo! .frameRateFormatted),
248248 _InfoRow (label: 'Duration' , value: item.videoInfo! .durationFormatted),
249249 _InfoRow (label: 'Frames' , value: '${item .videoInfo !.frameCount }' ),
250+ _InfoRow (label: 'Codec' , value: item.videoInfo! .codec),
251+ _InfoRow (label: 'Pixel Format' , value: item.videoInfo! .pixelFormat),
250252 _InfoRow (
251253 label: 'Field Order' ,
252254 value: item.videoInfo! .fieldOrderDescription,
You can’t perform that action at this time.
0 commit comments