Jump to content

DLNA profile for LG WebOS TV


Serios

Recommended Posts

Anyone has a fool proof guide to correctly setting up the DLNA profile for LG Smart TV? I have Both TV's, one older 40" Netcast & a new 60" Webos 2.

 

I can't seem to get it to work at the moment. 

Edited by Jonz
Link to comment
Share on other sites

btw, can you do the same magic with subtitles ?

I still see on my TV only one subtitles.

 

@@Luke, @@Serios

 

Hi devs, and admins. I don't know what did you do, but I have noticed, that I can change audio tracks on my LG TV.

 

Emby server: Version 3.0.5781.8

My tv: 47LB700V-ZG

Firmware: 5.00.15

webOS: 1.4.0-2507

 

Great job, Thank You.

Link to comment
Share on other sites

psxlover

I doubt they can do something about it, unless if the TV's firmware already supports multiple subtitles over DLNA.

Link to comment
Share on other sites

  • 2 weeks later...

Anyone knows what are the actual supported subtitles format to put in for the DLNA profile for both Netcast & WebOs tv's?

 

I was playing a movie on my WebOS tv that is encoded with hevc H.265 and with SSA subtitles as shown in the media information. Emby server transcoded the movie and of course it made FF & RW a pain to do.

 

However, when I did a direct plug in via the TV USB port it played without any issues - subtitles was fine and I could FF & RW. 

 

I'm guessing the TV supports hevc h.265 playback but the DLNA config is not updated to reflect that hence it is transcoding. Anyone can guide me how to include it into the DLNA profile?

 

Thx

Link to comment
Share on other sites

http://eguide.lgappstv.com/manual/gb/12005.html#link2 lists the supported subtitle formats for Netcast TVs, although in my experience ass format support is sketchy even if it says it is supported.

 

If you look at this page 

http://m.lg.com/in/support/product-help/doc-1437127377616-en-LGEIL

 

It states the Webos TV supports HEVC codec. How do we get that into the DLNA profile? It also states it supports RealMedia files too. 

Link to comment
Share on other sites

Happy2Play

Have you tried adding hevc to direct play in the DLNA profile editor?  DLNA-Profile-select your profile-direct play

Link to comment
Share on other sites

Have you tried adding hevc to direct play in the DLNA profile editor?  DLNA-Profile-select your profile-direct play

 

Trouble is i'm not exactly sure what parameters i should include for hevc. I'm okay with the "container" but i'm unsure of how to key it in for the codec part. Refer to the below line in the DLNA profile 

 

<DirectPlayProfile container="mkv" audioCodec="aac,ac3,dca,mp3,mp2,pcm" videoCodec="h264,mpeg1video,mpeg2video,mpeg4,wmv3,vc1" type="Video" />

 

Do i insert hevc or h265 for the videoCodec?

 

And similarly as below, do i need to create an additional entry for the CodecProfile

 

<CodecProfile type="Video" codec="h264">
      <Conditions>
        <ProfileCondition condition="LessThanEqual" property="Width" value="1920" isRequired="true" />
        <ProfileCondition condition="LessThanEqual" property="Height" value="1080" isRequired="true" />
        <ProfileCondition condition="LessThanEqual" property="VideoFramerate" value="30" isRequired="true" />
        <ProfileCondition condition="LessThanEqual" property="VideoLevel" value="51" isRequired="true" />
      </Conditions>
    </CodecProfile>
 
Thank you in advance for anyone who can guide me. I'm attaching my DLNA profile for reference as well, 

LG Smart+ TV.xml

Link to comment
Share on other sites

Happy2Play

I believe use hevc, I know that is what Win 8/10 app uses with no addition codec conditions. 

 

If you need to add the conditions they are spelled out in the manual.  Unfortunately you have to manually add those additional values in the xml.

5656c4f79ffc6_conditions.jpg

Link to comment
Share on other sites

  • 3 weeks later...
ZoMbiiE.home

Hi, I'm fairly new to posting to the forums. I have an LG tv that works through SmartShare to see my server and it works just fine. I am having an issue though of it always showing up in active users and it comes up as 2-3 different devices at times. Is there a way for me to block a device from connecting to the server? Or by any chance if anyone else who has this same issue with the lg tv's know a simple fix for this? Even when I restart the server and don't go to SmartShare, it seems to refresh itself and show up as online within about half an hour. It is driving me crazy that it looks like I have 5 or more people online when it is really just me on my tablet and on my pc. Thanks guys.

Link to comment
Share on other sites

  • 1 month later...

Hi,

