Why can't m2ts (h264/dts) content be streamed rather than transcoded to PS3?

Discuss media renderers like Xbox 360, TVs, smartphones, etc.
User avatar
SubJunk
Lead Developer
Posts: 3103
Joined: Sun May 27, 2012 4:12 pm

Re: Why can't m2ts (h264/dts) content be streamed rather than transcoded to PS3?

Post by SubJunk » Mon Jun 29, 2020 8:34 pm

Please try this version. It's a preview of v10. It should remux streams that match the transcoding goal when using FFmpeg https://www.universalmediaserver.com/up ... e4787b.exe

ajkessel
Posts: 25
Joined: Sun Jan 20, 2019 7:06 am

Re: Why can't m2ts (h264/dts) content be streamed rather than transcoded to PS3?

Post by ajkessel » Tue Jun 30, 2020 1:15 am

This looks like a Windows build—I’m running UMS on Linux. Do you have a Linux link?

ajkessel
Posts: 25
Joined: Sun Jan 20, 2019 7:06 am

Re: Why can't m2ts (h264/dts) content be streamed rather than transcoded to PS3?

Post by ajkessel » Tue Jun 30, 2020 5:43 am

I was able to get a linux build up and running (9.7.1-SNAPSHOT / 210743997) after a few missteps with the build process. (I've updated this report -- initially things weren't working because I hadn't copied over the "external-resources" folder to my build directory.)

I did a test run with four files. Log attached. Results from the PS3:
  • one.m2ts - plays, but when ffmpeg_mux_tsmuxer_compatible = true, video shows frequent artifacts - random colored pixels and other distortion (if ffmpeg_mux_tsmuxer_compatible = false, plays fine, but it is no longer streaming)
  • two.mkv - "this content cannot be played (800288E1)."
  • three.m2ts - plays fine
  • four.mkv - plays fine - but transcoded as expected due to subtitles; the "no transcoding" version in the transcoding folder shows up as "unsupported data"
Results from VLC running on a LAN windows box:
  • one.m2ts - plays with no audio stream
  • two.mkv - plays fine
  • three.m2ts - plays fine
  • four.mkv - plays fine, but transcoded as expected due to subtitles
I am using all default settings in UMS.conf (aside from tweaking ffmpeg_mux_tsmuxer_compatible as noted above) and no custom renderers.
ums-2020-06-29v2.txt
Log of ps3 and vlc streaming attempts
(2.46 MiB) Downloaded 4 times

User avatar
SubJunk
Lead Developer
Posts: 3103
Joined: Sun May 27, 2012 4:12 pm

Re: Why can't m2ts (h264/dts) content be streamed rather than transcoded to PS3?

Post by SubJunk » Tue Jun 30, 2020 1:24 pm

My mistake building for the wrong OS. Good to know you can build though.
Can you give logs from trying to play it with tsmuxer disabled? I would expect it to mux one.m2ts with FFmpeg

Edit: Actually that won't stream on that build because you're building from master.
Can you switch to the branch "api-3" and test that with tsmuxer disabled?

ajkessel
Posts: 25
Joined: Sun Jan 20, 2019 7:06 am

Re: Why can't m2ts (h264/dts) content be streamed rather than transcoded to PS3?

Post by ajkessel » Tue Jun 30, 2020 2:24 pm

SubJunk wrote:
Tue Jun 30, 2020 1:24 pm

Edit: Actually that won't stream on that build because you're building from master.
Can you switch to the branch "api-3" and test that with tsmuxer disabled?
I thought I did pull the api-3 branch—I intended to get the exact commit that corresponded to the Windows build you posted. Maybe I messed up—will try again tomorrow with a fresh git clone of api-3 and tsmuxer disabled.

ajkessel
Posts: 25
Joined: Sun Jan 20, 2019 7:06 am

Re: Why can't m2ts (h264/dts) content be streamed rather than transcoded to PS3?

Post by ajkessel » Wed Jul 01, 2020 2:40 am

OK, I rebuilt the api3 branch -- definitely have the right code now.

I don't believe it's using tsMuxeR at all.

When I set ffmpeg_mux_tsmuxer_compatible = false, everything plays fine, but it's transcoding everything.

When I set ffmpeg_mux_tsmuxer_compatible = true, I get the same problem/behavior as before:
  • One - plays with video and audio, but video shows frequent artifacts
  • Two - "This content cannot be played (800288E1)"
  • Three - plays fine
  • Four - plays fine but is transcoded for subtitles; the non-subtitled version in the TRANSCODE folder shows up as "unsupported data"
I've attached a debug log with ffmpeg_mux_tsmuxer_compatible as false (debug-1.log) and true (debug-2.log).
debug-1.log
ffmpeg_mux_tsmuxer_compatible = false log
(1.22 MiB) Downloaded 2 times
debug-2.log
ffmpeg_mux_tsmuxer_compatible = true log
(1.14 MiB) Downloaded 2 times

User avatar
SubJunk
Lead Developer
Posts: 3103
Joined: Sun May 27, 2012 4:12 pm

Re: Why can't m2ts (h264/dts) content be streamed rather than transcoded to PS3?

Post by SubJunk » Wed Jul 01, 2020 12:59 pm

Thanks for testing. Can you please add the following line to renderers/Sony-PlayStation3.conf and try again with tsMuxeR disabled:

TranscodeVideo = MPEGTS-H264-AC3

The outcome I am hoping for is that video streams that can be muxed will pass through FFmpeg with a copied video, if they match the video codec in the TranscodeVideo line

ajkessel
Posts: 25
Joined: Sun Jan 20, 2019 7:06 am

Re: Why can't m2ts (h264/dts) content be streamed rather than transcoded to PS3?

Post by ajkessel » Thu Jul 02, 2020 2:56 am

That works nearly perfectly. Audio is still being transcoded for several formats, but that may be necessary for PS3. The only glitch I encountered was when I first tried to seek to a location in one.m2ts, it never started playing, but then when I returned to one.m2ts and skipped to 20 minutes in, it worked fine.

I noticed vc1 video (six.mkv) is still transcoded--perhaps also a limitation of PS3? At least according to Wikipedia, PS3 should support VC-1.

One other observation -- if I go to the "transcode" folder for content with subtitles, the first listed item (presumably corresponding to no transcoding) still shows as "unsupported data" on the PS3. Shouldn't it be possible to transmit the subtitle stream as a separate stream, without transcoding, for formats the PS3 supports? On a possibly related note, by default with this build, UMS is transcoding MKV content with subtitles even to VLC -- but if the user selects "no transcoding" from the VLC client, the subtitles come across fine as a separate subtitle stream that can be enabled/disabled from VLC. Can this be configured to be the default behavior with VLC, and is it possible to do the same (stream subtitle stream without transcoding) to PS3?

Debug log attached.
debug-1.log
(2.06 MiB) Not downloaded yet

Post Reply