FAQ  •  Register  •  Login

Wrong Duration shown

<<

paul33

Serviio newbie

Posts: 9

Joined: Tue Nov 08, 2016 7:23 pm

Post Fri Nov 11, 2016 2:57 pm

Wrong Duration shown

Hi,
I am in the process of moving over from Plex, a lot of the content i use is recorded from tv via a tuner attached to the PC
PC is Windows 10 with all updates and my samsung is a Blu Ray BD-H6500
Some of my recordings when viewing on the Samung have a wrong length (usually about 5mins instead of 30), playing these files directly or on my PC show correct info
Here are the details from ffmpeg -i and also from Mediainfo

Hope someone can help

  Code:
C:\Program Files\Serviio\lib>ffmpeg.exe -i "e:\tv temp\eastenders - s32e178.ts"
ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.3 (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 --bindir='/jenkins/workspace/FFmpeg - Win32/target'
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[mpeg2video @ 0313c480] Invalid frame dimensions 0x0.
    Last message repeated 2 times
[mpegts @ 032628e0] PES packet size mismatch
    Last message repeated 2 times
[NULL @ 0313d6c0] start time for stream 2 is not set in estimate_timings_from_pts
[mpegts @ 032628e0] PES packet size mismatch
    Last message repeated 1 times
[mpegts @ 032628e0] Could not find codec parameters for stream 2 (Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels, s16p): unspecified frame size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 032628e0] Could not find codec parameters for stream 5 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 032628e0] Could not find codec parameters for stream 6 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 032628e0] Could not find codec parameters for stream 7 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 032628e0] Could not find codec parameters for stream 8 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 032628e0] Could not find codec parameters for stream 9 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 032628e0] Could not find codec parameters for stream 10 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'e:\tv temp\eastenders - s32e178.ts':
  Duration: 00:29:59.25, start: 47750.371533, bitrate: 2929 kb/s
  Program 4169
    Stream #0:0[0x65]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 704x576 [SAR 16:11 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x66](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x6a](eng): Audio: mp3 ([3][0][0][0] / 0x0003), 0 channels, s16p (visual impaired)
    Stream #0:3[0x69](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:4[0x98]: Audio: mp2 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16p, 128 kb/s
    Stream #0:5[0x96]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:6[0x1c21]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:7[0x1c24]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:8[0x1c33]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:9[0x1ce9]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:10[0x1c66]: Unknown: none ([5][0][0][0] / 0x0005)
At least one output file must be specified


  Code:
General
ID                                       : 1 (0x1)
Complete name                            : E:\TV Temp\EastEnders - S32E178.ts
Format                                   : MPEG-TS
File size                                : 628 MiB
Duration                                 : 29 min 58 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 2 930 kb/s

Video
ID                                       : 101 (0x65)
Menu ID                                  : 4169 (0x1049)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : M=3, N=24
Format settings, picture structure       : Frame
Codec ID                                 : 2
Duration                                 : 29 min 58 s
Bit rate mode                            : Variable
Bit rate                                 : 2 333 kb/s
Maximum bit rate                         : 15.0 Mb/s
Width                                    : 704 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Active Format Description                : Letterbox 16:9 image, with alternative 14:9 center
Frame rate                               : 25.000 FPS
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.230
Stream size                              : 500 MiB (80%)

Audio #1
ID                                       : 102 (0x66)
Menu ID                                  : 4169 (0x1049)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 3
Duration                                 : 29 min 58 s
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Delay relative to video                  : -576 ms
Stream size                              : 54.9 MiB (9%)
Language                                 : English
descriptor_tag_extension                 : 6

Audio #2
ID                                       : 106 (0x6A)
Menu ID                                  : 4169 (0x1049)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 3
Duration                                 : 12 s 912 ms
Bit rate mode                            : Constant
Bit rate                                 : 64.0 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Stream size                              : 101 KiB (0%)
Language                                 : English
Language, more info                      : Visual impaired commentary
descriptor_tag_extension                 : 6