I have some problems with my LG TV 47LB700V, I can play some mp3 files, but some not. I have tried to play with profile, but result is still same. My TV show error in Slovak language, this is aprox. translation:  "Unknown file, do you wan to play annother file ?"

 

My versions:

Debian 8.3
Linux nas 4.2.0 #1 SMP Tue Sep 1 12:48:36 CEST 2015 x86_64 GNU/Lin

ii  emby-server               3.0.5818          all               Emby Server is a home media server.
ii  ffmpeg                    10:2.6.5-dmo1     amd64             audio/video encoder, streaming server & audio/video file

some libs ...

ii  libav-tools                10:2.6.5-dmo1 amd64        Multimedia player, server, encoder and transcoder
ii  libavahi-client3:amd64     0.6.31-5      amd64        Avahi client library
ii  libavahi-common-data:amd64 0.6.31-5      amd64        Avahi common data files
ii  libavahi-common3:amd64     0.6.31-5      amd64        Avahi common library
ii  libavahi-core7:amd64       0.6.31-5      amd64        Avahi's embeddable mDNS/DNS-SD library
ii  libavahi-glib1:amd64       0.6.31-5      amd64        Avahi GLib integration library
ii  libavc1394-0:amd64         0.5.4-2       amd64        control IEEE 1394 audio/video devices
ii  libavcodec56:amd64         10:2.6.5-dmo1 amd64        Library to encode decode multimedia streams - runtime files
ii  libavdevice56:amd64        10:2.6.5-dmo1 amd64        FFmpeg device handling library
ii  libavfilter5:amd64         10:2.6.5-dmo1 amd64        FFmpeg filter library
ii  libavformat56:amd64        10:2.6.5-dmo1 amd64        FFmpeg file format library
ii  libavresample2:amd64       10:2.6.5-dmo1 amd64        FFmpeg audio conversion library
ii  libavutil54:amd64          10:2.6.5-dmo1 amd64        FFmpeg avutil library - runtime files


Here is one of not playable file:

Audio
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Duration                                 : 22mn 48s
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Stream size                              : 20.8 MiB (100%)

Here is another unplayable file:

Audio
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Mode extension                           : MS Stereo
Duration                                 : 12mn 43s
Bit rate mode                            : Constant
Bit rate                                 : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Replay gain                              : -5.54 dB
Replay gain peak                         : 1.322039
Stream size                              : 11.6 MiB (98%)
MP3Gain, Min/Max                         : 104,194
MP3Gain, Undo                            : -001,-001,N

but, when I convert this file to ogg, I can play it.

 

I have found this in server.log

2016-01-24 20:23:00.3883 Error App: Error streaming media. The client has most likely disconnected or transcoding has failed.
2016-01-24 20:23:00.3883 Error HttpServer: Error in HttpListenerResponseWrapper: Write failure
	*** Error Report ***
	Version: 3.0.5818.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 4.2.0.0
	Processor count: 2
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /var/lib/emby-server
	Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Dec  3 03:58:58 UTC 2015)
	Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
	Write failure
	System.IO.IOException
	  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x40799c10 + 0x00113> in <filename unknown>:0 
	  at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x40799b60 + 0x0008f> in <filename unknown>:0 
	  at SocketHttpListener.Net.ResponseStream.Close () <0x4079a1c0 + 0x0013b> in <filename unknown>:0 
	  at MediaBrowser.Server.Implementations.HttpServer.SocketSharp.Extensions.CloseOutputStream (SocketHttpListener.Net.HttpListenerResponse response, ILogger logger) <0x4079a0a0 + 0x0004b> in <filename unknown>:0 
	InnerException: System.Net.Sockets.SocketException
	The socket has been shut down
	  at System.Net.Sockets.Socket.Send (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) <0x40799de0 + 0x000e3> in <filename unknown>:0 
	  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x40799c10 + 0x0009f> in <filename unknown>:0 
	
