FAQ  •  Register  •  Login

Problem with transcoding on Linux with h264\high_10

<<

AOINEKO

Serviio newbie

Posts: 8

Joined: Fri Dec 28, 2012 5:00 am

Post Fri Dec 28, 2012 7:06 am

Problem with transcoding on Linux with h264\high_10

Hi,

I have the following problem with serviio 1.1 on Linux (It was also present on previous versions):

serviio is transcoding only the audio and not the video for files with video encoded with h264\high_10 and any audio codec that needs transcoding, the problem is present only on Linux, on Windows the transcoding works for both audio and video, the problem is that serviio is not matching the transcoding profile for the file. Bellow is all the pertinent information. I can say that the problem is with the matching, if I run the transcoding command that serviio executes on Windows (ffmepeg ...) on Linux, the transcoding works without any problems, and the file produced is encoded in the same way that on Windows, and I can reproduce it on the TV. Serviio is matching the line in red in the profile, ignoring the one in blue that should match, if I delete the red line the file is not transcoded at all. The file used to show the problem has video encoded with h264\high_10 and FLAC audio. Any help or comments are appreciated, thanks in advance, Diego.

P.S: Sorry for my English.




Device:
*******
Samsung TV-40C5000 (Samsung C Series LED).


Serviio version:
****************
1.1 on both, Windows and Linux.


Profile:
********
...
...
...
<Profile id="7" name="Samsung TV / player (C/D/E-series)" extendsProfileId="1">

<ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SamsungDLNAMessageBuilder</ContentDirectoryMessageBuilder>

<ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.SamsungWiseLinkProtocolHandler</ResourceTransportProtocolHandler>

<Detection>

<UPnPSearch>

<FriendlyName>(^TV-\d{2}C\d{3}.*)|(^\[TV\][A-Z]{2}\d{2}(D|E)[A-Z]?\d{3,4}.*)</FriendlyName>

<ModelNumber>(1\.0)|(AllShare1\.0)</ModelNumber>

</UPnPSearch>

<HttpHeaders>

<!-- for BD players -->

<User-Agent>(.*SEC_HHP_BD-[CDE].*)|(.*SEC_HHP_\[(HT|BD)\][CDE].*)</User-Agent>

</HttpHeaders>

</Detection>

<DeviceDescription>

<ExtraElements>

&lt;sec:ProductCap&gt;smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:ProductCap&gt;

&lt;sec:X_ProductCap&gt;smi,DCM10,getMediaInfo.sec,getCaptionInfo.sec&lt;/sec:X_ProductCap&gt;

</ExtraElements>

</DeviceDescription>

<MediaFormatProfiles>

<MediaFormatProfile mime-type="video/x-mkv">MATROSKA</MediaFormatProfile>

<MediaFormatProfile mime-type="video/x-msvideo" name="">AVI</MediaFormatProfile>

</MediaFormatProfiles>

<ContentDirectoryDefinitionFilter>org.serviio.upnp.service.contentdirectory.definition.SamsungContentDirectoryDefinitionFilter</ContentDirectoryDefinitionFilter>

<H264LevelCheck>FILE_ATTRIBUTES</H264LevelCheck>

<Transcoding>

<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->

<Video targetContainer="m2ts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192">

<Matches container="*" vCodec="h264" profile="high_10" />

<Matches container="*" vCodec="h264" profile="high" levelGreaterThan="4.2" />

<Matches container="*" vCodec="h264" profile="main" levelGreaterThan="4.2" />

<Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />

<Matches container="mp4" vCodec="dvvideo" />

<Matches container="mp4" vCodec="mjpeg" />

</Video>

<!-- transcode H264 MP4 files with LPCM audio -->

<Video targetContainer="m2ts" targetACodec="ac3">

<Matches container="mpegts" aCodec="mp2" />

<Matches container="mp4" aCodec="lpcm" />

<Matches container="flv" vCodec="h264" />

<Matches container="matroska" vCodec="h264" aCodec="flac" />

