tsMuxeR not being used?

For help and support with Universal Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Madoka
Posts: 328
Joined: Fri Jun 01, 2012 12:51 pm

tsMuxeR not being used?

Post by Madoka » Sat Nov 30, 2013 5:07 pm

I just recently noticed this on my machine, and maybe it's just the files I'm playing, but...

Even though I have "remux with tsmuxer" in the mencoder options, tsmuxer never seems to be used. Every mkv file I've played after noticing this seems to be transcoded, even when there are no subtitles. They are all sent over as an mpeg stream. I can manually select tsmuxer and that works fine for all these files. It's acting as if that option is no longer used as I've yet to find one file that uses tsmuxer.

This is not a big problem as all the files play just fine (well, one has an AV sync problem fixed by ticking "force framerate from ffmpeg"), and I don't know how long this has been going on on my rig (Win7 64- bit with 64-bit 7u45 to a PS3) as I only noticed it this week. Maybe it's supposed to work this way?

I also notice that tsmuxer uses a buffer of 100 MB when mencoder uses 200 MB.

Thanks and sorry for the stupidity.

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

Re: tsMuxeR not being used?

Post by SubJunk » Sun Dec 01, 2013 11:22 am

If you can post debug info that would be useful, then I can hopefully see why it's making that choice :)
Also tsMuxeR has always used 80-100MB instead of the transcode buffer value, just because it doesn't need much buffer :)

Madoka
Posts: 328
Joined: Fri Jun 01, 2012 12:51 pm

Re: tsMuxeR not being used?

Post by Madoka » Sun Dec 01, 2013 3:44 pm

Thanks for looking into this. Here you go. I played the Saitama Mandarins.mkv file normally first, then manually selected tsmuxer to make sure it would play correctly with tsmuxer.
ums_dbg.zip
(74.8 KiB) Downloaded 112 times

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

Re: tsMuxeR not being used?

Post by SubJunk » Sun Dec 01, 2013 5:26 pm

Nice find, it seems that I made a mistake in my code logic a while ago that caused MKV files with AAC audio to not be muxed automatically.
Does this version fix it?

Madoka
Posts: 328
Joined: Fri Jun 01, 2012 12:51 pm

Re: tsMuxeR not being used?

Post by Madoka » Sun Dec 01, 2013 6:35 pm

Part way. It does fix the Saitama Mandarins file. But others still use mencoder. I can manually select tsmuxer. The following files still use mencoder.

Code: Select all

General
Unique ID                      : 218626645265153349171939952430384629963 (0xA479F5D4A0FB08F1AF560CDB4FC348CB)
Format                         : Matroska
Format version                 : Version 4 / Version 2
File size                      : 149 MiB
Duration                       : 28mn 0s
Overall bit rate               : 745 Kbps
Encoded date                   : UTC 2013-03-09 19:25:53
Writing application            : mkvmerge v6.1.0 ('Old Devil') built on Mar  2 2013 14:32:37
Writing library                : libebml v1.3.0 + libmatroska v1.4.0

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : [email protected]
Format settings, CABAC         : Yes
Format settings, ReFrames      : 8 frames
Codec ID                       : V_MPEG4/ISO/AVC
Duration                       : 28mn 0s
Nominal bit rate               : 551 Kbps
Width                          : 720 pixels
Height                         : 480 pixels
Display aspect ratio           : 3:2
Frame rate mode                : Constant
Frame rate                     : 29.970 fps
Standard                       : NTSC
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.053
Writing library                : x264 core 130 r2273 b3065e6
Encoding settings              : cabac=1 / ref=8 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=360 / keyint_min=35 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=551 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=17500 / vbv_bufsize=14000 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
Default                        : Yes
Forced                         : No

Audio
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : A_AAC
Duration                       : 28mn 0s
Channel count                  : 1 channel
Channel positions              : Front: C
Sampling rate                  : 48.0 KHz
Compression mode               : Lossy
Delay relative to video        : 9ms
Default                        : Yes
Forced                         : No

Code: Select all

