Page 1 of 2
Cannot read file

Posted:
Tue Nov 22, 2011 3:15 am
by collider
Hi there,
I'm using Serviio 0.6.0.1 with a Viera TV. I'm getting "Cannot read file" for everything except 1 MP4 file and some FLVs. The strange thing is I see the thumbnails for the other files, but they simply give me that error.
Serviio profile is correctly set to Panasonic Viera, and I've updated the logging to DEBUG but I don't even see an entry for the files it cannot read, it's as if it never gets to Serviio. However, it consistently plays the MP4 and FLVs without problem, I see the FFMPEGWrapper entries in the logs and they always play fine.
I'm on a wired network.
I can post the log, but it has an awful lot of file references, including library updates where it scans all the files (both the ones that play and the ones that don't). I basically see no errors and am very confused.
I even updated FFMpeg in lib to see if that changed anything, but it doesn't.
Any advice on anything else to check?
Thanks a lot - I'd really love to get this working.
-collider
Re: Cannot read file

Posted:
Tue Nov 22, 2011 9:56 am
by Illico
What is your Panasonic reference model ? Could you check this
link?)
Could you provide information about some files that not play (ffmpeg -i and MediaInfo) (see
link) ?
Re: Cannot read file

Posted:
Tue Nov 22, 2011 4:26 pm
by collider
I believe the TV is a TC-L42E30 although I'm not at home right now to confirm. It doesn't appear in Device Spy as I was checking that this weekend.
I will also share some output from ffmpeg -i when I get home, definitely.
I'm curious about the logic within Serviio though. Should I see FFMPEGWrapper entries in the logs for items the TV can't read? Point being, does the ffmpeg -i output really factor into the problem if ffmpeg is never being called?
Will post those details tonight - thanks Illico!
-collider
Re: Cannot read file

Posted:
Tue Nov 22, 2011 7:46 pm
by Illico
collider wrote:I believe the TV is a TC-L42E30 although I'm not at home right now to confirm. It doesn't appear in Device Spy as I was checking that this weekend.
I suppose its PANASONIC TX-L42E30E model.
Seems that AVCHD et DivX are not supported over DLNA
collider wrote:I'm curious about the logic within Serviio though. Should I see FFMPEGWrapper entries in the logs for items the TV can't read? Point being, does the ffmpeg -i output really factor into the problem if ffmpeg is never being called?
"ffmpeg -i" and MediaInfo are used to identify the movie source codec/formats.
Re: Cannot read file

Posted:
Tue Nov 22, 2011 8:01 pm
by collider
"ffmpeg -i" and MediaInfo are used to identify the movie source codec/formats.
I appreciate that, and will definitely share the output. My only thought was that I didn't see any failed ffmpeg calls in the logs, so was wondering how much detail Serviio would show if it was a transcoding failure vs. something else.
Thanks again!
Re: Cannot read file

Posted:
Fri Nov 25, 2011 1:28 am
by collider
I confirmed the television model is: TC-L42E3 (not the E30 as I originally thought) which appears to have the following certification:
http://certification.dlna.org/certs/REG62367504.pdfThe TV is running the latest software version 1.300
Here's info from ffmpeg a file that gives "Cannot read file":
- Code:
ffmpeg version N-34906-g4e7b3ef, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 16 2011 12:39:54 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enab
le-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 25. 0 / 51. 25. 0
libavcodec 53. 34. 0 / 53. 34. 0
libavformat 53. 20. 0 / 53. 20. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 48. 1 / 2. 48. 1
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[mpeg4 @ 0000000001BC8310] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from 'v:\wont_play.avi':
Duration: 00:11:05.04, start: 0.000000, bitrate: 1446 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x416 [SAR 1:1 DAR 45:26], 25 tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 192 kb/s
At least one output file must be specified
I tried a few new files, and got some that play video but not audio. Here's one of those:
- Code:
ffmpeg version N-34906-g4e7b3ef, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 16 2011 12:39:54 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enab
le-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 25. 0 / 51. 25. 0
libavcodec 53. 34. 0 / 53. 34. 0
libavformat 53. 20. 0 / 53. 20. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 48. 1 / 2. 48. 1
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
[dca @ 0000000001BD6C60] Number of channels changed in DCA decoder (6 -> 2)
Input #0, matroska,webm, from 'v:\video_but_no_audio.mkv':
Duration: 01:08:59.96, start: 0.000000, bitrate: 6801 kb/s
Chapter #0.0: start 0.000000, end 845.803000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 845.803000, end 1211.627000
Metadata:
title : 00:14:05.803
Chapter #0.2: start 1211.627000, end 1977.434000
Metadata:
title : 00:20:11.627
Chapter #0.3: start 1977.434000, end 2746.911000
Metadata:
title : 00:32:57.434
Chapter #0.4: start 2746.911000, end 3399.021000
Metadata:
title : 00:45:46.911
Chapter #0.5: start 3399.021000, end 4139.969000
Metadata:
title : 00:56:39.021
Stream #0:0(eng): Video: h264 (High), yuv420p, 1280x720, SAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, stereo, s16, 1536 kb/s (default)
At least one output file must be specified
Also, I wonder if my Serviio database is simply corrupt? When I added the path to the new files, it seems to have created 3 entries for each of them. I've no idea how to fix this?
Re: Cannot read file

