Sun Oct 03, 2010 9:05 am by fafa
Ok, so here I am:
1- I modified the profiles.xml so that the bravia section looks like this:
<Profile id="9" name="Sony Bravia TV" extendsProfileId="1">
<Detection>
<X-AV-Client-Info>BRAVIA.*</X-AV-Client-Info>
</Detection>
<MediaFormatProfiles>
<MediaFormatProfile mime-type="video/mpeg" name="MPEG_TS_SD_EU_ISO">MPEG_TS_SD_EU</MediaFormatProfile>
<MediaFormatProfile mime-type="video/vnd.dlna.mpeg-tts" name="AVC_TS_HD_24_AC3">AVC_TS_MP_HD_AC3</MediaFormatProfile>
</MediaFormatProfiles>
<Transcoding>
<Video targetContainer="mpegts">
<Matches container="matroska" vCodec="h264" />
<Matches container="avi" vCodec="h264" />
</Video>
<Video targetContainer="mpeg" targetVCodec="mpeg2video" targetACodec="ac3">
<Matches container="asf" />
<Matches container="avi" />
<Matches container="mp4" />
</Video>
</Transcoding>
</Profile>
2- ffmpeg -i on aladdin.fr gives the following output:
freenas:/mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II# ffmpeg -i Aladdin.avi
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --prefix=/usr/local --mandir=/usr/local/man --enable-shared --enable-gpl --enable-swscale --enable-postproc --enable-avfilter --enable-avfilter-lavf --enable-pthreads --enable-memalign-hack --cc=cc --extra-cflags=-I/usr/local/include/vorbis -I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-pthread --disable-debug --disable-sse --disable-mmx --disable-libamr-nb --disable-libamr-wb --disable-libdirac --disable-libfaac --enable-libfaad --enable-libfaadbin --disable-libgsm --disable-vhook --enable-ipv6 --disable-libmp3lame --disable-libopenjpeg --enable-libschroedinger --disable-ffplay --disable-libspeex --enable-libtheora --enable-libvorbis --disable-x11grab --enable-libx264 --enable-libxvid
libavutil 49.15. 0 / 50.15. 1
libavcodec 52.20. 0 / 52.72. 2
libavformat 52.31. 0 / 52.64. 2
libavdevice 52. 1. 0 / 52. 1. 0
libavfilter 0. 4. 0 / 0. 4. 0
libswscale 0. 7. 1 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
built on Mar 7 2010 00:34:41, gcc: 4.2.1 20070719 [FreeBSD]
Seems stream 0 codec frame rate differs from container frame rate: 30000.00 (30000/1) -> 25.00 (25/1)
Input #0, avi, from 'Aladdin.avi':
Duration: 01:26:22.05, start: 0.000000, bitrate: 1081 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 560x336, 25 fps, 25 tbr, 25 tbn, 30k tbc
Stream #0.1: Audio: mp3, 44100 Hz, 2 channels, s16, 128 kb/s
At least one output file must be specified
freenas:/mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II#
3- trying the read the same aladdin.avi, the tv does not play anything. here is the trace from serviio.log
2010-10-03 08:57:17,564 DEBUG [WebServer] Incoming connection from /192.168.0.207:61736
2010-10-03 08:57:17,566 DEBUG [ResourceTransportRequestHandler] HEAD /resource/197/MEDIA_ITEM/MPEG_PS_NTSC HTTP/1.1, headers = [getcontentFeatures.dlna.org: 1, Pragma: getIfoFileURI.dlna.org, transferMode.dlna.org: Streaming, Host: 192.168.0.205:8895, ]
2010-10-03 08:57:17,571 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.207, Profile=Sony Bravia TV'
2010-10-03 08:57:17,572 DEBUG [ResourceTransportRequestHandler] Request for resource 197 and type 'MEDIA_ITEM' received
2010-10-03 08:57:17,573 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 197)
2010-10-03 08:57:17,578 DEBUG [VideoDAOImpl] Reading a Video (id = 197)
2010-10-03 08:57:17,581 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 197, format MPEG_PS_NTSC and profile Sony Bravia TV
2010-10-03 08:57:17,582 DEBUG [VideoDeliveryEngine] Getting media info for transcoded version of file Aladdin.avi
2010-10-03 08:57:17,582 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Aladdin.avi: MPEG_PS_PAL
2010-10-03 08:57:17,582 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Aladdin.avi: MPEG_PS_NTSC
2010-10-03 08:57:17,589 DEBUG [ResourceTransportRequestHandler] Sending HEAD response back
2010-10-03 08:57:17,590 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [Content-Type: video/mpeg, Date: Sun, 03 Oct 2010 08:57:17 GMT, Server: FreeBSD, UPnP/1.0 DLNADOC/1.50, Serviio/0.4.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, ]
2010-10-03 08:57:17,602 DEBUG [WebServer] Incoming connection from /192.168.0.207:61737
2010-10-03 08:57:17,603 DEBUG [ResourceTransportRequestHandler] GET /resource/197/MEDIA_ITEM/MPEG_PS_NTSC HTTP/1.1, headers = [TimeSeekRange.dlna.org: npt=0.000-, getcontentFeatures.dlna.org: 1, Pragma: getIfoFileURI.dlna.org, transferMode.dlna.org: Streaming, Host: 192.168.0.205:8895, ]
2010-10-03 08:57:17,604 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.207, Profile=Sony Bravia TV'
2010-10-03 08:57:17,604 DEBUG [ResourceTransportRequestHandler] Request for resource 197 and type 'MEDIA_ITEM' received
2010-10-03 08:57:17,606 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 197)
2010-10-03 08:57:17,609 DEBUG [VideoDAOImpl] Reading a Video (id = 197)
2010-10-03 08:57:17,613 DEBUG [VideoDeliveryEngine] Delivering item '197' for client 'IPAddress=/192.168.0.207, Profile=Sony Bravia TV'
2010-10-03 08:57:17,613 DEBUG [VideoDeliveryEngine] Delivering file 'Aladdin.avi' using transcoding
2010-10-03 08:57:17,614 DEBUG [VideoDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.0.207, Profile=Sony Bravia TV'
2010-10-03 08:57:17,618 DEBUG [MediaItemDAOImpl] Getting file of media item 197
2010-10-03 08:57:17,626 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode file: /mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II/Aladdin.avi
2010-10-03 08:57:17,627 DEBUG [ProcessExecutor] Starting /usr/local/bin/ffmpeg -threads 2 -i /mnt/raid1/shared/MediaLibrary/Movies/Kids/Disney - Longs/Aladdin - I II/Aladdin.avi -y -vcodec mpeg2video -sameq -r 25.0 -g 15 -copyts -acodec ac3 -ab 192k -sn -f vob /mnt/sgt160/temp/Serviio/transcoding-temp-197-MPEG2PS.stf
2010-10-03 08:57:17,858 WARN [ProcessExecutor] Process /usr/local/bin/ffmpeg has a return code of 1! This is a possible error.
2010-10-03 08:57:17,859 DEBUG [TranscodingJobListener] Transcoding finished; successful: false
2010-10-03 08:57:25,400 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: FFmpeg execution failed
I kind of do not like the ffmpeg error, not sure how to tackle that ?!
fafa