<Matches container="matroska" vCodec="h264" aCodec="vorbis" />

<Matches container="matroska" vCodec="h264" aCodec="truehd" />

<Matches container="matroska" vCodec="vc1" />

<Matches container="ogg" vCodec="mpeg4" />

<Matches container="3gp" aCodec="amrnb" />

</Video>

<!-- transcode MKV with MPEG2 video, remux into mpeg2ts -->

<!-- transcode AVI with AVC video -->

<Video targetContainer="m2ts" targetACodec="ac3" targetVCodec="mpeg2video">

<Matches container="matroska" vCodec="mpeg2video" />

<Matches container="matroska" vCodec="vp8" />

<Matches container="avi" vCodec="h264" />

<Matches container="avi" vCodec="mjpeg" />

<Matches container="avi" vCodec="dvvideo" />

<Matches container="flv" />

<Matches container="ogg" />

<Matches container="rm" />

</Video>

<!-- For dvr-ms files force mpeg2video transcoding to fix monotone timestamps problems-->

<Video targetContainer="m2ts" targetACodec="ac3" forceVTranscoding="true">

<Matches container="asf" vCodec="mpeg2video" />

<Matches container="asf" vCodec="mpeg1video" />

</Video>

<Video targetContainer="m2ts">

<Matches container="wtv" />

</Video>

<!-- transcode audio only for wmv with wmapro -->

<Video targetContainer="asf" targetACodec="ac3" aBitrate="256">

<Matches container="asf" aCodec="wmapro" />

</Video>

<Audio targetContainer="lpcm">

<Matches container="mp4" />

<Matches container="flac" />

<Matches container="ogg" />

<Matches container="adts" />

</Audio>

</Transcoding>

<OnlineTranscoding>

<Video targetContainer="m2ts" targetACodec="ac3" aBitrate="384">

<Matches container="mp4" vCodec="h264" />

<Matches container="applehttp" vCodec="h264"/>

</Video>

<Video targetContainer="m2ts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="384">

<Matches container="mp4" />

<Matches container="asf" /> <!-- mms -->

</Video>

</OnlineTranscoding>

<AutomaticImageRotation>true</AutomaticImageRotation>

<LimitImageResolution>false</LimitImageResolution>

<SubtitlesMimeType>smi/caption</SubtitlesMimeType>

</Profile>
...
...
...


