FAQ  •  Register  •  Login

Incorrect Movie Length reported by Serviio

<<

chpyeung

Serviio newbie

Posts: 5

Joined: Tue Aug 13, 2013 9:28 am

Post Thu Oct 03, 2013 1:51 pm

Incorrect Movie Length reported by Serviio

As my Sony Blu-ray player and Panasonic TV do not like external subtitle files, I have to embed the subtitles into the MKV by using mkvmerge.

Recently when I create MKVs with multiple subtitles and play on my Panasonic TV via Serviio, I found out that the length of the movie shown on the TV are incorrect and a lot longer. Though it still can play fine on TV, problem comes when I want to FF / REW. At first I thought it may be the problem of TV, but today I discover if I use another PC (instead of TV) to browse the movie via Serviio, the wrong reporting of movie length also happens. That will mean the bug is at Serviio, not the TV / PC. There is no problem if I have only one subtitle embedded.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Oct 03, 2013 6:24 pm

Re: Incorrect Movie Length reported by Serviio

post ffmpeg -i for the affected file(s), Serviio reads the duration from the output of the command
<<

chpyeung

Serviio newbie

Posts: 5

Joined: Tue Aug 13, 2013 9:28 am

Post Fri Oct 04, 2013 1:33 pm

Re: Incorrect Movie Length reported by Serviio

zip wrote:post ffmpeg -i for the affected file(s), Serviio reads the duration from the output of the command


Below is the output from file with normal movie length (without any subtitles)
  Code:
J:\BT\World.War.Z.3D.2013.1080p.BluRay.Half-OU.DTS.x264-PublicHD>ffmpeg.exe -i "
World.War.Z.3D.2013.1080p.BluRay.Half-OU.DTS.x264-PublicHD.mkv" a.mkv
ffmpeg version N-54096-ge41bf19 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 18 2013 10:49:28 with gcc 4.7.2 (GCC)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --extr
a-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --a
rch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross
-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  9.100 / 55.  9.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, matroska,webm, from 'World.War.Z.3D.2013.1080p.BluRay.Half-OU.DTS.x264
-PublicHD.mkv':
  Metadata:
    creation_time   : 2013-09-07 05:28:52
  Duration: 01:56:04.75, start: 0.000000, bitrate: 15193 kb/s
    Chapter #0.0: start 0.000000, end 305.180000
    Metadata:
      title           : 00:00:00.000
    Chapter #0.1: start 305.180000, end 784.659000
    Metadata:
      title           : 00:05:05.180
    Chapter #0.2: start 784.659000, end 1231.188000
    Metadata:
      title           : 00:13:04.659
    Chapter #0.3: start 1231.188000, end 1622.579000
    Metadata:
      title           : 00:20:31.188
    Chapter #0.4: start 1622.579000, end 1958.039000
    Metadata:
      title           : 00:27:02.579
    Chapter #0.5: start 1958.039000, end 2375.331000
    Metadata:
      title           : 00:32:38.039
    Chapter #0.6: start 2375.331000, end 2946.152000
    Metadata:
      title           : 00:39:35.331
    Chapter #0.7: start 2946.152000, end 3322.027000
    Metadata:
      title           : 00:49:06.152
    Chapter #0.8: start 3322.027000, end 3701.239000
    Metadata:
      title           : 00:55:22.027
    Chapter #0.9: start 3701.239000, end 4158.654000
    Metadata:
      title           : 01:01:41.239
    Chapter #0.10: start 4158.654000, end 4623.035000
    Metadata:
      title           : 01:09:18.654
    Chapter #0.11: start 4623.035000, end 4929.842000
    Metadata:
      title           : 01:17:03.035
    Chapter #0.12: start 4929.842000, end 5271.558000
    Metadata:
      title           : 01:22:09.842
    Chapter #0.13: start 5271.558000, end 5801.587000
    Metadata:
      title           : 01:27:51.558
    Chapter #0.14: start 5801.587000, end 6314.099000
    Metadata:
      title           : 01:36:41.587
    Chapter #0.15: start 6314.099000, end 6526.645000
    Metadata:
      title           : 01:45:14.099
    Chapter #0.16: start 6526.645000, end 6964.750000
    Metadata:
      title           : 01:48:46.645
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR 16:9,
23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      stereo_mode     : top_bottom
    Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (de
fault)
File 'a.mkv' already exists. Overwrite ? [y/N] n
Not overwriting - exiting


Now is the output from the file with incorrect movie length that I have embedded 2 subtitles
  Code:
J:\BT\World.War.Z.3D.2013.1080p.BluRay.Half-OU.DTS.x264-PublicHD>ffmpeg.exe -i "
World.War.Z.3D.2013.1080p.BluRay.Half-OU.DTS.x264-PublicHD.eng.mkv" a.mkv
ffmpeg version N-54096-ge41bf19 Copyright (c) 2000-2013 the FFmpeg developers
  built on Jun 18 2013 10:49:28 with gcc 4.7.2 (GCC)
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-libass --enable-librtm
p --enable-fontconfig --enable-libfreetype --enable-zlib --enable-libx264 --extr
a-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm -lexpat -lfreetype -lfribidi -lz' --a
rch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross
-prefix=i686-w64-mingw32- --enable-gpl --pkg-config=pkg-config
  libavutil      52. 37.101 / 52. 37.101
  libavcodec     55. 16.100 / 55. 16.100
  libavformat    55.  9.100 / 55.  9.100
  libavdevice    55.  2.100 / 55.  2.100
  libavfilter     3. 77.101 /  3. 77.101
  libswscale      2.  3.100 /  2.  3.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  3.100 / 52.  3.100
Input #0, matroska,webm, from 'World.War.Z.3D.2013.1080p.BluRay.Half-OU.DTS.x264
-PublicHD.eng.mkv':
  Metadata:
    creation_time   : 2013-10-02 15:10:59
  Duration: 01:56:04.75, start: 0.000000, bitrate: 15198 kb/s
    Chapter #0.0: start 0.000000, end 305.180000
    Metadata:
      title           : 00:00:00.000
    Chapter #0.1: start 305.180000, end 784.659000
    Metadata:
      title           : 00:05:05.180
    Chapter #0.2: start 784.659000, end 1231.188000
    Metadata:
      title           : 00:13:04.659
    Chapter #0.3: start 1231.188000, end 1622.579000
    Metadata:
      title           : 00:20:31.188
    Chapter #0.4: start 1622.579000, end 1958.039000
    Metadata:
      title           : 00:27:02.579
    Chapter #0.5: start 1958.039000, end 2375.331000
    Metadata:
      title           : 00:32:38.039
    Chapter #0.6: start 2375.331000, end 2946.152000
    Metadata:
      title           : 00:39:35.331
    Chapter #0.7: start 2946.152000, end 3322.027000
    Metadata:
      title           : 00:49:06.152
    Chapter #0.8: start 3322.027000, end 3701.239000
    Metadata:
      title           : 00:55:22.027
    Chapter #0.9: start 3701.239000, end 4158.654000
    Metadata:
      title           : 01:01:41.239
    Chapter #0.10: start 4158.654000, end 4623.035000
    Metadata:
      title           : 01:09:18.654
    Chapter #0.11: start 4623.035000, end 4929.842000
    Metadata:
      title           : 01:17:03.035
    Chapter #0.12: start 4929.842000, end 5271.558000
    Metadata:
      title           : 01:22:09.842
    Chapter #0.13: start 5271.558000, end 5801.587000
    Metadata:
      title           : 01:27:51.558
    Chapter #0.14: start 5801.587000, end 6314.099000
    Metadata:
      title           : 01:36:41.587
    Chapter #0.15: start 6314.099000, end 6526.645000
    Metadata:
      title           : 01:45:14.099
    Chapter #0.16: start 6526.645000, end 6964.750000
    Metadata:
      title           : 01:48:46.645
    Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1080, SAR 1:1 DAR 16:9,
23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      stereo_mode     : top_bottom
    Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (de
fault)
    Stream #0:2(eng): Subtitle: dvd_subtitle (default)
    Stream #0:3(eng): Subtitle: subrip
File 'a.mkv' already exists. Overwrite ? [y/N] n
Not overwriting - exiting


It does not seem to have any info about movie length!

Please see below the screen capture showing the incorrect length and also incorrect file size when browsing the files via Serviio!
Capture.JPG
Capture.JPG (71.41 KiB) Viewed 4584 times
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Oct 04, 2013 4:25 pm

Re: Incorrect Movie Length reported by Serviio

If Serviio transcodes the file (eg because the embedded subtitle has been found and burn-in is required), it will send a very large file size, so maybe it's this case and the TV retrieves the duration from the file size.

FFMpeg finds the correct duration, so Serviio should too (and it does for the other 3 files).

  Code:
Duration: 01:56:04.75,


Try to disable embedded subtitles and/or burned in subs setting.
<<

chpyeung

Serviio newbie

Posts: 5

Joined: Tue Aug 13, 2013 9:28 am

Post Sat Oct 05, 2013 4:12 am

Re: Incorrect Movie Length reported by Serviio

Thanks for your reply. I disable transcoding and subtitles and restart the server and serviio service. After that, the file size and duration is back to normal.

Furthermore, I found that this problem exists only on 3D movies (H-SBS or H-OU). (Maybe it is not right, but the errors in duration are on 2 3D movies I recently merged. And there is no problem for 2D movies with multiple subtitles.)

Return to Serviio Support & Help

Who is online

Users browsing this forum: No registered users and 56 guests

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