Unknown1User / ps3mediaserver

Automatically exported from code.google.com/p/ps3mediaserver
0 stars 0 forks source link

Subtitles not loaded with ts/m2ts files #51

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Play file e.g.  MyVideoFile.mkv with MyVideoFile.srt  --> plays fine!
2. Play file e.g.  MyVideoFile.m2ts with MyVideoFile.srt  --> subtitles 
not shown (no reencoding takes place) :(

The transcoding on (1) is done using Mencoder. On (2) there is no 
transcoding taking place (hence no subs are shown)

Original issue reported on code.google.com by hyperspa...@gmail.com on 29 Dec 2008 at 12:59

GoogleCodeExporter commented 9 years ago
Read the FAQ and README bundled with software. PS3 don't support subtitles when 
streamed, only on AVCHD or Blu-Ray. You need to transcode(burn) subtitles to 
video.

Original comment by ExSportCZ@gmail.com on 29 Dec 2008 at 2:43

GoogleCodeExporter commented 9 years ago
Why would you suggest to 'transcode' (probably you mean 're-encode') subtitles 
on 
video?

I AM streaming MKV's with PS3MediaServer and I can see the subtitles!!
I cannot see subtitles with M2TS's.

I think that the server should forcibly do transcoding upon the presence of 
subtitle 
files even on video files playable by the PS3.

Original comment by hyperspa...@gmail.com on 6 Jan 2009 at 8:39

GoogleCodeExporter commented 9 years ago
When you stream MKV to PS3, PMS reencodes the video.

Original comment by fabrice....@gmail.com on 6 Jan 2009 at 1:03

GoogleCodeExporter commented 9 years ago
Transcoding=reencoding but in much faster way. When you need subtitles then you 
need 
to transcode/re-encode the video so that subtitles are burned directly to 
video=can't be turned off.
Only streaming withou reencoding = use Tsmuxer = no subtitles support.
Reencoding video and then streaming to PS3 = use 
MEncoder,Avisynth/MEncoder,FFMPEG = 
subtitles can be visible but you know RE-ENCODING is always quality loss and 
much 
higher bitrates...

Original comment by ExSportCZ@gmail.com on 6 Jan 2009 at 5:00

GoogleCodeExporter commented 9 years ago
@ExSportCZ: In transcoding you might not have quality loss (one container 
format to 
another) in re-encoding you ALWAYS have quality loss. 

To the point and what I'm saying:
M2TS + subtitles = NO SUBTITLES SHOWN.

Original comment by hyperspa...@gmail.com on 6 Jan 2009 at 10:20

GoogleCodeExporter commented 9 years ago
1. Play file e.g.  MyVideoFile.mkv with MyVideoFile.srt  --> plays fine!

that's normal

2. Play file e.g.  MyVideoFile.m2ts with MyVideoFile.srt  --> subtitles

Because m2ts are ps3 compatible, ps3mediaserver plays them "as is". Otherwise 
you 
need to go into the #Transcoded Folder# to force transcode (reencoding, 
whatever term 
you like) with mencoder -> it's the ONLY way to show subtitles

Original comment by ps3mediaserver@gmail.com on 6 Jan 2009 at 10:24

GoogleCodeExporter commented 9 years ago
@ps3mediaserver:

It's the first thing I tried. It doesn't work on M2TS. It works on AVI in 
1.02.1 
though...

Original comment by hyperspa...@gmail.com on 6 Jan 2009 at 10:28

GoogleCodeExporter commented 9 years ago
have you tried to force transcode of the m2ts while removing the .srt ?
maybe this has nothing to do with subs, it's just mencoder who doesn't succeed 
to 
transcode this video ?

Original comment by ps3mediaserver@gmail.com on 6 Jan 2009 at 10:50

GoogleCodeExporter commented 9 years ago
I can see the M2TS file either non-transcoded or transcoded (from the 
#Transcoded# 
folder). Both results have perfect video playback but no subtitles :(

To be more specific:
In a directory on my harddrive I have 3 files:
1. MyVideo.mkv
2. MyVideo.m2ts (created from MyVideo.mkv using tsmuxer, so it's the same 
content)
3. MyVideo.srt

MyVideo.mkv + subs = OK
MyVideo.m2ts + subs (no transcoding) = plays video fine, no subs shown
MyVideo.m2ts + subs (with Mencoder transcoding) = plays video fine, no subs 
shown
MyVideo.m2ts without subs (no transcoding) = OK
MyVideo.m2ts without subs (with Mencoder transcoding) = OK

Original comment by hyperspa...@gmail.com on 6 Jan 2009 at 11:11

GoogleCodeExporter commented 9 years ago
You are mixing two different words transcoding and remuxing.
When you change only container, you remux it=no quality loss! When you recode 
it, 
you transcode it=quality loss;-)
But if you don't see subtitles when using MEncoder, then definately somewhere 
you 
have problem(subtitles not supported/corrupted, position too low=below TV 
bottom 
border,bad settings=Definitely disalbe subtitles is ON, etc...hard to say 
without 
debug.log) 

Original comment by ExSportCZ@gmail.com on 6 Jan 2009 at 11:23

GoogleCodeExporter commented 9 years ago
Can't be more specific than previous comment regarding the subtitles.

