FAQ  •  Register  •  Login

Slow on transcoding - QNAP 259+

<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Tue May 15, 2012 10:50 am

Slow on transcoding - QNAP 259+

Hello everybody,

had problems with the TMP folder. After solving that, all HD videos now playing but just shuttering :o

When trying to start the process manually i get the error:

  Code:
/root/.serviio/opt/bin/ffmpeg: error while loading shared libraries: librtmp.so.0: cannot open shared object file: No such file or directory


Installed a new version off ffmpeg with ipkg and started the process:

/opt/bin/ffmpeg -i /share/Qmultimedia/Filme/Colombiana.mkv -y -threads 4 -async 1 -vcodec mpeg2video -sameq -r 24000/1001 -g 15 -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1 -sn -f vob /root/.serviio/tmp/Serviio/transcoding-temp-56-MPEG2PS.stf


But only getting fps between 20-35fps which is resulting in the shuttering :( With 1080p mkv files, only 5 - 8 fps ...

Output of /opt/bin/ffmpeg -i:

  Code:
Fmpeg version UNKNOWN, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-cross-compile --cross-prefix=/home/slug/optware/ts509/toolchain/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu- --arch=i686 --disable-encoder=snow --disable-decoder=snow --enable-shared --disable-static --enable-gpl --enable-postproc --prefix=/opt
  libavutil version: 49.6.0
  libavcodec version: 51.54.0
  libavformat version: 52.13.0
  libavdevice version: 52.0.0
  built on Feb 17 2012 14:25:30, gcc: 4.2.1
/opt/bin/ffmpeg: missing argument for option '-i'


When copying a file over GB Ethernet i get betweeen 60 - 80MB/sec. So i think the disc's aren't the problem. Have seen a thread here where users get more the 100 - 300fps :o

Someone with an explanation for that?

PS: PS3 Media Server plays the files just fine.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue May 15, 2012 11:13 am

Re: Slow on transcoding - QNAP 259+

what profile are you using? The NAS is low powered to is only manages low fps. But possibly transcoding is not necessary in that case.
<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Tue May 15, 2012 11:25 am

Re: Slow on transcoding - QNAP 259+

It's a Sharp Aquos and with the Sharp profile it recognices the mkvs. When selecting "generic" profile it couldn't play it at all.

So i need the the Sharp profile to play it at all.

You mean a 1,8GHz dual core CPU isn't fast enough? Why is it working with am PMS in a better way?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue May 15, 2012 11:37 am

Re: Slow on transcoding - QNAP 259+

dkriener wrote:It's a Sharp Aquos and with the Sharp profile it recognices the mkvs. When selecting "generic" profile it couldn't play it at all.
So i need the the Sharp profile to play it at all.
You mean a 1,8GHz dual core CPU isn't fast enough? Why is it working with am PMS in a better way?

I think PMS only remux the file into mpegts where serviio/Sharp Aquos transcode the video (more cpu load).
Check if your file could be remuxed ?

EDIT: Check with INTEL tool the format supported by your device.
Then provide information about your media file.
We'll see if Sharp profile can be optimized.
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Tue May 15, 2012 12:35 pm

Re: Slow on transcoding - QNAP 259+

The intel tool didn't found the TV.

Here is the DLNA certificate for the TV: http://certification.dlna.org/certs/REG73665884.pdf
Sharp Aquos LC-70LE835E

And here are the movie informations from two mkvs:

fps: 20 -35
  Code:
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/opt/cross-project/x86/sys-root/usr --disable-static --enable-shared
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Feb 21 2012 01:41:09, gcc: 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 23.98 (24000/1001)
Input #0, matroska, from '/share/Qmultimedia/Filme2/30min oder weniger.mkv':
  Duration: 01:23:05.81, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h264, yuv420p, 1280x534, PAR 1:1 DAR 640:267, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(ger): Audio: 0x0000, 48000 Hz, stereo, s16
    Stream #0.2(eng): Audio: dca, 48000 Hz, 5.1, s16
At least one output file must be specified


fps: 8 - 15
  Code:
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --prefix=/opt/cross-project/x86/sys-root/usr --disable-static --enable-shared
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  built on Feb 21 2012 01:41:09, gcc: 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (48000/1001) -> 23.98 (24000/1001)
Input #0, matroska, from '/share/Qmultimedia/Filme2/Tin Tin.mkv':
  Duration: 01:46:51.82, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h264, yuv420p, 1920x816, PAR 1:1 DAR 40:17, 23.98 tbr, 1k tbn, 47.95 tbc
    Stream #0.1(ger): Audio: dca, 48000 Hz, 5.1, s16
    Stream #0.2(eng): Audio: dca, 48000 Hz, 5.1, s16
    Stream #0.3(ger): Subtitle: dvdsub
    Stream #0.4(ger): Subtitle: dvdsub
    Stream #0.5(ger): Subtitle: 0x0000
At least one output file must be specified


Need more informations?
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue May 15, 2012 2:20 pm

Re: Slow on transcoding - QNAP 259+

dkriener wrote:The intel tool didn't found the TV.

Ok, so we are blind, we have to test with sample files to know if your device support mpegts with h264 video and ac3 audio.

dkriener wrote:Here is the DLNA certificate for the TV: http://certification.dlna.org/certs/REG73665884.pdf
Sharp Aquos LC-70LE835E

Thanks, dlna certification is based on minimal profile specification (MPEGPS/MPEGTS), however, your TV can support more...

dkriener wrote:And here are the movie informations from two mkvs:

Thanks,
So it might be nice if we could remux these mkv/h264/dts into mpegts/h264/ac3, no need to transcode video (more cpu load)

Edit the profiles.xml, on Sharp profile section.
Add this between <Transcoding>...</Transcoding> in first position:
  Code:
         <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
            <Matches container="matroska" vCodec="h264"/>
         </Video>


Restart serviio service, try to play your mkv and check the log file.
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Tue May 15, 2012 4:04 pm

Re: Slow on transcoding - QNAP 259+

Thanks a lot!

I have changed the profile for the Sharp, now he couldn't play the file anymore.

Here is the serviio.log:

  Code:
2012-05-15 16:58:20,090 DEBUG [WebServer] Incoming connection from /10.0.10.9:60776
2012-05-15 16:58:20,090 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 10.0.10.9:
2012-05-15 16:58:20,091 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 10.0.10.9
2012-05-15 16:58:20,099 DEBUG [ContentDirectory] Browse() called for renderer Sharp Aquos (profile 18) with parameters: objectID = V_F^FOL_R1$F7, browseFlag = BrowseMetadata, filter = *, startIndex = 0, count = 0, sortCriteria =
2012-05-15 16:58:20,099 DEBUG [LocalContentCacheDecorator] Found entry in the cache (local_default), returning it
2012-05-15 16:58:20,105 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-05-15 16:58:20,107 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from 10.0.10.9:
2012-05-15 16:58:20,107 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 10.0.10.9
2012-05-15 16:58:20,153 DEBUG [ContentDirectory] Browse() called for renderer Sharp Aquos (profile 18) with parameters: objectID = V_F^FOL_R1$F7, browseFlag = BrowseDirectChildren, filter = *, startIndex = 0, count = 21, sortCriteria =
2012-05-15 16:58:20,153 DEBUG [LocalContentCacheDecorator] Found entry in the cache (local_default), returning it
2012-05-15 16:58:20,165 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2012-05-15 16:58:24,425 DEBUG [WebServer] Incoming connection from /10.0.10.9:53316
2012-05-15 16:58:24,425 DEBUG [ResourceTransportRequestHandler] GET /resource/55/MEDIA_ITEM/AVC_TS_MP_HD_AC3_ISO*0 HTTP/1.1, headers = [Connection: Close,Host: 10.0.10.205:8895,User-Agent: DLNADOC/1.50 SHARP-AQUOS-DMP/1.1W,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming]]
2012-05-15 16:58:24,426 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 10.0.10.9
2012-05-15 16:58:24,427 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/10.0.10.9, Profile=Sharp Aquos'
2012-05-15 16:58:24,427 DEBUG [ResourceTransportRequestHandler] Request for resource 55 and type 'MEDIA_ITEM' received
2012-05-15 16:58:24,427 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 55 (local)
2012-05-15 16:58:24,428 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 55)
2012-05-15 16:58:24,429 DEBUG [VideoDAOImpl] Reading a Video (id = 55)
2012-05-15 16:58:24,430 DEBUG [VideoDeliveryEngine] Delivering item '55' for client 'IPAddress=/10.0.10.9, Profile=Sharp Aquos'
2012-05-15 16:58:24,430 DEBUG [VideoDeliveryEngine] Delivering file '30min oder weniger.mkv' using transcoding
2012-05-15 16:58:24,430 DEBUG [AbstractTranscodingDeliveryEngine] Stopping previous transcoding job of file 'transcoding-temp-56-MPEG2TS.stf'
2012-05-15 16:58:24,431 DEBUG [ProcessExecutor] Stopping external process: Thread[Thread-115,5,main]
2012-05-15 16:58:24,431 DEBUG [ProcessUtils] Sending kill -9 to the Unix process: 19856
2012-05-15 16:58:24,431 DEBUG [ProcessExecutor] Starting kill -9 19856
2012-05-15 16:58:24,443 DEBUG [TranscodingJobListener] Transcoding finished; successful: true
2012-05-15 16:58:24,492 DEBUG [TranscodingJobListener] Deleted temp file '/root/.serviio/tmp/Serviio/transcoding-temp-56-MPEG2TS.stf': true
2012-05-15 16:58:24,492 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/10.0.10.9, Profile=Sharp Aquos'
2012-05-15 16:58:24,492 DEBUG [MediaItemDAOImpl] Getting file of media item 55
2012-05-15 16:58:24,495 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /share/Qmultimedia/Filme2/30min oder weniger.mkv
2012-05-15 16:58:24,495 DEBUG [ProcessExecutor] Starting /root/.serviio/opt/bin/ffmpeg -i /share/Qmultimedia/Filme2/30min oder weniger.mkv -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /root/.serviio/tmp/Serviio/transcoding-temp-55-MPEG2TS.stf
2012-05-15 16:58:24,863 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 10.0.10.205, timeout = 0
2012-05-15 16:58:24,864 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 9c6ca694-8e60-35b8-9993-0939fb93b13c
2012-05-15 16:58:24,996 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2012-05-15 16:58:24,996 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 30min oder weniger.mkv: AVC_TS_MP_HD_AC3_ISO
2012-05-15 16:58:24,997 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 55) as read
2012-05-15 16:58:25,091 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2012-05-15 16:58:25,091 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 50000000000
2012-05-15 16:58:25,091 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2012-05-15 16:58:25,092 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-05-15 16:58:25,092 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Date: Tue, 15 May 2012 15:58:25 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_HD_AC3_ISO;DLNA.ORG_OP=10;DLNA.ORG_CI=1$
2012-05-15 16:58:25,106 DEBUG [WebServer] I/O error: Connection reset
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue May 15, 2012 4:33 pm

