FAQ  •  Register  •  Login

Quick Assist-m4v files, 0.5.2, file is corrupt or invalid

<<

SilentSeven

Streaming enthusiast

Posts: 28

Joined: Tue Feb 22, 2011 6:14 pm

Post Sat May 14, 2011 6:28 pm

Quick Assist-m4v files, 0.5.2, file is corrupt or invalid

Getting the following error when attempting to play .m4v files encoded by Handbrake on Serviio 0.5.2 to a Sony S570 device (US version) over wireless.

'The file is corrupt or invalid'

Profile is set to Sony BD Player.
Local OS is latest Ubuntu 11.x Natty Narwhal

After reading lots of threads I feel that I must be missing something - can someone please summarize what I need to do?

Quite a n00b so helpful to assume little. ;)
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sat May 14, 2011 6:37 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

SilentSeven wrote:Quite a n00b so helpful to assume little. ;)

Read that:
viewtopic.php?f=5&t=1289
Then read that
viewtopic.php?f=5&t=38
and provide "ffmpeg -i" result of your file, then also MediaInfo result.
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

SilentSeven

Streaming enthusiast

Posts: 28

Joined: Tue Feb 22, 2011 6:14 pm

Post Sat May 14, 2011 8:05 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

Thank you.

I'm having problems getting the UpNP tools to run on Ubuntu; can't see to locate any scripts or installer for the packages. Trying to resolve now.

Here's a ffmpeg -i output for a file in the library.

  Code:
j[sysname]@home-01-ubuntu:/media/8E92B90A92B8F7B3/Users/[username]/Videos/01_MP4$ ffmpeg -i [deletename].m4v
FFmpeg version 0.6.2-4:0.6.2-1ubuntu1, Copyright (c) 2000-2010 the Libav developers
  built on Mar 22 2011 15:35:22 with gcc 4.5.2
  configuration: --extra-version=4:0.6.2-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  WARNING: library configuration mismatch
  libavutil   configuration: --extra-version=4:0.6.2-1ubuntu2+medibuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavcodec  configuration: --extra-version=4:0.6.2-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavformat configuration: --extra-version=4:0.6.2-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavdevice configuration: --extra-version=4:0.6.2-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavfilter configuration: --extra-version=4:0.6.2-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libswscale  configuration: --extra-version=4:0.6.2-1ubuntu2+medibuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libdirac --enable-libgsm --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 --enable-vaapi --enable-libopenjpeg --enable-libfaac --enable-nonfree --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libfaad --enable-libdirac --enable-libfaad --enable-libmp3lame --enable-librtmp --enable-libx264 --enable-libxvid --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libpostproc configuration: --extra-version=4:0.6.2-1ubuntu1 --prefix=/usr --enable-avfilter --enable-avfilter-lavf --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --disable-stripping --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --shlibdir=/usr/lib/i686/cmov --cpu=i686 --enable-shared --disable-static --disable-ffmpeg --disable-ffplay
  libavutil     50.15. 1 / 50.15. 1
  libavcodec    52.72. 2 / 52.72. 2
  libavformat   52.64. 2 / 52.64. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libavfilter    1.19. 0 /  1.19. 0
  libswscale     0.11. 0 /  0.11. 0
  libpostproc   51. 2. 0 / 51. 2. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x9e6e420]max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Benji.m4v':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isomavc1
    encoder         : HandBrake 0.9.5 2011043000
  Duration: 01:26:00.83, start: 0.000000, bitrate: 1861 kb/s
    Chapter #0.0: start -0.150167, end 469.635833
    Metadata:
      title           : Chapter  1
    Chapter #0.1: start 469.635833, end 881.480600
    Metadata:
      title           : Chapter  2
    Chapter #0.2: start 881.480600, end 1351.533511
    Metadata:
      title           : Chapter  3
    Chapter #0.3: start 1351.533511, end 1708.790411
    Metadata:
      title           : Chapter  4
    Chapter #0.4: start 1708.790411, end 2128.926800
    Metadata:
      title           : Chapter  5
    Chapter #0.5: start 2128.926800, end 2661.575578
    Metadata:
      title           : Chapter  6
    Chapter #0.6: start 2661.575578, end 3026.523500
    Metadata:
      title           : Chapter  7
    Chapter #0.7: start 3026.523500, end 3476.848378
    Metadata:
      title           : Chapter  8
    Chapter #0.8: start 3476.848378, end 3903.266033
    Metadata:
      title           : Chapter  9
    Chapter #0.9: start 3903.266033, end 4284.546933
    Metadata:
      title           : Chapter 10
    Chapter #0.10: start 4284.546933, end 4787.082300
    Metadata:
      title           : Chapter 11
    Chapter #0.11: start 4787.082300, end 5160.830678
    Metadata:
      title           : Chapter 12
    Stream #0.0(und): Video: h264, yuv420p, 720x480 [PAR 119:135 DAR 119:90], 1503 kb/s, PAR 37723:48600 DAR 37723:32400, 24.57 fps, 90k tbr, 90k tbn, 180k tbc
    Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 159 kb/s
    Stream #0.2(eng): Audio: ac3, 48000 Hz, 2 channels, s16, 192 kb/s
    Stream #0.3(und): Subtitle: text / 0x74786574
