FAQ  •  Register  •  Login

expecting transcode to mp3 but playing native

<<

marnik

Serviio newbie

Posts: 5

Joined: Sun Jan 12, 2014 2:52 pm

Post Sun Jan 12, 2014 3:00 pm

expecting transcode to mp3 but playing native

Hi,

I have a DS413j, and it doesn't look powerful enough to transcode audio from AC3 to AAC, so zip told me to try mp3.

My videofiles are AVC HD video with AC3 audio, my DLNA renderer can play the video but it does not do AC3. I want the video to stay untouched, but transcode the audio to mp3. The profile that I'm using:

  Code:
<Transcoding>
                        <Video targetContainer="mpegts" targetACodec="mp3" >
                                <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" />
                        </Video>
                        <Audio targetContainer="mp3" aBitrate="320" >
                                <Matches container="flac" />
                                <Matches container="ogg" />
                                <Matches container="adts" />
                                <Matches container="mp2" />
                                <Matches container="wavpack" />
                                <Matches container="mpc" />
                                <Matches container="ape" />
                        </Audio>
                </Transcoding>


I'm assuming that it would transcode the audio, but when I put logging to DEBUG and try to play a file, this is what I see:

  Code:
2014-01-12 15:57:12,018 DEBUG [ServiioHttpService] Incoming request from /192.168.0.62:56802: HEAD /resource/273/MEDIA_ITEM/AVC_TS_MP_HD_AC3_T-0/ORIGINAL HTTP/1.1, headers = [FriendlyName.dlna.org: ADB 5810CX,HOST: 192.168.0.115:8895,X-RequestID: 12415]]
2014-01-12 15:57:12,019 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.62
2014-01-12 15:57:12,021 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.62
2014-01-12 15:57:12,024 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.0.62, Profile=Telenet Yelo TV marnik mp3-2'
2014-01-12 15:57:12,025 DEBUG [ResourceDeliveryProcessor] Request for resource 273 and type 'MEDIA_ITEM' received
2014-01-12 15:57:12,025 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 273 (local)
2014-01-12 15:57:12,026 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 273)
2014-01-12 15:57:12,029 DEBUG [VideoDAOImpl] Reading a Video (id = 273)
2014-01-12 15:57:12,034 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 273, format AVC_TS_MP_HD_AC3_T and profile Telenet Yelo TV marnik mp3-2
2014-01-12 15:57:12,035 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Content-Length: 18677760,Date: Sun, 12 Jan 2014 14:57:12 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.4,Cache-control: no-cache,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2014-01-12 15:57:12,051 DEBUG [ServiioHttpService] Incoming request from /192.168.0.62:56802: GET /resource/273/MEDIA_ITEM/AVC_TS_MP_HD_AC3_T-0/ORIGINAL HTTP/1.1, headers = [FriendlyName.dlna.org: ADB 5810CX,GetContentFeatures.dlna.org: 1,HOST: 192.168.0.115:8895,Range: bytes=0-,TransferMode.dlna.org: Streaming,X-RequestID: 12416]]
2014-01-12 15:57:12,051 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.62
2014-01-12 15:57:12,054 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.62
2014-01-12 15:57:12,056 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.0.62, Profile=Telenet Yelo TV marnik mp3-2'
2014-01-12 15:57:12,056 DEBUG [ResourceDeliveryProcessor] Request for resource 273 and type 'MEDIA_ITEM' received
2014-01-12 15:57:12,057 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 273 (local)
2014-01-12 15:57:12,057 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 273)
2014-01-12 15:57:12,059 DEBUG [VideoDAOImpl] Reading a Video (id = 273)
2014-01-12 15:57:12,062 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 273, format AVC_TS_MP_HD_AC3_T and profile Telenet Yelo TV marnik mp3-2
2014-01-12 15:57:12,063 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 273 (local)
2014-01-12 15:57:12,063 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 273)
2014-01-12 15:57:12,065 DEBUG [VideoDAOImpl] Reading a Video (id = 273)
2014-01-12 15:57:12,069 DEBUG [VideoDeliveryEngine] Delivering item '273' for client 'Identifier=192.168.0.62, Profile=Telenet Yelo TV marnik mp3-2'
2014-01-12 15:57:12,069 DEBUG [VideoDeliveryEngine] Delivering file '00086.MTS' in native format
2014-01-12 15:57:12,069 DEBUG [MediaItemDAOImpl] Getting file of media item 273
2014-01-12 15:57:12,072 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 273) as read
2014-01-12 15:57:12,160 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2014-01-12 15:57:12,161 DEBUG [GETMethodProcessor] Stream entity has length: 18677760
2014-01-12 15:57:12,163 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Content-Length: 18677760,Date: Sun, 12 Jan 2014 14:57:12 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.4,Cache-control: no-cache,Content-Range: bytes 0-18677759/18677760,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_HD_AC3_T;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]