2016-01-24 20:23:00.3895 Error HttpAsyncTaskHandler: Error occured while Processing Request: Write failure
	*** Error Report ***
	Version: 3.0.5818.0
	Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
	Operating system: Unix 4.2.0.0
	Processor count: 2
	64-Bit OS: True
	64-Bit Process: True
	Program data path: /var/lib/emby-server
	Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Dec  3 03:58:58 UTC 2015)
	Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
	Write failure
	System.IO.IOException
	  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x40799c10 + 0x00113> in <filename unknown>:0 
	  at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x40799b60 + 0x0008f> in <filename unknown>:0 
	  at SocketHttpListener.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x40798930 + 0x001c3> in <filename unknown>:0 
	  at ServiceStack.Formats.HtmlFormat.SerializeToStream (IRequest request, System.Object response, IResponse httpRes) <0x40ada710 + 0x00c18> in <filename unknown>:0 
	  at ServiceStack.HttpResponseExtensionsInternal.WriteErrorToResponse (IResponse httpRes, IRequest httpReq, System.String contentType, System.String operationName, System.String errorMessage, System.Exception ex, Int32 statusCode) <0x40ad9cc0 + 0x001df> in <filename unknown>:0 
	  at ServiceStack.ServiceStackHost.OnUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x40ad9590 + 0x0024b> in <filename unknown>:0 
	  at ServiceStack.HostContext.RaiseUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x40ad9550 + 0x0003a> in <filename unknown>:0 
	  at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse response, System.Object result, ServiceStack.Web.ResponseSerializerDelegate defaultAction, IRequest request, System.Byte[] bodyPrefix, System.Byte[] bodySuffix) <0x40796490 + 0x01003> in <filename unknown>:0 
	  at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse httpRes, IRequest httpReq, System.Object result, System.Byte[] bodyPrefix, System.Byte[] bodySuffix) <0x40796000 + 0x00247> in <filename unknown>:0 
	  at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse httpRes, IRequest httpReq, System.Object result) <0x40795f50 + 0x0001b> in <filename unknown>:0 
	  at ServiceStack.Host.RestHandler+<>c__DisplayClass5.<ProcessRequestAsync>b__0 (System.Object response) <0x40793e40 + 0x001c7> in <filename unknown>:0 
	  at ServiceStack.Host.Handlers.ServiceStackHandlerBase.HandleResponse (System.Object response, System.Func`2 callback, System.Func`2 errorCallback) <0x40793b60 + 0x00229> in <filename unknown>:0 
	InnerException: System.Net.Sockets.SocketException
	The socket has been shut down
	  at System.Net.Sockets.Socket.Send (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) <0x40799de0 + 0x000e3> in <filename unknown>:0 
	  at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x40799c10 + 0x0009f> in <filename unknown>:0 
	
2016-01-24 20:23:00.3895 Info HttpServer: HTTP Response 500 to 192.168.2.8. Time: 2261ms (slow). http://192.168.2.5:8096/audio/811883484bb60f2b3e81ee85b3c46289/stream.mp3?Params=4fb7061efded95bd2c452c4377bf591e;test;811883484bb60f2b3e81ee85b3c46289;false;;mp3;;;;128000;;;;;0;;;;;;;;;811883484bb60f2b3e81ee85b3c46289
2016-01-24 20:23:01.3884 Info App: Killing ffmpeg process for /tmp/transcoding-temp/2dca928be9d1640f004ee960a5d49334.mp3
2016-01-24 20:23:01.4855 Info App: FFMpeg exited with code 0
2016-01-24 20:23:01.4855 Info App: Deleting partial stream file(s) /tmp/transcoding-temp/2dca928be9d1640f004ee960a5d49334.mp3

and here is output from transcode.log

cat transcode-d8ffabb1-0585-406b-8cc4-f07f0b032794.txt 
http://192.168.2.5:8096/audio/73382a40c02e142e50bf9a5dadbbac13/stream.mp3?Params=4fb7061efded95bd2c452c4377bf591e;test;73382a40c02e142e50bf9a5dadbbac13;false;;mp3;;;;128000;;;;;0;;;;;;;;;73382a40c02e142e50bf9a5dadbbac13