At least one output file must be specified
<<

SilentSeven

Streaming enthusiast

Posts: 28

Joined: Tue Feb 22, 2011 6:14 pm

Post Sat May 14, 2011 8:17 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

Re UpNP tools....found a package available via Ubuntu's package manager but it does not seem to include the AV Media Server.

Available options are:

Network Light
AV Control Point
Universal Control Point

AV control point finds files in the library. Universal control point sees all my devices including the Sony player.

Not sure if these utilities will get the info you have requested or not.
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sun May 15, 2011 10:03 am

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

Could you install and use FFmpeg (rev. 26303, incl. a patch) compiled using this source code.
See http://www.serviio.org/download

Could you also send MediaInfo result of your file?
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

SilentSeven

Streaming enthusiast

Posts: 28

Joined: Tue Feb 22, 2011 6:14 pm

Post Sun May 15, 2011 4:11 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

OK. FFmpeg updated (lots of warnings during the make).

By mediainfo, can I assume you mean re-run ffmpeg -i on the file? Attached is the output, same file as above. Thanks again for the assist!

  Code:
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
  built on May 15 2011 08:31:45 with gcc 4.5.2
  configuration:
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.92. 0 / 52.92. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.72. 0 /  1.72. 0
  libswscale     0.12. 0 /  0.12. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xaa1a4c0] max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'Benji.m4v':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isomavc1
    creation_time   : 2011-05-14 01:09:05
    encoder         : HandBrake 0.9.5 2011043000
  Duration: 01:26:00.83, start: 0.000000, bitrate: 1861 kb/s
    Chapter #0.0: start -0.150167, end 469.635833
    Metadata:
      title           : Chapter  1
    Chapter #0.1: start 469.635833, end 881.480600
    Metadata:
      title           : Chapter  2
    Chapter #0.2: start 881.480600, end 1351.533511
    Metadata:
      title           : Chapter  3
    Chapter #0.3: start 1351.533511, end 1708.790411
    Metadata:
      title           : Chapter  4
    Chapter #0.4: start 1708.790411, end 2128.926800
    Metadata:
      title           : Chapter  5
    Chapter #0.5: start 2128.926800, end 2661.575578
    Metadata:
      title           : Chapter  6
    Chapter #0.6: start 2661.575578, end 3026.523500
    Metadata:
      title           : Chapter  7
    Chapter #0.7: start 3026.523500, end 3476.848378
    Metadata:
      title           : Chapter  8
    Chapter #0.8: start 3476.848378, end 3903.266033
    Metadata:
      title           : Chapter  9
    Chapter #0.9: start 3903.266033, end 4284.546933
    Metadata:
      title           : Chapter 10
    Chapter #0.10: start 4284.546933, end 4787.082300
    Metadata:
      title           : Chapter 11
    Chapter #0.11: start 4787.082300, end 5160.830678
    Metadata:
      title           : Chapter 12
    Stream #0.0(und): Video: h264, yuv420p, 720x480 [PAR 119:135 DAR 119:90], 1503 kb/s, 24.57 fps, 90k tbr, 90k tbn, 180k tbc
    Metadata:
      creation_time   : 2011-05-14 01:09:05
    Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 159 kb/s
    Metadata:
      creation_time   : 2011-05-14 01:09:05
    Stream #0.2(eng): Audio: ac3, 48000 Hz, 2 channels, s16, 192 kb/s
    Metadata:
      creation_time   : 2011-05-14 01:09:05
    Stream #0.3(und): Subtitle: text / 0x74786574
    Metadata:
      creation_time   : 2011-05-14 01:09:05
