VideoHelp Forum




+ Reply to Thread
Results 1 to 9 of 9
  1. Member
    Join Date
    Jan 2005
    Location
    Israel
    Search Comp PM
    what is the easiest & simplest way to convert from H/X.264 to mpeg2 with ts/mpeg container?
    i need a solution that will require as little as possible intervention from the user side.
    in addition, if the source file has 5.1 audio, i need the output to have the same 5.1
    Thanks!
    Quote Quote  
  2. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    So the Mpeg2 needs to be a Transport Stream File ? Easiest would probably be AviDemux , but the app isn't 100% stable yet.

    What type of container is the h264 file in - MP4, AVI, MOV, TS ?

    Do the files all have the same dimensions, settings, etc ?

    Most importantly, is the h264 file interlaced ? Post a short clip somewhere.
    Quote Quote  
  3. Member
    Join Date
    Jan 2005
    Location
    Israel
    Search Comp PM
    the H.264 is in a TS/mkv container.
    the video is sometimes progressive and some time interlaced.
    some info about one of the files (most of them are with the same characteristic):
    Video Codec.......: H264 (Remux)
    Video Aspect Ratio: 2.35:1
    Video Resolution..: 1920 x 1080
    Size..............: 12.2 GB
    Audio Codec.......: AC3
    Audio BitRate.....: 640kb/sec
    Audio Channels....: 5.1
    Language..........: English
    Length............: 1:28:09
    Quote Quote  
  4. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Is the file extension TS or MKV ?

    "Sometimes progressive/sometimes interlaced" sounds like PAFF, in which case you'll need:

    * CoreAVC by CoreCodec is a highly optimized commercial H.264 decoder. According to independent tests by people on the Doom9.org forums, it is the fastest software decoder as of June 2006. The standard version supports Baseline Profile, Main Profile and High profile, except interlaced video. The professional edition supports both PAFF and MBAFF interlaced video beginning from version 1.1. The professional edition also supports speedups on SMP capable systems. $8.00

    There won't be a free way to decode PAFF until late summer:

    http://wiki.multimedia.cx/index.php?title=Summer_Of_Code_2007
    Quote Quote  
  5. Member
    Join Date
    Jan 2005
    Location
    Israel
    Search Comp PM
    file extension sometimes TS or MKV.
    i have CoreAVC 1.2 pro.
    now what?
    Quote Quote  
  6. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    The MKVs might be VERY difficult to convert. Let's start with the TS files.


    Make sure you rename your file to Input.ts You'll also need to install Avisynth and have the .NET 2.0 runtimes installed.



    This should be the file to download

    http://www.bestsharing.com/files/EhLsL239733/enc2mpeg2_NEW_R2.zip.html

    Here's a config for 1920x1080 encoding
    _1920x1080_encode_fast.rar

    Towards the bottom of this page are the instructions.

    https://forum.videohelp.com/viewtopic.php?t=323601&postdays=0&postorder=asc&start=30
    Quote Quote  
  7. Member
    Join Date
    Jan 2005
    Location
    Israel
    Search Comp PM
    i'll try that.
    Thanks!
    Quote Quote  
  8. Member Soopafresh's Avatar
    Join Date
    Jan 2004
    Location
    United States
    Search Comp PM
    Try it on a shorter test file so you can make sure it works properly.
    Quote Quote  
  9. Member
    Join Date
    Aug 2002
    Location
    Sweden
    Search PM
    I have successfully encoded from h.264 TS in following way.

    1) Edit the TS:
    Use TS Packet Editor to trim start and stop and generate a trimmed TS file (only needed if you have captured TS and need to trim start and stop of video).

    2) Demux audio tracks with projectX by disable the video stream in projectX before demuxing (bacause projectX can not handle h.264 video). Alternatively demux with xport or any demuxer that can demux .ts streams with h.264.

    3) Use GraphEdit to generate a working directshow graph for playback of the .ts file. remove the video renderer and directshow audio playback device from the graph and save as graph file.

    4) Load the graph file from graph edit with Directshow source in avisynth (I get only video, no audio when I do this, that is why I needed to trim and export audio separately).

    5) Encode MPEG-2 elementary video stream from the avs file with HC Encoder. The latest version supports high definition MPEG-2 encoding.

    6) multiplex the MPEG-2 elementary stream and with the audio generated in step 2) above. Not sure which multiplexer is best to use here, especially how to mux to .ts file. I think Elecard Xmuxer may work or maybe VideoReDo.

    This is not the easy way, but if nothing else work you can try it.
    Quote Quote  



Similar Threads

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