INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Play . TS Files  (Read 6620 times)

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Play . TS Files
« on: October 10, 2007, 06:38:31 am »

Hello,

I cannot play in MC, the Mpeg files with .TS extension

the list of MPEG files is limited to :

MPEG VIDEO
mp2,mpeg,mpg,m1v,mpv,mpe,m2v,m2t,tp

I saw in this thread:
http://yabb.jriver.com/interact/index.php?topic=41355.msg282990#msg282990
,that we can modify the file:
C:\Program Files\J River\Media Center 12\Data\Default Resources\FileAssociations.xml
, to be able to see some new video files (as .TP files)

I added "ts" at the end of the MPEG list to have :

MPEG VIDEO
mp2,mpeg,mpg,m1v,mpv,mpe,m2v,m2t,tp,ts

Problem :

when I run auto import:
I find all the new .ts files in the "recently imported" window

but...
no .ts file are added in the library :(

Why ?

Thanks for any help :)

PS:
I don't want to rename each video of my big collection of TS files..
I only installed CCCP pack and Real alt & QT alt
I enabled "Shell Integration"
TS files are played OK on the same computer, in VLC, MPC..
in MPC : filters used : ffdshow video & audio decoder, audio switcher, VMR7 renderless
If I double-clik on a ts file inside the "recently imported" window, it opens in MPC installed by CCCP
Logged
Jean-Max

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Play . TS Files
« Reply #1 on: October 10, 2007, 08:29:09 am »

It's possible that they are importing but not being properly detected as video files.  Do you have a Documents item in your Tree?  If so, are they in there?
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Re: Play . TS Files
« Reply #2 on: October 10, 2007, 12:19:16 pm »

It's possible that they are importing but not being properly detected as video files.  Do you have a Documents item in your Tree?  If so, are they in there?

I don't understand exactly your question..

The video files are all on my distant MS Home Server, in the directory \\Home-server\Videos\

The TS files, are, like all the other HD video files, on the root of this directory \\Home-server\Videos\

In MC, in /Tools / Auto import Options /  ,  there is \\Home-server\Videos\  (and another different shared directories for Photos & Music)

Settings for this Video shared distant folder are :

All the video formats checked (and TS format is successfully added at the end of the MPEG video files fomat)
Are checked "ignore files previously removed from library and "Ignore special files (folder.jpg etc)

In this Video directory, there are also 2 kinds on non video files :

- some .JPG files (which where the covers of the HD video files, when I used Vista MCE)
- some .SRT files which are the sub titles files

I saw that all the TS files where  imported neither in Video, nor in Music or in Photos

So .. What can I do ?

Thanks :) :)
Logged
Jean-Max

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Play . TS Files
« Reply #3 on: October 10, 2007, 01:38:03 pm »

If MC doesn't know what kind of file it is that it imported, it will assign the file to the "document" media type and it will show up under Documents in the Tree (which is where it puts Text files and MS Word files and other stuff like that).  Do you have an item named "Documents" in your tree underneath Audio/Images/Video?  Are the TS files in there?

If the files end up in the Recently Imported list, then they've been imported into the library.  You just can't find them.

Either your Video view scheme is filtering them somehow or they're classified as the wrong media type.
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Re: Play . TS Files
« Reply #4 on: October 12, 2007, 05:24:57 am »

If MC doesn't know what kind of file it is that it imported, it will assign the file to the "document" media type and it will show up under Documents in the Tree (which is where it puts Text files and MS Word files and other stuff like that).  Do you have an item named "Documents" in your tree underneath Audio/Images/Video?  Are the TS files in there?

Yesss!

Have a look:



=> You can see that ALL the .TS files are in "Documents" !

=> Now, what can I do to bring them from Documents to Video zone ?

Thanks :) :)
____________________________________________________________________________
NOTES