At least one output file must be specified
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sun May 15, 2011 6:32 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

SilentSeven wrote:OK. FFmpeg updated (lots of warnings during the make).

Could not help you for that...
SilentSeven wrote:By mediainfo, can I assume you mean re-run ffmpeg -i on the file? Attached is the output, same file as above. Thanks again for the assist!

No, I mean using MediaInfo tools:
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

SilentSeven

Streaming enthusiast

Posts: 28

Joined: Tue Feb 22, 2011 6:14 pm

Post Sun May 15, 2011 8:27 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

mediainfo output.

  Code:
General
Complete name                    : /media/8E92B90A92B8F7B3/Users/Jeff/Videos/01_MP4/Benji.m4v
Format                           : MPEG-4
Format profile                   : Base Media / Version 2
Codec ID                         : mp42
File size                        : 1.12 GiB
Duration                         : 1h 26mn
Overall bit rate                 : 1 861 Kbps
Encoded date                     : UTC 2011-05-14 01:09:05
Tagged date                      : UTC 2011-05-14 03:25:14
Writing application              : HandBrake 0.9.5 2011043000

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L3.0
Format settings, CABAC           : Yes
Format settings, ReFrames        : 4 frames
Codec ID                         : avc1
Codec ID/Info                    : Advanced Video Coding
Duration                         : 1h 26mn
Bit rate mode                    : Variable
Bit rate                         : 1 503 Kbps
Width                            : 720 pixels
Height                           : 480 pixels
Display aspect ratio             : 4:3
Original display aspect ratio    : 4:3
Frame rate mode                  : Variable
Frame rate                       : 24.565 fps
Minimum frame rate               : 9.219 fps
Maximum frame rate               : 29.970 fps
Standard                         : NTSC
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.177
Stream size                      : 925 MiB (81%)
Writing library                  : x264 core 112
Encoding settings                : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=3 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=3 / qpmax=51 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date                     : UTC 2011-05-14 01:09:05
Tagged date                      : UTC 2011-05-14 03:25:14
Color primaries                  : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M
Transfer characteristics         : BT.709-5, BT.1361
Matrix coefficients              : BT.601-6 525, BT.1358 525, BT.1700 NTSC, SMPTE 170M

Audio #1
ID                               : 2
Format                           : AAC
Format/Info                      : Advanced Audio Codec
Format profile                   : LC
Codec ID                         : 40
Duration                         : 1h 26mn
Bit rate mode                    : Variable
Bit rate                         : 160 Kbps
Maximum bit rate                 : 203 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Compression mode                 : Lossy
Stream size                      : 98.4 MiB (9%)
Language                         : English
Encoded date                     : UTC 2011-05-14 01:09:05
Tagged date                      : UTC 2011-05-14 03:25:14

Audio #2
ID                               : 3
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : ac-3
Duration                         : 1h 26mn
Bit rate mode                    : Constant
Bit rate                         : 192 Kbps
Channel(s)                       : 2 channels
Channel positions                : Front: L R
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Compression mode                 : Lossy
Stream size                      : 118 MiB (10%)
Language                         : English
Encoded date                     : UTC 2011-05-14 01:09:05
Tagged date                      : UTC 2011-05-14 03:25:14

