MP4 File editing - edit

I have an mp4 video presentation that contains a lot of moving graphics (arrows, buttons etc.) Can I modify/edit these graphics using the MP4 file or do i need the original file used to create the video?

You will need the original source if you want to edit it.

Related

How to replace a specific image within a pdf?

I have a pdf with 3 images
I want to find each image and replace it with another image
I saw in the pdf the original paths under xmpMM:Ingredients:
I tried to change it via notepad++ but it looks like the images are already embedded and changing the path does nothing.
How can I find each image and replace it with another image?
The xmp stuff is information only. The actual images are embedded streams in the pdf file. Finding the correct streams to replace and replacing them isn't a simple problem, and can't be done with notepad. You'll need a library / toolkit that can modify PDFs, like https://pdf-lib.js.org/ or similar.
The PDF file looks like an Illustrator file, which adds another layer of weirdness - Illustrator can write PDFs that have both PDF and Illustrator versions of the content, and you see one in Acrobat and the other in Illustrator.
It's probably easier to recreate the PDF from whatever source produced it.

SpriteKit playSound doesn't play m4a files?

I want to use the playSoundFileNamed: Method to play a background soundfile as loop, which I copied into the project as usual, but the problem is, that the program stops at the sound code line...
SKAction* playSound = [SKAction playSoundFileNamed:#"backgroundMusicLoop.m4a" waitForCompletion:NO];
[self runAction: [SKAction repeatActionForever:playSound]];
It doesn't happen anything (and I tried it not in the simulator, but on a real device) !
I tried to play a wav file and there was no error, but wavs have a lot bigger filesize...
Hope someone knows about a solution :)
UPDATED
Change your waitForCompletion from NO to YES.
Having it set to NO, means that the action will always repeat itself without waiting for the sound to play to end. In effect it gets stuck at the beginning and has no chance to play through.
(Brain fart on my part for not seeing that the first time around!)
ORIGINAL
The m4a sound format seems to have issues with the playSoundFileNamed:waitForCompletion:. Try another format such as mp3 or caf.
If you absolutely need to use m4a then use AVAudioSession to play your sounds, music.
In case you don't know how to convert formats using iTunes, here are Apple's instructions for it:
Saving a copy of a song in a new file format
When converting from a compressed to uncompressed file format (for example, from MP3 to AIFF) you shouldn't notice any reduction in sound quality. However, when converting between compressed formats (for example MP3 and AAC), you may notice a reduction in the sound quality. For the best results, if you want your music encoded in a different file format, you should import the music again from the original source using the new encoding format.
To convert a song's file format Open iTunes Preferences. Windows:
Choose Edit > Preferences. Mac: Choose iTunes > Preferences. Click
the General button, then click the Importing Settingsā€¦ button in the
lower section of the window. From the Import Using pop-up menu, choose
the encoding format that you want to convert the song to, then click
OK to save the settings. Select one or more songs in your library,
then from the File > Create New Version menu, choose one of the
following (the menu item changes to show what's selected in your
Importing preferences): Create MP3 version Create AAC version Create
AIFF version Create WAV version Create Apple Lossless version If you
haven't imported some songs into iTunes yet, you can import and
convert them at the same time. This will create a converted copy of
the file in your iTunes Library based on your iTunes preferences. To
convert all the songs in a folder or on a disk, hold down the Option
key (Mac) or Shift key (Windows) and choose File > Create New Version
Convert [import preference setting]. The Import preference setting will match what you chose in step 3. iTunes will prompt you for the
location of the folder or disk you want to import and convert. All the
songs in the folder or on the disk will be converted. Note: Older
purchased songs are encoded using a Protected AAC format that prevents
them from being converted. If you need to convert these to another
format, follow the instructions in this article to upgrade them.
The song in its original format and the newly converted song appear in
your library.

Export Video from powerpoint using VBA

I want to export a video from powerpoint using VBA. This video was uploaded from the PC and not using links. I saw that this is possible for the images using this line of code:
ActivePresentation.Slides(1).Shapes(1).Export "C:\Cover.PNG", ppShapeFormatPNG
but I couldn't do the same for videos.
Do you simply need to extract the original video from the PPTX file? If so, rename the file to give it a .ZIP extension, open the zip file, browse for the media folder and in it, you'll find copies of any inserted (but not linked) sounds, videos and pictures.
If you have routines for working with ZIP files in VBA, you could probably work out how to do the same thing.
A possible alternative: size the video to fill the slide, then use PPT's SaveAs method to save as a WMV.

Script to Cut Adobe Illustrator File into Tiles

I'm creating a Custom Google Map based on an image in an Adobe Illustrator file. I need to cut the file into 256px x 256px PNGs to feed into the Google Maps API.
You can write scripts to automate tasks in Illustrator using ExtendScript, a modified version of JavaScript. I found one example of a script for Photoshop that makes tiles for Google Maps (Hack #68 in this book) but I haven't figured out how to port this over to Illustrator.
The main problem is I can't figure out how to tell Illustrator to isolate 256px x 256px portions of an image. The Photoshop script does this by selecting portions of the image of that size and copying them into a new file, but as far as I know you can't do that in Illustrator.
Any ideas?
I've got no experience writing scripts for Adobe products, but since Illustrator handles vector data, the tiling algorithm is slightly different. There is a Python script for MS VisualEarth that tiles a set of GPS points (demo), maybe you can take some ideas from it.
Another choice may be to (programatically?) render .AI files to .PNG or something similar an then tile it into 256x256px tiles using that PS hack you referenced.

adding all swf files from dir to player in vb

how can i add all swf files from dir to player in vb by just selecting directory....and play it in shockwave flash player in vb.......
i have tested a swf file and it is working fine now how can i achieve the above target
best way i would suggest is,
put all these in a xml or flat file.
in your VB, read the file and play it like a playlist.