Page 1 of 2

TC-L55ET5: mkv work but no other file type,transcoding probl

PostPosted: Tue Dec 11, 2012 5:15 am
by thenamelessthing
Hi! I just install serviio on my ubuntu 12.04 with success. Serviio detect my panasonic TV TC-L55ET5 and auto-select the right profile (see picture below)
Image

I can play .mkv without any problem. But i'm unable to play any other video file.

Here is an example:

media@mediastation:~$ ffmpeg -i /data/Films/Rambo\ 1.avi
ffmpeg version 0.8.4-4:0.8.4-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers
built on Nov 6 2012 16:51:33 with gcc 4.6.3
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.

Seems stream 0 codec frame rate differs from container frame rate: 2.00 (2/1) -> 25.00 (25/1)
Input #0, avi, from '/data/Films/Rambo 1.avi':
Duration: 01:29:20.16, start: 0.000000, bitrate: 1093 kb/s
Stream #0.0: Video: mpeg4, yuv420p, 720x400 [PAR 1:1 DAR 9:5], 25 fps, 25 tbr, 25 tbn, 2 tbc
Metadata:
title : NeoVideo92CF
Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 96 kb/s
Metadata:
title : NeoSound92CF0
At least one output file must be specified


Here is the log details:

2012-12-11 00:10:30,707 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.134
2012-12-11 00:10:30,711 DEBUG [DeviceDescriptionRequestHandler] Sending DeviceDescription XML back using profile 'Panasonic Viera E/S
/ST/VT (2011)'
2012-12-11 00:10:31,562 DEBUG [WebServer] Incoming connection from /192.168.1.134:10286
2012-12-11 00:10:31,563 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.134
2012-12-11 00:10:31,564 DEBUG [ResourceTransportRequestHandler] GET /resource/5/MEDIA_ITEM/MPEG_TS_SD_NA_ISO-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.1.3:8895,TimeSeekRange.dlna.org: npt=00:00:00.000-,transferMode.dlna.org: Streaming,Connection: keep-alive]]
2012-12-11 00:10:31,564 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.134
2012-12-11 00:10:31,565 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2012-12-11 00:10:31,566 DEBUG [ResourceDeliveryProcessor] Request for resource 5 and type 'MEDIA_ITEM' received
2012-12-11 00:10:31,566 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 5 (local)
2012-12-11 00:10:31,566 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 5)
2012-12-11 00:10:31,567 DEBUG [VideoDAOImpl] Reading a Video (id = 5)
2012-12-11 00:10:31,568 DEBUG [VideoDeliveryEngine] Delivering item '5' for client 'IPAddress=/192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2012-12-11 00:10:31,568 DEBUG [VideoDeliveryEngine] Delivering file 'Rambo 1.avi' using transcoding
2012-12-11 00:10:31,568 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'IPAddress=/192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2012-12-11 00:10:31,569 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file '/tmp/Serviio/transcoding-temp-5-viera2011-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file '/tmp/Serviio/transcoding-temp-5-viera2011-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:45)
at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:125)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:95)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:120)
at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:84)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:79)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:191)



I suspect ffmpeg transcoding doesn't work at all on my server.. Any help will be appreciated!

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Tue Dec 11, 2012 7:46 am
by Illico
Could you update your ffmpeg build and take care of configuration opion (librtmp...) : http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Wed Dec 12, 2012 4:22 am
by thenamelessthing
Hi, I have follow the instruction about compiling and installing ffmpeg without any error. But I always have the same kind of error.