{"Protocol":"File","Id":"73382a40c02e142e50bf9a5dadbbac13","Path":"/data/audio_rozpravky/Trojruza.mp3","Type":"Default","Container":"mp3","Size":28266331,"Name":"Trojruza","RunTimeTicks":17529160000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"MediaStreams":[],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":129002,"RequiredHttpHeaders":{}}

/usr/bin/ffmpeg -i file:"/data/audio_rozpravky/Trojruza.mp3" -threads 2 -vn -ab 128000 -id3v2_version 3 -write_id3v1 1 -y "/tmp/transcoding-temp/33cfe50869444947a40e40544287f7cf.mp3"


ffmpeg version 2.6.5 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --prefix=/usr --extra-cflags='-g -O2 -fstack-protector-strong -Wformat -Werror=format-security ' --extra-ldflags='-Wl,-z,relro' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-nonfree --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-libvpx --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-librtmp --enable-avfilter --enable-libfreetype --enable-libvo-aacenc --disable-decoder=amrnb --enable-libvo-amrwbenc --enable-libaacplus --libdir=/usr/lib/x86_64-linux-gnu --disable-vda --enable-libbluray --enable-libcdio --enable-gnutls --enable-frei0r --enable-openssl --enable-libass --enable-libopus --enable-fontconfig --enable-libpulse --disable-mips32r2 --disable-mipsdspr1 --disable-mipsdspr2 --enable-libvidstab --enable-libzvbi --enable-avresample --disable-htmlpages --disable-podpages --enable-libutvideo --enable-libfdk-aac --enable-libx265 --enable-libiec61883 --enable-vaapi --enable-libdc1394 --disable-altivec --shlibdir=/usr/lib/x86_64-linux-gnu
  libavutil      54. 20.100 / 54. 20.100
  libavcodec     56. 26.100 / 56. 26.100
  libavformat    56. 25.101 / 56. 25.101
  libavdevice    56.  4.100 / 56.  4.100
  libavfilter     5. 11.102 /  5. 11.102
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
[mjpeg @ 0xf119c0] Changeing bps to 8
[mjpeg @ 0xf122a0] Changeing bps to 8
[mjpeg @ 0xf12b80] Changeing bps to 8
[mjpeg @ 0xf13460] Changeing bps to 8
[mp3 @ 0xef0c40] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'file:/data/audio_rozpravky/Trojruza.mp3':
  Metadata:
    artist          : Slovenske rozpravky
    title           : Trojruza
    album           : Rozpravky LP
  Duration: 00:29:12.92, start: 0.000000, bitrate: 129 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 520x519 [SAR 75:75 DAR 520:519], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : Opus LP
      comment         : Cover (front)
    Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 520x519 [SAR 75:75 DAR 520:519], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : Ous LP
      comment         : Cover (front)
    Stream #0:3: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 520x519 [SAR 75:75 DAR 520:519], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : Opus vinil cover
      comment         : Cover (front)
    Stream #0:4: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 520x519 [SAR 75:75 DAR 520:519], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : _vyrn_342E-Kostolanyiova-Ruzova-rozpravka.jpg
      comment         : Cover (front)
Output #0, mp3, to '/tmp/transcoding-temp/33cfe50869444947a40e40544287f7cf.mp3':
  Metadata:
    TPE1            : Slovenske rozpravky
    TIT2            : Trojruza
    TALB            : Rozpravky LP
    TSSE            : Lavf56.25.101
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 128 kb/s
    Metadata:
      encoder         : Lavc56.26.100 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
size=     287kB time=00:00:18.31 bitrate= 128.4kbits/s    
size=     658kB time=00:00:42.05 bitrate= 128.2kbits/s    
size=    1029kB time=00:01:05.80 bitrate= 128.1kbits/s    
size=    1328kB time=00:01:24.92 bitrate= 128.1kbits/s    
size=    1662kB time=00:01:46.31 bitrate= 128.1kbits/s    
size=    1959kB time=00:02:05.31 bitrate= 128.1kbits/s    
size=    2272kB time=00:02:25.37 bitrate= 128.1kbits/s    
size=    2560kB time=00:02:43.76 bitrate= 128.0kbits/s    
size=    2861kB time=00:03:03.06 bitrate= 128.0kbits/s    
size=    3167kB time=00:03:22.65 bitrate= 128.0kbits/s    
size=    3239kB time=00:03:27.23 bitrate= 128.0kbits/s    
video:0kB audio:3238kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.020054%

An here are some medianfo from mp3 files, which I can play:

Audio
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Duration                                 : 2mn 43s
Bit rate mode                            : Constant
Bit rate                                 : 224 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 44.1 KHz
Compression mode                         : Lossy
Replay gain                              : -3.40 dB
Replay gain peak                         : 0.857886
Stream size                              : 4.36 MiB (100%)
MP3Gain, Min/Max                         : 138,179
MP3Gain, Undo                            : +001,+001,N

Any help ?

 

P.S: result is same with TuneIn plugin, can't play any station, same error.

 

Thank You.

Edited by coudy
Link to comment
Share on other sites

There's no problem with the server, those errors just mean the client hung up because they didn't like the format. so the profile probably needs adjustment to exclude them and force them to transcode.

Link to comment
Share on other sites

There's no problem with the server, those errors just mean the client hung up because they didn't like the format. so the profile probably needs adjustment to exclude them and force them to transcode.

 

Hi, I think, that problem is with transcoding, because, files which I can play, are directly steamed, they do not create transcode log. Files which I can't play create transcode log.

 

--edit

 

Just updated ffmpeg to version 2.8.4-1~bpo8+1 and result is same. Transcoded audio files are not recognized by TV.

Direct streamed files, are played.

Edited by coudy
Link to comment
Share on other sites

  • 4 months later...

Hi, I am testing now with a 2015 LG with the latest beta Emby Server, and both Dlna Play To and the Dlna Server are working out of the box with no problems. Please try again. Thanks.

Link to comment
Share on other sites

Hi, 

still some errors. Running with LG SW version 5.0.55 (WebOS 1.4.0-2515). When I checked OS version, I get new update 5.05.1 (WebOS 1.4.0-2518) , installed, but still same result. 

I have tried to play this files on USB device connected to TV, and they are recognised and played without error. 

 

transcode log:

http://192.168.2.5:8096/audio/73382a40c02e142e50bf9a5dadbbac13/stream.mp3?Params=bc6b16da60c3a6baf0396fe3f733df69;test;73382a40c02e142e50bf9a5dadbbac13;false;;mp3;;;;128000;;;;;0;;;;;;;;;73382a40c02e142e50bf9a5dadbbac13;false;false;;

{"Protocol":"File","Id":"73382a40c02e142e50bf9a5dadbbac13","Path":"/data/audio_rozpravky/Trojruza.mp3","Type":"Default","Container":"mp3","Size":28266331,"Name":"Trojruza","RunTimeTicks":17529160000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"RequiresOpening":false,"RequiresClosing":false,"MediaStreams":[],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":129002,"RequiredHttpHeaders":{}}

/usr/bin/ffmpeg -i file:"/data/audio_rozpravky/Trojruza.mp3" -threads 0 -vn -ab 128000 -id3v2_version 3 -write_id3v1 1 -y "/tmp/transcoding-temp/99ea884739b12e81f47208db8c936ddd.mp3"


ffmpeg version 3.0.2-2~bpo8+1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.2 (Debian 4.9.2-10)
  configuration: --prefix=/usr --extra-version='2~bpo8+1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --cc=cc --cxx=g++ --enable-gpl --enable-shared --disable-stripping --disable-decoder=libopenjpeg --disable-decoder=libschroedinger --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librubberband --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzvbi --enable-openal --enable-opengl --enable-x11grab --enable-libdc1394 --enable-libiec61883 --enable-libzmq --enable-frei0r --enable-chromaprint --enable-libx264
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libavresample   3.  0.  0 /  3.  0.  0
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[mp3 @ 0x1e7f180] Skipping 0 bytes of junk at 219682.
[mjpeg @ 0x1ea0640] Changing bps to 8
[mjpeg @ 0x1ea0ee0] Changing bps to 8
[mjpeg @ 0x1ea1840] Changing bps to 8
[mjpeg @ 0x1ea20e0] Changing bps to 8
[mp3 @ 0x1e7f180] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'file:/data/audio_rozpravky/Trojruza.mp3':
  Metadata:
    artist          : Slovenske rozpravky
    title           : Trojruza
    album           : Rozpravky LP
  Duration: 00:29:12.92, start: 0.000000, bitrate: 129 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 128 kb/s
    Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 520x519 [SAR 75:75 DAR 520:519], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : Opus LP
      comment         : Cover (front)
    Stream #0:2: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 520x519 [SAR 75:75 DAR 520:519], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : Ous LP
      comment         : Cover (front)
    Stream #0:3: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 520x519 [SAR 75:75 DAR 520:519], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : Opus vinil cover
      comment         : Cover (front)
    Stream #0:4: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 520x519 [SAR 75:75 DAR 520:519], 90k tbr, 90k tbn, 90k tbc
    Metadata:
      title           : _vyrn_342E-Kostolanyiova-Ruzova-rozpravka.jpg
      comment         : Cover (front)
Output #0, mp3, to '/tmp/transcoding-temp/99ea884739b12e81f47208db8c936ddd.mp3':
  Metadata:
    TPE1            : Slovenske rozpravky
    TIT2            : Trojruza
    TALB            : Rozpravky LP
    TSSE            : Lavf57.25.100
    Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, s16p, 128 kb/s
    Metadata:
      encoder         : Lavc57.24.102 libmp3lame
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
size=     287kB time=00:00:18.28 bitrate= 128.4kbits/s speed=36.6x
size=     574kB time=00:00:36.65 bitrate= 128.2kbits/s speed=36.6x
size=     881kB time=00:00:56.34 bitrate= 128.1kbits/s speed=37.5x
size=    1196kB time=00:01:16.51 bitrate= 128.1kbits/s speed=38.2x
size=    1526kB time=00:01:37.59 bitrate= 128.1kbits/s speed=  39x
size=    1783kB time=00:01:54.02 bitrate= 128.1kbits/s speed=  38x
size=    2075kB time=00:02:12.72 bitrate= 128.1kbits/s speed=37.9x
size=    2275kB time=00:02:25.55 bitrate= 128.1kbits/s speed=37.2x
video:0kB audio:2275kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.028550%root@nas:/var/lib/emby-server/

server.log

2016-06-20 20:57:49.7828 Info App: /usr/bin/ffmpeg -i file:"/data/audio_rozpravky/Trojruza.mp3" -threads 0 -vn -ab 128000 -id3v2_version 3 -write_id3v1 1 -y "/tmp/transcoding-temp/99ea884739b12e81f47208db8c936ddd.mp3"
2016-06-20 20:57:50.0204 Info HttpServer: HTTP Response 200 to 192.168.2.8. Time: 1672ms (slow). http://192.168.2.5:8096/dlna/a88351a89d11084d89af5baef10ce1d7/contentdirectory/control
2016-06-20 20:57:50.5137 Info HttpServer: HTTP POST http://192.168.2.5:8096/dlna/a88351a89d11084d89af5baef10ce1d7/contentdirectory/control. UserAgent: Linux/3.10.19-32.afro.5 UPnP/1.0 LGE WebOS TV LGE_DLNA_SDK/1.6.0/05.05.01 DLNADOC/1.50
2016-06-20 20:57:51.5923 Info HttpServer: HTTP Response 200 to 192.168.2.8. Time: 2192ms (slow). http://192.168.2.5:8096/dlna/545c0221c4710faa4fb4c726939673f2/contentdirectory/control
2016-06-20 20:57:51.7841 Info HttpServer: HTTP POST http://192.168.2.5:8096/dlna/545c0221c4710faa4fb4c726939673f2/contentdirectory/control. UserAgent: Linux/3.10.19-32.afro.5 UPnP/1.0 LGE WebOS TV LGE_DLNA_SDK/1.6.0/05.05.01 DLNADOC/1.50
2016-06-20 20:57:52.7193 Error App: Error streaming media. The client has most likely disconnected or transcoding has failed.
        *** Error Report ***
        Version: 3.1.33.0
        Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
        Operating system: Unix 4.5.0.7
        Processor count: 2
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Dec  3 03:58:58 UTC 2015)
        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
        One or more errors occurred.
        System.AggregateException
          at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) <0x7fbdc8859110 + 0x005a9> in <filename unknown>:0
          at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks, Int32 millisecondsTimeout) <0x7fbdc88590b0 + 0x00028> in <filename unknown>:0
          at System.Threading.Tasks.Task.WaitAll (System.Threading.Tasks.Task[] tasks) <0x7fbdc8859020 + 0x00016> in <filename unknown>:0
          at MediaBrowser.Api.Playback.Progressive.ProgressiveStreamWriter.WriteToInternal (System.IO.Stream responseStream) <0x41f1bd80 + 0x000e4> in <filename unknown>:0
        InnerException: System.IO.IOException
        Write failure
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x41ac1d50 + 0x00113> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x41ac1ca0 + 0x0008f> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x41abfb80 + 0x001c3> in <filename unknown>:0
          at MediaBrowser.Api.Playback.Progressive.ProgressiveFileCopier.CopyToInternal (System.IO.Stream source, System.IO.Stream destination, Int32 bufferSize) <0x41f3c5a0 + 0x0006b> in <filename unknown>:0
          at MediaBrowser.Api.Playback.Progressive.ProgressiveFileCopier+<StreamFile>c__async0.MoveNext () <0x41f3c000 + 0x0017f> in <filename unknown>:0
        InnerException: System.Net.Sockets.SocketException
        The socket has been shut down
          at System.Net.Sockets.Socket.Send (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) <0x41ac1f20 + 0x000e3> in <filename unknown>:0
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x41ac1d50 + 0x0009f> in <filename unknown>:0