Windows detailed "serviio.log":
*******************************
...
...
...
2012-12-28 00:35:05,177 DEBUG [ResourceTransportRequestHandler] HEAD /resource/2975/MEDIA_ITEM/MPEG_TS_SD_KO_T-0/ORIGINAL HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,Host: 192.168.1.10:8895]]
2012-12-28 00:35:05,177 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.26
2012-12-28 00:35:05,177 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/192.168.1.26, Profile=Samsung TV / player (C/D/E-series)'
2012-12-28 00:35:05,177 DEBUG [ResourceDeliveryProcessor] Request for resource 2975 and type 'MEDIA_ITEM' received
2012-12-28 00:35:05,177 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 2975 (local)
2012-12-28 00:35:05,177 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 2975)
2012-12-28 00:35:05,178 DEBUG [VideoDAOImpl] Reading a Video (id = 2975)
2012-12-28 00:35:05,178 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 2975, format MPEG_TS_SD_KO_T and profile Samsung TV / player (C/D/E-series)
2012-12-28 00:35:05,178 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2012-12-28 00:35:05,178 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv: MPEG_TS_SD_EU_T
2012-12-28 00:35:05,178 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv: MPEG_TS_SD_NA_T
2012-12-28 00:35:05,178 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv: MPEG_TS_SD_KO_T
2012-12-28 00:35:05,178 DEBUG [ResourceDeliveryProcessor] Sending HEAD response back
2012-12-28 00:35:05,179 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Content-Length: 50000000000,Date: Fri, 28 Dec 2012 03:35:05 GMT,Server: Windows 8, UPnP/1.0 DLNADOC/1.50, Serviio/1.1,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_TS_SD_KO_T;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2012-12-28 00:35:05,203 DEBUG [WebServer] Incoming connection from /192.168.1.26:3671
2012-12-28 00:35:05,203 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.26
2012-12-28 00:35:05,203 DEBUG [ResourceTransportRequestHandler] GET /resource/2975/MEDIA_ITEM/MPEG_TS_SD_KO_T-0/ORIGINAL HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming,getMediaInfo.sec: 1,TimeSeekRange.dlna.org: npt=0-,Host: 192.168.1.10:8895]]
2012-12-28 00:35:05,203 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.26
2012-12-28 00:35:05,204 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/192.168.1.26, Profile=Samsung TV / player (C/D/E-series)'
2012-12-28 00:35:05,204 DEBUG [ResourceDeliveryProcessor] Request for resource 2975 and type 'MEDIA_ITEM' received
2012-12-28 00:35:05,204 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 2975 (local)
2012-12-28 00:35:05,204 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 2975)
2012-12-28 00:35:05,204 DEBUG [VideoDAOImpl] Reading a Video (id = 2975)
2012-12-28 00:35:05,204 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 2975, format MPEG_TS_SD_KO_T and profile Samsung TV / player (C/D/E-series)
2012-12-28 00:35:05,204 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2012-12-28 00:35:05,204 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv: MPEG_TS_SD_EU_T
2012-12-28 00:35:05,204 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv: MPEG_TS_SD_NA_T
2012-12-28 00:35:05,204 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv: MPEG_TS_SD_KO_T
2012-12-28 00:35:05,205 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 2975 (local)
2012-12-28 00:35:05,205 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 2975)
2012-12-28 00:35:05,205 DEBUG [VideoDAOImpl] Reading a Video (id = 2975)
2012-12-28 00:35:05,205 DEBUG [VideoDeliveryEngine] Delivering item '2975' for client 'IPAddress=/192.168.1.26, Profile=Samsung TV / player (C/D/E-series)'
2012-12-28 00:35:05,205 DEBUG [VideoDeliveryEngine] Delivering file '[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv' using transcoding
2012-12-28 00:35:05,205 DEBUG [AbstractTranscodingDeliveryEngine] No other client uses transcoding job of file 'transcoding-temp-2940-7-ORIGINAL.stf', will stop the job
2012-12-28 00:35:05,205 DEBUG [AbstractTranscodingDeliveryEngine] Stopping previous transcoding job of file 'transcoding-temp-2940-7-ORIGINAL.stf'
2012-12-28 00:35:05,235 DEBUG [TranscodingJobListener] Deleted temp file 'C:\Windows\TEMP\Serviio\transcoding-temp-2940-7-ORIGINAL.stf': true
2012-12-28 00:35:05,235 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.1.26, Profile=Samsung TV / player (C/D/E-series)'
2012-12-28 00:35:05,236 DEBUG [MediaItemDAOImpl] Getting file of media item 2975
2012-12-28 00:35:05,236 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: C:\DATA\MEDIA\CANIME\Berserk Golden Age Arc II - The Battle For Doldrey\[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2012-12-28 00:35:05,237 DEBUG [ProcessExecutor] Starting C:\Program Files\Serviio\bin\\..\lib/ffmpeg.exe -threads 4 -i C:\DATA\MEDIA\CANIME\Berserk Golden Age Arc II - The Battle For Doldrey\[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv -y -copyts -c:v mpeg2video -qscale:v 1 -r 24000/1001 -g 15 -mpegts_m2ts_mode 1 -c:a ac3 -b:a 192k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts C:\Windows\TEMP\Serviio\transcoding-temp-2975-7-ORIGINAL.stf
2012-12-28 00:35:05,737 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
...
...
...


Linux detailed "serviio.log":
*****************************
...
...
...
2012-12-28 01:06:31,963 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Content-Length: 50000000000,Date: Fri, 28 Dec 2012 04:06:31 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/1.1,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=AVC_TS_MP_HD_AC3_T;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
2012-12-28 01:06:31,988 DEBUG [WebServer] Incoming connection from /192.168.1.26:3671
2012-12-28 01:06:31,990 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.26
2012-12-28 01:06:31,991 DEBUG [ResourceTransportRequestHandler] GET /resource/13237/MEDIA_ITEM/AVC_TS_MP_HD_AC3_T-0/ORIGINAL HTTP/1.0, headers = [getcontentFeatures.dlna.org: 1,transferMode.dlna.org: Streaming,getMediaInfo.sec: 1,TimeSeekRange.dlna.org: npt=0-,Host: 192.168.1.2:8895]]
2012-12-28 01:06:31,992 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.26
2012-12-28 01:06:31,996 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/192.168.1.26, Profile=Samsung TV / player (C/D/E-series)'
2012-12-28 01:06:31,998 DEBUG [ResourceDeliveryProcessor] Request for resource 13237 and type 'MEDIA_ITEM' received
2012-12-28 01:06:31,998 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 13237 (local)
2012-12-28 01:06:31,998 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 13237)
2012-12-28 01:06:32,000 DEBUG [VideoDAOImpl] Reading a Video (id = 13237)
2012-12-28 01:06:32,001 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 13237, format AVC_TS_MP_HD_AC3_T and profile Samsung TV / player (C/D/E-series)
2012-12-28 01:06:32,003 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2012-12-28 01:06:32,003 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv: AVC_TS_MP_HD_AC3_T
2012-12-28 01:06:32,004 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 13237 (local)
2012-12-28 01:06:32,004 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 13237)
2012-12-28 01:06:32,005 DEBUG [VideoDAOImpl] Reading a Video (id = 13237)
2012-12-28 01:06:32,007 DEBUG [VideoDeliveryEngine] Delivering item '13237' for client 'IPAddress=/192.168.1.26, Profile=Samsung TV / player (C/D/E-series)'
2012-12-28 01:06:32,008 DEBUG [VideoDeliveryEngine] Delivering file '[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv' using transcoding
2012-12-28 01:06:32,009 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/192.168.1.26, Profile=Samsung TV / player (C/D/E-series)'
2012-12-28 01:06:32,011 DEBUG [MediaItemDAOImpl] Getting file of media item 13237
2012-12-28 01:06:32,013 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2012-12-28 01:06:32,014 DEBUG [ProcessExecutor] Starting ffmpeg -fflags +genpts -threads 2 -i /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv -y -copyts -c:v copy -bsf:v h264_mp4toannexb -mpegts_m2ts_mode 1 -c:a ac3 -b:a 192k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-13237-7-ORIGINAL.stf
2012-12-28 01:06:32,515 DEBUG [FileBasedTranscodingDeliveryStrategy] Sending transcoding stream
...
...
...