All the .TS files are in "Documents", with  some .MKV files ! (it's wrong)
... but most of the .MKV files are in VIDEO zone (it's good) with all the other Video files formats :
Look:



Quote
If the files end up in the Recently Imported list, then they've been imported into the library.  You just can't find them.
Yes!

Quote
Either your Video view scheme is filtering them somehow

Where can be a filter ?
View shemes of Video zone and for Documents zone are by default
look:
Documents view sheme:



Video view sheme:



Quote
or they're classified as the wrong media type.

The good media type is VIDEO, so, I asked that ALL the video formats will be in Video zone:

Look that .MKV and TS are truly in  the auto import VIDEO formats file list:



______________________________________________________________________________

My personal mind:

If I add the TS format in VIDEO auto import selection, it's not for have the TS files in another section, (as the DOCUMENT zone)

Imagine this:
Next month we will have a new VIDEO format with XYZ extension
We will have the new right codec to decode this new XYZ format
As I made for TS extension, I will add the XYZ extension in Video auto import section
So I want that these XYZ files will be automatically imported in Library in "Video" zone and not in another place

Conversely, if I want that these XYZ format files will be imported in "Documents" zone, I will not add this XYZ extension in VIDEO zone !!


With the following rule, MC must not make any mistake :

ALL the files formats existing in auto import VIDEO format files list  must be in VIDEO zone
ALL the files formats existing in auto import MUSIC format files list must be in MUSIC zone
ALL the files formats existing in auto import IMAGES format files list must be in IMAGES zone
and..
All the files formats not checked in the above 3, must be in DOCUMENTS zone

=> Can this rule be implemented by MC programmers ?

Thanks !!

PS : Before recently discovering J River MC, I belonged a long time to the French staff of Mediaportal, so, don't be surprised by my questions ;) ;)




Logged
Jean-Max

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Play . TS Files
« Reply #5 on: October 12, 2007, 05:37:00 am »

why it happened? maybe they were already imported in documents before you changed some of the settings?

but to get the video files that are in documents into video. select a file, open the tags and change 'media type' to video. see if it plays.
when it works you can do that by selecting a bunch.
Logged

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Re: Play . TS Files
« Reply #6 on: October 12, 2007, 07:28:26 am »

why it happened? maybe they were already imported in documents before you changed some of the settings?
but to get the video files that are in documents into video. select a file, open the tags and change 'media type' to video. see if it plays.
when it works you can do that by selecting a bunch.

Thanks!

-(1)- I didn't change any settings after launching the auto import action..

-(2)- In Documents zone, I see that the tag of all the TS files (and some MKV) files)  was "DATA" instead of "VIDEO":



For TS files, I batch-changed the tags from DATA to VIDEO
=>  OK : All the TS file are now in VIDEO library

BUT ...
Impossible to play any TS file from VIDEO zone :(

Error Message:



I don't understand the Error message, because all the TS files are in the right place on the disk and now, in the good "Video" library :



=> So What happens ?

Note:

-(A)- Instead of the above error messge, I can also have another error : 
"Licence error message"
..but.. none of any of my video TS file has licence or  DRM !!

-(B)- When the TS files where in the wrong Documents zone, double clicking on them, played them well in MPC

Now, the same TS files are in the good VIDEO zone, and.. there is the Error message shown above..

Thanks for your ideas about this :)
Logged
Jean-Max

Alex B

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 10121
  • The Cosmic Bird
Re: Play . TS Files
« Reply #7 on: October 12, 2007, 07:59:48 am »

-(B)- When the TS files where in the wrong Documents zone, double clicking on them, played them well in MPC

Now, the same TS files are in the good VIDEO zone, and.. there is the Error message shown above..

This happens because .ts is not one of the DirectShow file types in MC.

Since you can play them with Media Player Classic your DirectShow filters can play this file type, but MC does not yet have a "play in DirectShow" option for "ts" in Options > Playback > DirectShow playback settings. Perhaps JRiver could add it there.

(the ".ts" extension is intended for "transport stream" video. It is not very common to have those files stored locally. A technical explanation about the "transport stream" format is in this document: http://neuron2.net/library/mpeg2/iso13818-1.pdf)
Logged
The Cosmic Bird - a triple merger of galaxies: http://eso.org/public/news/eso0755

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Play . TS Files
« Reply #8 on: October 12, 2007, 08:18:50 am »

Right.... Glad to see you got it somewhat sorted.  I wasn't sure if MC would be able to handle TS files.  But it doesn't appear that it can as is.  Since the directshow filters really can handle those files, I'd suggest we get Yaobing to add in support for TS file types to MC for us as Alex suggested, which should solve this problem.

However, as Alex mentioned, TS files aren't really designed to be used for playback and storage on computers.  Program Stream files would be a much more appropriate method.  I'd recommend you convert those over to standard MPG container files, which would both solve your problem and make them more reliable and more compatible with other applications.  You can do this completely losslessly, so don't worry about quality.  It is changing the format of the file, not the format (codec) of the video, so it doesn't affect quality.

Here's a nice, free little app that can handle this for you: http://www.midwinter.com/~bcooley/
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: Play . TS Files
« Reply #9 on: October 12, 2007, 08:24:16 am »

I am adding ts.

Jean-Max,

I addition to adding the ts type to
Quote
<Video>MPEG Video (mp2,mpeg,mpg,m1v,mpv,mpe,m2v,m2t,tp,ts); ... ...
as you did, you also need to add it to this line:

<DXTypes>wma;snd;aif;aifc;aiff;mid;rmi;midi;mpeg;mpg;m1v;m2v;mp2;mpa;mpe;m2t;tp;ts;asx; ... ... </DXTypes>
Logged
Yaobing Deng, JRiver Media Center

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Re: Play . TS Files
« Reply #10 on: October 12, 2007, 09:18:23 am »

I am adding ts.

Jean-Max,
I addition to adding the ts type to as you did, you also need to add it to this line:
<DXTypes>wma;snd;aif;aifc;aiff;mid;rmi;midi;mpeg;mpg;m1v;m2v;mp2;mpa;mpe;m2t;tp;ts;asx; ... ... </DXTypes>

OK!!
But... In what file can-I find this line "<DXTypes>......" ?

Thanks ! :)
Logged
Jean-Max

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72444
  • Where did I put my teeth?
Re: Play . TS Files
« Reply #11 on: October 12, 2007, 09:22:51 am »

The registry.
Logged

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Play . TS Files
« Reply #12 on: October 12, 2007, 09:31:52 am »

The registry.

No... I mean it's there too, but the MUCH easier place to put it is in that same FileAssociations.xml file.

C:\Program Files\J River\Media Center 12\Data\Default Resources\FileAssociations.xml

Code: [Select]
<!-- Types (by category) -->
<MJTypes>mp3;wav;raw;au;wma;ogg;ape;apl;mac;mp+;mpc;mpp;vqf;cda;mpga;jmx;shn;aa;ifo;vob;opml</MJTypes>

<IMGTypes>jpg;jpe;gif;jpeg;bmp;tif;tiff;png;crw;cr2;nef;mrw;orf;raf;pef;dng;srf;arw;x3f</IMGTypes>

<DXTypes>wma;snd;aif;aifc;aiff;mid;rmi;midi;mpeg;mpg;m1v;m2v;mp2;mpa;mpe;m2t;tp;asx;wax;wvx;asf;wm;wmv;avi;wmv;wav;divx;mkv;ogm;dvr-ms;tivo;nsv;flv;jts</DXTypes>
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Re: Play . TS Files
« Reply #13 on: October 12, 2007, 09:36:01 am »

The registry.
"DXTypes" :  Not found anywhere in the Registry :(
Can you tell me where it can be exactly ?

My DirectX version is 9.0c
XP SP2 for the PC on actual testing

Thanks:)
Logged
Jean-Max

gappie

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4580
Re: Play . TS Files
« Reply #14 on: October 12, 2007, 09:42:06 am »

the dxtypes are in the same file as you first changed the fileassociation in. FileAssociations.xml
Logged

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Re: Play . TS Files
« Reply #15 on: October 12, 2007, 10:06:01 am »

No... I mean it's there too, but the MUCH easier place to put it is in that same FileAssociations.xml file.
<DXTypes>wma;snd;aif;aifc;aiff;mid;rmi;midi;mpeg;mpg;m1v;m2v;mp2;mpa;mpe;m2t;tp;ts; asx;wax;wvx;asf;wm;wmv;avi;wmv;wav;divx;mkv;ogm;dvr-ms;tivo;nsv;flv;jts</DXTypes>   

the dxtypes are in the same file as you first changed the fileassociation in. FileAssociations.xml

YESSS! That's it !

All is OK Now !

TS files are manually put in the good zone "VIDEO" and played by MC :)

