FAQ  •  Register  •  Login

setup a profile to transcode avi with xvid codec

<<

cvgaviao

Serviio newbie

Posts: 10

Joined: Tue Nov 18, 2014 1:13 am

Post Sun Jun 07, 2015 8:14 pm

setup a profile to transcode avi with xvid codec

Hello,

I'm having a problem playing AVI/xvid movies in two android smatphones: samsung galaxy win and xperia z3 smartphones.
It seems that both phones do not support avi xvid codec, so I need to create a profile I presume.
I found some android profile to begin with here but I couldn't find any profile that refers to xvid codec.
How should I set the profile in order to deal with this kind of file?

Btw, could someone explain how the MediaFormatProfile tag works? it is matched against what? how to know the values to match?

many thanks.

The video details:
  Code:
Format                                   : AVI
Format/Info                              : Audio Video Interleave
File size                                : 348 MiB
Duration                                 : 45mn 53s
Overall bit rate mode                    : Variable
Overall bit rate                         : 1 062 Kbps
Writing application                      : MEncoder dev-SVN-r26059-4.1.2
Writing library                          : MPlayer

Video
ID                                       : 0
Format                                   : MPEG-4 Visual
Format profile                           : Advanced Simple@L5
Format settings, BVOP                    : 2
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Muxing mode                              : Packed bitstream
Codec ID                                 : XVID
Codec ID/Hint                            : XviD
Duration                                 : 45mn 53s
Bit rate                                 : 928 Kbps
Width                                    : 624 pixels
Height                                   : 352 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.176
Stream size                              : 305 MiB (87%)
Writing library                          : XviD 1.2.1 (UTC 2008-12-04)

Audio
ID                                       : 1
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 3
Mode                                     : Joint stereo
Mode extension                           : MS Stereo
Codec ID                                 : 55
Codec ID/Hint                            : MP3
Duration                                 : 45mn 53s
Bit rate mode                            : Variable
Bit rate                                 : 121 Kbps
Nominal bit rate                         : 128 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 39.8 MiB (11%)
Alignment                                : Aligned on interleaves
Interleave, duration                     : 24 ms (0.58 video frame)
Interleave, preload duration             : 478 ms
Writing library                          : LAME3.97
Encoding settings                        : -m j -V 4 -q 3 -lowpass 17 --abr 128

<<

cvgaviao

Serviio newbie

Posts: 10

Joined: Tue Nov 18, 2014 1:13 am

Post Mon Jun 08, 2015 3:51 am

Re: setup a profile to transcode avi with xvid codec

I've made a good progress. I've created one profile using info from other profiles and it worked for my samsung galaxy. I need to do some fine tune now since I can't rewind or forward while playing. any tip what should I look?
It was hard to discover that I must add a <HardSubsTranscoding> too.