2016-06-20 20:57:52.7487 Error HttpServer: Error in HttpListenerResponseWrapper: Write failure
        *** Error Report ***
        Version: 3.1.33.0
        Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe -restartpath /usr/lib/emby-server/restart.sh
        Operating system: Unix 4.5.0.7
        Processor count: 2
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/lib/emby-server
        Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Dec  3 03:58:58 UTC 2015)
        Application Path: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe
        Write failure
        System.IO.IOException
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x41ac1d50 + 0x00113> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x41ac1ca0 + 0x0008f> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.Close () <0x41ace600 + 0x0013b> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.HttpServer.SocketSharp.Extensions.CloseOutputStream (SocketHttpListener.Net.HttpListenerResponse response, ILogger logger) <0x41ace440 + 0x0004b> in <filename unknown>:0
        InnerException: System.Net.Sockets.SocketException
        The socket has been shut down
          at System.Net.Sockets.Socket.Send (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) <0x41ac1f20 + 0x000e3> in <filename unknown>:0
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x41ac1d50 + 0x0009f> in <filename unknown>:0

2016-06-20 20:57:52.7509 Info HttpServer: HTTP Response 500 to 192.168.2.8. Time: 2992ms (slow). http://192.168.2.5:8096/audio/73382a40c02e142e50bf9a5dadbbac13/stream.mp3?Params=bc6b16da60c3a6baf0396fe3f733df69;test;73382a40c02e142e50bf9a5dadbbac13;false;;mp3;;;;128000;;;;;0;;;;;;;;;73382a40c02e142e50bf9a5dadbbac13;false;false;;
2016-06-20 20:57:53.0189 Info HttpServer: HTTP Response 200 to 192.168.2.8. Time: 2505ms (slow). http://192.168.2.5:8096/dlna/a88351a89d11084d89af5baef10ce1d7/contentdirectory/control
2016-06-20 20:57:53.1561 Info HttpServer: HTTP POST http://192.168.2.5:8096/dlna/a88351a89d11084d89af5baef10ce1d7/contentdirectory/control. UserAgent: Linux/3.10.19-32.afro.5 UPnP/1.0 LGE WebOS TV LGE_DLNA_SDK/1.6.0/05.05.01 DLNADOC/1.50
2016-06-20 20:57:53.4117 Info HttpServer: HTTP GET http://192.168.2.5:8096/Items/d5473538231e646b5582c1d34f7a6e2e/Images/Primary/0/7a77e5a0149225482653e93a9799486c/jpg/480/480/0/0. UserAgent:
2016-06-20 20:57:53.4129 Info HttpServer: HTTP Response 200 to 192.168.2.8. Time: 1ms. http://192.168.2.5:8096/Items/d5473538231e646b5582c1d34f7a6e2e/Images/Primary/0/7a77e5a0149225482653e93a9799486c/jpg/480/480/0/0
2016-06-20 20:57:53.7233 Info App: Stopping ffmpeg process with q command for /tmp/transcoding-temp/99ea884739b12e81f47208db8c936ddd.mp3
2016-06-20 20:57:53.8118 Info App: FFMpeg exited with code 0
2016-06-20 20:57:53.8126 Info App: Deleting partial stream file(s) /tmp/transcoding-temp/99ea884739b12e81f47208db8c936ddd.mp3