Posted:
Fri Nov 25, 2011 10:15 am
by Cerberus
are u running on linux by any chance?
Re: Cannot read file

Posted:
Fri Nov 25, 2011 2:50 pm
by collider
Nope, Windows 7, why? Would Linux help?

Re: Cannot read file

Posted:
Fri Nov 25, 2011 3:08 pm
by zip
the first one might be corrupt due to:
- Code:
[mpeg4 @ 0000000001BC8310] Invalid and inefficient vfw-avi packed B frames detected
Re: Cannot read file

Posted:
Fri Nov 25, 2011 7:09 pm
by collider
I noticed that on a lot of files that play fine locally with VLC, MPC, etc. I tried googling but it seems like a really common issue.
Can you give me an ffmpeg command that serviio uses so I can try running manually? I was able to transcode the file that didn't play into a couple different vcodec/acodec formats without issue.
Re: Cannot read file

Posted:
Mon Nov 28, 2011 12:37 am
by collider
Was testing some more files, here's another that gives "Cannot read file":
- Code:
ffmpeg version N-34906-g4e7b3ef, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 16 2011 12:39:54 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enab
le-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 25. 0 / 51. 25. 0
libavcodec 53. 34. 0 / 53. 34. 0
libavformat 53. 20. 0 / 53. 20. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 48. 1 / 2. 48. 1
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Seems stream 0 codec frame rate differs from container frame rate: 23.98 (65535/2733) -> 23.98 (2997/125)
Input #0, avi, from 'v:\wont_play_2.avi':
Metadata:
encoder : VirtualDubMod 1.5.10.2 (build 2540/release)
Duration: 01:29:27.28, start: 0.000000, bitrate: 1030 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 624x336 [SAR 1:1 DAR 13:7], SAR 21:26 DAR 3:2, 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16, 192 kb/s
At least one output file must be specified
And here are 2 that play but have no audio:
- Code:
ffmpeg version N-34906-g4e7b3ef, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 16 2011 12:39:54 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enab
le-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 25. 0 / 51. 25. 0
libavcodec 53. 34. 0 / 53. 34. 0
libavformat 53. 20. 0 / 53. 20. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 48. 1 / 2. 48. 1
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, matroska,webm, from 'v:\video_but_no_audio_2.mkv':
Duration: 02:08:46.63, start: 0.000000, bitrate: 9721 kb/s
Chapter #0.0: start 0.000000, end 253.587000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 253.587000, end 518.309000
Metadata:
title : 00:04:13.587
Chapter #0.2: start 518.309000, end 971.929000
Metadata:
title : 00:08:38.309
Chapter #0.3: start 971.929000, end 1303.135000
Metadata:
title : 00:16:11.929
Chapter #0.4: start 1303.135000, end 2002.459000
Metadata:
title : 00:21:43.135
Chapter #0.5: start 2002.459000, end 2508.798000
Metadata:
title : 00:33:22.459
Chapter #0.6: start 2508.798000, end 2878.000000
Metadata:
title : 00:41:48.798
Chapter #0.7: start 2878.000000, end 3220.592000
Metadata:
title : 00:47:58.000
Chapter #0.8: start 3220.592000, end 3886.674000
Metadata:
title : 00:53:40.592
Chapter #0.9: start 3886.674000, end 4379.709000
Metadata:
title : 01:04:46.674
Chapter #0.10: start 4379.709000, end 4847.885000
Metadata:
title : 01:12:59.709
Chapter #0.11: start 4847.885000, end 5178.965000
Metadata:
title : 01:20:47.885
Chapter #0.12: start 5178.965000, end 5513.383000
Metadata:
title : 01:26:18.965
Chapter #0.13: start 5513.383000, end 6143.637000
Metadata:
title : 01:31:53.383
Chapter #0.14: start 6143.637000, end 6652.688000
Metadata:
title : 01:42:23.637
Chapter #0.15: start 6652.688000, end 6733.936000
Metadata:
title : 01:50:52.688
Chapter #0.16: start 6733.936000, end 7090.875000
Metadata:
title : 01:52:13.936
Chapter #0.17: start 7090.875000, end 7191.601000
Metadata:
title : 01:58:10.875
Chapter #0.18: start 7191.601000, end 7316.434000
Metadata:
title : 01:59:51.601
Chapter #0.19: start 7316.434000, end 7726.636000
Metadata:
title : 02:01:56.434
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1040, SAR 1:1 DAR 24:13, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s (default)
Stream #0:2(eng): Subtitle: text
At least one output file must be specified
- Code:
ffmpeg version N-34906-g4e7b3ef, Copyright (c) 2000-2011 the FFmpeg developers
built on Nov 16 2011 12:39:54 with gcc 4.6.2
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enab
le-libschroedinger --enable-libspeex --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 51. 25. 0 / 51. 25. 0
libavcodec 53. 34. 0 / 53. 34. 0
libavformat 53. 20. 0 / 53. 20. 0
libavdevice 53. 4. 0 / 53. 4. 0
libavfilter 2. 48. 1 / 2. 48. 1
libswscale 2. 1. 0 / 2. 1. 0
libpostproc 51. 2. 0 / 51. 2. 0
Input #0, matroska,webm, from 'v:\video_but_no_audio_3.mkv':
Duration: 01:32:20.45, start: 0.000000, bitrate: 10166 kb/s
Chapter #0.0: start 0.000000, end 251.793000
Metadata:
title : 00:00:00.000
Chapter #0.1: start 251.793000, end 763.721000
Metadata:
title : 00:04:11.793
Chapter #0.2: start 763.721000, end 1046.796000
Metadata:
title : 00:12:43.721
Chapter #0.3: start 1046.796000, end 1196.737000
Metadata:
title : 00:17:26.796
Chapter #0.4: start 1196.737000, end 1587.294000
Metadata:
title : 00:19:56.737
Chapter #0.5: start 1587.294000, end 1655.696000
Metadata:
title : 00:26:27.294
Chapter #0.6: start 1655.696000, end 1957.831000
Metadata:
title : 00:27:35.696
Chapter #0.7: start 1957.831000, end 2173.046000
Metadata:
title : 00:32:37.831
Chapter #0.8: start 2173.046000, end 2411.993000
Metadata:
title : 00:36:13.046
Chapter #0.9: start 2411.993000, end 2672.211000
Metadata:
title : 00:40:11.993
Chapter #0.10: start 2672.211000, end 3186.517000
Metadata:
title : 00:44:32.211
Chapter #0.11: start 3186.517000, end 3408.614000
Metadata:
title : 00:53:06.517
Chapter #0.12: start 3408.614000, end 3535.574000
Metadata:
title : 00:56:48.614
Chapter #0.13: start 3535.574000, end 3780.694000
Metadata:
title : 00:58:55.574
Chapter #0.14: start 3780.694000, end 4304.759000
Metadata:
title : 01:03:00.694
Chapter #0.15: start 4304.759000, end 4493.322000
Metadata:
title : 01:11:44.759
Chapter #0.16: start 4493.322000, end 4724.219000
Metadata:
title : 01:14:53.322
Chapter #0.17: start 4724.219000, end 4889.802000
Metadata:
title : 01:18:44.219
Chapter #0.18: start 4889.802000, end 5068.230000
Metadata:
title : 01:21:29.802
Chapter #0.19: start 5068.230000, end 5540.451000
Metadata:
title : 01:24:28.230
Stream #0:0(eng): Video: h264 (High), yuv420p, 1920x1040, SAR 1:1 DAR 24:13, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), s16, 1536 kb/s (default)
Stream #0:2(eng): Subtitle: text
At least one output file must be specified
I really love Serviio and would be more than happy to help debug these issues. I can try commands manually, recompiling libraries, whatever it takes. My family would be so grateful if we got this working.