So....  : Next release for MC ;) ;) :

-(1)- Automatically put TS files in Video zone, if TS is checked in Auto import Video option

-(2)- 2 add ons in
\Program Files\J River\Media Center 12\Data\Default Resources\FileAssociations.xml
<!--
Media Center File Associations XML (Default / English)
ADDON :  +ts on  10oct07 in <Video>MPEG Video
ADDON :  +ts on  12oct07 in <DXTypes>

-->

<MJFA version="1.041">
   
<!-- Descriptions -->
<DescriptionTypes>
....
<Video>MPEG Video (mp2,mpeg,mpg,m1v,mpv,mpe,m2v,m2t,tp,ts)...
...
</DescriptionTypes>

<!-- Defaults -->
...

<!-- Types (by category) -->
...
<DXTypes>wma;snd;aif;aifc;aiff;mid;rmi;midi;mpeg;mpg;m1v;m2v;mp2;mpa;mpe;m2t;tp;ts...
...
</DXTypes>



Thanks for the future ;)


Note on the Transpost Stream format:
As I am only interested by HDTV, HD video files and my HDV camcorder, I can tell you that TS format is most common in HD video world.

On USENET, most of the HD video containers are in TS format
So don't forget it ! ;) ;)
Logged
Jean-Max

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Play . TS Files
« Reply #16 on: October 12, 2007, 10:46:05 am »

