video re-encoding to suit mobile device ?

"Voytek Eymont" <[email protected]> Fri, 7 Oct 2011 08:42:39 +1100
Newsgroups gmane.org.user-groups.slug.chat
Message-ID <[email protected]>
I have a PVR that records TV as a .ts file, apparently it's a raw video
stream, it's around 2GB for 60 minutes news (non-HD) broadcast, I'd like
to re-encode to a smaller file size suitable for playing on a 4" mobile
phone, as well as 10" tablet, either streaming or from file on the device=
.

target devices are:
800x1280 pixels,(~149 ppi pixel density)
540 x 960 pixels, (~275 ppi pixel density)

is ffmpeg and/or mencoder what is needed ?

what options should I be using, I'm trying like (what I've found in some
tutorials):

ffmpeg -i movie.ts -ab 128 -b 10000 movie.mpg

mencoder movie.ts -oac mp3lame -lameopts cbr:mode=3D2:br=3D96 -af
resample=3D44100 -srate 44100 -ofps 20 -ovc lavc -lavcopts
vcodec=3Dmpeg4:mbd=3D2:cbp:trell:vbitrate=3D300 -vf scale=3D960:540 -ffou=
rcc XVID
-o movie1.mpeg

ffmpeg identifies .ts as:

Stream #0.0[0xa2]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR
16:9], 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0.1[0x53](eng): Audio: mp2, 48000 Hz, 2 channels, s16, 192 kb/s
Stream #0.2[0x2a](eng): Subtitle: 0x0006
Stream #0.3[0x1388]: Data: 0x000b

mencoder says:

TS file format detected.
VIDEO MPEG2(pid=3D162) AUDIO MPA(pid=3D83) SUB Teletext(pid=3D42)  PROGRA=
M N. 770
VIDEO:  MPEG2  720x576  (aspect 3)  25.000 fps  10000.0 kbps (1250.0 kbyt=
e/s)
[V] filefmt:29  fourcc:0x10000002  size:720x576  fps:25.000  ftime:=3D0.0=
400




--=20
Voytek

--=20
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html