how to get thumbnail image from the video file using Qt/C++.i use TagLib ,its not worked out.
You can use the libVLC or ffmpeg, it's more easily than using Qt
Basically any Video is in 'frame' and that frame is you thumbnail.
We can image like box, where inside of box are all information about 'image' like where is positioned (in time), how big it is (Full HD, 720 ...), and all other sort of information.
Biggest question is what video format you like to extract, and how you like to extract.
For example file format like AVI is well known see:
how to read avi files
In case when you read som other format, you need to know how to read correctly in binary format, or you can use any library that will handle 'unpack format' for you.
Last question is if library can 'extract' image for 'this' frame ... but this is up to library.
To answer your question, you can use any external library, or read manually by yourself on binary level.
PS: If TagLib is not working for you can try any other library, just make sure you read documentation and try to find is library allow you to get images from frames.
Related
I use android platform . I have file in InputStream Datatybe , I want to convert it to MediaPlayer and play it
I have two suggestions for you:
Get the entire input into a properly formatted file, and pass that file to MediaPlayer. You're going to have to figure out if your data is formatted properly and how to format it.
Instead of using MediaPlayer, use MediaCodec (http://developer.android.com/reference/android/media/MediaCodec.html) where instead of passing a file or a link you're passing the data itself. With this solution, you're going to have to figure out if you're passing the data properly to Media Codec, but I suspect this is the solution you're looking for. The google documentation does have an example to get you started a bit.
Good luck to you!
What is the format of the data? MP4?
If it is a standard container like MP4 and is a file accessible as a URI in local filesystem (file://) or network (http://) then you should use Google's ExoPlayer library, with demo code here.
I would only resort to using MediaCodec if you have a custom container or transport mechanism.
I'd like to use the EXIF data that comes in the photos that have been uploaded into a gallery. In particular, I like to be able to sort images in a plonetruegallery view of a folder or collection on the EXIF date the photo was taken. Googling tells me that the ATImage type did store the EXIF data, but I haven't seen anything more recently that uses it. Even if I could just get the image import to change the Created date to be that taken from the EXIF DateTimeOriginal then that would be great.
Has anyone else tried to achieve this?
As your use case is very narrow it is unlikely others have tried to do the same with Plone. Some general pointers:
Poke the orignal image data stored in ImageField using EXIF-py
https://github.com/ianare/exif-py
Misc. info about Archeypes image and file fields:
http://collective-docs.readthedocs.org/en/latest/content/archetypes/files.html
for iptc meta data (most image tools store both metadata) you can try http://pypi.python.org/pypi/unweb.iptc
it's a slick and modern solution using event-subscribers.
if you only have exif metadata you can re-use the code and do the same using exif-py
ATPhoto (http://plone.org/products/atphoto/) is extremely out of date, and you should not use it wholesale, but you could look at how it parses EXIF tags for inspiration (and code-reuse).
By default ATImage object inherits from imagetransform so they have a method called getExif(): https://github.com/plone/Products.ATContentTypes/blob/master/Products/ATContentTypes/lib/imagetransform.py#L87
Integration to gallery is up to you and should not be difficult than doing context/getExif in the caption and display the way you want.
The main issue with addons here is about performance and dependencies. Doing parsing with python, store, synchronize, a source of issue that is quite big IMO.
I have already try many python package promize to extract and structure exif without real working out of the box solution.
A Question in my mind Is it possible to convert Postscript(PS) File Into Word(doc) file using Asp.Net? If Yes then how can we resolve it via C# Code.
I don't know of any tool which will convert PostScript to word. Not only that, but you certainly can't reliably do anything except render the whole thing to an image, and isert that as a graphic.
Up to a point you can extract text, what is it you actually want to do ?
Can you use PurePDF to view files or is the api only for writing them?
Based on the PurePDF Project Page, reading and extracting information from PDFs is supported:
read existing pdf documents (extract strings, streams, images and all the informations from them). See HelloWorldReader.as for an example
However, if you're looking to view / rasterize a PDF, that's a much more complicated task and doesn't look like it's supported as part of PurePDF.
I suggest converting the PDF into a swf file. There are a number of projects out there (including free / open source) that convert pages into SWF files, including being able to still extract the text. :D
It looks like you can either navigate to the url of the PDF (maybe in an HTML component?) , OR a richer solution might be to use the open source flex paper : http://flexpaper.devaldi.com/
I am creating an application that takes a user's hand signature, input on the Blackberry playbook. When the JPEG is created, I would like to add Exif data such as the date/time to the JPEG. Does anyone know how to do this, or if it is possible?
Thanks
Phil
I couldn't find anything online about writing exif data, but I did find this interesting article on reading exif data. It mentions what bytes does what. I suggest you take that library to create something to write exif data. Seems fairly simple, just need to set the proper tags in the ByteArray, append the image byte array between 2 tags and write to the file.
i found two libries
As3 seems to be writing it to xml, but flash builder does not take in import com.adobe.xmp.*;
Metaphile