Page 1 of 2

How do i enable flv transcoding for LG TV?

PostPosted: Sun Sep 23, 2012 3:40 pm
by Spookyy
My LG TV can't play .flv files so i need help how to enable transcoding for that file. I'm no pro user so go easy please =)

Re: How do i enable flv transcoding for LG TV?

PostPosted: Sun Sep 23, 2012 6:07 pm
by Illico
This is a local or online flv streaming ?

Re: How do i enable flv transcoding for LG TV?

PostPosted: Sun Sep 23, 2012 7:02 pm
by Spookyy
Local files from my HD.

Re: How do i enable flv transcoding for LG TV?

PostPosted: Mon Sep 24, 2012 7:31 am
by Illico
You can edit LG profile (profile.xml) like this:
But it seems that Transcoding doesn't work with LG TV...
  Code:
   <Profile id="8" name="LG TV / player" extendsProfileId="1">
      <Detection>
         <HttpHeaders>
            <friendlyName.dlna.org>LG.*</friendlyName.dlna.org>
         </HttpHeaders>
      </Detection>
      <MediaFormatProfiles>
         <MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>
      </MediaFormatProfiles>
      <SubtitlesMimeType>text/srt</SubtitlesMimeType>      
      <!--Transcoding doesn't seem to work and some files can be played natively:
      http://forum.serviio.org/viewtopic.php?f=12&t=3914#p26273 -->
      <Transcoding>
         <Video targetContainer="mpegts" targetACodec="mp3">
            <Matches container="matroska" aCodec="ac3" />
         </Video>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" >
            <Matches container="avi" vCodec="msmpeg4"/>
            <Matches container="flv" />
         </Video>
      </Transcoding>
   </Profile>

Re: How do i enable flv transcoding for LG TV?

PostPosted: Mon Sep 24, 2012 9:21 am
by Spookyy
Thanks! that worked just fine. :lol:

I have another file format that the LG don't support (.wmv) so i tried to add that also but Seriio service kept refusing to start so i had to figure out why... some sort of crash log i've read about in the forum. Yep, after some more searching i found that you need to name it .asf. Now Serviio starts up again, and i can transcode .wmv files also =)

It looks like this now if anyone else needs it:

  Code:
<Profile id="8" name="LG TV / player" extendsProfileId="1">
      <Detection>
         <HttpHeaders>
            <friendlyName.dlna.org>LG.*</friendlyName.dlna.org>
         </HttpHeaders>
      </Detection>
      <MediaFormatProfiles>
         <MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>
      </MediaFormatProfiles>
      <SubtitlesMimeType>text/srt</SubtitlesMimeType>     
      <!--Transcoding doesn't seem to work and some files can be played natively:
      http://forum.serviio.org/viewtopic.php?f=12&t=3914#p26273 -->
      <Transcoding>
         <Video targetContainer="mpegts" targetACodec="mp3">
            <Matches container="matroska" aCodec="ac3" />
         </Video>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" >
            <Matches container="avi" vCodec="msmpeg4"/>
            <Matches container="flv" />
            <Matches container="asf" />
         </Video>
      </Transcoding>
   </Profile>

Re: How do i enable flv transcoding for LG TV?

PostPosted: Mon Sep 24, 2012 10:48 am
by Illico
Great!

For information, could you provide protocolInfo result of your device ? http://wiki.serviio.org/doku.php?id=device_sf
Could you also provide some elements like <modelNumber>,<friendlyname>,etc from device description xml with the upnp tools?

Re: How do i enable flv transcoding for LG TV?

PostPosted: Mon Sep 24, 2012 12:35 pm
by Spookyy
Okies, heres goes; ... i see now that wmv is mentioned in there but it will not play those directly.

  Code:
http-get:*:audio/l16;rate=44100;channels=1:DLNA.ORG_PN=LPCM,
http-get:*:audio/l16;rate=44100;channels=2:DLNA.ORG_PN=LPCM,
http-get:*:audio/mpeg:DLNA.ORG_PN=MP3,
http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_SM,
http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_MED,
http-get:*:image/jpeg:DLNA.ORG_PN=JPEG_LRG,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_PAL,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_PS_NTSC,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_NA_T,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_NA_ISO,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_KO,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_KO_T,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_KO_ISO,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU,
http-get:*:video/vnd.dlna.mpeg-tts:DLNA.ORG_PN=MPEG_TS_SD_EU_T,
http-get:*:video/mpeg:DLNA.ORG_PN=MPEG_TS_SD_EU_ISO,
http-get:*:audio/mpegurl:*,
http-get:*:audio/mp3:*,
http-get:*:audio/mpeg:*,
http-get:*:audio/mpeg3:*,
http-get:*:video/x-ms-wmv:*,
http-get:*:video/x-ms-asf:*,
http-get:*:video/x-ms-avi:*,
http-get:*:video/mpeg:*,
http-get:*:video/avi:*,
http-get:*:video/mp4:*,
http-get:*:video/x-matroska:*,
http-get:*:video/3gpp:*,
http-get:*:video/x-msvideo:*

Re: How do i enable flv transcoding for LG TV?

PostPosted: Mon Sep 24, 2012 2:00 pm
by Illico
Thanks,
That is the same than "LG Smart TVs " : http://wiki.serviio.org/doku.php?id=dev ... at_support
According to information, your TV should support WMV in native format (no need to transcode)
http-get:*:video/x-ms-wmv:*,
http-get:*:video/x-ms-asf:*,