Re: Slow on transcoding - QNAP 259+

try to add this to the profile

  Code:
<MediaFormatProfiles>
  <MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="MPEG_TS_SD_EU,MPEG_TS_SD_NA,MPEG_TS_SD_KO">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>         
</MediaFormatProfiles>


if it doesn't work try to replace it with

  Code:
<MediaFormatProfiles>
  <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>       
</MediaFormatProfiles>
<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Wed May 16, 2012 7:39 am

Re: Slow on transcoding - QNAP 259+

Thanks a lot for the help!

To be sure i replaced all the lines

  Code:
<MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mp4">MPEG4_P2_3GPP_SP_L0B_AAC</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mp4">MPEG4_P2_3GPP_SP_L0B_AMR</MediaFormatProfile>
<MediaFormatProfile mime-type="video/mp4">AVC_3GPP_BL_QCIF15_AAC</MediaFormatProfile>


with your lines. Unfortunatelly the TV didn't play the files :(

With the first settings:
  Code:
2012-05-16 08:28:42,152 DEBUG [WebServer] Incoming connection from /10.0.10.9:54339
2012-05-16 08:28:42,153 DEBUG [ResourceTransportRequestHandler] GET /resource/55/MEDIA_ITEM/AVC_TS_MP_HD_AC3_ISO*0 HTTP/1.1, headers = [Connection: Close,Host: 10.0.10.205:8895,User-Agent: DLNADOC/1.50 SHARP-AQUOS-DMP/1.1W,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming]]
2012-05-16 08:28:42,153 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 10.0.10.9
2012-05-16 08:28:42,155 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/10.0.10.9, Profile=Sharp Aquos'
2012-05-16 08:28:42,158 DEBUG [ResourceTransportRequestHandler] Request for resource 55 and type 'MEDIA_ITEM' received
2012-05-16 08:28:42,159 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 55 (local)
2012-05-16 08:28:42,159 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 55)
2012-05-16 08:28:42,160 DEBUG [VideoDAOImpl] Reading a Video (id = 55)
2012-05-16 08:28:42,162 DEBUG [VideoDeliveryEngine] Delivering item '55' for client 'IPAddress=/10.0.10.9, Profile=Sharp Aquos'
2012-05-16 08:28:42,162 DEBUG [VideoDeliveryEngine] Delivering file '30min oder weniger.mkv' using transcoding
2012-05-16 08:28:42,163 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/10.0.10.9, Profile=Sharp Aquos'
2012-05-16 08:28:42,164 DEBUG [MediaItemDAOImpl] Getting file of media item 55
2012-05-16 08:28:42,166 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /share/Qmultimedia/Filme2/30min oder weniger.mkv
2012-05-16 08:28:42,167 DEBUG [ProcessExecutor] Starting /root/.serviio/opt/bin/ffmpeg -i /share/Qmultimedia/Filme2/30min oder weniger.mkv -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /root/.serviio/tmp/Serviio/transcoding-temp-55-MPEG2TS.stf
2012-05-16 08:28:42,668 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2012-05-16 08:28:42,671 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file 30min oder weniger.mkv: AVC_TS_MP_HD_AC3_ISO
2012-05-16 08:28:42,672 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 55) as read
2012-05-16 08:28:42,831 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2012-05-16 08:28:42,839 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 50000000000
2012-05-16 08:28:42,840 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2012-05-16 08:28:42,842 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-05-16 08:28:42,842 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Date: Wed, 16 May 2012 07:28:42 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_TS_SD_EU;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming]]
2012-05-16 08:28:42,858 DEBUG [WebServer] I/O error: Connection reset



