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!
+ Reply to Thread
Results 1 to 9 of 9
-
-
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. -
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 -
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 -
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 -
Try it on a shorter test file so you can make sure it works properly.
-
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.
Similar Threads
-
h.264 in a mpeg2-ts container
By vid2me in forum Video ConversionReplies: 14Last Post: 26th Aug 2010, 14:40 -
Empty audio files when converting MPEG2 with h.264 mencoder or h.264 x264
By doctormelodious in forum ffmpegX general discussionReplies: 3Last Post: 4th Jul 2010, 08:12 -
MPEG2 to H.264 (or x.264) FLV- how to do that?
By spycam in forum Video ConversionReplies: 9Last Post: 11th May 2010, 10:20 -
H.264 TS to MPEG2
By kh1369 in forum Video ConversionReplies: 5Last Post: 17th Mar 2009, 15:13 -
.TS H.264 to MPEG2
By digital-mann in forum Video ConversionReplies: 0Last Post: 23rd Jan 2009, 07:59