.srt issue : text disappears
Alan Pope
alan at popey.com
Fri Oct 12 16:57:02 BST 2007
Hi,
On Fri, 2007-10-12 at 10:48 -0400, heathenx wrote:
> For fear that I am butting into a project in which I do not contribute, what is your goal for
> encoding video? Are you trying to find common ground between file size and video clarity?
>
Clarity is the primary goal. File size less so but of course we do need
to be conscious of those with limited bandwidth connections.
I have been playing with encoding quite a bit, and to be honest having
the videos available in many formats adds a fair headache. Tips great
fully received.
In a nutshell I do this:-
For MOV / h264 / aac, two pass 640x360, 968x544, 1280x720
time /usr/local/bin/ffmpeg -y -i $1.* -vcodec libx264 \
-s 640x360 -b 400k -r 10 -acodec libfaac -pass 1 \
-ar 22050 -ab 128k -f mov mov/$1_h264_400k_aac_640x360.mov
time /usr/local/bin/ffmpeg -y -i $1.* -vcodec h264 \
-s 640x360 -b 400k -r 10 -acodec mpeg4aac -pass 2 \
-ar 22050 -ab 128k -f mov mov/$1_h264_400k_aac_640x360.mov
For Ogg / Theora / Vorbis at 512x288, 768x432, 1280x720
time ffmpeg2theora $1.* -x 512 -y 288 -v 7 -V 400 \
--aspect 16:9 --license cc-by-sa-3.0 \
--organization "Ubuntu Screencast Team" \
-o ogg/$1_theora_400k_vorbis_512x288.ogg
For AVI / XVid / MP3, two pass 640x360, 968x544, 1280x720
time /usr/local/bin/ffmpeg -y -i $1.* -vcodec libxvid \
-s 640x360 -b 400k -r 10 -acodec libmp3lame -pass 1 \
-ar 22050 -ab 128k -f avi avi/$1_xvid_400k_mp3_640x360.avi
time /usr/local/bin/ffmpeg -y -i $1.* -vcodec libxvid \
-s 640x360 -b 400k -r 10 -acodec libmp3lame -pass 2 \
-ar 22050 -ab 128k -f avi avi/$1_xvid_400k_mp3_640x360.avi
For Flash / Flv / MP3, two pass 640x360, 968x544, 1280x720
time /usr/local/bin/ffmpeg -y -i $1.* -vcodec flv \
-s 640x360 -b 400k -r 10 -acodec libmp3lame -pass 1 \
-ar 22050 -ab 128k -f flv flv/$1_xvid_400k_mp3_640x360.flv
time /usr/local/bin/ffmpeg -y -i $1.* -vcodec flv \
-s 640x360 -b 400k -r 10 -acodec libmp3lame -pass 2 \
-ar 22050 -ab 128k -f flv flv/$1_xvid_400k_mp3_640x360.flv
Suggestions welcome!
Note, I am using ffmpeg compiled from source:-
Get dependencies to compile ffmpeg:-
sudo apt-get install liba52-dev libdts-dev libgsm1-dev libvorbis-dev
libxvidcore4 libxvidcore4-dev libdc1394-dev libfaac-dev liblame-dev
libx264-dev libfaad2-dev libtheora-dev libsdl1.2-dev
Get source for ffmpeg:-
wget http://ffmpeg.mplayerhq.hu/ffmpeg-export-snapshot.tar.bz2
tar jxvf ffmpeg-export-snapshot.tar.bz2
cd ffmpeg-export-*
./configure --enable-gpl --enable-pp --enable-pthreads \
--enable-libvorbis --enable-libogg --enable-liba52 \
--enable-libgsm \
--disable-debug --enable-shared --enable-libxvid \
--enable-libfaac --enable-libmp3lame \
--enable-libx264 --enable-libfaad --enable-libtheora \
--enable-x11grab --enable-swscaler \
--prefix=/usr/local
make
sudo make install
Cheers
Al.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/ubuntu-screencasts/attachments/20071012/2218ebfe/attachment-0001.pgp
More information about the Ubuntu-screencasts
mailing list