Text
ID                               : 4
Format                           : Apple text
Codec ID                         : text
Duration                         : 1h 26mn
Bit rate mode                    : Constant
Bit rate                         : 0
Stream size                      : 288 Bytes (0%)
Encoded date                     : UTC 2011-05-14 01:09:05
Tagged date                      : UTC 2011-05-14 03:25:14

<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon May 16, 2011 5:48 am

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

SilentSeven wrote:mediainfo output.

I think this is due to x264 encoding options used to encode this video, I mean "b_pyramid=2" is not supported, "b_pyramid=1" could be better.
But I must confess that x264 encoding options are quite obscure...
With search : search.php?st=0&sk=t&sd=d&sr=posts&keywords=b_pyramid%3D2
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

SilentSeven

Streaming enthusiast

Posts: 28

Joined: Tue Feb 22, 2011 6:14 pm

Post Mon May 16, 2011 9:00 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

OK. Not that this means it should work with Serviio but I can play (stream to my sony) these files with Windows Media Player, PlayOn etc. I could try media tomb to see if that works. Serviio seems to be the best option available in Ubuntu and would really prefer to it if possible.

I'm learning that trying to predict what combinations will work where and when in this area is a pain in the ass. :evil:

PS - thanks again for the help!
<<

Illico

User avatar

DLNA master

Posts: 4646

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Tue May 17, 2011 8:36 am

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

SilentSeven wrote:...these files with Windows Media Player, PlayOn etc. I could try media tomb to see if that works.

Probably because Windows Media Player, and PlayOn will transcode into a supported format.
Serviio, according to the profile setting, stream in native format or remux codecs in different container, or last solution could transcode video/audio into format supported by device.
1) Turn on detailed logging (see signature link) you should be able to see the FFmpeg command that is used for the transcode. Try executing the command manually in a terminal window and post the result here.

2) So with Sony BDP selected we need to match with your file : mp4/h264/aac and add transcoding option to mpeg2ts/mpeg2/ac3 supported format.
Could you add this section just after <Transcoding> tag:
  Code:
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
            <Matches container="mp4" vCodec="h264" aCodec="aac" />
         </Video>
Illico
Sony 2010 KDL-46EX501 | BDP-S373 | SMP-N100 | Windows 8-i7 | Network DD HD-CE1.5TLU2 | Livebox2-UHD86 | ServiiDroid | ServiiGo | BubbleUPnP
Serviio beta tester - Moderator
<<

LasVegas

Serviio newbie

Posts: 4

Joined: Fri May 13, 2011 8:10 pm

Post Tue May 17, 2011 3:45 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

This appears to be the exact same problem that I'm having with HandBreak. It appears that the newer version of HB has changed the way it reports a variable framerate video and this confuses Serviio. If you set HB to use a fixed framerate (CFR), Servio will have no problem with it.

LasVegas
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue May 17, 2011 4:11 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

It's probably confusing the TV, not Serviio. Or maybe FFmpeg, it the file must be transcoded.
<<

SilentSeven

Streaming enthusiast

Posts: 28

Joined: Tue Feb 22, 2011 6:14 pm

Post Wed May 18, 2011 5:50 am

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

1) Turn on detailed logging (see signature link) you should be able to see the FFmpeg command that is used for the transcode. Try executing the command manually in a terminal window and post the result here.


Here's the debug level interaction. I tried to include everything from the device requesting the media to what appears to be an error (?broken pipe?). FFmpeg command included.

  Code:
2011-05-17 22:35:14,283 DEBUG [WebServer] Incoming connection from /172.31.0.138:58153
2011-05-17 22:35:14,384 DEBUG [ResourceTransportRequestHandler] HEAD /resource/9/MEDIA_ITEM/AVC_TS_MP_SD_AAC_MULT5_ISO$1 HTTP/1.1, headers = [Host: 172.31.0.2:8895,Accept: */*,getcontentFeatures.dlna.org: 1,X-AV-Physical-Unit-Info: pa="Blu-ray Disc Player",X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="Blu-ray Disc Player"; mv="2.0"]]
2011-05-17 22:35:14,384 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 172.31.0.138
2011-05-17 22:35:14,386 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/172.31.0.138, Profile=Sony BD Player'
2011-05-17 22:35:14,389 DEBUG [ResourceTransportRequestHandler] Request for resource 9 and type 'MEDIA_ITEM' received
2011-05-17 22:35:14,389 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 9)
2011-05-17 22:35:14,390 DEBUG [VideoDAOImpl] Reading a Video (id = 9)
2011-05-17 22:35:14,392 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 9, format AVC_TS_MP_SD_AAC_MULT5_ISO and profile Sony BD Player
2011-05-17 22:35:14,392 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file Benji.m4v
2011-05-17 22:35:14,392 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Benji.m4v: AVC_TS_MP_SD_AAC_MULT5_ISO
2011-05-17 22:35:14,396 DEBUG [ResourceTransportRequestHandler] Sending HEAD response back
2011-05-17 22:35:14,396 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,Date: Wed, 18 May 2011 05:35:14 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.5.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_TS_SD_NA;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming]]
2011-05-17 22:35:14,404 DEBUG [ResourceTransportRequestHandler] GET /resource/9/MEDIA_ITEM/AVC_TS_MP_SD_AAC_MULT5_ISO$1 HTTP/1.1, headers = [Host: 172.31.0.2:8895,Accept: */*,TimeSeekRange.dlna.org: npt=0-,getcontentFeatures.dlna.org: 1,X-AV-Physical-Unit-Info: pa="Blu-ray Disc Player",X-AV-Client-Info: av=5.0; cn="Sony Corporation"; mn="Blu-ray Disc Player"; mv="2.0"]]
2011-05-17 22:35:14,405 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 172.31.0.138
2011-05-17 22:35:14,406 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/172.31.0.138, Profile=Sony BD Player'
2011-05-17 22:35:14,407 DEBUG [ResourceTransportRequestHandler] Request for resource 9 and type 'MEDIA_ITEM' received
2011-05-17 22:35:14,407 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 9)
2011-05-17 22:35:14,408 DEBUG [VideoDAOImpl] Reading a Video (id = 9)
2011-05-17 22:35:14,410 DEBUG [VideoDeliveryEngine] Delivering item '9' for client 'IPAddress=/172.31.0.138, Profile=Sony BD Player'
2011-05-17 22:35:14,411 DEBUG [VideoDeliveryEngine] Delivering file 'Benji.m4v' using transcoding
2011-05-17 22:35:14,411 DEBUG [AbstractTranscodingDeliveryEngine] No suitable transcoding job exists yet, start one for client 'IPAddress=/172.31.0.138, Profile=Sony BD Player'
2011-05-17 22:35:14,413 DEBUG [MediaItemDAOImpl] Getting file of media item 9
2011-05-17 22:35:14,415 DEBUG [FFMPEGWrapper] Invoking FFmpeg to transcode video file: /media/8E92B90A92B8F7B3/Users/Jeff/Videos/01_MP4/Benji.m4v
2011-05-17 22:35:14,415 DEBUG [ProcessExecutor] Starting ffmpeg -i /media/8E92B90A92B8F7B3/Users/Jeff/Videos/01_MP4/Benji.m4v -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-9-MPEG2TS.stf
2011-05-17 22:35:15,416 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file Benji.m4v: AVC_TS_MP_SD_AAC_MULT5_ISO
2011-05-17 22:35:15,417 DEBUG [AbstractTranscodingDeliveryEngine] Sending transcoding stream
2011-05-17 22:35:15,417 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 9) as read
2011-05-17 22:35:15,469 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2011-05-17 22:35:15,469 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 9000000000
2011-05-17 22:35:15,470 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2011-05-17 22:35:15,470 DEBUG [ResourceTransportRequestHandler] Sending file back
2011-05-17 22:35:15,470 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/vnd.dlna.mpeg-tts,TimeSeekRange.dlna.org: npt=0.0-5160.0/5160,Date: Wed, 18 May 2011 05:35:15 GMT,Server: Linux, UPnP/1.0 DLNADOC/1.50, Serviio/0.5.2,Cache-control: no-cache,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_TS_SD_NA;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming]]
2011-05-17 22:35:15,485 DEBUG [WebServer] I/O error: Broken pipe