General
Unique ID                      : 172831005903079996037833619315221187818 (0x82060A7C4579A734B1B7B81B589DCCEA)
Format                         : Matroska
Format version                 : Version 2
File size                      : 839 MiB
Duration                       : 47mn 59s
Overall bit rate mode          : Variable
Overall bit rate               : 2 445 Kbps
Movie name                     : Hard Nut ep06
Encoded date                   : UTC 2013-11-25 18:48:24
Writing application            : mkvmerge v5.2.0 ('I can't explain') built on Dec 29 2011 19:29:57
Writing library                : libebml v1.2.3 + libmatroska v1.3.0

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : [email protected]
Format settings, CABAC         : Yes
Format settings, ReFrames      : 3 frames
Codec ID                       : V_MPEG4/ISO/AVC
Duration                       : 47mn 59s
Bit rate mode                  : Variable
Nominal bit rate               : 2 315 Kbps
Maximum bit rate               : 25.0 Mbps
Width                          : 960 pixels
Height                         : 540 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Constant
Frame rate                     : 29.970 fps
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.149
Writing library                : x264 core 120 r2120 0c7dab9
Encoding settings              : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2315 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=25000 / vbv_bufsize=25000 / nal_hrd=vbr / ip_ratio=1.40 / aq=1:1.00
Default                        : Yes
Forced                         : No

Audio
ID                             : 2
Format                         : AAC
Format/Info                    : Advanced Audio Codec
Format profile                 : LC
Codec ID                       : A_AAC
Duration                       : 47mn 59s
Channel count                  : 2 channels
Channel positions              : Front: L R
Sampling rate                  : 48.0 KHz
Compression mode               : Lossy
Default                        : Yes
Forced                         : No

Code: Select all

General
Unique ID                      : 223230734606989953302409382699492695511 (0xA7F0ACF600E84D9C8DE49AB2530BDDD7)
Format                         : Matroska
Format version                 : Version 2
File size                      : 841 MiB
Duration                       : 48mn 0s
Overall bit rate mode          : Variable
Overall bit rate               : 2 448 Kbps
Movie name                     : Hard Nut ep05
Encoded date                   : UTC 2013-11-23 15:17:34
Writing application            : mkvmerge v5.2.0 ('I can't explain') built on Dec 29 2011 19:29:57
Writing library                : libebml v1.2.3 + libmatroska v1.3.0

Video
ID                             : 1
Format                         : AVC
Format/Info                    : Advanced Video Codec
Format profile                 : [email protected]
Format settings, CABAC         : Yes
Format settings, ReFrames      : 3 frames
Codec ID                       : V_MPEG4/ISO/AVC
Duration                       : 48mn 0s
Bit rate mode                  : Variable
Bit rate                       : 2 383 Kbps
Maximum bit rate               : 25.0 Mbps
Width                          : 960 pixels
Height                         : 540 pixels
Display aspect ratio           : 16:9
Frame rate mode                : Constant
Frame rate                     : 29.970 fps
Color space                    : YUV
Chroma subsampling             : 4:2:0
Bit depth                      : 8 bits
Scan type                      : Progressive
Bits/(Pixel*Frame)             : 0.153
Stream size                    : 802 MiB (95%)
Writing library                : x264 core 120 r2120 0c7dab9
Encoding settings              : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=30 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=2383 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=25000 / vbv_bufsize=25000 / nal_hrd=vbr / ip_ratio=1.40 / aq=1:1.00
Default                        : Yes
Forced                         : No

Audio
ID                             : 2
Format                         : MPEG Audio
Format version                 : Version 2
Format profile                 : Layer 3
Mode                           : Joint stereo
Mode extension                 : MS Stereo
Codec ID                       : A_MPEG/L3
Codec ID/Hint                  : MP3
Duration                       : 48mn 0s
Bit rate mode                  : Constant
Bit rate                       : 64.0 Kbps
Channel count                  : 2 channels
Sampling rate                  : 22.05 KHz
Compression mode               : Lossy
Stream size                    : 22.0 MiB (3%)
Default                        : Yes
Forced                         : No


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

Re: tsMuxeR not being used?

Post by SubJunk » Sun Dec 01, 2013 6:59 pm

Can you attach debug info after trying to play those files without the transcode folder?

Madoka
Posts: 328
Joined: Fri Jun 01, 2012 12:51 pm

Re: tsMuxeR not being used?

Post by Madoka » Sun Dec 01, 2013 7:21 pm

Here you go. I played a fourth file that's transcoded.
Attachments
ums_dbg.2.zip
(88.04 KiB) Downloaded 88 times

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

Re: tsMuxeR not being used?

Post by SubJunk » Mon Dec 02, 2013 8:00 pm

Hmm OK I can't see why these files aren't being muxed, can you please generate the debug log again using this version?

Madoka
Posts: 328
Joined: Fri Jun 01, 2012 12:51 pm

Re: tsMuxeR not being used?

Post by Madoka » Tue Dec 03, 2013 5:21 am

Here you go. All still transcoded.
Attachments
ums_dbg.3.zip
(85.13 KiB) Downloaded 91 times

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

Re: tsMuxeR not being used?

Post by SubJunk » Tue Dec 03, 2013 9:44 am

I think I fixed it, can you try this version?

Locked