Page 1 of 1

vlc player as ts to mpg/mkv converter

Posted: 21 Feb 2011 00:23
by sopron
hello.

I load source TS files from dvb-t receiver into vlc. if the source TS contains mpeg2 video and mp2 audio, I set the converter to "mantain original audio/video track", incapsulation "mpeg-ts", output file extension ".mpg". burn. The playback on my bd standalone player works fine!
if the source TS is h264-AVC 4.0, audio mp2, I "need" to set "personalize settings" I say "need" because this seems the only working setting, if I mantain original audio/video track my player dont recognize the output file (mpg or mkv).
also customize setting:
I get the fps, Kbps...from MediaInfo, incapusulation "MKV". I get a mp4 file (but my player cannot read mp4 files and mkvmergegui tell me:
>The AVC video track is missing the 'CTTS' atom for frame timecode offsets. However, AVC/h.264 allows frames to have more than the traditional one (for P frames) or two (for B frames) references to other frames. The timecodes for such frames will be out-of-order, and the 'CTTS' atom is needed for getting the timecodes right. As it is missing the timecodes for this track might be wrong. You should watch the resulting file and make sure that it looks like you expected it to.
<).
But the bad thing is that VLC player playbacks only 5 seconds of the sample source video (59seconds). Also VLC converter converted 5 seconds only ?!?
can you help me please. how to set the converter?
where can I upload my sample file TS?
thanks a lot in advance.
BRegards

Re: vlc player as ts to mpg/mkv converter

Posted: 21 Feb 2011 23:58
by sopron
latest news :-)

source file TS MPEG2: no problem! very fine.

source file TS H264-AVC: now I have found the settings for VLC converter:
profile: video H.264 + aac (mp4)...custom settings needed:
audio mpeg2, but I get audio mp3 only (?!!?)
video 264, 10400Kbps, 25fps.
incapsulation: mkv (or mp4, the same effects). file extension: i forced *.MKV* or mp4 (the same effect).

now the playback is good (even if the sync is not 100% perfect as the source file TS).
but there is a little problem:
some frames appear pixelated, some frames only. I have the snapshots but how to upload them in this forum???
can you help me with the settings so that I get a good video?
thanks.

Re: vlc player as ts to mpg/mkv converter

Posted: 22 Feb 2011 15:28
by sopron
today update!!

this is the big problem, now I know it:

The resulting file MKV --after processing with VLC converter-- uses more than 4 Reference Frames. My player does not support playing back files which exceed 4 Reference Frames! (> pixelated)

what to do? what about the settings to get a MKV file (h264 avc) with 4 reference frames only? is it possible?
I hope this were possible. Please let me know how to set your programm. thanks a lot.


here the file handled with VLC:
http://rapidshare.com/files/449194871/carabinieri.mkv

Re: vlc player as ts to mpg/mkv converter

Posted: 22 Feb 2011 22:53
by sopron
as above reported:
The AVC video track is missing the 'CTTS' atom for frame timecode offsets. However, AVC/h.264 allows frames to have more than the traditional one (for P frames) or two (for B frames) references to other frames. The timecodes for such frames will be out-of-order, and the 'CTTS' atom is needed for getting the timecodes right. As it is missing the timecodes for this track might be wrong. You should watch the resulting file and make sure that it looks like you expected it to.

I have found this purpose, 5 years ago. perhaps this have what to do with my problems???

http://trac.videolan.org/vlc/ticket/711

Re: vlc player as ts to mpg/mkv converter

Posted: 23 Feb 2011 17:10
by sopron
It's a limitation of the GUI. It doesn't expose the advanced encoding settings that really need to be tweaked for compatible output. "Transcoding" through VLC's command line interface would work, but the command line syntax is quite convoluted and I couldn't find up-to-date examples with a quick search.
Can you please send me the syntax?
Thanks in advance.

Re: vlc player as ts to mpg/mkv converter

Posted: 27 Feb 2011 00:44
by sopron
anyway thanks a lot.
Problem solved with Handbrake.

Re: vlc player as ts to mpg/mkv converter

Posted: 21 Jul 2014 21:40
by michaelmotes
Thanks, helped me.