In CefSharp there is the AudioHandler, which implements IAudioHandler. I have looked at the example code. How do I take the raw PCM data from OnAudioStreamPacket and save it to a playable file?
Related
I am trying to implement DRM and EME in my my dashjs music streaming app but then I realized that to use dashjs I need to have a manifest xml file to handle segmentation ..etc so does any one know how to generate manifest automatically or even better generate it on the cliemt side when uploading audio
i solved it using shaka packager to encrypt and create the xml manifest for me automatically
I doing an image service to decompress dicom images ans save them as BMP(using dcmtk). Incase of jpeg2000 it is adviced to use OpenJPEG(2.1.1). How can i pass the compressed image to OpenJPEG and get Uncompressed image back. Suggestions are welcomed..
Here is a simple way, since you are receiving DICOM with JPEG 2000 encapsulated stream in it, simply pass the DICOM directly to GDCM to uncompress it. Then forward the decompressed DICOM to your regular DCMTK pipeline:
$ gdcmconv --raw input_jp2.dcm output_raw.dcm
GDCM by default is build with OpenJPEG 2.1.x.
Of course, if you are familiar with C++, you could directly call the C++ API directly, in particular have a look at the class gdcm::ImageChangeTransferSyntax.
Reference:
http://gdcm.sourceforge.net/html/gdcmconv.html
I am developing a ASP.NET by using c#.net and have many WMV files and have to watch the range of the file which I gave.The size of files are too big also the users shouldn't download the all of the file , should download between the range which I give . Is there anybody to help me ?
Unfortunately since WMV files have a header at the beginning and an index at the end you can't just use a FileStream to deliver partial files, for that "streaming" formats like MPEG1/2 or H.264 are much better.
For partial WMV file streaming I would investigate in
Microsoft Media Services
This will basically do the job for you, although if you want tight control over the offsets you want to stream from you will have to dynamically create playlists for your files (i.e. see Server side playlists)
I have to make reports with graphics in Excel and PDF from data in a database in an asp.net app.
I don't want to use com objects so I have been using Open Xml Sdk to build the excel file from a template file and redirect the response to the new file generated but I don't know how to make the PDF file...
I accept any comments about how I can generate the pdf file in my web app...
Thanks by the time invested reading this...
go to this site for pdf.
http://itextsharp.sourceforge.net/
I've done this before but with a bit of a cheat.
Office XP and onwards can actually read html files as office documents so if you sent a html document containing a table with the extension and mime type of an excel doc then windows would open it in excel.
From there you can use a web service such as http://www.htm2pdf.co.uk/htm2pdf-web-service.aspx to convert the html table data into a pdf.
Even better than that if you change the extension of a docx or xslx file to zip you can unzip the stored files and you'll find they are xml files that you can edit and rezip (changing the extension back of course).
The easiest solution -- in my opinion -- is to use Client Report Definition Files. After you defined reports, you can
show them to users in your ASP.NET application using the ReportViewer component (Google for asp.net ReportViewer),
export them directly to Excel (Google for localreport excel),
export them directly to PDF (Google for localreport pdf).
For the last two options, you can either save the file to disk or send it directly to the asp.net client (again, there are lots of code examples on the web).
I want to Export in charts & datagrid data into different file formats - "PDF, Word and
Excel" in my web application..I am using Flex 3 and want to export the file in local system.
Any help will be highly appreciable...
Thanks in Advance...
If you are using Java/.NET/PHP or any back-end, you should be using PDF/word generation API to stream the file in required format.
For ex: You can use Apache POI or APache FOP apis to render MSword or PDF files and using Flex, users can download the files.
http://poi.apache.org/
xmlgraphics.apache.org/fop/
You can use AlivePDF to create PDF files in AS3.