It says "delivering file in native format. Any ideas on what I'm doing wrong? Should I not see some audio transcode logging?

Thanks,

Marnik
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sun Jan 12, 2014 4:54 pm

Re: expecting transcode to mp3 but playing native

Could you provide information about your "00086.MTS" file ? see signature links
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
<<

marnik

Serviio newbie

Posts: 5

Joined: Sun Jan 12, 2014 2:52 pm

Post Sun Jan 12, 2014 5:15 pm

Re: expecting transcode to mp3 but playing native

  Code:
DiskStation> ffmpeg -i /volume1/video/00086.MTS
ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep 16 2013 01:07:33 with gcc 4.2.1
  configuration: --prefix=/usr/syno --arch=arm --target-os=linux --cross-prefix=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi- --enable-cross-compile --enable-optimizations --disable-yasm --disable-altivec --enable-pic --enable-shared --disable-static --disable-swscale-alpha --disable-ffserver --disable-ffplay --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-indev=alsa --disable-outdev=alsa --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=ac3_float --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ccache-gcc
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.120. 0 / 52.120. 0
  libavformat  52.108. 0 / 52.108. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 77. 0 /  1. 77. 0
  libswscale    0. 14. 0 /  0. 14. 0
[mpegts @ 0x33fc0] probed stream 2 failed
[h264 @ 0x39e20] non-existing SPS 3 referenced in buffering period
    Last message repeated 1 times
[h264 @ 0x39e20] non-existing SPS 32 referenced in buffering period
    Last message repeated 4 times
Input #0, mpegts, from '/volume1/video/00086.MTS':
  Duration: 00:00:05.76, start: 1.000000, bitrate: 25941 kb/s
  Program 1
    Stream #0.0[0x1011]: Video: h264 (High), yuv420p, 1920x1080 [PAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 256 kb/s
    Stream #0.2[0x1200]: Data: [144][0][0][0] / 0x0090
At least one output file must be specified
DiskStation>
<<

marnik

Serviio newbie

Posts: 5

Joined: Sun Jan 12, 2014 2:52 pm

Post Sun Jan 12, 2014 5:16 pm

Re: expecting transcode to mp3 but playing native

Btw, this was the trigger to try mp3, was hoping that this would use libshine, but have no idea how to check.


patters commented on Serviio 1.4 package for Synology NAS.

in response to marnik:

HI Patters, First of all: great work! I have a DS413j with the armv5 processor.I read that it’s too slow to do audio transcoding on the fly, do you know what the bottleneck is? I have sony camcorder files that have AVCHD and AC3 audio. My TV plays the video just fine over DLNA without [...]

Hi, change your profile to have it transcode audio to MP3. The libshine encoder I used since the last few versions should be able to handle realtime on ARMv5. libmp3lame which Serviio normally uses is very slow on CPUs without an FPU.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sun Jan 12, 2014 7:23 pm

Re: expecting transcode to mp3 but playing native

What is your device renderer, and what is the profile selected on serviio console ?
<<

marnik

Serviio newbie

