Page 1 of 1

Samsung TV C/D/E Series -Buffers when transcoding

PostPosted: Fri Oct 12, 2012 8:02 am
by ialomia
With the standard configuration, buffering occurs when transcoding.

change from:

<Matches container="mp4" vCodec="mpeg4" aCodec="lpcm" />
</Video>
<!-- transcode H264 MP4 files with LPCM audio -->
<Video targetContainer="mpegts" 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>

Changing the configuration to the following, buffering does not occur. However play time and file size information does not appear.

Change to:

<Matches container="mp4" vCodec="mpeg4" aCodec="aac" />
</Video>
<!-- transcode H264 MP4 files with AAC audio -->
<Video targetContainer="mpegts" targetACodec="ac3">
<Matches container="mpegts" aCodec="mp2" />
<Matches container="mp4" aCodec="aac" />
<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>

What needs to be changed or added for the play time and file size information to appear.

Re: Samsung TV C/D/E Series -Buffers when transcoding

PostPosted: Tue Oct 16, 2012 8:36 pm
by zip
That makes no sense. You are transcoding all mp4 files with aac audio, which should play natively and were most likely not transcoded. You lost file size because the file is now transcoded.

Re: Samsung TV C/D/E Series -Buffers when transcoding

PostPosted: Tue Oct 16, 2012 9:37 pm
by ialomia
Okay, the original configuration with lpcm buffering occurs. When I change the configuration to aac buffering does not occur play time and file size indicates not available.

Re: Samsung TV C/D/E Series -Buffers when transcoding

PostPosted: Tue Oct 23, 2012 4:38 pm
by zip
Can you post ffmpeg -i of the file?

Re: Samsung TV C/D/E Series -Buffers when transcoding

PostPosted: Sat Oct 27, 2012 1:18 am
by ialomia
Microsoft Windows [Version 5.2.3790]
(C) Copyright 1985-2003 Microsoft Corp.


C:\Documents and Settings\unreal.VIDEOSERVER>cd \

C:\>cd C:\Program Files\Serviio\lib

C:\Program Files\Serviio\lib>ffmpeg.exe -i D:\shares\Videos\2012
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 --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-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
D:\shares\Videos\2012: Permission denied

C:\Program Files\Serviio\lib>ffmpeg.exe -i D:\shares\Videos\A Perfect Getaway
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 --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-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
D:\shares\Videos\A: No such file or directory

C:\Program Files\Serviio\lib>ffmpeg.exe -i D:\shares\Videos\300
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 --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-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
D:\shares\Videos\300: Permission denied

C:\Program Files\Serviio\lib>

Re: Samsung TV C/D/E Series -Buffers when transcoding

PostPosted: Sat Oct 27, 2012 12:21 pm
by zip
you have to provide the full file path (incl. the file name), not just the folder path after the -i parameter.

Are you on wifi or wired connection?

Re: Samsung TV C/D/E Series -Buffers when transcoding

PostPosted: Sun Oct 28, 2012 3:21 am
by ialomia
My network wired and I am using the "C:\Program Files\Serviio\lib>ffmpeg.exe -i C:\Sanctum\Sanctum" command. Can you tell the correct command line to use?

C:\Program Files\Serviio\lib>ffmpeg.exe -i C:\Sanctum\Sanctum
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 --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-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
C:\Sanctum\Sanctum: No such file or directory

Re: Samsung TV C/D/E Series -Buffers when transcoding

PostPosted: Sun Oct 28, 2012 12:57 pm
by ialomia
I finally figured out the error. Below is the what you requested.


C:\Program Files\Serviio\lib>ffmpeg.exe -i "M:\Videos\Sherlock Holmes\ps3\Sherlo
ck Holmes\Sherlock Holmes.mp4"
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 --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-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, mov,mp4,m4a,3gp,3g2,mj2, from 'M:\Videos\Sherlock Holmes\ps3\Sherlock
Holmes\Sherlock Holmes.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
title : Sherlock Holmes
Duration: 02:08:24.87, start: 0.000000, bitrate: 7881 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080
, 7430 kb/s, 23.98 fps, 24 tbr, 90k tbn, 47.95 tbc
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, s16, 447 kb
/s
At least one output file must be specified

C:\Program Files\Serviio\lib>ffmpeg.exe -i "M:\Videos\The Hunger Games\ps3\The H
unger Games\The Hunger Games.mp4"
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 --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-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, mov,mp4,m4a,3gp,3g2,mj2, from 'M:\Videos\The Hunger Games\ps3\The Hung
er Games\The Hunger Games.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
title : The Hunger Games
Duration: 02:22:33.62, start: 0.000000, bitrate: 5804 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x800,
5353 kb/s, 23.98 fps, 23.92 tbr, 90k tbn, 47.95 tbc
Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 5.1, s16, 447 kb
/s
At least one output file must be specified

C:\Program Files\Serviio\lib

Re: Samsung TV C/D/E Series -Buffers when transcoding

PostPosted: Wed Oct 31, 2012 2:07 pm
by zip
It looks like the TV has problems with the AAC audio in MP4 container, at least in your case. Try to upgrade firmware. Otherwise your fix will transcode audio to ac3, causing the missing information (filesize - we don't know the file size of the future transcoded file, duration - it's a problem with Samsungs, they ignore the data Serviio sends).

Re: Samsung TV C/D/E Series -Buffers when transcoding

PostPosted: Thu Nov 01, 2012 7:45 am
by ialomia
That is what I figured and Samsung has no recent firmware upgrades. Thanks for the help.