I currently post mp3s to a site and stream it to users. However, I record in m4a and that doesn't stream unless you use flash or some special html5 implementations.
I'd like to be able to upload m4as to the site and have it converted to mp3.
There are a few implementations that wrap ffmpeg for .net, but few have any documentation (FFLIB.NET, FFmpeg.NET, FFMpeg-sharp), especially with non-video formats.
Does anyone have any ideas about tackling this issue, or maybe some alternatives? I don't believe my host (Arvixe) supports Python on its ASP.NET packages...
EDIT: I selected Jorge's answer as, with the comments as further context, it mostly answers my question.
There was already a discussion about that, your code can easily run even if asp.net was not mentioned, because in the end, asp.net is only on top of the .net framework.
How do I convert an M4A file to an MP3 or WMA file programmatically?
hope it helps,
Related
Does anyone know a web crawler tool for collecting contact details from a website? Say I have a www.website/contact.. I want to pull out the address, phone number, etc.. There are 2 tools I've been looking at: cralwer4j opensource jar for java and Scrapy opensource in Python. But I am finding it a bit hard to use for my scenario.
Any suggestions would be great. Thanks
You might google for "simple web crawler" to find a solution that fits you best. In the net there are plenty "pure python" based web crawlers. Based on sceleton code you add db wrap up. I think the most problem would be db setting and saving data in it.
What if there are 1000000s of websites to crawl.. Is there a way to crawl all websites in my are?
No problem for scripting. Just put millions addresses in a file (or files), open it for reading in python or other script. Then get link by link from it and crawl/scrape to your pleasure. Result you might also want to save in file (csv, json).
I'd also recommend you a ready simple python crawler.
Hi
I’m trying to develop an E-Paper website using .Net. But At first the content of the website need to grab from the Quark file. What is the procedure to get the content from the Quark file according to the Layout?
So it would be highly appreciated to provide some information regarding this subject.
Thanks…
This is going to be a tough project since the QuarkXpress files are 1) proprietary and therefore are not well documented, and 2) binary so the data is harder to get at. This will require a lot more work than a post on StackOverflow.com can help with.
First, ASP.NET really isn't the right framework for it. At least, you should develop this as a C# or VB code library project which is then consumed by a ASP.NET web application.
In order to parse the file, you might want to start off by reading Reverse engineering the Quark Xpress file format. This forum, Code for QuarkXPress file format support, also seems to have some good information. You will want to use what you learn from those articles to parse the binary and convert it to the proper types or structures. Here on some links on how to parse binary files in C#:
http://www.dotnetperls.com/binaryreader
Read binary file into a struct
http://www.yoda.arachsys.com/csharp/readbinary.html
You may also want to check out this forum posting on How to create dynamic QuarkXPress files in .Net FrameWork C#. It seems that Quark has a C# API for dealing with Quark files if you have QuarkXpress Server.
I'm trying to (HTTP) upload a binary file programmatically from within VBA. I intend to put an ASPX page on the server to accept the file and certain additional parameters.
I know there are lots of nice ways to do that (e.g. use web service instead of aspx), but my constraint is that it must run in VBA (in an excel file), and that I cannot install any additional components on the client.
So I guess I'll use WinHTTP, and I've found several examples to post form data, but not to post a binary file. I probably need to base64 the file contents?
So my questions are:
Do I need to do the encoding manually or can I make WinHTTP do that?
Is there a better utility to use than WinHTTP? (Remember I don't want to install any additional software, it must be shipped with WinXP Pro, Office 2007 or a .NET framework, e.g.)
Is there a better way to go, e.g. using ASP.NET web services?
Thx, chiccodoro
You may use base64 but typically writing binary is easier.
The hurdle you have to leap is constructing a valid multi-par/form POST. This is completely possible using WinHTTP, although I have not done it in years and am not tooled to provide sample code, it is not trivial.
You can reference the following articles for examples of how to do this with C# HttpWebRequest. The WinHTTP api is a bit different of course but the salient points to take away from the articles is the structure of the POST body.
C# File Upload with form fields, cookies and headers (by yours truly)
UploadFileEx: C#'s WebClient.UploadFile with more functionality (a bit more procedural and may be easier to suss out the format)
Typically I provide sample code, but as I said, I do not have any stone-age tools set up right now ;-).
HTH
I am wondering if there is any codes sample for ASP.NET with Voice recording.
Ok, Basically, i want to create a web page that allow user to click a record button and record his voice thru his/her microphone and then convert it into mp3 file, then i want to click PLAY button to play what was recorded.
I have searched google alot and cannot find any codes that code do just that.
I have seen site that can do just that and it is using FLASH with RoR (i think).
Is there any way to record voice using ASP.NET?
I dont care if it need to combine with FLASH with ASP.NET, as long as it is possible.
Thanks.
EDIT:
Stephen M. Redd,
Appreciate your input. Yes, i know there is no simple way to accomplish what i am asking for. I also have researched and google alot on this question. Yes,I have come to know the best way to do this is through using FLASH with either FMS or RED5 (open source).
So i am trying to figure out how to write a simple FLASH (.swf) that i can record voice and then save into mp3 format to RED5 server.
Do you know or can you provide any directions to what i am asking above?
1) Tutorial on Microphone class in FLASH (i am reading some basic implementation from a book called "FLASH Actionscript in a classroom", which doesnt tell me how to record voice but ONLY how to use microphone object in FLASH)
2) Tutorial on how to setup and use RED5 (FMS is NOT an option due to its cost)
3) how to integrate 1) and 2) with asp.net and javascript (if there is any flashvars that the FLASH microphon .swf i can access so that ASP.NET can be used with javascript)
Thanks.
EDIT 2:
I cant consider to accept an answer BECAUSE none of them has provided a good answer.
Take a look on my question and read the comments i got, and you will see that my question was NOT being provided a good answer.
My question is to find a web-based Audio/Voice recorder so that the users can record their voice on the site.
To better convey what i exactly asked for, take a look at www.snapvine.com or www.pubclip.com . Both of them provide a way for users to record their voice right on the webpage.
So, i am looking for a FLASH component (.swf) similar to what they offer to integrate with my site.
EDIT 3:
This voice/microphone recording thing seem to be a challenging project for most developers.
I guess this means i am all alone.
I think this is something that would have to be done with Flash.
This guy appears to have some examples of doing voice recording in Flash, with code samples:
http://fms.denniehoopingarner.com/
There is no simple way to do this kind of thing. Standard web technologies based on HTTP and HTML just don't have the features. HTTP doesn't work well with moving audio data, and HTML and Javascript are not able to talk directly to the hosting OS or hardware resources like the microphone.
There are 3rd party browser plug-ins and applets that you may be able to use via a web application to do this kind of thing.
Most people use Flash and the Flash Media Server to do audio input via the web.
There are also some Java applets that have similar capabilities such as the ListenUp SDK (I have not used this, so it isn't an endorsement).
There is a lot of discussion on this topic related to Microsoft Silverlight, but as I understand it voice and camera inputs from the client side are not supported as of Silverlight 2, though it may get put into Silverlight 3. There is a good bit of information about how to use the necessary Flash bits within a Silverlight application though. For more info on that, check out this post.
ASP.net is a Server-Side Technology, but voice recording is done Client side. So regardless if you use ASP.net, PHP, Ruby on Rails or Cobol, you can't do it directly.
What you need is a Client-Side Application that works together with the Server Side to accomplish this. I do not know if Silverlight can do Microphone recording, but Flash can. This is apparently quite easy using the Flash Media Interactive Server, but normally you should be able to do this without, i.e. just by having a Flash Application doing the recording and then Uploading it to the server.
Hi Sam in Silverlight 4 it is possible to record voice from microphone and webcams.
Just follow the blog.
http://blog.ondrejsv.com/post/Audio-recorder-Silverlight-4-sample.aspx
Good Luck
I'm currently looking at ways to allow people to select multiple files at once to batch upload images. I'm evaluating these options for my ASP.NET web app:
YUI Uploader
Flajaxian
SWFUpload
Dojo Toolkit Multi file uploader
I'm leaning toward YUI because the documentation is clear and I basically already wrote the file uploaders and thumbnailers which Flajaxian provides, the javascript seems more compact too. I can't even begin evaluating Dojo because it's unclear to me how to get the parts that would integrate with .NET out of the PHP examples.
Has anyone had really good or really bad experiences with any of these?
SWFUploader seems to be the best option here. Compact, stylable with CSS, open source on code.google.com .
Thanks for everyone's opinion but I ended up using YUI Uploader because that's what flickr uses and the project spec was basically an analysis of flickr's features.
The experience of using it was essentially excellent, and being able to compare it to what flickr did was also helpful.
Look at this one too. It's free.
http://www.codeproject.com/KB/aspnet/FlashUpload.aspx
I'm using it in an application I'm developing for uploading multiple music files. The author provides the source code as a VS 2008 project and the source Flash/Flex file. Works like a charm.