View Single Post
  #1 (permalink)  
Old 18th Oct 2010, 7:30 am
casacristo casacristo is offline
New Member
 
Join Date: Oct 2010
Posts: 2
Default file format error no xvid avi playing

ID 071b:3203 Domain Technologies, Inc. 3" MP4 player

MP4 player, claims to be 16GB.

I am a linux user.
I've written a script that will convert in principle any multimedia file to xvid-avi playable by mp4 players
(320x240)

Code:
#!/bin/bash

# By Arturo Martinez 22 Oct 2010
echo "********************************************************"
echo "This script converts anything to AVI (xvid) 320x240"
echo "It will convert all the files of that type in the current directory"
echo "********************************************************"
echo "Enter file extension to convert"
echo "for example all2avi.sh ts  "
echo "will convert all ts files to avi (xvid)"

for f in $( ls *.$1 ); do

avi=${f%.$1*}.avi 
echo "Processing $f file..." 

/usr/bin/ffmpeg -i $f -vcodec mpeg4 -vtag xvid -s 320x240 -acodec libmp3lame -ac 1 -ar 22050  ${f%\.*}.avi



  # take action on each file. $f store current file name
  echo $f converted to $avi 
done
Note: ffmpeg must have mpeg4 support

Last edited by casacristo; 22nd Oct 2010 at 5:00 am. Reason: added script
Reply With Quote