Do you have another information about format supported (usermanual) ?
Could you provide information about your wmv file ? (ffmpeg -i <file>)

Re: How do i enable flv transcoding for LG TV?

PostPosted: Mon Sep 24, 2012 2:39 pm
by Spookyy
Yeah, you are right'ish. I had some other wmv files that actually worked directly. But the one i tried first do not work. So there might be some wierd stuff going on with that file.

Here is the results from that file: (fl_intro.wmv taken from Freelancer game)

  Code:
c:\Program Files\Serviio\lib>ffmpeg -i fl_intro.wmv
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 10 2012 03:40:45 with gcc 4.6.3
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
Guessed Channel Layout for  Input Stream #0.0 : stereo
Input #0, asf, from 'fl_intro.wmv':
  Metadata:
    ToolName        : Windows Media Encoding Utility
    ToolVersion     : 8.00.00.0343
    VBR Peak        : 2127.00.0343
    Buffer Average  : 5241.00.0343
  Duration: 00:03:46.76, start: 0.000000, bitrate: 1374 kb/s
    Stream #0:0: Audio: wmav2 (a[1][0][0] / 0x0161), 44100 Hz, stereo, s16, 64 kb/s
    Stream #0:1: Video: wmv2 (WMV2 / 0x32564D57), yuv420p, 720x480, 29.97 tbr, 1k tbn, 1k tbc

Re: How do i enable flv transcoding for LG TV?

PostPosted: Mon Sep 24, 2012 6:27 pm
by Illico
Seems to be a standard asf/wmv2/wmav2, don't know what is the problem.
Could you provide MediaInfo tool result (in text format) ?

Does the other wmv files are similar asf/wmv2/wmav2 format?

Btw, <Matches container="flv" /> should be added for the next serviio release.

Re: How do i enable flv transcoding for LG TV?

PostPosted: Mon Sep 24, 2012 9:14 pm
by Spookyy
I had another wmv file that hates my TV =)

Re: How do i enable flv transcoding for LG TV?

PostPosted: Tue Sep 25, 2012 7:21 am
by Illico
So these two files are asf/wmv2/wmav2 and are not supported by your TV model.
Spookyy wrote:...I had some other wmv files that actually worked directly. But the one i tried first do not work...

What are the format of others wmv files that are supported by your TV?

Re: How do i enable flv transcoding for LG TV?

PostPosted: Tue Sep 25, 2012 9:36 am
by Spookyy
These 2 worked directly:

Re: How do i enable flv transcoding for LG TV?

PostPosted: Tue Sep 25, 2012 3:52 pm
by Illico
Spookyy wrote:These 2 worked directly:

These files are asf/vc1/wma2 supported in native format, so we can edit the profile like this :
- asf/vc1/wma2 will be delivered in native format
- asf/wmv2/* will be transcoded

  Code:
   <Profile id="8" name="LG TV / player" extendsProfileId="1">
      <Detection>
         <HttpHeaders>
            <friendlyName.dlna.org>LG.*</friendlyName.dlna.org>
         </HttpHeaders>
      </Detection>
      <MediaFormatProfiles>
         <MediaFormatProfile mime-type="video/mp4" name="">AVI</MediaFormatProfile>
      </MediaFormatProfiles>
      <SubtitlesMimeType>text/srt</SubtitlesMimeType>     
      <!--Transcoding doesn't seem to work and some files can be played natively:
      http://forum.serviio.org/viewtopic.php?f=12&t=3914#p26273 -->
      <Transcoding>
         <Video targetContainer="mpegts" targetACodec="mp3">
            <Matches container="matroska" aCodec="ac3" />
         </Video>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" >
            <Matches container="avi" vCodec="msmpeg4"/>
            <Matches container="flv" />
            <Matches container="asf" vCodec="wmv2"/>
         </Video>
      </Transcoding>
   </Profile>

Re: How do i enable flv transcoding for LG TV?

PostPosted: Tue Sep 25, 2012 5:01 pm
by Spookyy
Great! Thanks for all the help.

Re: How do i enable flv transcoding for LG TV?

PostPosted: Tue Sep 25, 2012 7:00 pm
by Illico
Zip, do you think that could be added to the next realease ?
<Matches container="flv" />
<Matches container="asf" vCodec="wmv2"/>

Re: How do i enable flv transcoding for LG TV?

PostPosted: Wed Sep 26, 2012 5:27 am
by Spookyy
It worked okay when i tried those changes so i guess so =)

...

I have a video file that i downloaded from youtube and it's called *.webm. Is there a way for Serviio to transcode that video format?

Re: How do i enable flv transcoding for LG TV?

PostPosted: Sun Sep 30, 2012 12:32 pm
by zip
Spookyy wrote:I have a video file that i downloaded from youtube and it's called *.webm. Is there a way for Serviio to transcode that video format?

Rename it to .mkv and try then.

Re: How do i enable flv transcoding for LG TV?

PostPosted: Mon Oct 01, 2012 7:08 am
by Spookyy
I get "file is invalid" when doing that.

I noticed some .mkv movies fails with "unsupported audio" error.

Re: How do i enable flv transcoding for LG TV?

PostPosted: Mon Oct 01, 2012 7:24 am
by Illico
Spookyy wrote:I get "file is invalid" when doing that.
I noticed some .mkv movies fails with "unsupported audio" error.

Could yo provide information about these *.webm and mkv files ?