Posts: 5

Joined: Sun Jan 12, 2014 2:52 pm

Post Sun Jan 12, 2014 10:35 pm

Re: expecting transcode to mp3 but playing native

Device renderer is a STB. STB has no problem with the video, plays very smooth (great quality). STB also does AC3, as I have some live TV channels with AC3, but I don't have a surround set to play that out via optical. If I put "dolby digital" to "on" in my STB, I have no sound, qs the STB cannot downmix the surround.

I tried more or less the same setup with serviio on my laptop here, transcoding to AAC, which the STB plays fine. However, the NAS is not powrefull enough to do that, so I want to try in mp3, but it looks like it's not even trying to transcode.

This is the profile I'm using:

  Code:
DiskStation> grep -A 43  marnik profiles.xml
        <Profile id="TNDCmarnik" name="Telenet Yelo TV marnik mp3-2" extendsProfileId="1">
                <Detection>
                        <UPnPSearch>
                                <Manufacturer>.*smosys.*</Manufacturer>
                        </UPnPSearch>
                </Detection>
                <Transcoding>
                        <Video targetContainer="mpegts" targetACodec="mp3" >
                                <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" />
                        </Video>
                        <Audio targetContainer="mp3" aBitrate="320" >
                                <Matches container="flac" />
                                <Matches container="ogg" />
                                <Matches container="adts" />
                                <Matches container="mp2" />
                                <Matches container="wavpack" />
                                <Matches container="mpc" />
                                <Matches container="ape" />
                        </Audio>
                </Transcoding>
                <OnlineTranscoding>
                        <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="aac">
                                <Matches container="*" />
                        </Video>
                </OnlineTranscoding>
                <HardSubsTranscoding>
                        <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="aac"/>
                </HardSubsTranscoding>
                <AutomaticImageRotation>true</AutomaticImageRotation>
                <Subtitles>
                        <HardSubs>
                                <RequiredFor container="*" />
                        </HardSubs>
                </Subtitles>
        </Profile>
DiskStation>


And as you can see in the logging, I have used Serviio Console to tell serviio to use that specific profile for my STB's IP (for some reason the device recognition is gailing). So it must be something with the profile.
<<

marnik

Serviio newbie

Posts: 5

Joined: Sun Jan 12, 2014 2:52 pm

Post Wed Jan 15, 2014 10:50 am

Re: expecting transcode to mp3 but playing native

Any ideas? Not sure if libshine is available in my ffmpeg build:

  Code:
DiskStation> ffmpeg -version
ffmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep 16 2013 01:07:33 with gcc 4.2.1
  configuration: --prefix=/usr/syno --arch=arm --target-os=linux --cross-prefix=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi- --enable-cross-compile --enable-optimizations --disable-yasm --disable-altivec --enable-pic --enable-shared --disable-static --disable-swscale-alpha --disable-ffserver --disable-ffplay --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-indev=alsa --disable-outdev=alsa --disable-encoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=ac3_float --disable-encoder=eac3 --disable-decoder=dca --disable-decoder=eac3 --disable-decoder=truehd --cc=/usr/local/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-ccache-gcc
  libavutil    50. 40. 1 / 50. 40. 1
  libavcodec   52.120. 0 / 52.120. 0
  libavformat  52.108. 0 / 52.108. 0
  libavdevice  52.  4. 0 / 52.  4. 0
  libavfilter   1. 77. 0 /  1. 77. 0
  libswscale    0. 14. 0 /  0. 14. 0
ffmpeg UNKNOWN
libavutil    50. 40. 1 / 50. 40. 1
libavcodec   52.120. 0 / 52.120. 0
libavformat  52.108. 0 / 52.108. 0
libavdevice  52.  4. 0 / 52.  4. 0
libavfilter   1. 77. 0 /  1. 77. 0
libswscale    0. 14. 0 /  0. 14. 0


Although that is not the root of the problem, it's not even trying to transcode, which is what I don't understand.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 9 guests

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