Note on the Transpost Stream format:
As I am only interested by HDTV, HD video files and my HDV camcorder, I can tell you that TS format is most common in HD video world.

I'm well aware of the transport stream format.  It is used in all MPEG-2 broadcast and streaming media formats (such as HDV recording onto MiniDV tape, or DVB broadcasts of various types).  However, since it was designed to be used as a streaming format, it isn't ideal for long-term storage on computer disk.  I completely agree that MC needs to be able to handle them (and it now will) but I wouldn't agree with the statement: "TS format is most common in HD video world".  It is quite common for network delivery and broadcast of MPEG-2 encoded HD video (especially HDV) but MXF and PS are far more common for HD video in general, and I still would say that it is a good format for delivery, not storage, of those MPEG-2 encoded assets.

Transport streams are optimized for real-time delivery of a video stream over unreliable transport media, such as terrestrial broadcast or the Internet, to a device which may start reading the stream at some point after the beginning of the transmission.  They include extra timestamps at regular intervals, and all timestamps are assumed to be relative to the most recent timestamp rather than to a fixed point at the start of the "file".  This allows for the receiving device to do error correction and re-sync on the fly, even without receiving the file "header" or if chunks are missing here and there (or received out of order). This is convenient for broadcast, but not optimal for efficient storage or perfect sync.  One of the problems is that if one timecode or keyframe gets corrupted, the entire file can slip out of sync from that point on due to the relative relationship of the timestamps.  TS is optimized for fast "writing" of the file (as opposed to efficient reading of the file) which is why it is used to write out data onto tape (or the blueray-ish disc in the Sony XDCAM format) in camcorders. The other big downside to all of this is that the resulting files are larger than they need to be, and don't play back as reliably.

Program streams are much more efficient, and have more reliable perfect sync.  The timecode information embedded in them is relative to the beginning of the file, rather than the previous timecode.  Plus, the way the audio and video streams are muxed inside the Program Stream file is optimized for more robust playback (lower CPU usage).    This can be incredibly important for 1080p MPEG-2 compressed streams.  Unless you have a relatively new dual-core CPU, it is entirely possible that your computer won't be able to keep up with the decoding of a 1080p MPEG-2 TS file without dropping frames.  The same video converted to a PS will require lower overhead and will be less likely to drop frames or suffer sync problems.  That's why PS is used on DVDs (VOBs are Program Stream muxed MPEGs), SVCDs, and by most Non-Linear Editing applications.