Audio #3
ID                                       : 152 (0x98)
Menu ID                                  : 4169 (0x1049)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Mode                                     : Joint stereo
Codec ID                                 : 6
Duration                                 : 29 min 58 s
Bit rate mode                            : Constant
Bit rate                                 : 128 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Delay relative to video                  : -652 ms
Stream size                              : 27.4 MiB (4%)

Text
ID                                       : 105 (0x69)
Menu ID                                  : 4169 (0x1049)
Format                                   : DVB Subtitle
Codec ID                                 : 6
Language                                 : English

<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Nov 11, 2016 4:56 pm

Re: Wrong Duration shown

does it take a long time to copy a file to the destination or were all the files already present in the folder that you later shared in Serviio?

Sometimes Serviio gets the duration from the file as it's being written to the folder (incomplete) and then leaves it like that. FFmpeg shows 29 mins so Serviio should use that.
<<

paul33

Serviio newbie

Posts: 9

Joined: Tue Nov 08, 2016 7:23 pm

Post Fri Nov 11, 2016 6:25 pm

Re: Wrong Duration shown

Thanks for the reply

These files are created in the folder
I have Serviio scanning E:\Recorded TV and my recording software writes direct to this, so its possible it picked up the wrong time as it was being recorded (before recording complete)

However, I have seen this on recordings made prior to using Serviio, so they would have been complete when imported

For the above file, this would have been recorded as Eastenders_20161107.ts, when the recording finished I manually renamed it with the Season/Episode, so not sure if this gets seen as a new file after the rename

I cant find a pattern to failings like this, but it happens from other UK channels i record, some work, some have the wrong length

I use NFO's for my metadata, so nothing downloded, not sure if this is relevant or not
<<

atc98092

User avatar

DLNA master

Posts: 5213

Joined: Fri Aug 17, 2012 10:22 pm

Location: Washington (the state)

Post Sat Nov 12, 2016 1:21 am

Re: Wrong Duration shown

I had that Samsung BD player before, and it never displayed the correct release date. Run time might be a similar issue. I believe it's a Samsung issue, not Serviio. Since I no longer have that player, I can't confirm if the firmware was ever updated to fix it.
Dan

LG NANO85 4K TV, Samsung JU7100 4K TV, Sony BDP-S3500, Sharp 4K Roku TV, Insignia Roku TV, Roku Ultra, Premiere and Stick, Nvidia Shield, Yamaha RX-V583 AVR.
Primary server: Intel i5-6400, 16 gig ram, Windows 10 Pro, 22 TB hard drive space | Test server Windows 10 Pro, AMD Phenom II X4 965, 8 gig ram

HOWTO: Enable debug logging HOWTO: Identify media file contents
<<

paul33

Serviio newbie

Posts: 9

Joined: Tue Nov 08, 2016 7:23 pm

Post Sat Nov 12, 2016 1:55 pm

Re: Wrong Duration shown

Cheers for the info

Been checking it out on recordings for the last few days, and all of them work fine, with correct duration

If i play on my Roku then everything is perfect, ideally would like to avoid this at it transcodes to much

looks like you are right about the Samsung, for some reason it occasionally cannot get the correct length, would be nice to know why and what is in the file it objects to
<<

paul33

Serviio newbie

Posts: 9

Joined: Tue Nov 08, 2016 7:23 pm

Post Sat Nov 12, 2016 2:07 pm

Re: Wrong Duration shown

Not sure if this shows anything
This is last nights file which worked perfetly

  Code:
C:\Program Files\Serviio\lib>ffmpeg.exe -i "e:\tv temp\eastenders - s32e181.ts"
ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.3 (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 --bindir='/jenkins/workspace/FFmpeg - Win32/target'
  libavutil      55. 17.103 / 55. 17.103
  libavcodec     57. 24.102 / 57. 24.102
  libavformat    57. 25.100 / 57. 25.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 31.100 /  6. 31.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[mpeg2video @ 04bdc480] Invalid frame dimensions 0x0.
    Last message repeated 8 times
[mpegts @ 036f2920] PES packet size mismatch
[mpeg2video @ 04bdc480] Invalid frame dimensions 0x0.
    Last message repeated 9 times
[mpegts @ 036f2920] PES packet size mismatch
[mpegts @ 036f2920] Could not find codec parameters for stream 5 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 036f2920] Could not find codec parameters for stream 6 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 036f2920] Could not find codec parameters for stream 7 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 036f2920] Could not find codec parameters for stream 8 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 036f2920] Could not find codec parameters for stream 9 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[mpegts @ 036f2920] Could not find codec parameters for stream 10 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'e:\tv temp\eastenders - s32e181.ts':
  Duration: 00:29:59.63, start: 11569.840033, bitrate: 3269 kb/s
  Program 4169
    Stream #0:0[0x65]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 704x576 [SAR 16:11 DAR 16:9], max. 15000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x66](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, stereo, s16p, 256 kb/s
    Stream #0:2[0x6a](eng): Audio: mp2 ([3][0][0][0] / 0x0003), 48000 Hz, mono, s16p, 64 kb/s (visual impaired)
    Stream #0:3[0x69](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006)
    Stream #0:4[0x98]: Audio: mp2 ([6][0][0][0] / 0x0006), 48000 Hz, stereo, s16p, 128 kb/s
    Stream #0:5[0x96]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:6[0x1c21]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:7[0x1c24]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:8[0x1c33]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:9[0x1ce9]: Unknown: none ([11][0][0][0] / 0x000B)
    Stream #0:10[0x1c66]: Unknown: none ([5][0][0][0] / 0x0005)
At least one output file must be specified


  Code:
General
ID                                       : 1 (0x1)
Complete name                            : E:\TV Temp\EastEnders - S32E181.ts
Format                                   : MPEG-TS
File size                                : 702 MiB
Duration                                 : 29 min 59 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 3 271 kb/s

Video
ID                                       : 101 (0x65)
Menu ID                                  : 4169 (0x1049)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : Main@Main
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Custom
Format settings, GOP                     : Variable
Format settings, picture structure       : Frame
Codec ID                                 : 2
Duration                                 : 29 min 47 s
Bit rate mode                            : Variable
Bit rate                                 : 2 657 kb/s
Maximum bit rate                         : 15.0 Mb/s
Width                                    : 704 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Active Format Description                : Letterbox 16:9 image, with alternative 14:9 center
Frame rate                               : 25.000 FPS
Standard                                 : PAL
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.262
Stream size                              : 566 MiB (81%)

Audio #1
ID                                       : 102 (0x66)
Menu ID                                  : 4169 (0x1049)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 3
Duration                                 : 29 min 58 s
Bit rate mode                            : Constant
Bit rate                                 : 256 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Delay relative to video                  : -138 ms
Stream size                              : 54.9 MiB (8%)
Language                                 : English
descriptor_tag_extension                 : 6

Audio #2
ID                                       : 106 (0x6A)
Menu ID                                  : 4169 (0x1049)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Codec ID                                 : 3
Duration                                 : 29 min 59 s
Bit rate mode                            : Constant
Bit rate                                 : 64.0 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Delay relative to video                  : -234 ms
Stream size                              : 13.7 MiB (2%)
Language                                 : English
Language, more info                      : Visual impaired commentary
descriptor_tag_extension                 : 6

Audio #3
ID                                       : 152 (0x98)
Menu ID                                  : 4169 (0x1049)
Format                                   : MPEG Audio
Format version                           : Version 1
Format profile                           : Layer 2
Mode                                     : Joint stereo
Codec ID                                 : 6
Duration                                 : 29 min 59 s
Bit rate mode                            : Constant
Bit rate                                 : 128 kb/s
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 kHz
Compression mode                         : Lossy
Delay relative to video                  : -189 ms
Stream size                              : 27.5 MiB (4%)

Text
ID                                       : 105 (0x69)
Menu ID                                  : 4169 (0x1049)
Format                                   : DVB Subtitle
Codec ID                                 : 6
Duration                                 : 29 min 42 s
Delay relative to video                  : 15 s 982 ms
Language                                 : English


Return to Samsung

Who is online

Users browsing this forum: No registered users and 19 guests

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