With the second settings:
  Code:
2012-05-16 08:31:49,347 DEBUG [WebServer] Incoming connection from /10.0.10.9:50388
2012-05-16 08:31:49,378 DEBUG [ResourceTransportRequestHandler] GET /resource/41/MEDIA_ITEM/AVC_TS_MP_HD_AC3_ISO*1 HTTP/1.1, headers = [Connection: Close,Host: 10.0.10.205:8895,User-Agent: DLNADOC/1.50 SHARP-AQUOS-DMP/1.1W,getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming]]
2012-05-16 08:31:49,378 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 10.0.10.9
2012-05-16 08:31:49,380 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/10.0.10.9, Profile=Sharp Aquos'
2012-05-16 08:31:49,383 DEBUG [ResourceTransportRequestHandler] Request for resource 41 and type 'MEDIA_ITEM' received
2012-05-16 08:31:49,384 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 41 (local)
2012-05-16 08:31:49,384 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 41)
2012-05-16 08:31:49,385 DEBUG [VideoDAOImpl] Reading a Video (id = 41)
2012-05-16 08:31:49,386 DEBUG [VideoDeliveryEngine] Delivering item '41' for client 'IPAddress=/10.0.10.9, Profile=Sharp Aquos'
2012-05-16 08:31:49,387 DEBUG [VideoDeliveryEngine] Delivering file 'The Guard.mkv' using transcoding
2012-05-16 08:31:49,387 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/10.0.10.9, Profile=Sharp Aquos'
2012-05-16 08:31:49,388 DEBUG [MediaItemDAOImpl] Getting file of media item 41
2012-05-16 08:31:49,391 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /share/Qmultimedia/Filme/The Guard.mkv
2012-05-16 08:31:49,392 DEBUG [ProcessExecutor] Starting /root/.serviio/opt/bin/ffmpeg -i /share/Qmultimedia/Filme/The Guard.mkv -y -async 1 -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec ac3 -ab 384k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /root/.serviio/tmp/Serviio/transcoding-temp-41-MPEG2TS.stf
2012-05-16 08:31:49,893 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2012-05-16 08:31:49,895 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file The Guard.mkv: AVC_TS_MP_HD_AC3_ISO
2012-05-16 08:31:49,896 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 41) as read
2012-05-16 08:31:50,015 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2012-05-16 08:31:50,021 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 50000000000
2012-05-16 08:31:50,021 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2012-05-16 08:31:50,022 DEBUG [ResourceTransportRequestHandler] Sending file back
2012-05-16 08:31:50,022 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Date: Wed, 16 May 2012 07:31:50 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.6.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_PS_NTSC;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming]]
2012-05-16 08:31:50,087 DEBUG [WebServer] I/O error: Connection reset
<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Wed May 16, 2012 9:33 am

