Is there a free/cheap tool that prints out the size of each macroblock on a H.264 stream? - h.264

I am working on analyzing the size of different regions of a frame using different encoding settings. Having a tool like that would simplify my work a lot.
An open source tool that could be modified to reach this point would also be helpful.
Of course ffmpeg can be modified to get this, but I was hoping there would be something simpler made for analysis and not for playback.

You can try this free tool:
H.264/AVC Coding Inspector Tool or save the zip directly
I dont know what language you are coding in but if you need some source code to import then you could contact that author about it.

Related

create a (local) HTML webpage which uses a .jar file

I'm very sorry for the possibly confusing title and also for the following expressions, as I'm a complete newbie into coding.
Background:
To make life a bit easier for our team at work, I would like to create a super simple HTML page which lists the most useful links to other tools in our company but is also able to send commands to a converter which exists as a .jar file (which requires different arguments - see attached pdf). Currently, we are running the specific command in the standard command prompt window in Windows to convert files into different formats.
Basic idea:
It would be so cool to have a very simple GUI (incl. some buttons + input masks). The attached PDF should explain it quite well IMO. I would then send around the package (containing the .html + .jar converter files) to my colleagues, so they can open them locally on their PC. If this works out fine, I would love to run this page in on a local intranet web-server, so everyone in our company is able to use the page (without having to store anything locally on their pc).
I know that it might be a bit too much to ask for, but it would be great if you can give me some kind of how-to. Or maybe someone has some nice hints where to start with. I know a bit of html stuff. The most hardest part to me is to execute the inputs with the .jar file.
I would be really happy if someone is able to help out as it has always been a tiny dream to have this "tooling page".
Link to the PDF:
https://wetransfer.com/downloads/ced5bc513b6c551202ba45e4aecbf1bb20220223131350/48f236a4f0989d7cc0c4f3359c70e60320220223131410/269175

Is there a way to export PSDs using AS3

Plead/Preparing for standard SO backlash
This is a generic question I apologize as I'm not an SO "noob" and I realize this doesn't fit the format exactly, if you can suggest a better place for this query I'm all ears. If you choose to down vote or close please suggest an alternative.
Question
Is anyone aware of projects that already generate a PSD file from within AS3?
Background (everything below here you may not care about if you just want to answer a question, but if interested I could use a hand)
I've found an AS3 PSD parser here.
For some basic tests this has worked fine (after some tweaking to avoid errors). However, now the task is to reverse this process to write a PSD file.
Current plan (and overall goal)
I also found a file format specification document.
My plan at this point is to just start from the top and work my way through the document building each of the parts of the file (and helper value objects) as I go along. Since this will be a very time consuming process, I'm wondering if there's any other previous work I could build off of.
Ultimately my goal is to integrate this code into a mobile drawing project I've been working on for some time. Since it's a mobile project I have to deal with the possibility that the OS kills my app to reclaim memory, in that case I need to be able to save/load the existing state of the app (currently has layers of BitmapData similar to photoshop, plus would be cool to be able to open PSD files and open my files from the device in photoshop with layers preserved).
Links to live version and code
The app can be downloaded here (is free will remain free, no ads, app is funded by love and the desire to create something cool everyone can have/use):
Google Play
Amazon App Store
Still working on an iOS release (process is more involved than the other two stores)
The code can be found here on github (Flash Builder project files in the FlashBuilderProject/FingerPainting folder).
Legal
Essentially the code contained in that repository is all MIT or Apache Licensed (will be going back to double each of the authors sites to get the original licenses to copy in now, just in case). I'm not a lawyer, but I believe I legitimately obtained everything in the project currently and am simply obligated to include the licenses and make my extensions of the source code available in some cases. (fonts came from google web fonts and downloaded Roboto from Google directly http://developer.android.com/design/style/typography.html). Any code in the com.shaunhusain package I wrote and you can assume is GPL for now. If anyone more legally savvy wants to tell me I'm breaking the law, and how, I would appreciate it.
The portions included and used from other sites include
Actuate MIT License
PNGEncoder2 License included in source from Adobe permits usage.
ShareANE I don't have a license for this one (he didn't include one) the author is chinese, as such I'm having some difficulty figuring out how to contact him, but am assuming I'm safe to use his code.
A couple of pieces of code are in the repository but currently not used including a GIF parser/encoder from bytearray.org and a ColorMatrix class from Grant Skinner.
Update
After trying this for a while I ended up deciding to just use the ORA format since it is open and far far simpler and works fine with GIMP and Krita (open source editors).
I'm not sure about the intended use, but if you are compiling the file in Flash, you might be able to use JSFL to export the fla to a PSD. Then tie the JSFL functionality to a button in a SWF that you load as a panel in the IDE. JSFL is pretty powerful, however it only works within the IDE/locally.

