How to convert a swf to mp4/flv or so with command line? - linux

I'm going to convert a swf to mp4/flv or so with batch line in linux.
I've tried ffmpeg, mencoder or a perl script FLV::info. But all these convert just the video in the swf(maybe encoded by H.263 or so) to a new video, but no movie clips, not mention the ActionScripts.
I find moyea seems to fit my needs(however, I need linux ones), but is there any free ways to do this?
Many thanks.

Related

How to read audio and video packets from mp4 file

I am trying to write a code in c/c++ (objective c) to parse the audio and video data from mp4 file.
I know that data in mp4 file contains under the mp4 atom but not sure how i can parse out the audio and video data separately.
Thanks in advance for any help.
Mp4 format is fairly complicated. I suggest you use a library. But if you can't use a library, or just wan to learn the format, Than you must parse about a dozen boxes or atoms under the root moov box. The information from there can be used to find frames within the mdat atom. The full specifications is numbered ISO/IEC 14496-12 You should be able to find a copy online.

Creating preview audio clips from m4a files

Another post here answered the question of creating 30 second preview clips from WAV audio files (Create mp3 previews from wav and aiff files). My needs slightly overlap, but differing details are beyond my knowledge.
Requirements/Options: clip length; beginning & ending fade length; input filetypes: m4a/AAC/AIFF; output filetype: mp3; kbps (e.g. 192); original files unaltered; suffix new mp3 names with " (Preview)"
Limitations: no uploading of original files to a server (desktop processing); no compiling (unix/Terminal/Bash script only); recursive processing of files in sub-directories
Any/All assistance and advice is welcome.
You'll most likely get the best results with a DAW (digital audio workstation) and an audio file converter.
For a DAW, Reaper comes with a 60 day trial, and it has everything you need to cut the songs where you need and to do fade ins/fade outs, and other effects if you'd like.
www.reaper.fm
Simply use a converter to convert the m4a file to .wav, .mp3 or whatever you prefer, and then if you need it back in m4a, convert it back. I say this because some DAWs can't work with m4a files, but if which ever one you choose to work with can then no conversion is necessary,
There are many options for what DAW and what converter you use, I recommend Reaper for a DAW, and most converters essentially do the same thing, so it doesn't make much of a difference which one you choose.
Hope this helps!

Is FFMPEG download the file before processing?

I am working on FFMPEG, I read that http://dranger.com/ffmpeg/ article which I understand that FFMPEG doesn't download the file before processing, FFMPEG play the file through ffmplayer or any other player, I want to exactly make sure about FFMPEG, that how it works?
1) It can download the file first and then make instance
OR
2) The file play and during play through FFMPEG Player make instance or conversion
Which point is correct?
If someone knows that, it will be very helpful for others and also me .. :) Thanks in Advance
FFmpeg is a media processing utility. Like most Unix tools, you give it an input to produce an output. It does not grab sources on its own so, no, it will not download anything by itself.
Read the man page for more information about on ffmpeg.
Alternatively, run man ffmpeg!

automatically partition audio files into small parts

I am looking for a way to automatically extract parts from audio files. Something like Imagemagick for audio files.
I only need to extract random parts of a fixed length from a large set of complete ogg-vorbis files. I easily know how to automatically interpret the output from a programm, so I would be able to write a small script if I had programs to do the following:
Get the length of the file
Extract parts of the given an offset in seconds and a length
Is there any program, which allows me to do this under linux? The files I am using are ogg vorbis files.
If there is a python library, which is able to do this, it would work as well.
You can use SoX (Sound eXchange) to do both.

How to output MP3s to a sound card

I'm trying to write some code in perl (specifically) to output sound (specifically, MP3s) to my sound card. I've not seen any examples of outputting any sound to the soundcard in perl, so examples of that would be helpful.
My question is, how do audio players output sound to the sound card? Do they convert them to WAV on the fly?
SDL::Sound solves this problem for WAV files. There are several packages for converting compressed MP3 files to WAV, such as Audio::MPEG and Audio::ConvTools.
Are you on Linux? If so you can do your logic in Perl and then shell out to some command line player, like mpg123. Not a pure Perl solution, but gets the job done.

Resources