Re: Slow on transcoding - QNAP 259+

So here is the complete Sharp section now:

  Code:
   <Profile id="18" name="Sharp Aquos" extendsProfileId="1">
                <Detection>
                        <HttpHeaders>
                                <User-Agent>.*SHARP-AQUOS.*</User-Agent>
                        </HttpHeaders>
                </Detection>
                <MediaFormatProfiles>
                        <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
                </MediaFormatProfiles>
                <Transcoding>
                        <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="384">
                                <Matches container="matroska" vCodec="h264"/>
                        </Video>
                        <Audio targetContainer="lpcm">
                                <Matches container="asf" />
                                <Matches container="flac" />
                                <Matches container="ogg" />
                        </Audio>
                </Transcoding>
                <OnlineTranscoding>
                        <Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
                                <Matches container="mp4" />
                        </Video>
                </OnlineTranscoding>
                <AutomaticImageRotation>true</AutomaticImageRotation>
                <LimitImageResolution>false</LimitImageResolution>
        </Profile>
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed May 16, 2012 10:12 am

Re: Slow on transcoding - QNAP 259+

ok another try would be to capture packets coming from the PS3MS when you start playing the file with Wireshark
<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Wed May 16, 2012 11:34 am

Re: Slow on transcoding - QNAP 259+