So... I don't dispute that the files are coming to you in TS format.  I just wouldn't keep them that way.  Now, for convenience would I probably short-term store a bunch of TS files on my system if I was using them?  Absolutely, just like I have a bunch of MXF files on my hard drives from my P2 camera even though they aren't really in an optimal long-term storage fomat.  However, for long-term storage and archival, PS (or converting them to H264 compressed MPEG-4 files) would be a much better way to go.

Now... Is this a pain?  Certainly, so you don't have to do it.  Just be aware of the downsides!   :)
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Re: Play . TS Files
« Reply #17 on: October 12, 2007, 11:23:08 am »

..
Transport streams are optimized for real-time delivery of a video stream
..This is convenient for broadcast, but not optimal for efficient storage or perfect sync. 
..
Program streams are much more efficient, and have more reliable perfect sync.
..
..new dual-core CPU, it is entirely possible that your computer won't be able to keep up with the decoding of a 1080p MPEG-2 TS file without dropping frames.  The same video converted to a PS will require lower overhead and will be less likely to drop frames or suffer sync problems.
...
 for long-term storage and archival, PS (or converting them to H264 compressed MPEG-4 files) would be a much better way to go.
..
Now... Is this a pain?  Certainly, so you don't have to do it.  Just be aware of the downsides!   :)
Many thanks for your explanations :) :)

I didn't choose TS format because I loved it, but because I founded it the most common format when I downoad HD files from Usenet or from HD forums like Hdclips.net etc..

