Quote:
Originally Posted by Festaman
So i have had my nexus one for a while. I have been converting my videos wiht hand brake and what not. And I gotta think there is a better way to get Xvid movies to play on the phone.
anyone have luck with yxplayer?
|
One need not transcode the video to make it compatible. Android simply does not understand the PACKAGE and/or FOURCC. Your "xvid" video contains a fourcc of "xvid" when, in fact, it is simply h263 (and should have a fourcc of "h263").
One can simply use ffmpeg like such:
ffmpeg -vcodec copy -acodec copy -vtag h263 -i inputfile outputfile.mp4
(or outputfile.3gp)
It will be nearly instantaneous.
You can even loop this over an entire directory like so:
mkdir outdir
for FILE in *.videoextension
do
ffmpeg .... -i "$FILE" "outdir/$FILE.mp4"
done
You can even get fancy....
mkdir tmp
for FILE in *.videoextension
do
ffmpeg ...
adb push "tmp/$FILE.mp4" "/sdcard/videos/"
rm -f "tmp/$FILE.mp4"
done
rm -rf tmp
|