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
mencoder $1 -oac copy -of rawvideo -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
cp x264_2pass.log divx2pass.log
#Video 2nd pass
mencoder $1 -oac copy -of rawvideo -ovc lavc -lavcopts vcodec=libx264:vbitrate=13000:vpass=2:threads=2:mbd=2:trell=yes:v4mv=yes:autoaspect:predia=2:dia=2 -o converted_$1.video
#Audio
mplayer $1 -vo null -ao pcm:fast:file=converted_$1.audio
...and once it's done I'll somehow try to put both video and audio files into a mkv, but I'm not sure that it will work... . I'm not sure about the audio part - I know it's an ac3, but last time I tried with just a "mencoder -oac copy ...." I got again a async audio... .
Thanks!