I've another doubt: how can I know which profile rule is the one triggering a ffmeg execution?

  Code:
        <Profile id="android-samsung-galaxy-win" name="Android Samsung Galaxy Win" extendsProfileId="1" >
                <Detection>
                    <HttpHeaders>
                        <User-Agent>.*ANDROID.*</User-Agent>
                    </HttpHeaders>
                </Detection>
                <Transcoding>
         <Video targetContainer="mpegts" targetVCodec="h264" targetACodec="aac">
            <Matches container="avi" />
            <Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
            <Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
            <Matches container="avi" vCodec="dvvideo" />
            <Matches container="flv" />
            <Matches container="wtv" />
            <Matches container="ogg" />
            <Matches container="3gp" />            
            <Matches container="rm" />
            <Matches container="asf" />
            <Matches container="*" vCodec="wmv2" />
            <Matches container="*" vCodec="flv" />
            <Matches container="*" vCodec="theora" />
            <Matches container="*" vCodec="rv" />
            <Matches container="*" aCodec="ac3" />
            <Matches container="*" aCodec="wmav2" />
            <Matches container="*" aCodec="wmapro" />
            <Matches container="*" aCodec="flac" />
            <Matches container="*" aCodec="vorbis" />
            <Matches container="*" aCodec="truehd" />
            <Matches container="*" aCodec="amrnb" />
            <Matches container="*" aCodec="real" />
            <Matches container="*" aCodec="dca" />
            <Matches container="*" aCodec="dts-hd" />   
            <Matches container="*" vCodec="h264" levelGreaterThan="4.1" />
         </Video>
         <!-- Remux audio and video streams - for DivX/Xvid in AVI/Matroska -->
         <Video targetContainer="mpegts">
            <Matches container="*" vCodec="mpeg4" aCodec="aac" />
            <Matches container="*" vCodec="msmpeg4" aCodec="aac" />
            <Matches container="*" vCodec="h264" aCodec="aac" />
         </Video>
         <!-- Remux video stream, transcode audio only - for DivX/Xvid in AVI/Matroska -->
         <Video targetContainer="mpegts" targetACodec="aac">
            <Matches container="*" vCodec="h264" aCodec="ac3" />
            <Matches container="*" vCodec="h264" aCodec="dca" />
            <Matches container="*" vCodec="h264" aCodec="mp3" />
            <Matches container="*" vCodec="h264" aCodec="dts-hd" />
            <Matches container="*" vCodec="msmpeg4" aCodec="ac3" />
            <Matches container="*" vCodec="msmpeg4" aCodec="mp3" />
            <Matches container="*" vCodec="msmpeg4" aCodec="dca" />
            <Matches container="*" vCodec="msmpeg4" aCodec="dts-hd" />
            <Matches container="*" vCodec="mpeg4" aCodec="ac3" />
            <Matches container="*" vCodec="mpeg4" aCodec="mp3" />
            <Matches container="*" vCodec="mpeg4" aCodec="dca" />
            <Matches container="*" vCodec="mpeg4" aCodec="dts-hd" />
         </Video>
                        <Audio targetContainer="mp3" forceInheritance="true">
                                <Matches container="ogg" />
                                <Matches container="lpcm" />
                                <Matches container="adts" />
                                <Matches container="asf" />
                                <Matches container="wavpack" />
                                <Matches container="mpc" />
                                <Matches container="adts" />
                        </Audio>
                </Transcoding>
      <OnlineTranscoding>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="aac">
            <Matches container="*" />
         </Video>
      </OnlineTranscoding>
      <HardSubsTranscoding>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="aac" DAR="16:9"/>
      </HardSubsTranscoding>
                <AutomaticImageRotation>true</AutomaticImageRotation>
        </Profile>
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Mon Jun 08, 2015 10:05 am

Re: setup a profile to transcode avi with xvid codec

Some answers to your questions: others may provide more insight:

  • There's no real way that I know of to tell which transcoding rule is being matched. You just have to work through it - when you know your media files charateristics work from the top and the first matching statement will win (see below),
  • MediaFormatProfile is used to map MIME types to DLNA protocol info. It defines a set of media format profiles that your renderer expects. All the format profiles are defined in the Generic profile and you should only change those that cause your media files to be unrecognized by your device.