packages versions:

dpkg -l emby*

Požadovaný=Neznámy/Inštalovať/Odstrániť/Vyčistiť/Podržať
| Stav=Nie/Inštalovaný/Konfig-súbory/Rozbalený/Zlý-konfig/Polo-inštalovaný/očak-spúšť/čaká-na-spúšť
|/ Chyba?=(žiadna)/Reinšt-vyžadovaná (Stav,Chyba: veľké písmeno=zle)
||/ Názov                                       Verzia                     Architektúra               Popis
+++-===========================================-==========================-==========================-===========================================================================================
un  emby                                        <žiadna>                   <none>                     (popis nie je k dispozícii)
rc  emby-server                                 3.0.5973                   all                        Emby Server is a home media server.
ii  emby-server-beta                            3.1.33~beta                all                        Emby Server is a home media server.
un  emby-server-dev                             <žiadna>                   <none>                     (popis nie je k dispozícii)


dpkg -l "*ffmpeg*"

Požadovaný=Neznámy/Inštalovať/Odstrániť/Vyčistiť/Podržať
| Stav=Nie/Inštalovaný/Konfig-súbory/Rozbalený/Zlý-konfig/Polo-inštalovaný/očak-spúšť/čaká-na-spúšť
|/ Chyba?=(žiadna)/Reinšt-vyžadovaná (Stav,Chyba: veľké písmeno=zle)
||/ Názov                                       Verzia                     Architektúra               Popis
+++-===========================================-==========================-==========================-===========================================================================================
ii  ffmpeg                                      7:3.0.2-2~bpo8+1           amd64                      Tools for transcoding, streaming and playing of multimedia files
un  ffmpeg-doc                                  <žiadna>                   <none>                     (popis nie je k dispozícii)
un  libavcodec-ffmpeg-extra56                   <žiadna>                   <none>                     (popis nie je k dispozícii)
rc  libavcodec-ffmpeg56:amd64                   7:2.8.6-1~bpo8+1           amd64                      FFmpeg library with de/encoders for audio/video codecs - runtime files
rc  libavdevice-ffmpeg56:amd64                  7:2.8.6-1~bpo8+1           amd64                      FFmpeg library for handling input and output devices - runtime files
rc  libavfilter-ffmpeg5:amd64                   7:2.8.6-1~bpo8+1           amd64                      FFmpeg library containing media filters - runtime files
rc  libavformat-ffmpeg56:amd64                  7:2.8.6-1~bpo8+1           amd64                      FFmpeg library with (de)muxers for multimedia containers - runtime files
rc  libavresample-ffmpeg2:amd64                 7:2.8.6-1~bpo8+1           amd64                      FFmpeg compatibility library for resampling - runtime files
rc  libavutil-ffmpeg54:amd64                    7:2.8.6-1~bpo8+1           amd64                      FFmpeg library with functions for simplifying programming - runtime files
rc  libpostproc-ffmpeg53:amd64                  7:2.8.6-1~bpo8+1           amd64                      FFmpeg library for post processing - runtime files
rc  libswresample-ffmpeg1:amd64                 7:2.8.6-1~bpo8+1           amd64                      FFmpeg library for audio resampling, rematrixing etc. - runtime files
rc  libswscale-ffmpeg3:amd64                    7:2.8.6-1~bpo8+1           amd64                      FFmpeg library for image scaling and various conversions - runtime files