windows ffmpeg version:
***********************

>ffmpeg -version

ffmpeg version N-42368-gbf53863
built on Jul 10 2012 03:40:45 with gcc 4.6.3
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.102 / 54. 15.102
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 1.100 / 3. 1.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100


Linux ffmpeg version:
*********************

$ ffmpeg -version

ffmpeg version git-2012-12-26-ceee440
built on Dec 26 2012 20:08:06 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 --enable-libopus
libavutil 52. 12.100 / 52. 12.100
libavcodec 54. 81.100 / 54. 81.100
libavformat 54. 50.102 / 54. 50.102
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 30.101 / 3. 30.101
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100


File info from ffmpeg:
**********************

$ ffmpeg -i "/data/diskc/TORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv"

ffmpeg version git-2012-12-26-ceee440 Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 26 2012 20:08:06 with gcc 4.7 (Ubuntu/Linaro 4.7.2-2ubuntu1)
configuration: --enable-gpl --enable-libass --enable-libfaac --enable-libfdk-aac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-x11grab --enable-libx264 --enable-nonfree --enable-version3 --enable-libopus
libavutil 52. 12.100 / 52. 12.100
libavcodec 54. 81.100 / 54. 81.100
libavformat 54. 50.102 / 54. 50.102
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 30.101 / 3. 30.101
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, matroska,webm, from '/data/diskc/TORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv':
Metadata:
creation_time : 2012-12-20 17:05:29
Duration: 01:32:45.36, start: 0.000000, bitrate: 4825 kb/s
Stream #0:0: Video: h264 (High 10), yuv420p10le, 1920x816, SAR 1:1 DAR 40:17, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(jpn): Audio: flac, 48000 Hz, 5.1(side), s16 (default)
Stream #0:2(eng): Subtitle: subrip (default)
Stream #0:3(fre): Subtitle: subrip
At least one output file must be specified