Same settings, subs play fine with MKV, don't show up with M2TS.

(PS. check this link: http://en.wikipedia.org/wiki/Transcode 
on the re-encode paragraph. You can re-encode (e.g. *same* format but lower the 
bitrate or *same* format but different resolution) without transcoding 
(*different* 
formats). Remuxing -in the sense that you use it-, is a lossless form (special 
case) 
of transcoding.

But anyway, these all mean nothing if PMS can't display subs with M2TS's !!
)

Original comment by hyperspa...@gmail.com on 6 Jan 2009 at 11:36

GoogleCodeExporter commented 9 years ago
please join the debug.log file when playing m2ts with subtitles

Original comment by ps3mediaserver@gmail.com on 6 Jan 2009 at 11:46

GoogleCodeExporter commented 9 years ago
test procedure:
1. played MyVideo.m2ts w/o transcoding
2. played MyVideo.m2ts w/  transcoding
3. played MyVideo.mkv

Original comment by hyperspa...@gmail.com on 7 Jan 2009 at 12:10

Attachments:

GoogleCodeExporter commented 9 years ago
this one was rather obvious :p

Original comment by ps3mediaserver@gmail.com on 7 Jan 2009 at 12:30

GoogleCodeExporter commented 9 years ago
About transcoding. Transcoding is always quality loss and it is another kind of 
re-
coding. When you have e.g. DVD Video, MPEG2 is used. You can transcode this 
video or 
reencode. Transcoding is lot of faster because take original stream and lower 
its 
bitrate where possible in the stream. Re-encoding encode new frames from 
original, 
so that speed is slower. You can use CinemaCraft CCE for re-encoding DVD or you 
can 
use e.g. DVD Shrink or DVDFab to transcode it. When you compress significantly, 
better to use re-encoding but when you need e.g. 90%-100% of original video 
size you 
can use much faster transcoding which will try to lower bitrate for video 
stream. 
Transcoding can be used only when you transcode between 2 compatible video 
algorithms = not possible to transcode video from mpeg2 to DivX/XviD/WMV etc.
Re-Muxing is only changing container with no change on video/audio part(but can 
be 
done==>AVC+DTS=AVC+recoded DTS to AC3 and then these 2 streams remuxed to m2ts 
container)

Original comment by ExSportCZ@gmail.com on 7 Jan 2009 at 2:09

GoogleCodeExporter commented 9 years ago
Sorry, mpeg2 is similar with DivX/XviD:-) But using trancoding mpeg2 to mpeg2 
is 
much "safer/more efficient".
Check this transcode description http://www.ambarella.com/docs/Transcoding.pdf 
==> 
Transcoding MPEG2->H264/AVC
As you can see, transcoding will not create new video stream but tries to don't 
touch some portion of this stream and change only some of them.Don't know how 
to say 
it better:-)

Original comment by ExSportCZ@gmail.com on 7 Jan 2009 at 2:28

GoogleCodeExporter commented 9 years ago
Okay, this is just semantics and it really isn't worth to spend more time on 
it. 
Based on the paper you pointed (which is nice) I don't see how you disagree 
with my 
last comment. 

For example the 'fast recompression' ('stream manipulation' as it says in the 
paper) 
is mostly a drop in the DCT coefficients leaving the GOP structure intact. A 
***special case*** would be to leave the DCT coeffients the same (don't lower 
quality) and imbue the GOP's to a new format. Again, I point out (as I did in 
my 
previous message) that this is a hectic case of transcoding e.g. MPEG2 *same 
quality* and compression levels in H264 syntax --based on your paper, 
or e.g. MPEG4-AVC mkv *same quality* with MPEG4-AVC m2ts syntax(-->remuxing), 

but it *IS* transcoding per se since you go from one format to another.

Reencoding is a weapon that you might use to perform your transcoding and based 
on 
your paper MPEG2->H264 greatly benefits from 'full recompression/re-encoding'. 
I 
will agree with you that most of the times when transcoding you need to 
re-encode 
the stream.

Encoding means that you find a way 'write down' signals in the RGB colorspace, 
YPbPr 
colorspace, YUV colorspace etc. to a structured array of bytes.

Anyway, this is semantics, the words we have established may change, the idea 
stays 
the same.

Original comment by hyperspa...@gmail.com on 7 Jan 2009 at 9:19

GoogleCodeExporter commented 9 years ago
No problem:-) I only reacted that transcoding have no quality loss...but it is 
true 
only for remuxing(TSmuxeR) when talking about PMS application. And when 
remuxing, 
you didn't change video format, only remux them to another container=video 
stream 
stays intact=no video quality loss. But when you use TRANSCODing in PMS, there 
is 
always quality loss.
But your problem is another:-) I thought that you try to display embed 
subtitles in 
m2ts stream and it is impossible when streaming without 
recompression(transcoding). 
PS3 supports embed subtitles only for AVI when streaming or also for m2ts but 
you 
need to burn it as BLU-RAY or AVCHD(USB key etc...)

Original comment by ExSportCZ@gmail.com on 7 Jan 2009 at 3:18

GoogleCodeExporter commented 9 years ago

Original comment by ps3mediaserver@gmail.com on 7 Jan 2009 at 6:45