2012-12-11 23:20:16,478 DEBUG [VideoDeliveryEngine] Delivering item '5' for client 'IPAddress=/192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2012-12-11 23:20:16,478 DEBUG [VideoDeliveryEngine] Delivering file 'Rambo 1.avi' using transcoding
2012-12-11 23:20:16,478 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'IPAddress=/192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2012-12-11 23:20:16,478 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file '/tmp/Serviio/transcoding-temp-5-viera2011-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file '/tmp/Serviio/transcoding-temp-5-viera2011-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:45)
at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:125)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:95)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:120)
at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:84)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:79)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:191)
2012-12-11 23:20:17,488 DEBUG [WebServer] Incoming connection from /192.168.1.134:29016
2012-12-11 23:20:17,488 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.134
2012-12-11 23:20:17,489 DEBUG [ResourceTransportRequestHandler] GET /resource/5/MEDIA_ITEM/MPEG_TS_SD_NA_ISO-0/ORIGINAL HTTP/1.1, headers = [Host: 192.168.1.3:8895,TimeSeekRange.dlna.org: npt=00:00:00.000-,transferMode.dlna.org: Streaming,Connection: keep-alive]]
2012-12-11 23:20:17,490 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.134
2012-12-11 23:20:17,490 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'IPAddress=/192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2012-12-11 23:20:17,490 DEBUG [ResourceDeliveryProcessor] Request for resource 5 and type 'MEDIA_ITEM' received
2012-12-11 23:20:17,491 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 5 (local)
2012-12-11 23:20:17,491 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 5)
2012-12-11 23:20:17,491 DEBUG [VideoDAOImpl] Reading a Video (id = 5)
2012-12-11 23:20:17,492 DEBUG [VideoDeliveryEngine] Delivering item '5' for client 'IPAddress=/192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2012-12-11 23:20:17,492 DEBUG [VideoDeliveryEngine] Delivering file 'Rambo 1.avi' using transcoding
2012-12-11 23:20:17,492 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'IPAddress=/192.168.1.134, Profile=Panasonic Viera E/S/ST/VT (2011)'
2012-12-11 23:20:17,492 ERROR [ResourceTransportRequestHandler] Error while processing resource, sending back 500 error. Message: Transcoded file '/tmp/Serviio/transcoding-temp-5-viera2011-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
java.io.IOException: Transcoded file '/tmp/Serviio/transcoding-temp-5-viera2011-ORIGINAL.stf' cannot be found, FFmpeg execution probably failed
at org.serviio.delivery.resource.transcode.FileBasedTranscodingDeliveryStrategy.createInputStream(FileBasedTranscodingDeliveryStrategy.java:45)
at org.serviio.delivery.resource.transcode.AbstractTranscodingDeliveryEngine.retrieveTranscodedResource(AbstractTranscodingDeliveryEngine.java:125)
at org.serviio.delivery.resource.AbstractDeliveryEngine.deliver(AbstractDeliveryEngine.java:95)
at org.serviio.delivery.MediaResourceRetrievalStrategy.retrieveResource(MediaResourceRetrievalStrategy.java:120)
at org.serviio.delivery.ResourceDeliveryProcessor.deliverContent(ResourceDeliveryProcessor.java:84)
at org.serviio.upnp.webserver.ResourceTransportRequestHandler.handleRequest(ResourceTransportRequestHandler.java:79)
at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:61)
at org.apache.http.protocol.HttpService.doService(HttpService.java:293)
at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:58)
at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:212)
at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:191)
2012-12-11 23:20:24,669 DEBUG [DiscoveryAdvertisementNotifier] Multicasting SSDP alive using interface eth0 (eth0) and address 192.168.1.3, timeout = 0
2012-12-11 23:20:24,671 DEBUG [DiscoveryAdvertisementNotifier] Sending 6 'alive' messages describing device 92364609-eb74-3e48-a97f-fb1c988d0a03
2012-12-11 23:20:25,304 DEBUG [WebServer] Incoming connection from /192.168.1.134:29017
2012-12-11 23:20:25,305 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.134
2012-12-11 23:20:25,306 DEBUG [DeviceDescriptionRequestHandler] DeviceDescription request received for device 92364609-eb74-3e48-a97f-fb1c988d0a03 from 192.168.1.134 (headers = [User-Agent: Panasonic MIL DLNA CP UPnP/1.0 DLNADOC/1.50,Host: 192.168.1.3:8895,X-PANASONIC-Registration: VklFUkEgRVQ1AAAAAAAAAAAAAAAAAAAAAAA=,X-PANASONIC-DMP-Profile: ""])
2012-12-11 23:20:25,306 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.134
2012-12-11 23:20:25,307 DEBUG [RendererManager] Looking for a renderer profile for Http headers: [User-Agent: Panasonic MIL DLNA CP UPnP/1.0 DLNADOC/1.50,Host: 192.168.1.3:8895,X-PANASONIC-Registration: VklFUkEgRVQ1AAAAAAAAAAAAAAAAAAAAAAA=,X-PANASONIC-DMP-Profile: ""]
2012-12-11 23:20:25,308 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.1.134
2012-12-11 23:20:25,311 DEBUG [DeviceDescriptionRequestHandler] Sending DeviceDescription XML back using profile 'Panasonic Viera E/S/ST/VT (2011)'
2012-12-11 23:20:26,476 DEBUG [DiscoveryAdvertisementNotifier] Will advertise again in 00:00:42