File info from MediaInfo:
*************************

>"C:\Program Files\MediaInfo\MediaInfo.exe" "C:\DATA
\MEDIA\CANIME\Berserk Golden Age Arc II - The Battle For Doldrey\[P3] Berserk Go
lden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv"

General
Unique ID : 190037906987440685852390987792575423092 (0x8EF7F83551967C13B625F248E2E8E274)
Complete name : C:\DATA\MEDIA\CANIME\Berserk Golden Age Arc II - The Battle For Doldrey\[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
Format : Matroska
Format version : Version 2
File size : 3.13 GiB
Duration : 1h 32mn
Overall bit rate mode : Variable
Overall bit rate : 4 826 Kbps
Encoded date : UTC 2012-12-20 17:05:29
Writing application : mkvmerge v5.0.1 ('Es ist Sommer') built on Oct 9 2011 11:55:43
Writing library : libebml v1.2.2 + libmatroska v1.3.0

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High 10@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Muxing mode : Header stripping
Codec ID : V_MPEG4/ISO/AVC
Duration : 1h 32mn
Width : 1 920 pixels
Height : 816 pixels
Display aspect ratio : 2.35:1
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Scan type : Progressive
Writing library : x264 core 129 r2230 1cffe9f
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=11 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=1 / threads=18 / lookahead_threads=3 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=100 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=2:1.00
Default : Yes
Forced : No
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : FLAC
Format/Info : Free Lossless Audio Codec
Codec ID : A_FLAC
Duration : 1h 32mn
Bit rate mode : Variable
Channel(s) : 6 channels
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Writing library : libFLAC 1.2.1 (UTC 2007-09-17)
Language : Japanese
Default : Yes
Forced : No

Text #1
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : English
Default : Yes
Forced : No

Text #2
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Language : French
Default : No
Forced : No
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 28, 2012 2:57 pm

Re: Problem with transcoding on Linux with h264\high_10

How does ffmpeg -i from Windows look like?
<<

AOINEKO

Serviio newbie

Posts: 8

Joined: Fri Dec 28, 2012 5:00 am

Post Fri Dec 28, 2012 3:27 pm

Re: Problem with transcoding on Linux with h264\high_10

Hi zip, thanks for looking into this. Here is the info, it looks almost identical that in Linux:

File info from ffmpeg (Windows):
**************************************

>"C:\Program Files\Serviio\lib\ffmpeg.exe" -i "C:\DATA\MEDIA\CANIME\Berserk Golden Age Arc II - The Battle For Doldrey\[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv"

ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
built on Jul 10 2012 03:40:45 with gcc 4.6.3
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pkg-config
libavutil 51. 64.100 / 51. 64.100
libavcodec 54. 33.100 / 54. 33.100
libavformat 54. 15.102 / 54. 15.102
libavdevice 54. 1.100 / 54. 1.100
libavfilter 3. 1.100 / 3. 1.100
libswscale 2. 1.100 / 2. 1.100
libswresample 0. 15.100 / 0. 15.100
Input #0, matroska,webm, from 'C:\DATA\MEDIA\CANIME\Berserk Golden Age Arc II - The Battle For Doldrey\[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv':
Metadata:
creation_time : 2012-12-20 17:05:29
Duration: 01:32:45.35, start: 0.000000, bitrate: 4825 kb/s
Stream #0:0: Video: h264 (High 10), yuv420p10le, 1920x816, SAR 1:1 DAR 40:17, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(jpn): Audio: flac, 48000 Hz, 5.1(side), s16 (default)
Stream #0:2(eng): Subtitle: text (default)
Stream #0:3(fre): Subtitle: text
At least one output file must be specified
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 28, 2012 10:07 pm

Re: Problem with transcoding on Linux with h264\high_10

Do you have the same Java version on both?
<<

AOINEKO

Serviio newbie

Posts: 8

Joined: Fri Dec 28, 2012 5:00 am

Post Fri Dec 28, 2012 11:32 pm

Re: Problem with transcoding on Linux with h264\high_10

The versions are the same, but on Linux (Ubuntu 12.10 64 bits) is the OpenJDK, and on Windows (Windows 8 64 bits) is Oracle JDK, do you think that that could be problem?,
Ubuntu doesn't contain in the repositories Oracle JDK anymore, but can be manually installed.

Java version (Linux - Ubuntu 12.10 64 bits):
****************************************************

$java -version
java version "1.7.0_09"
OpenJDK Runtime Environment (IcedTea7 2.3.3) (7u9-2.3.3-0ubuntu1~12.10.1)
OpenJDK 64-Bit Server VM (build 23.2-b09, mixed mode)

Java version (Windows 8 64 bits):
****************************************

>java -version
java version "1.7.0_09"
Java(TM) SE Runtime Environment (build 1.7.0_09-b05)
Java HotSpot(TM) 64-Bit Server VM (build 23.5-b02, mixed mode)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Dec 29, 2012 12:14 am

Re: Problem with transcoding on Linux with h264\high_10

It should not be a problem, but don't see what else - the binary is the same.
<<

AOINEKO

Serviio newbie

Posts: 8

Joined: Fri Dec 28, 2012 5:00 am

Post Sat Dec 29, 2012 2:36 am

Re: Problem with transcoding on Linux with h264\high_10

zip wrote:It should not be a problem, but don't see what else - the binary is the same.


I'll try installing Oracle JDK on Linux, is the only difference. I'll post the results, thanks for the help, Diego .
<<

AOINEKO

Serviio newbie

Posts: 8

Joined: Fri Dec 28, 2012 5:00 am

Post Sat Dec 29, 2012 5:35 am

Re: Problem with transcoding on Linux with h264\high_10

AOINEKO wrote:
zip wrote:It should not be a problem, but don't see what else - the binary is the same.


Installed Oracle Java on Ubuntu:

$ java -version
java version "1.7.0_10"
Java(TM) SE Runtime Environment (build 1.7.0_10-b18)
Java HotSpot(TM) 64-Bit Server VM (build 23.6-b04, mixed mode)

But unfortunately I've got the same result on transcoding, the video stream is just copied:

2012-12-29 02:11:32,843 DEBUG [ProcessExecutor] Starting ffmpeg -fflags +genpts -threads 2 -i /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv -y -copyts -c:v copy -bsf:v h264_mp4toannexb -mpegts_m2ts_mode 1 -c:a ac3 -b:a 192k -ac 6 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-13237-7-ORIGINAL.stf

If you think of anything else that I could try, please let me know, perhaps a workaround with the profile, and thanks for the help, Diego.
<<

AOINEKO

Serviio newbie

Posts: 8

Joined: Fri Dec 28, 2012 5:00 am

Post Sun Dec 30, 2012 1:07 am

Re: Problem with transcoding on Linux with h264\high_10

AOINEKO wrote:
AOINEKO wrote:
zip wrote:It should not be a problem, but don't see what else - the binary is the same.


I've found a partial solution, the problem seems to be the container wildcard "*" in the profile, using the container names, matroska, mp4, etc, serviio matches the transcoding profile just fine, perhaps this could help you locate the problem. This solution is enough for me, most of my files are matroska anyway and I can add other containers when needed. Thanks again zip for the help, Diego.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sun Dec 30, 2012 12:41 pm

Re: Problem with transcoding on Linux with h264\high_10

Thanks, I'll look into it.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Jan 01, 2013 2:57 pm

Re: Problem with transcoding on Linux with h264\high_10

Could you (with detailed log still on) remove and then add the file again? It should print information about the file, I just want to ensure the h264 profile is correct on that file.
<<

AOINEKO

Serviio newbie

Posts: 8

Joined: Fri Dec 28, 2012 5:00 am

Post Wed Jan 02, 2013 1:12 am

Re: Problem with transcoding on Linux with h264\high_10

zip wrote:Could you (with detailed log still on) remove and then add the file again? It should print information about the file, I just want to ensure the h264 profile is correct on that file.


Hi, here is the portion of the log with the info you requested:

...
...
...
2013-01-01 22:04:10,343 DEBUG [LibraryAdditionsCheckerThread] Looking for files to share in folder: /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey
2013-01-01 22:04:10,343 DEBUG [LibraryAdditionsCheckerThread] Found file '[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv', checking if it's already in the Library
2013-01-01 22:04:10,343 DEBUG [MediaItemDAOImpl] Checking if DB already contains media item [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2013-01-01 22:04:10,343 DEBUG [MediaItemDAOImpl] Looking up a media item for file path: /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv, ignore case: false
2013-01-01 22:04:10,343 DEBUG [MediaItemDAOImpl] Media item [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv doesn't exist in DB yet
2013-01-01 22:04:10,343 DEBUG [LibraryAdditionsCheckerThread] File not in Library, will add it
2013-01-01 22:04:10,343 DEBUG [VideoExtractionStrategy] Extracting metadata of video file: /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2013-01-01 22:04:10,343 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve media information for file: /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2013-01-01 22:04:10,344 DEBUG [ProcessExecutor] Starting ffmpeg -i /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2013-01-01 22:04:10,557 DEBUG [FFmpegMetadataRetriever] Retrieving H264 profile/level for file '/data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv'
2013-01-01 22:04:10,557 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve H264 header for file: /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2013-01-01 22:04:10,558 DEBUG [ProcessExecutor] Starting ffmpeg -i /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv -frames:v 1 -c:v copy -f h264 -bsf:v h264_mp4toannexb -an pipe:
2013-01-01 22:04:10,670 DEBUG [FFmpegMetadataRetriever] File '/data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv' has H264 profile HIGH_10, levels [{RF=4, H=4.1}] and 5 ref frames
2013-01-01 22:04:10,670 DEBUG [FFMPEGWrapper] Invoking FFMPEG to retrieve thumbnail for file: /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv
2013-01-01 22:04:10,670 DEBUG [ProcessExecutor] Starting ffmpeg -ss 120 -i /data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv -an -frames:v 1 -f image2 pipe:
2013-01-01 22:04:12,087 DEBUG [AbstractCDSLibraryIndexingListener] Library updated, notifying CDS
2013-01-01 22:04:12,087 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2013-01-01 22:04:12,087 DEBUG [LocalContentCacheDecorator] Cleared cache (local_default)
2013-01-01 22:04:15,707 DEBUG [LibraryManager] Metadata found via extractor EMBEDDED: VideoMetadata [title=[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre], filePath=/data/diskc/CTORRENTS/ANIME/AIRING/Berserk Golden Age Arc II - The Battle For Doldrey/[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv, fileSize=3357107695, audioBitrate=null, audioCodec=FLAC, audioStreamIndex=1, bitrate=4825, channels=6, container=MATROSKA, contentType=UNKNOWN, duration=5565, episodeNumber=null, fps=23.976, frequency=48000, h264Levels={RF=4, H=4.1}, h264Profile=HIGH_10, ftyp=null, height=816, seasonNumber=null, seriesName=null, timestampType=null, videoBitrate=null, videoCodec=H264, videoFourCC=null, videoStreamIndex=0, width=1920]
2013-01-01 22:04:15,708 DEBUG [TheMovieDBSourceAdaptor] No movie with the name has been found
2013-01-01 22:04:15,709 WARN [OnlineVideoSourcesMetadataExtractor] Online metadata search returned no results for file [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv [VideoDescription [type=FILM, names=[, null], year=null, season=null, episode=null]]
2013-01-01 22:04:15,709 DEBUG [VideoService] Adding video into database: [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre]
2013-01-01 22:04:15,732 DEBUG [GenreDAOImpl] Reading a Genre (name = Unknown)
2013-01-01 22:04:15,732 DEBUG [GenreService] Genre Unknown found
2013-01-01 22:04:15,732 DEBUG [CoverImageService] Resizing and storing cover art image
2013-01-01 22:04:15,732 DEBUG [ImageUtils] Starting image resize, size = 38757 bytes
2013-01-01 22:04:15,813 DEBUG [ImageUtils] Returning resized image, size = 1645 bytes
2013-01-01 22:04:15,813 DEBUG [CoverImageService] Image successfully resized
2013-01-01 22:04:15,813 DEBUG [CoverImageDAOImpl] Creating a new ImageCover (length = 1645)
2013-01-01 22:04:15,832 DEBUG [VideoDAOImpl] Creating a new Video (title = [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre])
2013-01-01 22:04:15,882 DEBUG [PersonDAOImpl] Adding a Person Unknown to media item 13418 as DIRECTOR
2013-01-01 22:04:15,882 DEBUG [PersonDAOImpl] Reading a Person (name = Unknown)
2013-01-01 22:04:15,882 DEBUG [PersonDAOImpl] Checking if person 568 has a role DIRECTOR for media item 13418
2013-01-01 22:04:15,891 DEBUG [PersonDAOImpl] Adding a Person Unknown to media item 13418 as PRODUCER
2013-01-01 22:04:15,891 DEBUG [PersonDAOImpl] Reading a Person (name = Unknown)
2013-01-01 22:04:15,891 DEBUG [PersonDAOImpl] Checking if person 568 has a role PRODUCER for media item 13418
2013-01-01 22:04:15,909 DEBUG [PersonDAOImpl] Adding a Person Unknown to media item 13418 as ACTOR
2013-01-01 22:04:15,909 DEBUG [PersonDAOImpl] Reading a Person (name = Unknown)
2013-01-01 22:04:15,909 DEBUG [PersonDAOImpl] Checking if person 568 has a role ACTOR for media item 13418
2013-01-01 22:04:15,916 DEBUG [MetadataDescriptorDAOImpl] Creating a new MetadataDescriptor (type = EMBEDDED, mediaItemId = 13418)
2013-01-01 22:04:15,924 INFO [LibraryAdditionsCheckerThread] Added file '[P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre].mkv' (title: [P3] Berserk Golden Age Arc II - The Battle For Doldrey [BD 816p x264 FLAC][Eng][Fre]) to Library
2013-01-01 22:04:15,924 DEBUG [RepositoryDAOImpl] Marking Repository 7 as scanned with current timestamp
2013-01-01 22:04:17,087 DEBUG [AbstractCDSLibraryIndexingListener] Library updated, notifying CDS
2013-01-01 22:04:17,088 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2013-01-01 22:04:17,089 DEBUG [LocalContentCacheDecorator] Cleared cache (local_default)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Jan 02, 2013 10:14 am

Re: Problem with transcoding on Linux with h264\high_10

thanks, it looks ok. I can't reproduce this no matter how I try.
<<

AOINEKO

Serviio newbie

Posts: 8

Joined: Fri Dec 28, 2012 5:00 am

Post Thu Jan 03, 2013 8:14 am

Re: Problem with transcoding on Linux with h264\high_10

zip wrote:thanks, it looks ok. I can't reproduce this no matter how I try.


If is there something else I can help you with, just ask, maybe you can put together a little JAVA program that use only the portion of the code that match the profile, and produce a more detailed log that can help you debug the problem, I don't know how you compare the profiles, but I suspect the problem is in that portion of the code. Let me know when you decide what you want to do, Diego.

Return to Transcoding

Who is online

Users browsing this forum: No registered users and 31 guests

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