Log in

View Full Version : Re-Encoding .ts with H 264 Video


vrscdx
25th July 2009, 01:04
I'm trying to figure out a quick(er) way to take a .ts file from Directv broadcasts and make them smaller.

Right now for instance, I've got a 30 minute video that is 3.46GB (1280x720 59.997 FPS). I'd like to get it anywhere from 800MB to 2GB. To my uneducated mind, it seems like it should be simple, but I have downloaded and tried more than half a dozen programs, with no luck.

Can someone take pity on me and point me in the right direction?

Thanks!

TheRyuu
25th July 2009, 01:23
How about this:

ffvideosource("blah.ts") #FFMS2 to source the video

deinterlacers()/tfm()/whateverhere()
filters()

Then just throw that at x264 with the desired bitrate/crf and you'll have a smaller mkv. If you want to keep a ts then you can use tsmuxer (and appropriate level settings in x264) to make a transport stream.

Handle the audio separately until the final muxing (if you change it at all).
You can use DGAVCIndex to demux the audio (and source the video if you like).

FFMS2 (http://forum.doom9.org/showthread.php?t=127037)

Edit: I'm not sure if you said your original tranport stream is h264 or not...
If it's mpeg2 video then use dgindex to index and source the video instead of FFMS2.

vrscdx
25th July 2009, 01:57
How about this:

ffvideosource("blah.ts") #FFMS2 to source the video

deinterlacers()/tfm()/whateverhere()
filters()

Then just throw that at x264 with the desired bitrate/crf and you'll have a smaller mkv. If you want to keep a ts then you can use tsmuxer (and appropriate level settings in x264) to make a transport stream.

Handle the audio separately until the final muxing (if you change it at all).
You can use DGAVCIndex to demux the audio (and source the video if you like).

FFMS2 (http://forum.doom9.org/showthread.php?t=127037)

Edit: I'm not sure if you said your original tranport stream is h264 or not...
If it's mpeg2 video then use dgindex to index and source the video instead of FFMS2.

Thanks for the help!

Unfortunately, I'm even more of a novice than that...First question, the code you supplied above, where is that entered, notepad?

I've downloaded ffms2, as well as avisynth, but I'm not sure how to make avisynth see that notepad file.

I could be out in left field, but I'm trying as much as I can to do it.

Thanks!

Oh, and yes, original is a .ts with H.264.

LoRd_MuldeR
25th July 2009, 02:11
Unfortunately, I'm even more of a novice than that...First question, the code you supplied above, where is that entered, notepad?

That is an Avisynth script. Avisynth is your ultimate weapon for video processing ;)

You better start reading the tutorials in the Avisynth Wiki:
http://avisynth.org/mediawiki/Main_Page

Especially these articles:
* http://avisynth.org/mediawiki/First_script
* http://avisynth.org/mediawiki/Getting_started
* http://avisynth.org/mediawiki/Filter_introduction
* http://avisynth.org/mediawiki/Script_examples

Also these:
* http://www.neuron2.net/dgmpgdec/DGDecodeManual.html
* http://www.neuron2.net/dgavcdec/DGAVCDecodeManual.html

vrscdx
25th July 2009, 02:24
Thank you!

Guest
28th July 2009, 04:31
I'm curious to know how you capture AVC transport off DirecTV because it is scrambled. I do it with the Hauppauge HD-PVR, but it uses an analog connection and encodes AVC TS on the fly.