How to convert .ts files to mkv or avi
Hi!
I just bought from Terratec a Cinergy C PCI HD together with the Common Interface adon and a CI-module. Unfortunately I haven't been able to make the card work under linux, even by using the experimental "mantis" kernel-module. Anyway I afterwards quickly built a small PC using all the spare parts I had lying around, installed Windows XP on it and after that I've been finally able to record TV in HD. Now my problem is that I record the raw TV-stream (video uses h264 and sound is ac3 5 channels) as a ".ts" stream file. Using mplayer/mencoder in Linux I can watch the movie directly from the .ts-file and everything works fine, but whenever I try to transcode the contents to x264/ac3 to use a smaller video bitrate and another container (mkv), I lose audio/video sync. Whenever I jump with mplayer to e.g. +10 minutes, the video continues to play fine, but the audio starts over from the beginning of the movie. Does somebody have a clue how I can transcode the .ts-file without losing audio/video sync? Right now I am trying the following... Code:
#Video 1st pass Thanks! :scratch: |
see if this helps?
http://www.togaware.com/linux/surviv...Transport.html |
Thank you! Let me have a look...
|
Damn, it worked!!!
And it was sooo easy! I should hit myself twice on the head with a monitor for not having been able to do it without your help! TONK! TONK! Done. I probably ran previously a very similar command but perhaps I inserted the "-of rawfile" option, that might have been the reason why I lost the sync. So, in the end now I am using: Code:
mencoder $1 -oac copy -ovc lavc -lavcopts vcodec=libx264:vbitrate=13000:vpass=1:threads=2:turbo:mbd=2:trell=yes:v4mv=yes:autoaspect:predia=2:dia=2 -o /dev/null |
All times are GMT -5. The time now is 04:53 AM. |