FAQ  •  Register  •  Login

Problem viewin/transcoding file

<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Sun Nov 14, 2010 1:04 am

Problem viewin/transcoding file

First: Serviio is great. I am looking forward to follow the development.
I am a total newbie to DLNA and transforming so bare with...

Using 0.42 and a Samsung BD-C6900 I can not view a file marked:
***.1080p.HDDVD.x264-AJP

I used the "Samsung C-series" setting.

The c6900 can't play the file as it is. With transcoding checked it plays most of the other files but not this one.

Does this depend on Serviio, on ffmpeg not being able to transcode this format or what?
What to try?

ffmpeg .i output below:
gives:
***.1080p.HDDVD.x264-AJP>ffmpeg -i ***.1080p.HDDVD.x264-AJP.mkv
FFmpeg version SVN-r20906, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Dec 21 2009 06:01:55 with gcc 4.2.4
configuration: --enable-memalign-hack --prefix=/mingw --cross-prefix=i686-mingw32- --cc=ccache-i686-mingw32-gcc --target-os=mingw32 --arch=i686 --cpu=i686 --enable-avisynth --enable-gpl --enable-ver
sion3 --enable-zlib --enable-bzlib --enable-libgsm --enable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid
--enable-libschroedinger --enable-libx264 --enable-libopencore_amrwb --enable-libopencore_amrnb
libavutil 50. 7. 0 / 50. 7. 0
libavcodec 52.43. 0 / 52.43. 0
libavformat 52.44. 0 / 52.44. 0
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0. 7. 2 / 0. 7. 2
[matroska @ 0x134bfa0]max_analyze_duration reached
[matroska @ 0x134bfa0]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 47.95 (5994/125) -> 23.98 (24000/1001)
Input #0, matroska, from '***.2006.1080p.HDDVD.x264-AJP.mkv':
Duration: 00:53:20.65, start: 0.000000, bitrate: N/A
Stream #0.0: Video: h264, yuv420p, 1920x1080, PAR 1:1 DAR 16:9, 24.39 fps, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 6 channels, s16
Metadata:
description : English (AC3)
Stream #0.2(eng): Subtitle: 0x0000
Stream #0.3: Attachment: 0x0000
Metadata:
filename : exprswy_free.ttf
Stream #0.4: Attachment: 0x0000
Metadata:
filename : Framd.TTF
At least one output file must be specified
<<

Illico

User avatar

DLNA master

Posts: 4645

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Sun Nov 14, 2010 1:59 pm

Re: Problem viewin/transcoding file

dboy wrote:...FFmpeg version SVN-r20906, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Dec 21 2009 06:01:55 with gcc 4.2.4

What is your OS ?
You could try http://www.serviio.org/download ffmpeg included with FFmpeg.
This release includes FFmpeg (rev. 23013, incl. a patch) compiled using this source code
For Windows users (like me), the latest ffmpeg.exe can be downloaded here(backup your ffmpeg.exe, unzip the .7z file to /lib folder).
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
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Sun Nov 14, 2010 7:51 pm

Re: Problem viewin/transcoding file

Sorry, should have stated; WinXP sp3.
Will try with updated ffmpeg, thanks.
<<

Illico

User avatar

DLNA master

Posts: 4645

Joined: Fri Jul 23, 2010 8:08 am

Location: France

Post Mon Nov 15, 2010 7:54 am

Re: Problem viewin/transcoding file

Check the servio.log file when you start transcoding this file, find the ffmpeg.exe command line, post it.
Try localy the same command line
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
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Thu Dec 02, 2010 7:50 pm

Re: Problem viewin/transcoding file

...and much later...

I turned on detailed logging and I think that serviio thinks my BD-C6900 will understand this file natively - there is no sign of any transcoding or ffmpeg commands in the log.
I think the important part of the log is the block from the serviio.log below:

What is the "[WebServer] I/O error: Connection reset by peer: socket write error"
all about?

/dboy
  Code:
2010-12-02 20:17:50,071 DEBUG [WebServer] Incoming connection from /192.168.0.121:49493
2010-12-02 20:17:50,072 DEBUG [ResourceTransportRequestHandler] GET /resource/159/MEDIA_ITEM/MATROSKA HTTP/1.0, headers = [Range: bytes=4695225421-, getcontentFeatures.dlna.org: 1, transferMode.dlna.org: Streaming, Host: 192.168.0.198:8895, ]
2010-12-02 20:17:50,073 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.121, Profile=Samsung TV / player (C-series)'
2010-12-02 20:17:50,073 DEBUG [ResourceTransportRequestHandler] Request for resource 159 and type 'MEDIA_ITEM' received
2010-12-02 20:17:50,073 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 159)
2010-12-02 20:17:50,075 DEBUG [VideoDAOImpl] Reading a Video (id = 159)
2010-12-02 20:17:50,077 DEBUG [VideoDeliveryEngine] Delivering item '159' for client 'IPAddress=/192.168.0.121, Profile=Samsung TV / player (C-series)'
2010-12-02 20:17:50,077 DEBUG [VideoDeliveryEngine] Delivering file 'Movie1.mkv' in native format
2010-12-02 20:17:50,077 DEBUG [MediaItemDAOImpl] Getting file of media item 159
2010-12-02 20:17:50,081 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 63845
2010-12-02 20:17:50,082 DEBUG [ResourceTransportRequestHandler] Sending file back
2010-12-02 20:17:50,082 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [Content-Type: video/x-mkv, Content-Range: bytes 4695225421-4695289265/4695289266, Content-Length: 63845, Date: Thu, 02 Dec 2010 19:17:50 GMT, Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/0.4.2, Cache-control: no-cache, contentFeatures.dlna.org: DLNA.ORG_PN=MATROSKA;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000, transferMode.dlna.org: Streaming, ]
2010-12-02 20:17:50,125 DEBUG [WebServer] I/O error: Connection reset
2010-12-02 20:17:50,146 DEBUG [WebServer] Incoming connection from /192.168.0.121:40807
2010-12-02 20:17:50,147 DEBUG [ResourceTransportRequestHandler] GET /resource/159/MEDIA_ITEM/MATROSKA HTTP/1.0, headers = [Range: bytes=206910-, getcontentFeatures.dlna.org: 1, transferMode.dlna.org: Streaming, Host: 192.168.0.198:8895, ]
2010-12-02 20:17:50,147 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.121, Profile=Samsung TV / player (C-series)'
2010-12-02 20:17:50,147 DEBUG [ResourceTransportRequestHandler] Request for resource 159 and type 'MEDIA_ITEM' received
2010-12-02 20:17:50,148 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 159)
2010-12-02 20:17:50,148 DEBUG [VideoDAOImpl] Reading a Video (id = 159)
2010-12-02 20:17:50,149 DEBUG [VideoDeliveryEngine] Delivering item '159' for client 'IPAddress=/192.168.0.121, Profile=Samsung TV / player (C-series)'
2010-12-02 20:17:50,149 DEBUG [VideoDeliveryEngine] Delivering file 'Movie1.mkv' in native format
2010-12-02 20:17:50,150 DEBUG [MediaItemDAOImpl] Getting file of media item 159
2010-12-02 20:17:50,151 DEBUG [ResourceTransportRequestHandler] Creating stream entity with length: 4695082356
2010-12-02 20:17:50,151 DEBUG [ResourceTransportRequestHandler] Sending file back
2010-12-02 20:17:50,151 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 206 Partial Content, headers = [Content-Type: video/x-mkv, Content-Range: bytes 206910-4695289265/4695289266, Content-Length: 4695082356, Date: Thu, 02 Dec 2010 19:17:50 GMT, Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/0.4.2, Cache-control: no-cache, contentFeatures.dlna.org: DLNA.ORG_PN=MATROSKA;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000, transferMode.dlna.org: Streaming, ]
2010-12-02 20:17:50,625 DEBUG [WebServer] Incoming connection from /192.168.0.121:56385
2010-12-02 20:17:50,635 DEBUG [ResourceTransportRequestHandler] HEAD /resource/159/MEDIA_ITEM/MATROSKA HTTP/1.0, headers = [getCaptionInfo.sec: 1, ]
2010-12-02 20:17:50,636 DEBUG [ResourceTransportRequestHandler] Resource request accepted. Using client 'IPAddress=/192.168.0.121, Profile=Samsung TV / player (C-series)'
2010-12-02 20:17:50,636 DEBUG [ResourceTransportRequestHandler] Request for resource 159 and type 'MEDIA_ITEM' received
2010-12-02 20:17:50,637 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 159)
2010-12-02 20:17:50,638 DEBUG [VideoDAOImpl] Reading a Video (id = 159)
2010-12-02 20:17:50,640 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 159, format MATROSKA and profile Samsung TV / player (C-series)
2010-12-02 20:17:50,641 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 159)
2010-12-02 20:17:50,642 DEBUG [MediaItemDAOImpl] Getting file of media item 159
2010-12-02 20:17:50,646 DEBUG [ResourceTransportRequestHandler] Sending HEAD response back
2010-12-02 20:17:50,646 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [Content-Type: video/x-mkv, Content-Length: 4695289266, Date: Thu, 02 Dec 2010 19:17:50 GMT, Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/0.4.2, Cache-control: no-cache, transferMode.dlna.org: Streaming, contentFeatures.dlna.org: DLNA.ORG_PN=MATROSKA;DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=01500000000000000000000000000000, ]
2010-12-02 20:17:51,070 DEBUG [WebServer] Incoming connection from /192.168.0.121:39110
2010-12-02 20:17:51,071 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#X_SetBookmark"' from DLNADOC/1.50:
2010-12-02 20:17:51,074 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2010-12-02 20:17:51,124 DEBUG [WebServer] Incoming connection from /192.168.0.121:45575
2010-12-02 20:17:51,125 DEBUG [ServiceControlRequestHandler] ServiceControl request received for action '"urn:schemas-upnp-org:service:ContentDirectory:1#Browse"' from DLNADOC/1.50:
2010-12-02 20:17:51,133 DEBUG [ContentDirectory] Browse() called for profile Samsung TV / player (C-series) with parameters: objectID = V_T#INI_M, browseFlag = BrowseDirectChildren, filter = @id,@parentID,@restricted,dc:title,upnp:class,res,dc:date,@childCount,sec:CaptionInfo,sec:CaptionInfoEx, sec:dcmInfo, sec:MetaFileInfo,res@resolution,res@size,upnp:genre,dc:date,upnp:album,res@duration,upnp:albumArtURI,res@bitrate,dc:creator, startIndex = 0, count = 1, sortCriteria =
2010-12-02 20:17:51,134 DEBUG [VideoDAOImpl] Retrieving list of videos with initial M (from=0, count=1)
2010-12-02 20:17:51,141 DEBUG [GenreDAOImpl] Reading a Genre (id = 14)
2010-12-02 20:17:51,142 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 159)
2010-12-02 20:17:51,143 DEBUG [MediaItemDAOImpl] Getting file of media item 159
2010-12-02 20:17:51,145 DEBUG [VideoDAOImpl] Reading a Video (id = 159)
2010-12-02 20:17:51,146 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 159 and profile Samsung TV / player (C-series)
2010-12-02 20:17:51,146 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 159)
2010-12-02 20:17:51,147 DEBUG [MediaItemDAOImpl] Getting file of media item 159
2010-12-02 20:17:51,148 DEBUG [VideoDAOImpl] Retrieving number of videos with initial M
2010-12-02 20:17:51,152 DEBUG [LocalContentCacheDecorator] Stored entry in the cache (local_default), returning it
2010-12-02 20:17:51,156 DEBUG [ServiceControlRequestHandler] Returning OK SOAP message
2010-12-02 20:17:51,556 DEBUG [WebServer] I/O error: Connection reset by peer: socket write error
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17079

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Dec 02, 2010 10:32 pm