Edited by coudy
Link to comment
Share on other sites

The server side is fine, it's just the TV disconnecting for whatever reason. If you customized the lg profile, delete it so that the stock one will be used. For me everything is smooth sailing on my test unit, which is actually a low end unit. Any differences could potentially be related to differences in supported media between models, that's certainly possible.

Link to comment
Share on other sites

Yes, I have modified profile, but already tried with default profile. 

I'm posting you link (PM) to files used in this example. If you find some time, please try it on you LG TV. I want to know, where is problem. TV disconnect, but also show mesage about unsupported file format. 

Link to comment
Share on other sites

psxlover

Are you streaming over wifi? Perhaps the signal is weak, try with a low bitrate limit to see if it still disconnects.

Link to comment
Share on other sites

Yea I tried his sample files and they worked great for me. Only difference between my playback and his is that his was transcoding an mp3 audio file, which shouldn't happen. so that's why i suggested deleting a custom profile if he had created one, so that the stock one would be used.

Link to comment
Share on other sites

@@psxlover, No, I have 1Gbps LAN connection. 

 

@@Luke , could you please provide your version of LG TV OS, WebOS, ffmpeg ? 

 

thx

 

p.s. my profile is edited, but only for pair my TV with emby user to access full library. Other devices does not have full access to library. And as I wrote before, tried with default profile. 