Can you get something out of that log? Otherwise have to install something like wireshark on the QNAP NAS :o

  Code:
[New I/O server worker #1-3] INFO  11:45:04.863 Media renderer was not recognized. HTTP User agent: DLNADOC/1.50 SHARP-AQUOS-DMP/1.1W
[New I/O server worker #1-3] DEBUG 11:45:04.864 HTTP: upnp/control/content_directory / 0-0
[New I/O server worker #1-4] INFO  11:45:04.870 Media renderer was not recognized. HTTP User agent: DLNADOC/1.50 SHARP-AQUOS-DMP/1.1W
[New I/O server worker #1-4] DEBUG 11:45:04.870 HTTP: upnp/control/content_directory / 0-0
[New I/O server worker #1-5] INFO  11:45:09.103 Media renderer was not recognized. HTTP User agent: DLNADOC/1.50 SHARP-AQUOS-DMP/1.1W
[New I/O server worker #1-5] DEBUG 11:45:09.104 HTTP: get/0$0$1$1$1$4/30min+oder+weniger.mkv / 0-0
[New I/O server worker #1-5] INFO  11:45:09.105 Starting transcode/remux of 30min oder weniger.mkv
[New I/O server worker #1-5] DEBUG 11:45:09.393 Starting ffmpeg -vframes 1 -i /share/Qmultimedia/Filme2/30min oder weniger.mkv -vcodec copy -f h264 -vbsf h264_mp4toannexb -an -y pipe:
[New I/O server worker #1-5] DEBUG 11:45:09.490 Attaching thread: ffmpeg
[New I/O server worker #1-5] DEBUG 11:45:09.531 Unix process ID (ffmpeg): 18677
[mkfifo] DEBUG 11:45:10.007 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1337165110006tsmuxerout.ts
[mkfifo] DEBUG 11:45:10.361 Unix process ID (mkfifo): 18684
[mkfifo] DEBUG 11:45:10.360 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1337165109216ffmpegvideo
[mkfifo] DEBUG 11:45:10.367 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1337165109216videoout
[mkfifo] DEBUG 11:45:10.441 Unix process ID (mkfifo): 18689
[mkfifo] DEBUG 11:45:10.443 Unix process ID (mkfifo): 18692
[mencoder] DEBUG 11:45:10.576 Starting mencoder -ss 0 /share/Qmultimedia/Filme2/30min oder weniger.mkv -quiet -quiet -really-quiet -msglevel statusline=2 -ovc copy -nosound -mc 0 -noskip -of rawvideo -o /tmp/ps3mediaserver/1337165109216ffmpegvideo
[mkfifo] DEBUG 11:45:10.673 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1337165109964ffmpegaudio01
[mkfifo] DEBUG 11:45:10.673 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1337165109964audioout
[mencoder] DEBUG 11:45:10.673 Attaching thread: mencoder
[mencoder] DEBUG 11:45:10.678 Unix process ID (mencoder): 18700
[mkfifo] DEBUG 11:45:10.696 Unix process ID (mkfifo): 18706
[mkfifo] DEBUG 11:45:10.699 Unix process ID (mkfifo): 18709
[mencoder] DEBUG 11:45:10.874 Starting mencoder -ss 0 /share/Qmultimedia/Filme2/30min oder weniger.mkv -quiet -quiet -really-quiet -msglevel statusline=2 -channels 2 -ovc copy -of rawaudio -mc 0 -noskip -oac copy -fafmttag 0x2000 -lavcopts acodec=ac3:abitrate=256 -af lavcresample=48000 -srate 48000 -aid 0 -o /tmp/ps3mediaserver/1337165109964ffmpegaudio01
[mencoder] DEBUG 11:45:10.884 Attaching thread: mencoder
[mencoder] DEBUG 11:45:10.885 Unix process ID (mencoder): 18717
[linux/tsMuxeR] DEBUG 11:45:10.974 Starting /share/MD0_DATA/.qpkg/PMS/linux/tsMuxeR /tmp/ps3mediaserver/pms-tsmuxer.meta /tmp/ps3mediaserver/1337165110006tsmuxerout.ts
[linux/tsMuxeR] DEBUG 11:45:11.045 Reading pipe: /tmp/ps3mediaserver/1337165110006tsmuxerout.ts
[Thread-29] DEBUG 11:45:16.095 Destroying buffer
[Thread-25] DEBUG 11:45:16.095 Stopping Unix process 18677: ffmpeg
[linux/tsMuxeR] DEBUG 11:45:16.219 Attaching thread: linux/tsMuxeR
[linux/tsMuxeR] DEBUG 11:45:16.273 Unix process ID (/share/MD0_DATA/.qpkg/PMS/linux/tsMuxeR): 18723
[New I/O server worker #1-5] DEBUG 11:46:05.731 Setting margin to 2Mb
[Thread-53] DEBUG 11:46:14.899 Stopping Unix process 18723: linux/tsMuxeR
[Thread-53] DEBUG 11:46:14.900 Stopping Unix process 18684: mkfifo
[Thread-53] DEBUG 11:46:14.901 Stopping Unix process 18700: mencoder
[Thread-55] DEBUG 11:46:14.902 Destroying buffer
[Thread-53] DEBUG 11:46:14.902 Destroying buffer
<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Wed May 16, 2012 11:39 am

Re: Slow on transcoding - QNAP 259+

Here again of a second movie / 1080p with PMS:

  Code:
[New I/O server worker #1-5] DEBUG 12:35:46.375 HTTP: get/0$0$1$1$2$10/Tin+Tin.mkv / 0-0
[New I/O server worker #1-5] INFO  12:35:46.384 Starting transcode/remux of Tin Tin.mkv
[New I/O server worker #1-5] DEBUG 12:35:46.405 Starting ffmpeg -vframes 1 -i /share/Qmultimedia/Filme2/Tin Tin.mkv -vcodec copy -f h264 -vbsf h264_mp4toannexb -an -y pipe:
[New I/O server worker #1-5] DEBUG 12:35:46.542 Attaching thread: ffmpeg
[New I/O server worker #1-5] DEBUG 12:35:46.552 Unix process ID (ffmpeg): 22809
[mkfifo] DEBUG 12:35:47.221 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1337168147220tsmuxerout.ts
[mkfifo] DEBUG 12:35:47.272 Unix process ID (mkfifo): 22817
[mkfifo] DEBUG 12:35:47.281 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1337168146403ffmpegvideo
[mkfifo] DEBUG 12:35:47.282 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1337168146403videoout
[mkfifo] DEBUG 12:35:47.311 Unix process ID (mkfifo): 22823
[mkfifo] DEBUG 12:35:47.340 Unix process ID (mkfifo): 22825
[mencoder] DEBUG 12:35:47.482 Starting mencoder -ss 0 /share/Qmultimedia/Filme2/Tin Tin.mkv -quiet -quiet -really-quiet -msglevel statusline=2 -ovc copy -nosound -mc 0 -noskip -of rawvideo -o /tmp/ps3mediaserver/1337168146403ffmpegvideo
[mencoder] DEBUG 12:35:47.528 Attaching thread: mencoder
[mencoder] DEBUG 12:35:47.529 Unix process ID (mencoder): 22833
[mkfifo] DEBUG 12:35:47.533 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1337168147139ffmpegaudio01
[mkfifo] DEBUG 12:35:47.533 Starting mkfifo --mode=777 /tmp/ps3mediaserver/1337168147139audioout
[mkfifo] DEBUG 12:35:47.562 Unix process ID (mkfifo): 22840
[mkfifo] DEBUG 12:35:47.829 Unix process ID (mkfifo): 22842
[mencoder] DEBUG 12:35:47.879 Starting mencoder -ss 0 /share/Qmultimedia/Filme2/Tin Tin.mkv -quiet -quiet -really-quiet -msglevel statusline=2 -channels 6 -ovc copy -of rawaudio -mc 0 -noskip -oac lavc -quiet -quiet -lavcopts acodec=ac3:abitrate=640 -af lavcresample=48000 -srate 48000 -aid 0 -o /tmp/ps3mediaserver/1337168147139ffmpegaudio01
[mencoder] DEBUG 12:35:47.899 Attaching thread: mencoder
[mencoder] DEBUG 12:35:47.900 Unix process ID (mencoder): 22852
[linux/tsMuxeR] DEBUG 12:35:47.980 Starting /share/MD0_DATA/.qpkg/PMS/linux/tsMuxeR /tmp/ps3mediaserver/pms-tsmuxer.meta /tmp/ps3mediaserver/1337168147220tsmuxerout.ts
[linux/tsMuxeR] DEBUG 12:35:48.012 Reading pipe: /tmp/ps3mediaserver/1337168147220tsmuxerout.ts
[linux/tsMuxeR] DEBUG 12:35:49.324 Attaching thread: linux/tsMuxeR
[linux/tsMuxeR] DEBUG 12:35:49.325 Unix process ID (/share/MD0_DATA/.qpkg/PMS/linux/tsMuxeR): 22858
[Thread-66] DEBUG 12:35:49.405 Stopping Unix process 22809: ffmpeg
[Thread-66] DEBUG 12:35:49.436 Destroying buffer
[New I/O server worker #1-5] DEBUG 12:36:21.454 Setting margin to 2Mb
[New I/O server worker #1-6] INFO  12:36:52.996 Media renderer was not recognized. HTTP User agent: DLNADOC/1.50 SHARP-AQUOS-DMP/1.1W
[New I/O server worker #1-6] DEBUG 12:36:52.996 HTTP: upnp/control/content_directory / 0-0
[New I/O server worker #1-7] INFO  12:36:53.003 Media renderer was not recognized. HTTP User agent: DLNADOC/1.50 SHARP-AQUOS-DMP/1.1W
[New I/O server worker #1-7] DEBUG 12:36:53.004 HTTP: upnp/control/content_directory / 0-0
[Thread-94] DEBUG 12:36:53.313 Stopping Unix process 22858: linux/tsMuxeR
[Thread-96] DEBUG 12:36:53.314 Destroying buffer
[Thread-94] DEBUG 12:36:53.314 Stopping Unix process 22817: mkfifo
[Thread-94] DEBUG 12:36:53.316 Stopping Unix process 22833: mencoder
[Thread-94] DEBUG 12:36:53.316 Destroying buffer
[Thread-94] DEBUG 12:36:53.317 Stopping Unix process 22852: mencoder
[Thread-94] DEBUG 12:36:53.318 Destroying buffer
[Thread-99] WARN  12:37:03.317 Sending kill -14 to the Unix process: 22833
[Thread-100] WARN  12:37:03.327 Sending kill -14 to the Unix process: 22852
[Thread-99] DEBUG 12:37:03.345 Successfully sent kill -14 to the Unix process: 22833
[Thread-100] DEBUG 12:37:03.359 Successfully sent kill -14 to the Unix process: 22852
[Thread-13] DEBUG 12:37:09.002 Sending ALIVE...
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed May 16, 2012 11:50 am

Re: Slow on transcoding - QNAP 259+

dkriener wrote:Here again of a second movie / 1080p with PMS:

mencoder command used is similar to ffmpeg used by serviio, the video stream is copied and audio is transcode in ac3-6channels-640kbps-48Khz
  Code:
mencoder -ss 0 /share/Qmultimedia/Filme2/Tin Tin.mkv -quiet -quiet -really-quiet -msglevel statusline=2 -channels 6 -ovc copy -of rawaudio -mc 0 -noskip -oac lavc -quiet -quiet -lavcopts acodec=ac3:abitrate=640 -af lavcresample=48000 -srate 48000 -aid 0 -o /tmp/ps3mediaserver/1337168147139ffmpegaudio01


you can try to change audio bitrate, but I don't think this is the isssue...
  Code:
                        <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="640" aSamplerate="48000">
                                <Matches container="matroska" vCodec="h264"/>
                        </Video>


Could you post here the PS3MS profile for your Sharp ?
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Wed May 16, 2012 12:06 pm

Re: Slow on transcoding - QNAP 259+

You can also try this, with TinTin.mkv:

  Code:
   <Profile id="18" name="Sharp Aquos" extendsProfileId="1">
                <Detection>
                        <HttpHeaders>
                                <User-Agent>.*SHARP-AQUOS.*</User-Agent>
                        </HttpHeaders>
                </Detection>
                <MediaFormatProfiles>
                        <MediaFormatProfile mime-type="video/mpeg" name="">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
                </MediaFormatProfiles>
                <Transcoding>
                        <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="640" aSamplerate="48000">
                                <Matches container="matroska" vCodec="h264"/>
                        </Video>
                </Transcoding>
        </Profile>
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Wed May 16, 2012 3:19 pm

Re: Slow on transcoding - QNAP 259+

Sames as before: Video isn't playable.

In den PMS renderes folder there isn't an profile for the Sharp. Dodn't know how they manage, that the Sharp is getting the right format?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed May 16, 2012 3:52 pm

Re: Slow on transcoding - QNAP 259+

I assume it might be just Mime-type, therefore Wireshark capture would be useful
<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Fri May 18, 2012 7:46 am

Re: Slow on transcoding - QNAP 259+

OK installed PMS an Wireshark here on my Mac (easier for me to handle) and capture a playback of an mkv on the TV.

Unfortunatelly the captured log is about 45,5MB for that two minutes of testing (already filtered by the IP address of the TV).
I try to find the interessting section. Do you have a hint for an expression to look for? Otherwise i have to upload the hole file somewhere on a filehoster.

Edit:
OK get it. In the attachment there is the wireshark protocoll (to open in wireshark).
I think around line 240 is the interessting part.
Attachments
wireshark-SharpTV.zip
Wireshark dump of Sharp TV
(12.62 KiB) Downloaded 284 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri May 18, 2012 9:15 am

Re: Slow on transcoding - QNAP 259+

thanks, so it looks like they are remuxing the file and then advertising as mpegts. try this:

  Code:
<Profile id="18" name="Sharp Aquos" extendsProfileId="1">
                <Detection>
                        <HttpHeaders>
                                <User-Agent>.*SHARP-AQUOS.*</User-Agent>
                        </HttpHeaders>
                </Detection>
                <MediaFormatProfiles>
                        <MediaFormatProfile mime-type="video/mpeg" name="MPEG_TS_SD_EU_ISO">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
                </MediaFormatProfiles>
                <Transcoding>
                        <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="640" aSamplerate="48000">
                                <Matches container="matroska" vCodec="h264"/>
                        </Video>
                </Transcoding>
        </Profile>
<<

dkriener

Serviio newbie

Posts: 15

Joined: Fri May 11, 2012 4:07 pm

Post Fri May 18, 2012 11:08 am

Re: Slow on transcoding - QNAP 259+

!!! WORKS !!! WORKS LIKE A CHARME !!!! :) 8-)

Thanks a lot zip!!!

Here is my complete Sharp section with AVI etc. Hope that's right now. Further testing will show ;)

  Code:
<Profile id="18" name="Sharp Aquos" extendsProfileId="1">
                <Detection>
                        <HttpHeaders>
                                <User-Agent>.*SHARP-AQUOS.*</User-Agent>
                        </HttpHeaders>
                </Detection>
                <MediaFormatProfiles>
                        <MediaFormatProfile mime-type="video/mpeg" name="MPEG_TS_SD_EU_ISO">AVC_TS_MP_HD_AC3_ISO</MediaFormatProfile>
                        <MediaFormatProfile mime-type="video/avi" name="">AVI</MediaFormatProfile>
                        <MediaFormatProfile mime-type="video/mp4">MPEG4_P2_3GPP_SP_L0B_AAC</MediaFormatProfile>
                        <MediaFormatProfile mime-type="video/mp4">MPEG4_P2_3GPP_SP_L0B_AMR</MediaFormatProfile>
                        <MediaFormatProfile mime-type="video/mp4">AVC_3GPP_BL_QCIF15_AAC</MediaFormatProfile>
                </MediaFormatProfiles>
                <Transcoding>
                        <Video targetContainer="mpegts" targetACodec="ac3" aBitrate="640" aSamplerate="48000">
                                <Matches container="matroska" vCodec="h264"/>
                                <Matches container="flv" />
                                <Matches container="wtv" />
                                <Matches container="mp4" aCodec="ac3" />
                                <Matches container="asf" />
                        </Video>
                        <Audio targetContainer="lpcm">
                                <Matches container="asf" />
                                <Matches container="flac" />
                                <Matches container="ogg" />
                        </Audio>
                </Transcoding>
                <OnlineTranscoding>
                        <Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">
                                <Matches container="mp4" />
                        </Video>
                </OnlineTranscoding>
                <AutomaticImageRotation>true</AutomaticImageRotation>
                <LimitImageResolution>false</LimitImageResolution>
        </Profile>
Next

Return to Serviio Support & Help

Who is online

Users browsing this forum: Google [Bot] and 81 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.