Re: Problem viewin/transcoding file

right, MKV is supported format for the Samsung, so no need to transcode. The reason the file doesn't play is probably because the TV doesn't like the stream - it happened to me with my TV as well, especially with h264 content - the TV is picky. Not much you can do with Serviio unless you want to transcode all h264 into mpeg2. You might try re-encoding the file using other tool.

The WARN messages are caused by the TV closing the connection, because it cannot play the file.
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Thu Dec 02, 2010 11:24 pm

Re: Problem viewin/transcoding file

just thinking about how to make this invisible to the user....would it not be possible to make serviio try to transcode the file if it gets a WARN message?
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17079

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Dec 02, 2010 11:46 pm

Re: Problem viewin/transcoding file

it's a bit more complicated than that.

It might be possible to interrogate the files for certain values (which I have no idea what they are) that would trigger transcoding. If someone can tell me what byte of the file marks it as unplayable then it should be possible :-)
<<

zaphod7501

Serviio newbie

Posts: 17

Joined: Wed Oct 13, 2010 1:25 pm

Post Fri Dec 03, 2010 3:02 am

Re: Problem viewin/transcoding file

zip wrote:right, MKV is supported format for the Samsung, so no need to transcode. The reason the file doesn't play is probably because the TV doesn't like the stream - it happened to me with my TV as well, especially with h264 content - the TV is picky. Not much you can do with Serviio unless you want to transcode all h264 into mpeg2. You might try re-encoding the file using other tool.