Its' good that you're giving making your own profile a go. Some things that may assist:

  1. One error you are making is that <Matches> rules are matched in the order that they appear - hence in this sequence:

      <Matches container="avi" />
      <Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
      <Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
      <Matches container="avi" vCodec="dvvideo" />
    only the first line is ever matched - any AVI file (with any codec type and any FourCC type) is matched against the first line above and the matching algorithm is exited - lines 2-4 never come into play.
    Similarly later in your profile you have are trying to remux AVI's:

      <!-- Remux audio and video streams - for DivX/Xvid in AVI/Matroska --> ...
    This will never be reached for AVI's, as AVI files have already been dealt with (once again by line 1 above).
    .
  2. Your comments in the profile suggest you only want to remux MKV's and AVI's but you are specifying <Matches container="*" which will match all container types (including MP4's which are probably handled by your device natively).
Good luck, let us know if you need any help or have other queries.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

jart352015yup

Streaming enthusiast

Posts: 35

Joined: Fri Apr 03, 2015 12:49 am

Post Wed Jun 10, 2015 4:53 pm

Re: setup a profile to transcode avi with xvid codec

cvgaviao wrote:I've made a good progress. I've created one profile using info from other profiles and it worked for my samsung galaxy. I need to do some fine tune now since I can't rewind or forward while playing. any tip what should I look?
It was hard to discover that I must add a <HardSubsTranscoding> too.

I've another doubt: how can I know which profile rule is the one triggering a ffmeg execution?

  Code:
        <Profile id="android-samsung-galaxy-win" name="Android Samsung Galaxy Win" extendsProfileId="1" >
                <Detection>
                    <HttpHeaders>
                        <User-Agent>.*ANDROID.*</User-Agent>
                    </HttpHeaders>
                </Detection>
                <Transcoding>
         <Video targetContainer="mpegts" targetVCodec="h264" targetACodec="aac">
            <Matches container="avi" />
            <Matches container="avi" vCodec="mpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
            <Matches container="avi" vCodec="msmpeg4" vFourCC="div3,div4,div5,divx,dm4v,dx50" />
            <Matches container="avi" vCodec="dvvideo" />
            <Matches container="flv" />
            <Matches container="wtv" />
            <Matches container="ogg" />
            <Matches container="3gp" />            
            <Matches container="rm" />
            <Matches container="asf" />
            <Matches container="*" vCodec="wmv2" />
            <Matches container="*" vCodec="flv" />
            <Matches container="*" vCodec="theora" />
            <Matches container="*" vCodec="rv" />
            <Matches container="*" aCodec="ac3" />
            <Matches container="*" aCodec="wmav2" />
            <Matches container="*" aCodec="wmapro" />
            <Matches container="*" aCodec="flac" />
            <Matches container="*" aCodec="vorbis" />
            <Matches container="*" aCodec="truehd" />
            <Matches container="*" aCodec="amrnb" />
            <Matches container="*" aCodec="real" />
            <Matches container="*" aCodec="dca" />
            <Matches container="*" aCodec="dts-hd" />   
            <Matches container="*" vCodec="h264" levelGreaterThan="4.1" />
         </Video>
         <!-- Remux audio and video streams - for DivX/Xvid in AVI/Matroska -->
         <Video targetContainer="mpegts">
            <Matches container="*" vCodec="mpeg4" aCodec="aac" />
            <Matches container="*" vCodec="msmpeg4" aCodec="aac" />
            <Matches container="*" vCodec="h264" aCodec="aac" />
         </Video>
         <!-- Remux video stream, transcode audio only - for DivX/Xvid in AVI/Matroska -->
         <Video targetContainer="mpegts" targetACodec="aac">
            <Matches container="*" vCodec="h264" aCodec="ac3" />
            <Matches container="*" vCodec="h264" aCodec="dca" />
            <Matches container="*" vCodec="h264" aCodec="mp3" />
            <Matches container="*" vCodec="h264" aCodec="dts-hd" />
            <Matches container="*" vCodec="msmpeg4" aCodec="ac3" />
            <Matches container="*" vCodec="msmpeg4" aCodec="mp3" />
            <Matches container="*" vCodec="msmpeg4" aCodec="dca" />
            <Matches container="*" vCodec="msmpeg4" aCodec="dts-hd" />
            <Matches container="*" vCodec="mpeg4" aCodec="ac3" />
            <Matches container="*" vCodec="mpeg4" aCodec="mp3" />
            <Matches container="*" vCodec="mpeg4" aCodec="dca" />
            <Matches container="*" vCodec="mpeg4" aCodec="dts-hd" />
         </Video>
                        <Audio targetContainer="mp3" forceInheritance="true">
                                <Matches container="ogg" />
                                <Matches container="lpcm" />
                                <Matches container="adts" />
                                <Matches container="asf" />
                                <Matches container="wavpack" />
                                <Matches container="mpc" />
                                <Matches container="adts" />
                        </Audio>
                </Transcoding>
      <OnlineTranscoding>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="aac">
            <Matches container="*" />
         </Video>
      </OnlineTranscoding>
      <HardSubsTranscoding>
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="aac" DAR="16:9"/>
      </HardSubsTranscoding>
                <AutomaticImageRotation>true</AutomaticImageRotation>
        </Profile>



DenyAll has it all there for you. good work for you to work on your own profile . :-)

just to note though... any file you transcode to be watchable on your device can not fast forward or rewind as it is being transcoded can only pause and resume that i know of as i have tried all options i can think of to try.

good luck and happy to help out if i can.

cheers
<<

cvgaviao

Serviio newbie

Posts: 10

Joined: Tue Nov 18, 2014 1:13 am

Post Fri Jun 12, 2015 2:16 pm

Re: setup a profile to transcode avi with xvid codec