Here is the version info when I restart the service:

2012-12-11 23:35:53,438 INFO [MediaServer] ------------------------------------------------------------------------
2012-12-11 23:35:53,439 INFO [MediaServer] Serviio DLNA media streaming server v 1.0.1 (rev. 6dbf7c6e334f+)
2012-12-11 23:35:53,439 INFO [MediaServer] Petr Nejedly 2009-2012
2012-12-11 23:35:53,439 INFO [MediaServer] http://www.serviio.org
2012-12-11 23:35:53,439 INFO [MediaServer]
2012-12-11 23:35:53,439 INFO [MediaServer] Java 1.7.0_09-Oracle Corporation
2012-12-11 23:35:53,439 INFO [MediaServer] OS Linux amd64 3.2.0-34-generic
2012-12-11 23:35:53,439 INFO [MediaServer] File encoding: US-ASCII
2012-12-11 23:35:53,439 INFO [MediaServer] Headless mode enabled: true
2012-12-11 23:35:53,439 INFO [MediaServer] User home dir: /root
2012-12-11 23:35:53,439 INFO [MediaServer] Temp dir: /tmp
2012-12-11 23:35:53,440 INFO [MediaServer] ------------------------------------------------------------------------


It is normal the /tmp/Serviio folder is empty?

Thanks you for your help!

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Wed Dec 12, 2012 11:43 am
by leepa
AFAIK, the TC-L55ET5 model is a new one and it is able to play avi files by itself (you can check this by trying to play this file from USB).
Try to use the "Panasonic Viera G/GT/DT/UT/VT (2011/2012)" profile and it should be streamed without transcoding.

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Wed Dec 12, 2012 5:25 pm
by thenamelessthing
the TC-L55ET5 model is a new one and it is able to play avi files by itself


Here is the official media format support for this model:

AVCHD 3D/Progressive, SD-VIDEO/MotionJPEG (Lumix)/MKV/MP4/MOV/M4v/FLV/3GPP/VRO/VOB/TS/PS, MP3/AAC/FLAC, JPEG/MPO

No avi supported! I even try avi on usb without success. But mkv work really fine.

Serviio automatically detect the right profile for the tv, I also tried with "Panasonic Viera G/GT/DT/UT/VT (2011/2012)" profile manually without succes. With this profile I see no content in the serviio dlna server in comparaison with the profile who was automatically detect.

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Wed Dec 12, 2012 7:29 pm
by leepa
thenamelessthing wrote:No avi supported! I even try avi on usb without success.

My bad - should have checked the manual...
I thought I tried the avi file on similar TX-L32E5 but maybe it wasn't avi or maybe there is a difference between TX and TC...

Edit: checked the manuals :)
Both TX-L32E5 and TX-L55ET5 should play the avi files. So, it is TC that makes the difference.

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Thu Dec 13, 2012 12:36 pm
by thenamelessthing
One question I have is : in many topic on the forum I see in the log file posted by people the command line mmpeg try to execute. In my log I don't see it. Why?

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Thu Dec 13, 2012 2:15 pm
by zip
It'll be further up from what you posted (possibly in a file called serviio.log.1 or similar)

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Thu Dec 13, 2012 2:22 pm
by thenamelessthing
Trying to launch manually the command will be a good idea to debug my problem or you think it's another thing?

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Thu Dec 13, 2012 4:17 pm
by zip
yes, it'll give us the error message

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Fri Dec 14, 2012 12:25 am
by thenamelessthing
Hi again! Here is the result of ffmpeg command...


