summaryrefslogtreecommitdiff
path: root/mediainfo
diff options
context:
space:
mode:
authorStefan Sauer <ensonic@users.sf.net>2014-07-07 16:12:22 +0200
committerStefan Sauer <ensonic@users.sf.net>2014-07-07 16:12:42 +0200
commit6dcf0b865a66da3749d3af591cabb21d83f8e8be (patch)
tree54964de26c3355eb81ef4df13550b5274bdffcd1 /mediainfo
parentb96abd86c2b09166f57f3c040600d1e91dc4f22a (diff)
TODO: add some planning comments
Diffstat (limited to 'mediainfo')
-rw-r--r--mediainfo/TODO6
-rw-r--r--mediainfo/src/mi-info.vala7
2 files changed, 12 insertions, 1 deletions
diff --git a/mediainfo/TODO b/mediainfo/TODO
index e355ac9..26eb299 100644
--- a/mediainfo/TODO
+++ b/mediainfo/TODO
@@ -59,7 +59,11 @@ http://www.headbands.com/gspot/v26x/index.htm
- encoded_size = duration * bitrate;
- bitrate = encoded_size / duration;
- needed in: quicktime, ogg/theora
-
+- we'd like to have some transport-info (from sources)
+ - http-source can post a taglist of http-header fields (e.g. mime-type)
+ - we can have wiki-links for the protocol
+ - we can get the file-size for remote content
+
== deep scan mode ==
- could be done in gst_devtools/validate
- play the file by using fakesinks and gather statistics:
diff --git a/mediainfo/src/mi-info.vala b/mediainfo/src/mi-info.vala
index 6af6138..e8a17e0 100644
--- a/mediainfo/src/mi-info.vala
+++ b/mediainfo/src/mi-info.vala
@@ -66,6 +66,7 @@ public class MediaInfo.Info : Box
set_orientation (Gtk.Orientation.VERTICAL);
// setup lookup tables
+ // TODO(ensonic); move to a data class
// video resolutions: http://upload.wikimedia.org/wikipedia/mediainfo/commons/e/e5/Vector_Video_Standards2.svg
// FIXME: these are only for PAR = 1:1
// we could have another list for CIF (http://en.wikipedia.org/wiki/Common_Intermediate_Format)
@@ -175,6 +176,11 @@ public class MediaInfo.Info : Box
table = new Table (8, 3, false);
info_area.add_with_viewport (table);
+
+ /* TODO(ensonic): add a 'Source' box ? maybe only for streams?
+ Transport: {file, http, rtsp, ....} as wikilink
+ Size: (in bytes)
+ */
label = new Label (null);
label.set_markup("<b>Container</b>");
@@ -312,6 +318,7 @@ public class MediaInfo.Info : Box
album_art = null;
try {
+ // TODO(ensonic): this does not work for streams
FileInfo finfo = file.query_info ("standard::*", FileQueryInfoFlags.NONE, null);
mime_type.set_text (finfo.get_attribute_string (FileAttribute.STANDARD_CONTENT_TYPE));
icon_image.set_from_gicon ((Icon) finfo.get_attribute_object (FileAttribute.STANDARD_ICON), IconSize.DIALOG);