Edited by coudy
Link to comment
Share on other sites

  • 1 month later...
danergo

Hi, guys,

 

Please give me some advice in this topic again.

I updated Emby to 3.0.6060.0.

Server is Linux, client is LG WebOS2.0 TV over DLNA.

 

Almost all my movies are MKV and contains PGSSUBs. But since they are not on my language, external subtitles are also downloaded (SRT).

However emby would like to transcode these mkvs because that silly pgssub. I tried adding that into the DLNA profile of LG TV, but still want to be transcoded.

How can I tell Emby to just don't care any pgssub and load the preferenced external SRTs?

 

I've understood that PGSSUBs are graphical, but I don't need them at all.

 

 

What do you think?

Edited by danergo
Link to comment
Share on other sites

danergo

Sorry guys, it was a user error.

I upgraded my Emby, and didn't notice that LG profile was renamed, and now "LG Smart TV" is the current. (I had "LG WebOS TV" before), and the Smart TV one wasn't overriden by my user profile.

 

Sorry again, it's now working correctly.

Link to comment
Share on other sites

Happy2Play

There is a bug in the current stable 3.0.6060 but has been fixed in current beta and dev.

 

•Fix custom dlna profiles not being utilized

Link to comment
Share on other sites

  • 2 months later...
trosdejos

Woooow!!!! Ihave followed step by step your post#1 and works great!!!!

 

I have SmartTV 47LB671V-ZB model.

Ubuntu 16.04 + emby Server Versión 3.0.7200.0

 

Many thanks!!!!!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...