Samsung E/F - transcoding H264 to MPEG2 needed?
Hi,
thanks to author for a great work.
Two questions regarding to trancoding:
a) is transcoding H264 to MPEG2 for Samsung E/F needed?
b) I have some files in mp4 and mkv container containing streams with srt/mov_test subtitles.
I have to extract these subtitles to separate SRT files to play them with Serviio/DLNA on my TV.
Is it possible to configure Serviio to do it automatically?
Thanks.
My setup is:
- Samsung UE40F6740SBXXH Firmware 2114
- Serviio PRO v 1.6 (evaluation licence is still valid)
Is transcoding H264 needed for my TV (Samsung F series)?
My TV supports H264 and doesn't support H265.
Profile for Samsung E/F inherits transcoding definition from the Samsung H series profile, which enables transcoding for H264.
When comenting out that part of profile, my TV plays H264 video well without transcoding - no ffmpeg.exe is running, no necessary load on my PC.
profiles.xml:
<Profile id="1" name="Generic DLNA profile">
<Profile id="sam_h" name="Samsung TV / player (H-series)" extendsProfileId="1">
<Profile id="sam_ef" name="Samsung TV / player (E/F-series)" extendsProfileId="sam_h">
<Profile id="sam_h" name="Samsung TV / player (H-series)" extendsProfileId="1">
<Transcoding>
<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192" maxVBitrate="15360" forceInheritance="true">
<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="*" vCodec="h265" />
----------------------------------------------------------------------------------------------------------------------------------
My fiels with subtitle streams:
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 19 2014 22:12:09 with gcc 4.7.2 (GCC)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtmp --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --enable-libspeex --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
libavutil 54. 14.100 / 54. 14.100
libavcodec 56. 12.101 / 56. 12.101
libavformat 56. 14.100 / 56. 14.100
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Homeland S05E09.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2015-12-01 20:26:32
encoder : Lavf55.47.100
Duration: 00:55:14.04, start: 0.021333, bitrate: 4124 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 3775 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2015-12-01 20:26:32
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 343 kb/s (default)
Metadata:
creation_time : 2015-12-01 20:26:32
handler_name : SoundHandler
Stream #0:2(eng): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s (default)
Metadata:
creation_time : 2015-12-01 20:26:32
handler_name : SubtitleHandler
-------------------------------------------------------------------------
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 19 2014 22:12:09 with gcc 4.7.2 (GCC)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtmp --enable-fontconfig --enable-libfreetype --ena ble-zlib --enable-libx264 --enable-libspeex --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cro ss-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
libavutil 54. 14.100 / 54. 14.100
libavcodec 56. 12.101 / 56. 12.101
libavformat 56. 14.100 / 56. 14.100
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'House.Of.Cards.S03E01.720p.WEBRip.x265.mkv':
Metadata:
title : PSArips.com | House.of.Cards.2013.S03E01.720p.WEBRip.2CH.x265.HEVC-PSA
encoder : libebml v1.3.1 + libmatroska v1.4.2
creation_time : 2015-09-25 12:55:24
Duration: 00:58:41.17, start: 0.000000, bitrate: 343 kb/s
Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709), 1280x640 [SAR 1:1 DAR 2:1], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS : 293384
BPS-eng : 293384
DURATION : 00:58:41.063000000
DURATION-eng : 00:58:41.063000000
NUMBER_OF_FRAMES: 84421
NUMBER_OF_FRAMES-eng: 84421
NUMBER_OF_BYTES : 129128159
NUMBER_OF_BYTES-eng: 129128159
_STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_DATE_UTC: 2015-09-25 12:55:24
_STATISTICS_WRITING_DATE_UTC-eng: 2015-09-25 12:55:24
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1: Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)
Metadata:
title : Stereo
BPS : 48000
BPS-eng : 48000
DURATION : 00:58:37.440000000
DURATION-eng : 00:58:37.440000000
NUMBER_OF_FRAMES: 82440
NUMBER_OF_FRAMES-eng: 82440
NUMBER_OF_BYTES : 21104890
NUMBER_OF_BYTES-eng: 21104890
_STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_DATE_UTC: 2015-09-25 12:55:24
_STATISTICS_WRITING_DATE_UTC-eng: 2015-09-25 12:55:24
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2: Subtitle: subrip (default)
Metadata:
BPS : 67
BPS-eng : 67
DURATION : 00:55:52.981000000
DURATION-eng : 00:55:52.981000000
NUMBER_OF_FRAMES: 746
NUMBER_OF_FRAMES-eng: 746
NUMBER_OF_BYTES : 28358
NUMBER_OF_BYTES-eng: 28358
_STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_DATE_UTC: 2015-09-25 12:55:24
_STATISTICS_WRITING_DATE_UTC-eng: 2015-09-25 12:55:24
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
thanks to author for a great work.
Two questions regarding to trancoding:
a) is transcoding H264 to MPEG2 for Samsung E/F needed?
b) I have some files in mp4 and mkv container containing streams with srt/mov_test subtitles.
I have to extract these subtitles to separate SRT files to play them with Serviio/DLNA on my TV.
Is it possible to configure Serviio to do it automatically?
Thanks.
My setup is:
- Samsung UE40F6740SBXXH Firmware 2114
- Serviio PRO v 1.6 (evaluation licence is still valid)
Is transcoding H264 needed for my TV (Samsung F series)?
My TV supports H264 and doesn't support H265.
Profile for Samsung E/F inherits transcoding definition from the Samsung H series profile, which enables transcoding for H264.
When comenting out that part of profile, my TV plays H264 video well without transcoding - no ffmpeg.exe is running, no necessary load on my PC.
profiles.xml:
<Profile id="1" name="Generic DLNA profile">
<Profile id="sam_h" name="Samsung TV / player (H-series)" extendsProfileId="1">
<Profile id="sam_ef" name="Samsung TV / player (E/F-series)" extendsProfileId="sam_h">
<Profile id="sam_h" name="Samsung TV / player (H-series)" extendsProfileId="1">
<Transcoding>
<!-- Transcode all h264 video with HIGH/MAIN > Level 4.1 on MPEG-TS stream with MPEG2VIDEO and ac3 audio transcoding -->
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3" aBitrate="192" maxVBitrate="15360" forceInheritance="true">
<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="*" vCodec="h265" />
----------------------------------------------------------------------------------------------------------------------------------
My fiels with subtitle streams:
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 19 2014 22:12:09 with gcc 4.7.2 (GCC)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtmp --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --enable-libspeex --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
libavutil 54. 14.100 / 54. 14.100
libavcodec 56. 12.101 / 56. 12.101
libavformat 56. 14.100 / 56. 14.100
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Homeland S05E09.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2015-12-01 20:26:32
encoder : Lavf55.47.100
Duration: 00:55:14.04, start: 0.021333, bitrate: 4124 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 3775 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc (default)
Metadata:
creation_time : 2015-12-01 20:26:32
handler_name : VideoHandler
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 343 kb/s (default)
Metadata:
creation_time : 2015-12-01 20:26:32
handler_name : SoundHandler
Stream #0:2(eng): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s (default)
Metadata:
creation_time : 2015-12-01 20:26:32
handler_name : SubtitleHandler
-------------------------------------------------------------------------
ffmpeg version 2.4.git Copyright (c) 2000-2014 the FFmpeg developers
built on Nov 19 2014 22:12:09 with gcc 4.7.2 (GCC)
configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtmp --enable-fontconfig --enable-libfreetype --ena ble-zlib --enable-libx264 --enable-libspeex --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cro ss-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
libavutil 54. 14.100 / 54. 14.100
libavcodec 56. 12.101 / 56. 12.101
libavformat 56. 14.100 / 56. 14.100
libavdevice 56. 3.100 / 56. 3.100
libavfilter 5. 2.103 / 5. 2.103
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, matroska,webm, from 'House.Of.Cards.S03E01.720p.WEBRip.x265.mkv':
Metadata:
title : PSArips.com | House.of.Cards.2013.S03E01.720p.WEBRip.2CH.x265.HEVC-PSA
encoder : libebml v1.3.1 + libmatroska v1.4.2
creation_time : 2015-09-25 12:55:24
Duration: 00:58:41.17, start: 0.000000, bitrate: 343 kb/s
Stream #0:0: Video: hevc (Main), yuv420p(tv, bt709), 1280x640 [SAR 1:1 DAR 2:1], 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
Metadata:
BPS : 293384
BPS-eng : 293384
DURATION : 00:58:41.063000000
DURATION-eng : 00:58:41.063000000
NUMBER_OF_FRAMES: 84421
NUMBER_OF_FRAMES-eng: 84421
NUMBER_OF_BYTES : 129128159
NUMBER_OF_BYTES-eng: 129128159
_STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_DATE_UTC: 2015-09-25 12:55:24
_STATISTICS_WRITING_DATE_UTC-eng: 2015-09-25 12:55:24
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:1: Audio: aac (HE-AAC), 48000 Hz, stereo, fltp (default)
Metadata:
title : Stereo
BPS : 48000
BPS-eng : 48000
DURATION : 00:58:37.440000000
DURATION-eng : 00:58:37.440000000
NUMBER_OF_FRAMES: 82440
NUMBER_OF_FRAMES-eng: 82440
NUMBER_OF_BYTES : 21104890
NUMBER_OF_BYTES-eng: 21104890
_STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_DATE_UTC: 2015-09-25 12:55:24
_STATISTICS_WRITING_DATE_UTC-eng: 2015-09-25 12:55:24
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Stream #0:2: Subtitle: subrip (default)
Metadata:
BPS : 67
BPS-eng : 67
DURATION : 00:55:52.981000000
DURATION-eng : 00:55:52.981000000
NUMBER_OF_FRAMES: 746
NUMBER_OF_FRAMES-eng: 746
NUMBER_OF_BYTES : 28358
NUMBER_OF_BYTES-eng: 28358
_STATISTICS_WRITING_APP: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_APP-eng: mkvmerge v8.4.0 ('A better way to fly') 64bit
_STATISTICS_WRITING_DATE_UTC: 2015-09-25 12:55:24
_STATISTICS_WRITING_DATE_UTC-eng: 2015-09-25 12:55:24
_STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
_STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES