

Convert individual files or batch convert your files.

Prism converts AVI, MPG, VOB, ASF, WMV, MP4, AMV and many more video formats.Prism will not open an encrypted or rights protected disc. VP6, FLV4, add a comment with a link to your video file and I will update my code to handle it.* Subject to copyright. If you have any FLV files that have a video stream other than FLV1 or H264, e.g. It took 8 minutes to transcode 34 files and remux 39 files, on average 11MB in size. Vtype - the video codec type of the input fileĪ complete solution was successfully tested on 73 FLV files downloaded from youtube. Inputlist - file containing all the FLV files This script will determine which option to use. Otherwise, ffmpeg will transcode the file, which takes considerably longer. Using the -copy option just remuxes the input video and hence is fast. This means that the conversion doesn't halt on minor errors and that it uses 64k audio bit rate conversion. Instead, I needed to use the following ffmpeg options: In my first attempt, I was not able to convert videos with the FLV1 video stream using the -copy ffmpeg option. Metadata.csv - metadata for each video file Mp4 files in the MP4-yymmdd-HHMMSS subdirectoryį - ffmpeg binary log for each file convertedį - compilation of all the above ffmpeg logs convert-flv-to-mp4.sh /Users/Shared/Music Only processes videos with the FLV1 and H264 codecs. Cycle through each video and convert according to the type of video codec used.Detect the video codec type using ffmpeg -i.See "References" for details.ĭownload my bash script from the "Bash Script" section. Log files generated during the process are placed in the log directory within this sub-directory.ĭownload the ffmpeg binary and place in the /usr/local/bin directory. This script will search for all FLV files in the specified location, iterate through each one, converting them to an equivalent MP4 video and place them in the sub-directory MP4-yymmdd-HHMMSS. MAC OS X 10.5.8, Terminal v.240.2, Bash v.3.2.17 (This solution should work with most Apple Mac systems). Aim: Convert multiple Adobe Flash Video (FLV) files to MP4 using a Bash script.
