VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    May 2005
    Location
    Singapore
    Search Comp PM
    i know there's another thread regarding this but mines a different case and i didn't wanna hijack his thread.

    i downloaded a .ts file. I could watch it with my VLC player. Wanna convert it to mpeg so i can compress it subsequently. i used the program HDTV2MPG from a tutorial, but the the program crashes everytime i load in the .ts file.

    anyone can help me out here? thx!!
    Forgive the Noob
    Quote Quote  
  2. Is the .ts file HDTV or is it SDTV? If it is HDTV, then try this:

    1) Create a .d2v index file using dgIndex.

    2) Process the .d2v file in AviSynth

    3) Feed .avs file to your favorite encoder.

    Code:
    loadplugin("C:\Program Files\AviSynth 2.5\plugins\MPEGDecoder.dll")
    vNTSC=MPEG2source("c:\video\work\bonjovi.d2v").cropbottom(8)
    return v720x480i(vNTSC)
    
    # Converts 1920x1080i to 720x480i anamorphic
    function v720x480i(v)
    {
    	# deinterlace the video
    	v=bob(v)
    
    	# resize and reinterlace
    	v=v.BilinearResize(720,480)
    	#v=v.SeparateFields.SelectEvery(4,0,3)# BFF
    	v=v.SeparateFields.SelectEvery(4,1,2)# TFF
    	v=converttoyuy2(v)# corrects interlace artifacts
    	v=weave(v)
    
    	return(v)
    }
    Darryl
    Quote Quote  
  3. Member
    Join Date
    May 2005
    Location
    Singapore
    Search Comp PM
    is there a way to find out whether it's a HDTV .ts or SDTV .ts?
    Forgive the Noob
    Quote Quote  
  4. You'll know as soon as you see it in dgIndex. It will be huge. You could also stick a "return vNTSC" before the "return v720x480i(vNTSC)" in the script. Then load it into Virtual Dub to see its resolution.


    darryl
    Quote Quote  
  5. Member edDV's Avatar
    Join Date
    Mar 2004
    Location
    Northern California, USA
    Search Comp PM
    A TS file is a multiplexed stream that can contain many video, audio and data streams. First step is to figure out what is in the TS stream and separate what you want.

    This can be done with programs like HDTV2MPEG2 which will show you what is there and allow you to separate what you want.

    If the file crashes your system, try another file. If that crashes your system, suspect a system problem.
    Recommends: Kiva.org - Loans that change lives.
    http://www.kiva.org/about
    Quote Quote  
  6. 2 solutions
    1 try mpeg_streamclip
    or
    or try pvastumento
    both progs are abaiable here
    with the first one you can convert to a mpeg program stream
    with the latter you you first demux the stream and after that you can mux into a mpeg stream
    Quote Quote  
  7. correction
    some typo's in my previous message
    pvastrumento
    mpeg_streamclip
    you can download these here on this site
    Quote Quote  
  8. Member
    Join Date
    May 2005
    Location
    Singapore
    Search Comp PM
    righto...i'll try 'em out.thx
    Forgive the Noob
    Quote Quote  
  9. Originally Posted by edDV
    A TS file is a multiplexed stream that can contain many video, audio and data streams. First step is to figure out what is in the TS stream and separate what you want.

    This can be done with programs like HDTV2MPEG2 which will show you what is there and allow you to separate what you want.

    If the file crashes your system, try another file. If that crashes your system, suspect a system problem.
    I forgot about that. dgIndex will also let you select your stream. You can also view your .ts file in VLC Player, and check out the different streams.


    Darryl
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!