The WARN messages are caused by the TV closing the connection, because it cannot play the file.

You might also try just renaming the file extension from ".mkv" to ".mp4"
I have a Samsung BD-C5500 which will play mkv's from a USB stick or USB hdd or burned to a data disk, but not through Serviio.
Changing the file extension (using the C-Series profile - auto detect won't work) to .mp4, does allow Serviio to serve up the file in a playable form.
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Fri Dec 03, 2010 8:07 am

Re: Problem viewin/transcoding file

Zapho: Thankx, will try that.

Zip: I guess you mean "which byte in the MKV file"?

I am speaking in the blind here since I know nil 'bout the inner workings of DLNA and streaming data.

But in general; doesn't the TV send some information that makes the data transfer from the DLNA server stop? And is it not possible for the Serviio to detect that this "interupt" was sent at the start of a file transfer and start transcoding?

Servioo is, I guess, aware of where in the file it was when the interupt occured, so it should be possible to start transcoding from the position in the file when the interupt happened.

If it happens in the first 30s of the file, then transcode, otherwise not. Or maybe better, if interupt occurs, always transcode...
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17079

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 03, 2010 9:57 am

Re: Problem viewin/transcoding file

dboy wrote:Servioo is, I guess, aware of where in the file it was when the interupt occured, so it should be possible to start transcoding from the position in the file when the interupt happened.

No, it's not. Other than that, when the TV closes connection, it's already too late, it went back to your TV menu or moved onto another video.
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Fri Dec 03, 2010 11:43 am

Re: Problem viewin/transcoding file

Allright, I see...
Then it is really something that should have been taken care of in the DLNA protocol, but then when I read about DLNA for just 2 minutes I realize the DLNA crowd seemed to have messed things up quite bad, so no real surprise they messed this up too...

http://gxben.wordpress.com/2008/08/24/why-do-i-hate-dlna-protocol-so-much/


Anyway, thanks for your comments.
<<

dboy

Serviio lover

Posts: 51

Joined: Sat Nov 13, 2010 11:20 pm

Post Fri Dec 03, 2010 2:24 pm

Re: Problem viewin/transcoding file

I (also) don't know enough about ffmpeg, but is there any hope that a transcode from mkv (h264) to mkv(h264) would work?
Would ffmpeg accept such a command, and would it actually do something and possibly correct it to something the TV would accept?
Or is there such a thing as a "Repair file.mkv " function out there that looks through a file and fix inconsistencies?

Will try, but I am interested in opinions on this...to no surprise the file plays fine on the computer using VLC player...
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17079

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Fri Dec 03, 2010 2:42 pm

Re: Problem viewin/transcoding file

The FFmpeg distibuted with Serviio doesn't include h264 encoder, so unfortunately you could only transcode it into mpeg2. You might try wrapping in into mpeg ts, see if the TV will play that.

Return to Transcoding

Who is online

Users browsing this forum: Google [Bot] and 2 guests

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