Zipping files and HTML5 File API

Is it possible to bundle files into a zip file using the File API, or another part of the HTML5 suite? If so, are there any example implementations available? If not, is this something likely to be supported by modern browsers in the next year or two?
I think this is what you might have been looking for. It's probably too late to help you, but I'll just leave this here for anyone else who might be interested.
http://stuartk.com/jszip/
While I don't know of anything built into HTML5 currently, I've seen some projects that are starting to touch on this in JavaScript. You may want to take a look at this project, which allows you to read the contents of a zip file, and if it's compressed using the Deflate algorithm, can unzip them.
Another option which works really well with plain javascript is a zip API called sendzip. It allows you to create zip file on the fly and streaming it to users.

How to merge multiple PDF's in native ActionScript?

I am looking for a solution to this issue but I have not yet found anything conclusive. I would love to get some input. What I need to do is basically to take two or more individual PDF-files and merge them into one. Nothing fancy just sticking one after the other and ending up with one file.
I have found AlivePDF and purePDF but those libs both seem to be focused towards generating PDF's from scratch.
I would greatly appreciate any input on this. Thx.
I don't know how you can merge PDF files on the client side, but if nothing is left over (and the files aren't too large) you could send them to the server. There you have the choice between your favorite PDF merge tool or library (e.g. PDFBox).
You can't merge PDFs in AS3.
The best you can do is load PDF files and do minor javascript scripting of the HTMLLoader (AIR only) instance into which the PDF is loaded. See Known limitations for PDF content in AIR for more.

wav <> mp3 for flash(as3)

I'm wondering about MP3 decoding/encoding, and I was hoping to pull this off in Flash using AS3
I'm sure it'll be a right pain...
I have no idea where to start, can anyone offer any pointers? reference material?
----much later---
Thank you all very much for your input... It seems I have a long road ahead of me yet!
You could also theoretically do this as a PixelBender filter, and should get significantly better performance than using a pure ActionScript 3 implementation.
More info on PixelBender here:
http://labs.adobe.com/wiki/index.php/Pixel_Bender_Toolkit
mike chambers
mesh#adobe.com
this would help
http://labs.adobe.com/technologies/alchemy/
See LAME MP3 Encoder. You can checkout their source code and their link page. Mpeg.org should have documents too.
I've got a project converting WAV files (actually Asterisk voice mails) into MP3's. If I remember correctly there are some oddities about Lame's license, so I've downloaded and compiled first LAME, then SOX by hand.
I have a web process written in PHP to actually convert the files from WAV to MP3 on the web server's local file system (actually PHP is just supervising the command-line sox tool via exec()). Then I attach all the metadata the MP3 needs using the PEAR Mp3_Id package.
Then I move the newly constructed MP3 file into a folder Apache is sharing, and point the outstanding SoundManager2 flash-based MP3 player at it.
For small transactions this works very well -- converting a minute or two voice mail does not add any appreciable lag to actually rendering and returning the rest of the page. As I get more users on a single server, it will probably eventually become necessary to write a cron job or something to do the conversion before the user actually asks for the file the first time.
It's going to be VERY slow doing this in AS3. You really need a C/C++ implementation if you care at all about how long it will take.
Andre Michelle and the Hobnox guys pulled off something similar with their Hobnox AudioTool, they ported a Java Vorbis encoder to AS3. They supposedly ended up with encoding taking twice the time of the audio duration.
Don't know what your use case is, but in the Hobnox tool apparently audio is created at the client side, encoded as Vorbis, sent to the server, converted to mp3 and stored in the users library.