ffmpeg -i /data/Films/Conan.avi -y -threads 1 -copyts -c:v mpeg2video -sameq -r 24000/1001 -g 15 -c:a ac3 -b:a 128k -ac 2 -map 0:0 -map 0:1 -sn -f mpegts /tmp/Serviio/transcoding-temp-4978-viera2011-ORIGINAL.stf
ffmpeg version git-2012-12-12-9138f6d Copyright (c) 2000-2012 the FFmpeg developers
built on Dec 11 2012 22:39:31 with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx --enable-librtmp --enable-libxvid
libavutil 52. 12.100 / 52. 12.100
libavcodec 54. 79.102 / 54. 79.102
libavformat 54. 49.101 / 54. 49.101
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 26.102 / 3. 26.102
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
[avi @ 0x35662c0] non-interleaved AVI
[mpeg4 @ 0x356c840] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from '/data/Films/Conan.avi':
Metadata:
encoder : VirtualDubMod 1.5.10.2 Fr | www.trad-fr.com || (build 2540/release)
Duration: 01:52:44.81, start: 0.000000, bitrate: 866 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x304 [SAR 1:1 DAR 45:19], 23.98 tbr, 23.98 tbn, 23.98 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s
Option 'sameq' was removed. If you are looking for an option to preserve the quality (which is not what -sameq was for), use -qscale 0 or an equivalent quality factor option.
Failed to set value '-r' for option 'sameq'



What can I do to fix this??

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Fri Dec 14, 2012 12:46 pm
by zip
your FFmpeg it too new :-)

can you build one from the Serviio download page?

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Fri Dec 14, 2012 6:22 pm
by thenamelessthing
Maybe we can specify the version requirement in the doc?

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Fri Dec 14, 2012 11:03 pm
by zip
The required version is the one on the download page.

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Fri Dec 14, 2012 11:41 pm
by thenamelessthing
The required version is the one on the download page.




Ooh! I understand. I have followed the instruction on the wiki. And on the wiki the version is the LATEST. I will try with the source on the download page.


To be continued...

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Sat Dec 15, 2012 2:40 am
by thenamelessthing
I have rebuild ffmpeg with the source from the download page. It finally work! One last thing, the audio is not sync on some video. Maybe is because I didn't build source for Lame MP3 Encoder (v. 3.98) and libRTMP 2.4 too?



edia@mediastation:~/src/current/lame-398-2$ dpkg -l | grep lame
ii lame 3.99.3+repack1-1 MP3 encoding library (frontend)
ii libmp3lame-dev 3.99.3+repack1-1 MP3 encoding library (development)
ii libmp3lame0 3.99.3+repack1-1 MP3 encoding library
ii libtwolame0 0.3.13-1build1

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Mon Dec 17, 2012 6:11 pm
by thenamelessthing
Also, I'm on a Lan 100 MB and my home server is a DualCore AMD with 2 gb of ram...

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Mon Dec 17, 2012 7:54 pm
by r-win
I also added a comment to the (already marked as resolved) issue about this: https://bitbucket.org/xnejp03/serviio/i ... parameters

The issue specifies that instead of sameq qscale should be used, but that is changed too ;)

Use -q:a 1 or -q:v 1 instead. For now, I'll downgrade my ffmpeg, but I would really like to see these arguments changed.

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Tue Dec 18, 2012 9:26 pm
by zip
from ffmpeg documentation:

‘-q[:stream_specifier] q (output,per-stream)’
‘-qscale[:stream_specifier] q (output,per-stream)’
Use fixed quality scale (VBR). The meaning of q is codec-dependent.

so it looks like qscale:v and q:v is the same. Serviio uses qscale in 1.1

Re: TC-L55ET5: mkv work but no other file type,transcoding p

PostPosted: Tue Dec 18, 2012 10:30 pm
by thenamelessthing
And for my sync audio problem what is your advice? :-)