2) So with Sony BDP selected we need to match with your file : mp4/h264/aac and add transcoding option to mpeg2ts/mpeg2/ac3 supported format.
Could you add this section just after <Transcoding> tag:
  Code:
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
            <Matches container="mp4" vCodec="h264" aCodec="aac" />
         </Video>




Will have to run this one tomorrow....will advise.
<<

SilentSeven

Streaming enthusiast

Posts: 28

Joined: Tue Feb 22, 2011 6:14 pm

Post Wed May 18, 2011 3:52 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

2) So with Sony BDP selected we need to match with your file : mp4/h264/aac and add transcoding option to mpeg2ts/mpeg2/ac3 supported format.
Could you add this section just after <Transcoding> tag:
  Code:
         <Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">
            <Matches container="mp4" vCodec="h264" aCodec="aac" />
         </Video>




The file did not play with this addition, no change. I'll try to turn on the debug again and capture the stream and post.
<<

moltra

DLNA master

Posts: 1871

Joined: Thu Mar 24, 2011 11:00 pm

Location: Ohio USA

Post Wed May 18, 2011 4:26 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

Can you post the information about the video file using the steps from the link in my signature for a video file that doesn't play.

Have you tried to play the affected file on your computer directly and make sure the file is good?
Mark
Beta Tester Group
http://www.serviidb.com Online media resource repository

Netgear EVA2000 | Samsung BD-D5300 | XBOX 360 | Windows 7 | Mint Debian 12 | Raxz Maxx
HowTo: Provide supported formats of a device HowTo: Record a new ticket on Bitbucket
HowTo: Provide details of a video file that doesn't play HowTo: Turn on detailed logging
<<

SilentSeven

Streaming enthusiast

Posts: 28

Joined: Tue Feb 22, 2011 6:14 pm

Post Wed May 18, 2011 6:06 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

Thanks for the help and interest.

moltra wrote:Can you post the information about the video file using the steps from the link in my signature for a video file that doesn't play.


The output of FFmpeg -i is posted earlier in this thread. Unless I'm misreading something, I think that's what you're looking for? If not, can you advise what you're looking for?

Have you tried to play the affected file on your computer directly and make sure the file is good?


The file plays correctly locally on my computer with VLC (when booted under ubuntu). When booted with Win7, the file plays OK with Windows Media Player. Windows Media Player will stream the file the Sony BD player.
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed May 18, 2011 6:10 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

Can you run this command

  Code:
ffmpeg -i /media/8E92B90A92B8F7B3/Users/Jeff/Videos/01_MP4/Benji.m4v -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-9-MPEG2TS.ts


and if it successfully finishes add the file to your serviio library and try playing it natively
<<

SilentSeven

Streaming enthusiast

Posts: 28

Joined: Tue Feb 22, 2011 6:14 pm

Post Wed May 18, 2011 8:14 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

Is this a successful finish? Last line suggests a missing directory.