Converting all my TS files in another mpeg2 format is not a big job if its possible in batch manner..
but...
I tested HDTVtoMPEG2 1.07 and 1.11.93 to transform a TS file into .Mpg or .Tp File :
the final file is not playable :(
Logged
Jean-Max

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: Play . TS Files
« Reply #18 on: October 12, 2007, 12:57:50 pm »

I omitted a few words ("in the same file") in my last post. Sorry for the confusion. Glad you got it all sorted out.

In the next build of MC ts type will be there.

Thanks glynor and Alex for your help.
Logged
Yaobing Deng, JRiver Media Center

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Play . TS Files
« Reply #19 on: October 12, 2007, 01:00:01 pm »

I tested HDTVtoMPEG2 1.07 and 1.11.93 to tranform a TS file into .Mpg or .Tp File :
the final file is not playable :(

It's been quite a while since I've had to do this.  If I have time I'll give it a test and report back.

As I said, you don't really need to convert them....
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Play . TS Files
« Reply #20 on: October 12, 2007, 05:40:20 pm »

I also ran into TS files when I got my HDV and thanks to Yaobing he happily added the file extensions to MC12 so they can be playable.  After playing with the raw TS files I found Filter selection was important as some combinations stuttered badly while others did not.  Note: I've not played around too much with TS to PS conversion as my current workflow for HDV uses capture by Ulead Video Studio which does an on the fly conversion to PS & all of these files play perfectly.  I have also used HDTVtoMPEG2 on these HDV PS files (captured with HDVSplit) and it is very fast and the resultant files play fine in MC12 (if you have the correct filters loaded for the MPG file type).  Note: reduction in file size is only about 5%.

After playing around with different options I'd have to say I agree with Glynor - I dislike keeping TS files, but simply becase they are more problematic to play.

Thanks
Nathan
Logged
JRiver CEO Elect

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Re: Play . TS Files
« Reply #21 on: October 13, 2007, 03:04:08 am »

After playing around with different options I'd have to say I agree with Glynor - I dislike keeping TS files, but simply because they are more problematic to play.

As it was truly said in this thread, the power of your PC is very important:

This is my experience:

My first HTPC was last year an desktop with an Intel PIV 3.2C @ 3.5, 2 g Ram, and an Nvidia AGP8X 7600GT 256 graphic card (with Nvidia 93.71 whql driver, at this time)

The results:
Some TS files had some lost frames, even if I used the best combination (personally tested between many others)  to read these TS files in WMP11, VLC, MPC, ZP.. or XP MCE2005 :

Matroska Haali Media Splitter 1.7.189.11
(Codec: SPLITTER.AX)

AC3 : AC3 filter 1.45b
(codec AC3FILTER.AX)

Power DVD 7 deluxe  (Very good use of Nvidia card Hardware acceleration ++)
(With its 3 codecs :
Cyberlink Video/SP decoder (PVDV7): Codec: CLVSD.AX    (6.02.2806)
Cyberlink H264 AVC decoder (PVDV7): Codec: CL264DEC.AX (1.7.1.626)
Cyberlink Audio decoder (PVDV7)   : Codec: CLAUD.AX    (6.02.2806))

Note : for Mpeg2 & H264 I tested also Nvidia pure video codec: Good results with Nvidia cards but.. a little under the PVDV7 results !

DirectVobSub 2.37 (for SRT subtitles ..)
(Codec: VSFILTER.DLL)

Direct show Filter Manager 05 (DFM)
With it, I set to "preferred" (00800000) all the codecs in the above list

For the main other HD video formats , I added:

QT alternative 1.81 (MOV,HDMOV,AAC..)
(Codecs: NEQTDEC.AX & COREAAC.AX)

Real Alternative 1.52 (RA,RM,RMVB..)
(Codec: REALMEDIASPLITTER.AX  (6.0.12.1741, Gabest.org)

DivX 6.6 (DiVx 3 to 6)
Codec: DIVXDEC.AX (DivX decoder filter Divx Inc.)

-XVID 1.12  01112006
Codec: XVID.AX (XVID Mpeg-4 Video decoder)


You see that I didn't used FFDSHOW at this time because I saw 3 things with FFDSHOW:

- Complex to setup
- Bad result with HD video files :(
- Non use at all of the hardware acceleration capacity of my different Nvidia cards tested ( 6600GT, 7800GS and last, 7600GT)
_____________________________________________________

Now, my new HTPC is a laptop ! :

Sony Vaio FZ11Z with hdmi hdcp, Blu-Ray writer/reader, Intel Core 2 duo T7300 2gz, 2 g ram, Nvidia 8400 GT 512, HD 200 Sata (but all my multimedia data are on an distant MS Home server)

As it was said in this thread, the power of this kind of PC solve all the problems with TS files !!

=> Not any dropped frame in any HD video file, from 720p to 1080p, on any format, even H264 1080p !,  Tested with  Vista MCE and now  :) with J River MC,

I use only  :
-  J river codecs
-  CCCP pack  (so, FFDSHOW is the main codec)
and
-  Previous Mpeg HD video codec installed on the laptop (very good Intervideo codec from WinDVD Blu-Ray player)


That were my 2 cents ;)

note: I kept all my notes about all the precise setups of the codecs used with my first HTPC; tell me if someone is interested ; I can open a new thread here, for this



Logged
Jean-Max

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Re: Play . TS Files
« Reply #22 on: October 13, 2007, 04:45:04 am »

TS to PS conversion

As you convince me to convert for more secure storing, my TS files in PS format, I had a look-up about this subject

First of all, J River MC is not actually able to play any PS files :(
Like for TS format,
- PS format is not in the Mpeg-2 format files in Video Auto-Import
- PS format is not in
\Program Files\J River\Media Center 12\Data\Default Resources\FileAssociations.xml

So:
I modified \Program Files\J River\Media Center 12\Data\Default Resources\FileAssociations.xml

<!--
Media Center File Associations XML (Default / English)
ADD-ON : + ts on 10oct07 in <Video>MPEG Video
ADD-ON : + ts on 12oct07 in <DXTypes>
ADD-ON : + ps on 13oct07 in <Video>MPEG Video
ADD-ON : + ps on 13oct07 in <DXTypes>

-->
<MJFA version="1.041">
<!-- Descriptions -->
<DescriptionTypes>
....
<Video>MPEG Video (mp2,mpeg,mpg,m1v,mpv,mpe,m2v,m2t,tp,ts,ps,...
...
</DescriptionTypes>
<!-- Defaults -->...
<!-- Types (by category) -->
...
<DXTypes>wma;snd;aif;aifc;aiff;mid;rmi;midi;mpeg;mpg;m1v;m2v;mp2;mpa;mpe;m2t;tp;ts;ps;...
...
</DXTypes>



The result:

The PS files are auto-imported by MC directly in the right VIDEO zone :)
The PS files are perfectly well played by J River MC  :)

=> So : next MCE release : please, MC staff, add the PS video format ;) ;)


