Can play some mkv files (.mpg gets attached on file name)

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
xerox
Posts: 5
Joined: Sat Dec 06, 2014 3:04 am

Can play some mkv files (.mpg gets attached on file name)

Post by xerox »

I have a downloaded a new season of "American Dad".
The new episodes are not played on my samsung TV.

On the file names the extension ".mpg" is attached and no preview image is generated.
The other/older files are played just fine. Both (new and old files) have the video coded h264.

Does any one know how i can play them over UMS and why the "extension" .mpg gets attached?
VLC can play all files flawless, so i dont think there is a problem with the file itself.

Sample output from "Mediainfo"

Code: Select all

General
Unique ID                                : 275281378317748393500178058772826835422 (0xCF1943D4A4C4DDFFC486DCF2966C49DE)
Complete name                            : tvr-american-dad-s16e01-1080p.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 355 MiB
Duration                                 : 20 min 17 s
Overall bit rate                         : 2 445 kb/s
Movie name                               : American Dad! - S16E01 - Fantasie-Baseball
Encoded date                             : UTC 2019-10-03 17:15:26
Writing application                      : mkvmerge v35.0.0 ('All The Love In The World') 64-bit
Writing library                          : libebml v1.3.9 + libmatroska v1.5.2
Attachments                              : tvr-american-dad-s16e01-1080p.nfo

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 20 min 17 s
Bit rate                                 : 1 373 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.026
Stream size                              : 199 MiB (56%)
Title                                    : American Dad! - S16E01 - Fantasie-Baseball
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Duration_Source                          : General_Duration

....
Snippet of the logfile:

Code: Select all

15:05:25 DEBUG Setting bookmark for ...tvr-american-dad-s16e20-1080p.mkv => 0
15:05:25 DEBUG Starting "C:\Program Files\VideoLAN\VLC\vlc.exe" -I dummy --avcodec-hw=disabled --sout-avcodec-strict=-2 --dummy-quiet "...tvr-american-dad-s16e01-1080p.mkv" --audio-language=ger --sub-track=-1 --sout-x264-preset superfast --sout-x264-vbv-bufsize 1000000 --sout-x264-vbv-maxrate 999000 --sout-x264-crf 19 --sout #transcode{ab=448,vcodec=h264,channels=2,strict-rc,soverlay,acodec=a52,scale=1.0,threads=4,audio-sync=,samplerate=48000}:standard{access=file,mux=ts,dst='\\\\.\pipe\VLC1612015525304.ts'} vlc://quit
15:05:25 DEBUG Reading pipe: \\.\pipe\VLC1612015525304.ts
15:05:25 DEBUG Attaching thread: vlc.exe-37
15:05:25 DEBUG Result of \\.\pipe\VLC1612015525304.ts: true
15:05:31 INFO  Started playing tvr-american-dad-s16e01-1080p.mkv on your [TV] Samsung 6 Series (43)
15:05:31 DEBUG The full filename of which is: ...tvr-american-dad-s16e01-1080p.mkv and the address of the renderer is: xxxxx
15:05:31 DEBUG Recognized media renderer "[TV] Samsung 6 Series (43)"
15:05:31 DEBUG Stopping process: ffmpeg64.exe-35
15:05:31 DEBUG Stopping process: ffmpeg64.exe-36
15:05:31 DEBUG Recognized media renderer "[TV] Samsung 6 Series (43)"
15:05:34 WARN  Unhandled exception while resolving tvr-american-dad-s16e01-1080p.mkv: null
15:05:34 DEBUG 
java.lang.NullPointerException: null
EDIT:
On my 55" Samsung TV from 2015/2016, the files starts playing, but have a heavy delay on audio/video.
The 43" from 2018? TV dont start playing at all.

The logfile is from the newer, 43" TV.
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Can play some mkv files (.mpg gets attached on file name)

Post by Nadahar »

You have cut the MediaInfo output short - it's not only the video codec that matters, but audio codec(s) and other tracks like subtitles etc.

Likewise your log excerpt is pretty much useless. The whole log, in TRACE mode is needed to tell what's happening. That said, the thing that is obvious is that it's being transcoded. That explains why it gets the "mpg" extension. The reason for the decision to transcode can only really be determined by a proper log file.
User avatar
valib
Developer
Posts: 699
Joined: Fri Feb 08, 2013 3:11 am

Re: Can play some mkv files (.mpg gets attached on file name)

Post by valib »

xerox why do you use the VLC as the main engine to transcode and make thumbnails? The default engine is the FFmpeg. Do you have installed the FFmpeg? What is the reason you not use it? The VLC is implemented in the UMS only to possibly overcame the FFmpeg shortages for some renderers. I have also Samsung TV and FFmpeg is working well.
User avatar
SubJunk
Lead Developer
Posts: 3707
Joined: Sun May 27, 2012 4:12 pm

Re: Can play some mkv files (.mpg gets attached on file name)

Post by SubJunk »

Like Nadahar said we need the full logs in order to help
xerox
Posts: 5
Joined: Sat Dec 06, 2014 3:04 am

Re: Can play some mkv files (.mpg gets attached on file name)

Post by xerox »

@valib It was for testing, and forget to turn it back to ffmpeg.

The reason why i cut the output was the system reported it as spam.

Code: Select all