Also, can you clarify what you mean add to the library and play natively? The file is currently located in the Serviio directory for video files which I assume is part of the current library. Sorry, bit of n00b to a lot of the terminology - helpful if you could be a bit more explicit. :(

  Code:
jeff@home-01-ubuntu:~$ ffmpeg -i /media/8E92B90A92B8F7B3/Users/Jeff/Videos/01_MP4/Benji.m4v -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-9-MPEG2TS.ts
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
  built on May 15 2011 08:31:45 with gcc 4.5.2
  configuration:
  libavutil     50.36. 0 / 50.36. 0
  libavcore      0.16. 0 /  0.16. 0
  libavcodec    52.108. 0 / 52.108. 0
  libavformat   52.92. 0 / 52.92. 0
  libavdevice   52. 2. 3 / 52. 2. 3
  libavfilter    1.72. 0 /  1.72. 0
  libswscale     0.12. 0 /  0.12. 0
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xa6ad4c0] max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/8E92B90A92B8F7B3/Users/Jeff/Videos/01_MP4/Benji.m4v':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isomavc1
    creation_time   : 2011-05-14 01:09:05
    encoder         : HandBrake 0.9.5 2011043000
  Duration: 01:26:00.83, start: 0.000000, bitrate: 1861 kb/s
    Chapter #0.0: start -0.150167, end 469.635833
    Metadata:
      title           : Chapter  1
    Chapter #0.1: start 469.635833, end 881.480600
    Metadata:
      title           : Chapter  2
    Chapter #0.2: start 881.480600, end 1351.533511
    Metadata:
      title           : Chapter  3
    Chapter #0.3: start 1351.533511, end 1708.790411
    Metadata:
      title           : Chapter  4
    Chapter #0.4: start 1708.790411, end 2128.926800
    Metadata:
      title           : Chapter  5
    Chapter #0.5: start 2128.926800, end 2661.575578
    Metadata:
      title           : Chapter  6
    Chapter #0.6: start 2661.575578, end 3026.523500
    Metadata:
      title           : Chapter  7
    Chapter #0.7: start 3026.523500, end 3476.848378
    Metadata:
      title           : Chapter  8
    Chapter #0.8: start 3476.848378, end 3903.266033
    Metadata:
      title           : Chapter  9
    Chapter #0.9: start 3903.266033, end 4284.546933
    Metadata:
      title           : Chapter 10
    Chapter #0.10: start 4284.546933, end 4787.082300
    Metadata:
      title           : Chapter 11
    Chapter #0.11: start 4787.082300, end 5160.830678
    Metadata:
      title           : Chapter 12
    Stream #0.0(und): Video: h264, yuv420p, 720x480 [PAR 119:135 DAR 119:90], 1503 kb/s, 24.57 fps, 90k tbr, 90k tbn, 180k tbc
    Metadata:
      creation_time   : 2011-05-14 01:09:05
    Stream #0.1(eng): Audio: aac, 48000 Hz, stereo, s16, 159 kb/s
    Metadata:
      creation_time   : 2011-05-14 01:09:05
    Stream #0.2(eng): Audio: ac3, 48000 Hz, 2 channels, s16, 192 kb/s
    Metadata:
      creation_time   : 2011-05-14 01:09:05
    Stream #0.3(und): Subtitle: text / 0x74786574
    Metadata:
      creation_time   : 2011-05-14 01:09:05
/tmp/Serviio/transcoding-temp-9-MPEG2TS.ts: No such file or directory
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17215

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed May 18, 2011 10:37 pm

Re: Quick Assist-m4v files, 0.5.2, file is corrupt or inval

ok, try this:

  Code:
ffmpeg -i /media/8E92B90A92B8F7B3/Users/Jeff/Videos/01_MP4/Benji.m4v -y -vcodec copy -vbsf h264_mp4toannexb -copyts -acodec copy -map 0:0 -map 0:1 -sn -f mpegts /tmp/transcoding-temp-9-MPEG2TS.ts


By adding it to the library I mean copy the resulting /tmp/transcoding-temp-9-MPEG2TS.ts to a folder that you share in Serviio, it'll be picked up as as a new file and the player should be able to play that without transcoding, because you already transcoded it with the command above
Next

Return to Sony

Who is online

Users browsing this forum: Baidu [Spider] and 36 guests

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