Thanks again,
-collider
Re: Cannot read file

Posted:
Mon Nov 28, 2011 7:33 am
by Cerberus
First file try renaming it to .mp4 if not then it looks like it maybe corrupt. The other 2 file need all of the chapter infomation removed from them using something like mkvmerge and then they should play.
ZIP/ILLICO - does the panasonic profile support DTS audio?
Re: Cannot read file

Posted:
Mon Nov 28, 2011 8:15 am
by Illico
Cerberus wrote:ZIP/ILLICO - does the panasonic profile support DTS audio?
All DTS tracks are transcoded into AC3
Re: Cannot read file

Posted:
Mon Nov 28, 2011 10:36 am
by Cerberus
thanks illico that what i thought.

Re: Cannot read file

Posted:
Mon Nov 28, 2011 2:53 pm
by collider
The other 2 file need all of the chapter infomation removed from them using something like mkvmerge and then they should play.
Interesting, I was wondering if the chapters were causing a problem!
Thanks for your suggestions Cerberus, I'll give them a whirl at home tonight!
Re: Cannot read file

Posted:
Mon Nov 28, 2011 3:03 pm
by Cerberus
your very welcome

Re: Cannot read file

Posted:
Mon Nov 28, 2011 3:37 pm
by Illico
Could you also provide MediaInfo tool result of these files ? (see signature links)
Re: Cannot read file

