On Tue, 23 Dec 2008, James Hatridge wrote:-
Hi all,
Can someone give me a clue for an easy program to convert FLV videos to AVI?
You can use ffmpeg, which can be found in the Packman repo, using
something as simple as this:
ffmpeg -i "" -sameq -acodec copy ""
would do the job. Or, if you're wanting to do a batch conversion, you
can use something like this script[0]:
#!/bin/bash
for NAME in *.flv
do
[ "${NAME::1}" == "*" ] && break
ffmpeg -i "${NAME}" -sameq -acodec copy "${NAME%.flv}.avi"
done
and it will convert all the FLV files in a directory to AVI format.
As for the options, "-acodec copy" will just copy the audio stream
without making any changes. If the audio stream in the FLV file isn't an
MP3 stream, use "-acodec libmp3lame" instead. The option "-sameq" means
ffmpeg will use the same quantizer when transcoding and so the video in
the output should be the same quality as the input.
Finally, the line:
[ "${NAME::1}" == "*" ] && break
in the loop is for those occasions where you forget to change
directories and try running it where there aren't any FLV files to
convert.
[0] I use a _slightly_ more complex version of the above script, a copy
of which you can find here:
URL:http://www.davjam.org/~davjam/linux/scripts/recode-videos.sh
Regards,
David Bolt
--
Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s
| openSUSE 10.3 32b | openSUSE 11.0 32b |
openSUSE 10.2 64b | openSUSE 10.3 64b | openSUSE 11.0 64b |
TOS 4.02 | openSUSE 10.3 PPC | RISC OS 3.6 | RISC OS 3.11
--
To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse+help@opensuse.org