View Full Version : Playing .ts (.264) and .m2v file without break
blahapa
25th August 2010, 08:35
Hi everybody, I got stucked after 4 months trying to play h.264 transport stream (.ts) and mpeg2 file (.m2v) in one playlist without any break.
Do anyone knows, if this has any solution? I tryed really a lot of programs a utilities but without any positive result. I need to play the files without any change (no recompression).
If really doesnt exists any smart aplication where it is possible to play it then it is needed to convert files into full data rate HD .AVI without compression (1,244 Gb/s). VirtualDub can convert .m2v file but I dont know where I can convert .ts (.264) file.
Also I dont know if VirtualDub can convert to AVI and leave the video INTERLACED - it is necessary for my future work.
Here are the videos (my website):
http://blahapa.borec.cz/vid/vidDOOM9.rar
Thank you for all suggestions... it will really help.
Blue_MiSfit
25th August 2010, 08:49
Hi,
So the problem is this?
1) Making playlist including both .ts containing H.264 and MPEG-2 ES
2) On playback, there is a pause / black screen as the H.264 TS finishes, before the MPEG-2 ES starts
Right?
If so, you probably won't be able to fix that. Gapless playback works great for audio, never seen it perfect for video (yet) ;)
You should probably use AviSynth to stitch your clips together. FFMS2 can handle decoding both these formats. Example script:
a=FFVideoSource("movie1.ts")
b=FFVideoSource("movie2.m2v")
a+b
Load this script into VirtualDub and transcode to whatever you want. Certainly not uncompressed unless you absolutely must have it! Lagarith is probably a good choice. Even more practical (since you're trying to play this back in real-time) would be x264 at a very high bitrate (think like --crf 16 or so) with --tune fastdecode if your system can't keep up with decoding.
Derek
blahapa
25th August 2010, 09:26
Thank you for quick answer, Derek...
Hi,
So the problem is this?
1) Making playlist including both .ts containing H.264 and MPEG-2 ES
2) On playback, there is a pause / black screen as the H.264 TS finishes, before the MPEG-2 ES starts
There is small black screen when H.264 TS finishes, but greater problem is, when H.264 starts. That means, when MPEG-2 is at the end.
If so, you probably won't be able to fix that. Gapless playback works great for audio, never seen it perfect for video (yet) ;)
I have seen it for video using AviSynth and VirtualDub:)
You should probably use AviSynth to stitch your clips together. FFMS2 can handle decoding both these formats.
I canīt handle .ts or .m2v file using AviSynth till now.
Anyway if I will use FFmpegSource2 (it is written here:
http://ffmpegsource.googlecode.com/svn/trunk/doc/ffms2-avisynth.html) I will get artifacts if I will try to decode h264 ts.
I will try to use FFMS2 because I cant play it till now without it. If it is possible to play the videos somehow, itīs nice.
Load this script into VirtualDub and transcode to whatever you want. Certainly not uncompressed unless you absolutely must have it! Lagarith is probably a good choice. Even more practical (since you're trying to play this back in real-time) would be x264 at a very high bitrate (think like --crf 16 or so) with --tune fastdecode if your system can't keep up with decoding.
As I wrote before I canīt to recomress it, I need to play it with the same quality. Only way is to decode it to 1,244 Gbps and buy SSD harddisk to play file with this bitrate.
Lagarith canīt help me because you can use it for editing or archiving without loss of quality.
I donīt know how to programm ffmpeg, I will look at this possibility. If ffmpeg can convert .ts h264 to .avi interlaced 1,244 Gbps, it will really help.
Thank you one more time...
Blue_MiSfit
25th August 2010, 19:15
Happy to help!
1) FFMS2 issues with H.264 in TS - Remux to MKV with MKVMerge first
2) Why must it be the same mathematical quality? I assure you a transcode to high bitrate h.264 will create no visual issues
3) Gapless playback with AviSynth - that's an idea actually. If you can get smooth playback with ffms2, just make an avs that loads both videos, and play that avs file in media player classic :D
Derek
blahapa
25th August 2010, 20:44
Iīll try FFMS2 :)
It is not necessary to have the same mathematical quality. I know that if I will convert it to the high bitrate video, no one will recognize anything. But that I need to determine. I am going to do subjective tests of certain videosequences. But yes, if you know that this conversion is ok for video quality, I will try to do it.
I dont know if it is possible to play this type o videos using avs file. Iīll try tomorrow I hope and write here the results.
Thanx one more time.
Blue_MiSfit
26th August 2010, 02:41
Of course :)
x264 using --crf 16 should be more than transparent for all but the most obnoxious corner cases. That will be probably produce the most reliable playback. Hopefully direct AviSynth playback works too!
Good luck :D
Derek
Reimar
26th August 2010, 07:26
While timing might be slightly of when switching between the files,
mplayer -vo gl -fixed-vo
should handle it at least without any black frame or anything in-between.
I haven't tested it recently, but I know it worked well enough for me once (though my standards aren't that high)...
7ekno
26th August 2010, 11:05
The KMPlayer or better POTPlayer with "seamless playback" should also do it ;)
Tek
roozhou
26th August 2010, 16:55
While timing might be slightly of when switching between the files,
mplayer -vo gl -fixed-vo
should handle it at least without any black frame or anything in-between.
I haven't tested it recently, but I know it worked well enough for me once (though my standards aren't that high)...
On windows if you are playing in fullscreen, the video window will go back to normal size when switching to another file.
nm
26th August 2010, 18:15
On windows if you are playing in fullscreen, the video window will go back to normal size when switching to another file.
Even with -vo gl?
Reimar
27th August 2010, 07:48
On windows if you are playing in fullscreen, the video window will go back to normal size when switching to another file.
Only if you switched to fullscreen during playback, not if you started MPlayer with -fs.
There are patches around to change this, however when I proposed them I had the impression of almost as many people being against as for changing it, so I never finished them.
blahapa
30th August 2010, 20:20
Hi guys, thank you for so many solutions,
but the videos I am working with arenīt commonly. Try to download it from tthe link above:
http://blahapa.borec.cz/vid/vidDOOM9.rar
M2V video is more or less normal mpeg2 and almost any player can read it but I canīt play .ts file (H.264 trabsport stream) in a lot of players (including player). This video is taken from professional hardware H.264 coder.
If you are able to help it is necessary to download it and than try to play .ts and than .m2v file. If it will work in any player woth almost no black screen or any break tell me please how you did it:)
I am going to try what Mr. Blue... wrote. :rolleyes:
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.