I am trying to write a "thumbnailer" for the thunar file manager that can process .ogg files containing a video stream and produce a thumbnail of a particular frame. The only trouble is telling which files have a video stream in an efficient method. The best I've come up with is running ogginfo on every file with the mimetype application/ogg. Is there a better method? I know it has been brought up before on this list and others, but is there any possibility of separate mimetypes for audio and video ogg files? Thank you, Erlend
On 26/05/07, Erlend Davidson <E.R.M.Davidson@sms.ed.ac.uk> wrote:> I am trying to write a "thumbnailer" for the thunar file manager that > can process .ogg files containing a video stream and produce a thumbnail > of a particular frame. The only trouble is telling which files have a > video stream in an efficient method. The best I've come up with is > running ogginfo on every file with the mimetype application/ogg. > > Is there a better method?In general, you would need to read the headers of the various tracks to see if a video track exists. For the normal Ogg Theora mapping, the Theora video track must come first. In that case, the start of the file will look something like this: conrad@growl:/tmp$ xxd dbf.ogg 0000000: 4f67 6753 0002 0000 0000 0000 0000 42cb OggS..........B. 0000010: 4045 0000 0000 d12e e525 012a 8074 6865 @E.......%.*.the 0000020: 6f72 6103 0200 0018 0012 0001 8000 0120 ora............ 0000030: 0000 0000 61c1 0000 03e9 0000 0100 0001 ....a........... 0000040: 0200 0000 80c0 4f67 6753 0002 0000 0000 ......OggS...... ... So, you could look for the word "theora" in that specific location.> I know it has been brought up before on this list and others, but is > there any possibility of separate mimetypes for audio and video ogg files?Yes, we have recently been having useful discussions about this and drafted the following reccommendation: http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions cheers, Conrad.
> > I know it has been brought up before on this list and others, but is > > there any possibility of separate mimetypes for audio and video ogg files? > > Yes, we have recently been having useful discussions about this and > drafted the following reccommendation: > > http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions >Feedback on this recommendation before the June xiph meeting would be very timely! Cheers, Silvia.
Conrad Parker
2007-May-27 05:32 UTC
[PATCH] Re: [theora-dev] Differentiating Video from Audio
On 27/05/07, Silvia Pfeiffer <silviapfeiffer1@gmail.com> wrote:> > http://wiki.xiph.org/index.php/MIME_Types_and_File_Extensions > > Feedback on this recommendation before the June xiph meeting would be > very timely!The attached patch to ffmpeg2theora source and documentation changes the default output extension to .ogv. cheers, Conrad. -------------- next part -------------- A non-text attachment was scrubbed... Name: ffmpeg2theora-ogv.diff Type: text/x-patch Size: 4704 bytes Desc: not available Url : http://lists.xiph.org/pipermail/theora-dev/attachments/20070527/c458c2da/ffmpeg2theora-ogv.bin
Possibly Parallel Threads
- Btrfs balance invalid argument error
- Failed to bind to uuid (GUID)._msdcs.DOMAIN NT_STATUS_NO_LOGON_SERVERS & IRPC callback failed for DsReplicaSync - NT_STATUS_IO_TIMEOUT
- How to concatenate Ogg in the browser JS?
- Xiph Online Meeting on 16th of May, Wednesday, 6:00 am UTC?
- Xiph Online Meeting on 16th of May, Wednesday, 6:00 am UTC?