Hello again,
Firstly thanks for the tips DenyAll. I could improve the profile and will put it here back soon...

I'm doing some experiments related to subtitles and have some doubts.

One, when using "Enable burned-in subtitles" what should I add in a profile to help serviio detect if the burn-in is necessary or not. This doubt is because I have a bravia tv that I know a burn-in is required but other devices might be not.

Two, I read somewhere that mx-player is capable to request subtitles, so I' trying with "Enable burned-in subtitles" deselected. Serviio is detecting that an external .srt file exists, but it is not appearing when playing the movie.
what could be happening?

  Code:
2015-06-12 10:56:29,548 DEBUG [MediaItemDAOImpl] Getting file of media item 1598
2015-06-12 10:56:29,551 DEBUG [SubtitlesService] Found external subtitles file: santi-21jumpst.brrip.xvid.pt.srt
2015-06-12 10:56:29,551 DEBUG [ResourceValuesBuilder] Softsubs for media item 1598 found, will be served as a resource
2015-06-12 10:56:29,552 DEBUG [GenreDAOImpl] Reading a Genre (id = 21)
2015-06-12 10:56:29,566 DEBUG [VideoDAOImpl] Reading a Video (id = 1598)
2015-06-12 10:56:29,577 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1598 and profile Android Generic
2015-06-12 10:56:29,579 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "santi-21jumpst.brrip.xvid.avi": MPEG4_P2_TS_ASP_AAC_ISO
2015-06-12 10:56:29,581 DEBUG [CoverImageDAOImpl] Reading a CoverImage (id = 7797)
2015-06-12 10:56:29,613 DEBUG [MediaItemDAOImpl] Getting file of media item 1598
2015-06-12 10:56:29,614 DEBUG [SubtitlesService] Found external subtitles file: santi-21jumpst.brrip.xvid.pt.srt
2015-06-12 10:56:29,614 DEBUG [ResourceValuesBuilder] Softsubs for media item 1598 found, will be served as a resource....
2015-06-12 10:57:27,391 DEBUG [ServiioHttpService] Incoming request from /192.168.2.111:41184: GET /resource/1598/MEDIA_ITEM/MPEG4_P2_TS_ASP_AAC_ISO-0 HTTP/1.1, headers = [Host: 192.168.2.112:8895,Connection: Keep-Alive,User-Agent: Apache-HttpClient/UNAVAILABLE (java 1.4)]]
2015-06-12 10:57:27,392 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.2.111
2015-06-12 10:57:27,396 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.2.111
2015-06-12 10:57:27,401 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.2.111, Profile=Android Generic'
2015-06-12 10:57:27,402 WARN  [ResourceDeliveryProcessor] Invalid request, sending back 400 error
org.serviio.upnp.protocol.http.transport.InvalidResourceRequestException: Invalid incoming request: /resource/1598/MEDIA_ITEM/MPEG4_P2_TS_ASP_AAC_ISO-0
   at org.serviio.upnp.protocol.http.transport.RequestedResourceDescriptor.<init>(RequestedResourceDescriptor.java:69)
   at org.serviio.upnp.protocol.http.transport.AbstractProtocolHandler.getRequestedResourceDescription(AbstractProtocolHandler.java:36)
   at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:65)
   at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:86)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:423)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:78)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:341)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:204)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3
   at org.serviio.upnp.protocol.http.transport.RequestedResourceDescriptor.<init>(RequestedResourceDescriptor.java:66)
   ... 8 more