Posted:
Mon Nov 28, 2011 3:45 pm
by collider
Could you also provide MediaInfo tool result of these files ? (see signature links)
Definitely. Will do so tonight. Thanks Illico!
Re: Cannot read file

Posted:
Fri Jan 27, 2012 6:54 pm
by ssccoorrcchhiioo
I had no luck getting the previously supplied Viera config to work and was hoping this thread would come up with a solution. I am completely new to Serviio and not that deeply experienced in codecs but eventually I created the attached profile.
The manual for the TV says DLNA is compatible with:
SD-Video files (ver 1.3)
AVCHD compatible files
MP4 (video codec H.264 + audio codec MP3/AC3/LPCM)
MKV (ditto)
MPEG-2 PS
MPEG-2 TS
I ignored the SD-Video & AVCHD. It seems that Serviio cannot transcode TO MP4 or Matroska containers. So the rules I tried to set up were:
- If it is MP4 or Matroska container (H.264 video & valid audio) then leave it.
- If it is MPEG-2 PS or MPEG-2 TS with valid audio then leave it.
By trial-and-error I discovered that MPEG-2 version 1 doesn't work, so added that into the rules.
Attached is the profile that I ended up with and it plays everything I need.
Note:
- You'll need to set your own attribute for "ID" in the opening <Profile> tag.[/list]
- There might be some <Matches> which cannot happen (combos of container with video codec) - as I said, I'm no expert in this. Hopefully I haven't missed out combos which DO happen.
- This is on Win 7 64 bit, with Shark007's Windows Codecs installed as my primary set of codecs
Would be nice to hear if this helps anyone.
James
Re: Cannot read file

Posted:
Fri Jan 27, 2012 7:05 pm
by collider
Thanks ssccoorrcchhiioo - I meant to get further deetails into this thread but time was in short supply. Will reassess tonight. Appreciate you sharing your profile! Did you see 100% playability of your files with it?