General
Unique ID                                : 275281378317748393500178058772826835422 (0xCF1943D4A4C4DDFFC486DCF2966C49DE)
Complete name                            : tvr-american-dad-s16e01-1080p.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 355 MiB
Duration                                 : 20 min 17 s
Overall bit rate                         : 2 445 kb/s
Movie name                               : American Dad! - S16E01 - Fantasie-Baseball
Encoded date                             : UTC 2019-10-03 17:15:26
Writing application                      : mkvmerge v35.0.0 ('All The Love In The World') 64-bit
Writing library                          : libebml v1.3.9 + libmatroska v1.5.2
Attachments                              : tvr-american-dad-s16e01-1080p.nfo

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 20 min 17 s
Bit rate                                 : 1 373 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.026
Stream size                              : 199 MiB (56%)
Title                                    : American Dad! - S16E01 - Fantasie-Baseball
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
Duration_Source                          : General_Duration

Audio #1
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 20 min 17 s
Bit rate mode                            : Constant
Bit rate                                 : 384 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 55.7 MiB (16%)
Title                                    : AC3 5.1 @ 384 kbps
Language                                 : German
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No
Duration_Source                          : General_Duration

Audio #2
ID                                       : 3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Commercial name                          : Dolby Digital
Codec ID                                 : A_AC3
Duration                                 : 20 min 17 s
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Compression mode                         : Lossy
Stream size                              : 92.9 MiB (26%)
Title                                    : AC3 5.1 @ 640 kbps
Language                                 : English
Service kind                             : Complete Main
Default                                  : No
Forced                                   : No
Duration_Source                          : General_Duration

Text #1
ID                                       : 4
Format                                   : ASS
Codec ID                                 : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Compression mode                         : Lossless
Title                                    : Forced ASS
Language                                 : German
Default                                  : Yes
Forced                                   : Yes

Text #2
ID                                       : 5
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Forced SRT
Language                                 : German
Default                                  : No
Forced                                   : Yes

Text #3
ID                                       : 6
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Full SRT
Language                                 : English
Default                                  : No
Forced                                   : No
User avatar
SubJunk
Lead Developer
Posts: 3707
Joined: Sun May 27, 2012 4:12 pm

Re: Can play some mkv files (.mpg gets attached on file name)

Post by SubJunk »

That file has forced subtitles so that could explain why we need to transcode it. If your TV supports ASS subtitles format we can update the renderer config for you. You can test that by going into the #-TRANSCODE-# folder and trying to play the "No transcoding" video. If it works then your TV supports those subtitles.
xerox
Posts: 5
Joined: Sat Dec 06, 2014 3:04 am

Re: Can play some mkv files (.mpg gets attached on file name)

Post by xerox »

The transcode folder has sub-folder in it, but the sub folder are empty.
So, sorry, i dont have a "No transcoding" video.

Could i remove the subtitle with ffmepg ?

Like https://gist.github.com/innat/7d5511941 ... -subtitles?:

Code: Select all

ffmpeg -i video.mkv -vcodec copy -acodec copy -sn video-no-subs.mkv
EDIT:
I have removed the subtitles with the comand above.
Now it works without any delay on my 55" TV and my 43" is now able too, to play the files.

Thanks for pointing this out!

EDIT2:
What comes to my mind, why is ffmepg not launched with "remove the subtiels" command/flags, when i have set in the UMS "no subtiles" in the settings ?
The encoding/transcoding was pretty fast on my Ubuntu 18.04 LTS with a old Intel i5-2500k, like 5~10 sec per file with bulk convert:

Code: Select all

for i in *.mkv; do ffmpeg -i "$i" -vcodec copy -acodec copy -sn "$i-no-subtitles.mkv"; done
I dont get why UMS does this not for me.
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Can play some mkv files (.mpg gets attached on file name)

Post by Nadahar »

UMS will do that for you if it's properly configured. However, since you refuse to submit your log file, nobody can tell why this doesn't work like it's supposed to.
xerox
Posts: 5
Joined: Sat Dec 06, 2014 3:04 am

Re: Can play some mkv files (.mpg gets attached on file name)

Post by xerox »

However, since you refuse to submit your log file
I do not refuse to post my logfile.
The pattern from the prevoius log snippet just repeats with every file till the end of the folder is reached.

I dont know what i have done, but now both TV's play the original files with subtitles included...
I have yesterday set ffmepg as default engind (again), but this was the start scenario where the failure happend. Now i cant reproduce the error. What ever.

But what i have noticed is, that i have still some subtitles on the screen, even if i activate in the UMS "Disable Subtitles".
I have to turn them on the TV off. Is there a solution for this ? (Same behavour on some files where i removed the subtitles?!)
Attachments
logfile.txt
(59.77 KiB) Downloaded 285 times
Nadahar
Posts: 1990
Joined: Tue Jun 09, 2015 5:57 pm

Re: Can play some mkv files (.mpg gets attached on file name)

Post by Nadahar »

That logfile isn't worth much. You need to create it as described in red on top of the page. It must be in trace mode, and it must reproduce the problem (which means that you must try to play one of the files that fail when generating the log).

Regarding having to disable the subtitles on the TV, that's the way it is when a file has embedded subtitles and isn't transcoded. In this case UMS doesn't touch the file at all, it merely streams it as-is to the TV, so UMS can't do anything about that. The only thing UMS could do would be to transcode the file and remove the subtitles, but that would be counter to what 99% of users would wish, as the goal is first and foremost not to transcode if you don't have to.

Transcoding has a number of disadvantages, like seeking not working or being slow, high CPU usage on the server with possible lag if the hardware can't keep up and quality loss. Telling UMS to disable subtitles just means that UMS won't "burn in" subtitles when transcoding, and that it won't transcode a file that could otherwise be played directly, just to add subtitles.
Post Reply