2015-06-12 10:57:29,731 DEBUG [ServiioHttpService] Incoming request from /192.168.2.111:41185: GET /resource/1598/MEDIA_ITEM/MPEG4_P2_TS_ASP_AAC_ISO-0/ORIGINAL HTTP/1.1, headers = [User-Agent: Mozilla/5.0 (Linux; Android 4.1.2; en-US; GT-I8552B Build/JZO54K.I8552BUBUANH1) MXPlayer/1.7.40,Accept: */*,Range: bytes=0-,Connection: close,Host: 192.168.2.112:8895,Icy-MetaData: 1]]
2015-06-12 10:57:29,732 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.2.111
2015-06-12 10:57:29,734 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.2.111
2015-06-12 10:57:29,737 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.2.111, Profile=Android Generic'
2015-06-12 10:57:29,737 DEBUG [ResourceDeliveryProcessor] Request for resource 1598 and type 'MEDIA_ITEM' received
2015-06-12 10:57:29,737 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1598 (local)
2015-06-12 10:57:29,737 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1598)
2015-06-12 10:57:29,750 DEBUG [VideoDAOImpl] Reading a Video (id = 1598)
2015-06-12 10:57:29,751 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1598, format MPEG4_P2_TS_ASP_AAC_ISO and profile Android Generic
2015-06-12 10:57:29,756 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file santi-21jumpst.brrip.xvid.avi
2015-06-12 10:57:29,756 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "santi-21jumpst.brrip.xvid.avi": MPEG4_P2_TS_ASP_AAC_ISO
2015-06-12 10:57:29,758 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1598 (local)
2015-06-12 10:57:29,758 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1598)
2015-06-12 10:57:29,758 DEBUG [VideoDAOImpl] Reading a Video (id = 1598)
2015-06-12 10:57:29,759 DEBUG [VideoDeliveryEngine] Delivering item '1598' for client 'Identifier=192.168.2.111, Profile=Android Generic'
2015-06-12 10:57:29,759 DEBUG [VideoDeliveryEngine] Delivering file 'santi-21jumpst.brrip.xvid.avi' using transcoding
2015-06-12 10:57:29,759 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'Identifier=192.168.2.111, Profile=Android Generic'
2015-06-12 10:57:29,760 DEBUG [MediaItemDAOImpl] Getting file of media item 1598
2015-06-12 10:57:29,761 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /home/cvgaviao/Videos/Movies/21 Jump Street 2012 BRRip XviD AC3-SANTi/santi-21jumpst.brrip.xvid.avi
2015-06-12 10:57:29,761 DEBUG [ProcessExecutor] Starting ffmpeg -fflags +genpts -threads auto -i /home/cvgaviao/Videos/Movies/21 Jump Street 2012 BRRip XviD AC3-SANTi/santi-21jumpst.brrip.xvid.avi -y -threads auto -c:v copy -c:a aac -strict experimental -b:a 192k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts /home/cvgaviao/serviio-1.4.1.2/tmp/Serviio/transcoding-temp-1598-android-generic-ORIGINAL.stf
2015-06-12 10:57:30,261 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2015-06-12 10:57:30,262 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "santi-21jumpst.brrip.xvid.avi": MPEG4_P2_TS_ASP_AAC_ISO
2015-06-12 10:57:30,262 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 1598) as read
2015-06-12 10:57:30,310 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2015-06-12 10:57:30,310 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2015-06-12 10:57:30,310 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2015-06-12 10:57:30,311 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mpeg,Cache-control: no-cache,Connection: close,Content-Range: bytes 0-49999999999/50000000000,Date: Fri, 12 Jun 2015 13:57:30 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.5.1,transferMode.dlna.org: Streaming]]
2015-06-12 10:57:30,469 DEBUG [ServiioHttpService] Incoming request from /192.168.2.111:41186: GET /resource/1598/MEDIA_ITEM/MPEG4_P2_TS_ASP_AAC_ISO-0/ORIGINAL HTTP/1.1, headers = [User-Agent: Mozilla/5.0 (Linux; Android 4.1.2; en-US; GT-I8552B Build/JZO54K.I8552BUBUANH1) MXPlayer/1.7.40,Accept: */*,Range: bytes=0-,Connection: close,Host: 192.168.2.112:8895,Icy-MetaData: 1]]
2015-06-12 10:57:30,469 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.2.111
2015-06-12 10:57:30,470 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.2.111
2015-06-12 10:57:30,470 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.2.111, Profile=Android Generic'
2015-06-12 10:57:30,471 DEBUG [ResourceDeliveryProcessor] Request for resource 1598 and type 'MEDIA_ITEM' received
2015-06-12 10:57:30,471 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1598 (local)
2015-06-12 10:57:30,471 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1598)
2015-06-12 10:57:30,472 DEBUG [VideoDAOImpl] Reading a Video (id = 1598)
2015-06-12 10:57:30,472 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1598, format MPEG4_P2_TS_ASP_AAC_ISO and profile Android Generic
2015-06-12 10:57:30,472 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file santi-21jumpst.brrip.xvid.avi
2015-06-12 10:57:30,472 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "santi-21jumpst.brrip.xvid.avi": MPEG4_P2_TS_ASP_AAC_ISO
2015-06-12 10:57:30,472 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1598 (local)
2015-06-12 10:57:30,472 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1598)
2015-06-12 10:57:30,472 DEBUG [VideoDAOImpl] Reading a Video (id = 1598)
2015-06-12 10:57:30,473 DEBUG [VideoDeliveryEngine] Delivering item '1598' for client 'Identifier=192.168.2.111, Profile=Android Generic'
2015-06-12 10:57:30,473 DEBUG [VideoDeliveryEngine] Delivering file 'santi-21jumpst.brrip.xvid.avi' using transcoding
2015-06-12 10:57:30,474 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'Identifier=192.168.2.111, Profile=Android Generic'
2015-06-12 10:57:30,484 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2015-06-12 10:57:30,485 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "santi-21jumpst.brrip.xvid.avi": MPEG4_P2_TS_ASP_AAC_ISO
2015-06-12 10:57:30,485 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 1598) as read
2015-06-12 10:57:30,520 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2015-06-12 10:57:30,520 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2015-06-12 10:57:30,521 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2015-06-12 10:57:30,521 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/mpeg,Cache-control: no-cache,Connection: close,Content-Range: bytes 0-49999999999/50000000000,Date: Fri, 12 Jun 2015 13:57:30 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.5.1,transferMode.dlna.org: Streaming]]
2015-06-12 10:57:30,528 DEBUG [WebServer] I/O error: Connection reset
2015-06-12 10:57:30,989 DEBUG [ServiioHttpService] Incoming request from /192.168.2.111:41187: GET /resource/1598/MEDIA_ITEM/MPEG4_P2_TS_ASP_AAC_ISO-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.2.112:8895,Connection: keep-alive,user-agent: Mozilla/5.0 (Linux; Android 4.1.2; en-US; GT-I8552B Build/JZO54K.I8552BUBUANH1) MXPlayer/1.7.40,Accept-Encoding: gzip,deflate,Accept: */*]]
2015-06-12 10:57:30,989 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.2.111
2015-06-12 10:57:30,989 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.2.111
2015-06-12 10:57:30,989 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.2.111, Profile=Android Generic'
2015-06-12 10:57:30,990 DEBUG [ResourceDeliveryProcessor] Request for resource 1598 and type 'MEDIA_ITEM' received
2015-06-12 10:57:30,990 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1598 (local)
2015-06-12 10:57:30,990 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1598)
2015-06-12 10:57:30,990 DEBUG [VideoDAOImpl] Reading a Video (id = 1598)
2015-06-12 10:57:30,990 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 1598, format MPEG4_P2_TS_ASP_AAC_ISO and profile Android Generic
2015-06-12 10:57:30,990 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file santi-21jumpst.brrip.xvid.avi
2015-06-12 10:57:30,990 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "santi-21jumpst.brrip.xvid.avi": MPEG4_P2_TS_ASP_AAC_ISO
2015-06-12 10:57:30,990 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 1598 (local)
2015-06-12 10:57:30,990 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 1598)
2015-06-12 10:57:30,991 DEBUG [VideoDAOImpl] Reading a Video (id = 1598)
2015-06-12 10:57:30,991 DEBUG [VideoDeliveryEngine] Delivering item '1598' for client 'Identifier=192.168.2.111, Profile=Android Generic'
2015-06-12 10:57:30,991 DEBUG [VideoDeliveryEngine] Delivering file 'santi-21jumpst.brrip.xvid.avi' using transcoding
2015-06-12 10:57:30,991 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'Identifier=192.168.2.111, Profile=Android Generic'
2015-06-12 10:57:30,991 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
2015-06-12 10:57:30,991 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file "santi-21jumpst.brrip.xvid.avi": MPEG4_P2_TS_ASP_AAC_ISO
2015-06-12 10:57:30,991 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 1598) as read
2015-06-12 10:57:31,031 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2015-06-12 10:57:31,031 DEBUG [GETMethodProcessor] Stream entity has length: 50000000000
2015-06-12 10:57:31,031 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2015-06-12 10:57:31,031 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Cache-control: no-cache,Connection: close,Date: Fri, 12 Jun 2015 13:57:31 GMT,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.5.1,transferMode.dlna.org: Streaming]]
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Sat Jun 13, 2015 5:48 am

Re: setup a profile to transcode avi with xvid codec

cvgaviao wrote:what should I add in a profile to help serviio detect if the burn-in is necessary or not
You need to use the RequiredFor statement within the HardSubs block, for example to tell Serviio your device requires burnt-in-subs for MP4 files, add:
  Code:
<Subtitles>
   <HardSubs>
      <RequiredFor container="mp4" />
   </HardSubs>
</Subtitles>
usually after the Transcode blocks.

You may also want to tell service how to transcode subs using the HardSubsTranscoding block, eg:
  Code:
<HardSubsTranscoding>
   <Video targetContainer="mpeg" targetVCodec="mpeg2video" DAR="16:9" targetACodec="ac3" aBitrate="384" />
</HardSubsTranscoding>
cvgaviao wrote:Two....what could be happening?
Not sure. The "Softsubs for media item 1598 found, will be served as a resource" line suggests that Serviio is serving the subtitles natively, rather than burning them in. Play with the above first and see if that helps.
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

cvgaviao

Serviio newbie

Posts: 10

Joined: Tue Nov 18, 2014 1:13 am

Post Sat Jun 13, 2015 8:09 am

Re: setup a profile to transcode avi with xvid codec

Yep, with hardsubs I can see the videos with subtitles for sure.

But the problem is that almost all the movies that I have uses h264. They are being remuxed properly since my home androids have support for them natively and the mx-player and dice-player can play them with hw decode, that I read somewhere it will use less battery then using sw decode.

When serviio transcode the video in order to put subtitles using h264, my computer CPU goes to almost 100% just for one player, can't imagine when all others 5 from my family was in home and want to watch different movies. :)
Using another protocol will loose quality, right?

Is the video player responsible to request the subtitle resource together the video ? what is the format of the URL it should use to do that? maybe I could use WireShark to detect if exist any request being made...

thanks again...
<<

DenyAll

DLNA master

Posts: 2257

Joined: Fri Mar 08, 2013 11:16 pm

Location: Adelaide, Australia

Post Mon Jun 15, 2015 2:27 am

Re: setup a profile to transcode avi with xvid codec

Using another protocol will loose quality, right?
No, not really. Transcoding results in a quality loss - whether its transcoding to H264 or another format isn't the determining factor so much as what encoding parameters are used when transcoding. Yes, remuxing avoids this quality loss, but you cannot remux and burn-in subtitles.

There is nothing to suggest that transcoding on the fly in Serviio to H264 will produce better quality than transcoding to MPEG2. H264 can be used to produce the same quality as MPEG2 but for a lot smaller file size... however, when transcoding-on-the-fly, file size is not important (its a temporary file only). You are therefore generally better off transcoding to MPEG2 when transcoding on the fly, and using a lot less CPU.

(there are some caveats around bandwidth as well, but they likely wont come into play).

Is the video player responsible to request the subtitle resource together the video ? what is the format of the URL it should use to do that? maybe I could use WireShark to detect if exist any request being made...
Yes, the video player requests the subtitle resource. You can also see this in a detailed log (I believe, not at home at the moment to check).

but I am confused...
But the problem is that almost all the movies that I have uses h264. They are being remuxed properly since my home androids have support for them natively
Why are you remuxing them. Are they not playable as native MP4, MKV's? If you can avoid remuxing them you may find that subtitles are also natively supported by the player (MX Player I believe supports this).
DenyAll
Panasonic Viera FX800A | Panasonic Viera CS610A | Sony PS4 | Sony PS3 | Panasonic DMP-BD79 | Yamaha RX-V500D | iPad | Windows 10 | Serviio 1.10.1 Pro
WinHelper | MediaInfo

Beta Tester, Moderator
Please do not PM me for support as any solution cannot be shared with others.
<<

cvgaviao

Serviio newbie

Posts: 10

Joined: Tue Nov 18, 2014 1:13 am

Post Mon Jun 15, 2015 10:30 am

Re: setup a profile to transcode avi with xvid codec

I'm remuxing some because they have A3C, which is not supported natively, so I'm to trancoding them to AAC.
those that already has aac or mp3 is being delivery as is.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 26 guests

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