Re: video re-encoding to suit mobile device ?
elliott-brennan <[email protected]> Fri, 7 Oct 2011 12:18:53 +1100
| Newsgroups | gmane.org.user-groups.slug.chat |
|---|---|
| Message-ID | <CAPw64cGTOeXvSLa67094b_0DWfFZg2KxG_3TELZEV5yuB2QMzA@mail.gmail.com> |
--===============0184760917536825069== Content-Type: multipart/alternative; boundary=20cf302240397f8b7404aeab3914 --20cf302240397f8b7404aeab3914 Content-Type: text/plain; charset=ISO-8859-1 Voytek wrote: > 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=2:br=96 -af > resample=44100 -srate 44100 -ofps 20 -ovc lavc -lavcopts > vcodec=mpeg4:mbd=2:cbp:trell:vbitrate=300 -vf scale=960:540 -ffourcc 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=162) AUDIO MPA(pid=83) SUB Teletext(pid=42) PROGRAM N. 770 > VIDEO: MPEG2 720x576 (aspect 3) 25.000 fps 10000.0 kbps (1250.0 kbyte/s) > [V] filefmt:29 fourcc:0x10000002 size:720x576 fps:25.000 ftime:=0.0400 > > > > > -- > Voyt Hi Voytek, It really depends on what type of video your devices can play and whether you want to edit out the ads. I'm back from hols in a few days and can send a more detailed reply then if you'd like. Regards, Patrick --20cf302240397f8b7404aeab3914 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <p>Voytek wrote:<br> > I have a PVR that records TV as a .ts file, apparently it's a raw = video<br> > stream, it's around 2GB for 60 minutes news (non-HD) broadcast, I&= #39;d like<br> > to re-encode to a smaller file size suitable for playing on a 4" = mobile<br> > phone, as well as 10" tablet, either streaming or from file on th= e device.<br> ><br> > target devices are:<br> > 800x1280 pixels,(~149 ppi pixel density)<br> > 540 x 960 pixels, (~275 ppi pixel density)<br> ><br> > is ffmpeg and/or mencoder what is needed ?<br> ><br> > what options should I be using, I'm trying like (what I've fou= nd in some<br> > tutorials):<br> ><br> > ffmpeg -i movie.ts -ab 128 -b 10000 movie.mpg<br> ><br> > mencoder movie.ts -oac mp3lame -lameopts cbr:mode=3D2:br=3D96 -af<br> > resample=3D44100 -srate 44100 -ofps 20 -ovc lavc -lavcopts<br> > vcodec=3Dmpeg4:mbd=3D2:cbp:trell:vbitrate=3D300 -vf scale=3D960:540 -f= fourcc XVID<br> > -o movie1.mpeg<br> ><br> > ffmpeg identifies .ts as:<br> ><br> > Stream #0.0[0xa2]: Video: mpeg2video, yuv420p, 720x576 [PAR 64:45 DAR<= br> > 16:9], 10000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc<br> > Stream #0.1[0x53](eng): Audio: mp2, 48000 Hz, 2 channels, s16, 192 kb/= s<br> > Stream #0.2[0x2a](eng): Subtitle: 0x0006<br> > Stream #0.3[0x1388]: Data: 0x000b<br> ><br> > mencoder says:<br> ><br> > TS file format detected.<br> > VIDEO MPEG2(pid=3D162) AUDIO MPA(pid=3D83) SUB Teletext(pid=3D42) =A0P= ROGRAM N. 770<br> > VIDEO: =A0MPEG2 =A0720x576 =A0(aspect 3) =A025.000 fps =A010000.0 kbps= (1250.0 kbyte/s)<br> > [V] filefmt:29 =A0fourcc:0x10000002 =A0size:720x576 =A0fps:25.000 =A0f= time:=3D0.0400<br> ><br> ><br> ><br> ><br> > --<br> > Voyt<br></p> <p>Hi Voytek,</p> <p>It really depends on what type of video your devices can play and whethe= r you want to edit out the ads.</p> <p>I'm back from hols in a few days and can send a more detailed reply = then if you'd like.</p> <p>Regards,</p> <p>Patrick</p> --20cf302240397f8b7404aeab3914-- --===============0184760917536825069== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html --===============0184760917536825069==--