To convert successfully my TS files into PS format, I used the often unknown transcoding possibilities of VLC player !:

Using VLC player to convert TS file to PS file

First of all:
Install MediaInfo 0.7.5.3 (freeware)
http://mediainfo.sourceforge.net/en
and see exactly the kind of your TS file

Then,
Install VLC Player 0.86c (Well known Open source player)
http://www.videolan.org/vlc/

Open VLC
File
Open File
Click on "Browse"
Select your TS file to convert
Check the "Stream/Save" option
Click on "Settings"
In the new opened window:
Click on "File"
Click on "Browse"
Give the filename to the future file and choose where it will be stored
Click on "MPEG PS" as Encapsulation method
Click on "OK"
You return to the previous screen
You launch the conversion process by clicking on "OK"
Return to VLC main screen and you follow the progression on a cursor

Note : In "Transcoding options", you can choose a specific codec for Video, Audio and Subtitles, and choose higher bitrates, but in automatic mode, it's OK

My first test :
The original TS file was 107 Mo
The same file coded in in PS is 104 Mo
The 2 files are perfectly played in J Rver MC : no difference.

Funny note : "PS" is an original extension for Paint Shop Pro, so at the first clicking on the new PS file, PSP7 opens ;)

.. et Voilą ! Champain opening !! :)

last INFO:
In J River MC, Thumbnail (Cover) is automatically made if the file is in PS format :)
 , and ...
isn't made if the same file is in TS format :(

=>  Can you tell us the reason? - Thanks !
Logged
Jean-Max

glynor

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 19608
Re: Play . TS Files
« Reply #23 on: October 13, 2007, 11:38:54 am »

The correct extensions for MPEG-2 Program Stream files are:

.mpg or .mpeg for muxed MPEG-2 PS files (or VOB on a DVD)
.m2v for unmuxed MPEG-2 video stream files

If you're using .PS as your file extension, that could be part of the problem.  MC can certainly handle MPEG-2 program stream files.  That's every DVD or MPG file basically!
Logged
"Some cultures are defined by their relationship to cheese."

Visit me on the Interweb Thingie: http://glynor.com/

Jean-Max

  • Junior Woodchuck
  • **
  • Posts: 90
Re: Play . TS Files
« Reply #24 on: October 14, 2007, 03:47:06 am »

The correct extensions for MPEG-2 Program Stream files are:
.mpg or .mpeg for muxed MPEG-2 PS files (or VOB on a DVD)
.m2v for unmuxed MPEG-2 video stream files

Yess!!

I made a mistake :

In VLC, when converting a TS file to  PS format, I have the choice of encapsulation method between: MPEG TS, MPEG PS, MPEG1, Ogg, ASF, MP4, MOV, WAV and Raw

..So I believed that "PS" could be an extension for the new file !

In reality I can choose now "MPG" as extension of the target file and realize my MPEG PS encapsulation in VLC :)

All is OK ! :)

Quote
If you're using .PS as your file extension, that could be part of the problem.  MC can certainly handle MPEG-2 program stream files.  That's every DVD or MPG file basically!

Not any  problem for MC with Files with "PS" extension:
They are immediately played in MC and thumbnail created
(if "PS" is added, as I told before, in "FileAssociations.xml")

Anyway, I will return to MPG extension for MPEG PS files coming from TS ones :)

Note:

For MC creating thumbnails for TS files, it's very special:
(test on PC with CCCP (Ffdshow + Haali media splitter))

Once the file "FileAssociations.xml"  modified for TS in MC
-> Some TS files are imported successfully in "Video" zone and those have immediately an Thumbnail created by MC
-> The other TS files are imported wrongly in "Documents" zone
So, I modified their "Data" TAG for "Video" Tag and then, they are transferred successfully in "Video" zone
BUT  : it's curious : Those TS files cannot have a thumbnail created by MC !

Why can be the reason ?

Thanks :)

I noted that on another PC,
(which has not CCCP, but PVDV7 video/SP decoder + Haali Media Splitter)
then: MC successfully creates thumbnails for ALL the TS files  !!

Curious, isn't it ?


Who said , one day, that Windows was "Plug and Play" ? ;)




Logged
Jean-Max
Pages: [1]   Go Up