I successfully got my Panasonic V10 TVset to trigger on-the-fly transcoding. Flv videos automatically get transcoded into avi/divx using ffmpeg. To do this I created a ffmpeg-flv-avi.desc file with appropriate entries. I also added a line to the transcoding.db file with an AVI entry, as well as a line in the clients.db file where I set TR:AVI for the panasonic Viera entry. The transcoding actually works, as I get a correctly transcoded file in the /var/twonkymedia/db/cache directory. If I move this file to my media directory, the TV can read it directly.
My current problem is that the Viera TV does not seem to be able to play cached transcoded files. I wonder whether this is a voluntary limitation imposed by panasonic, or if it is caused by a bug of some sort.
I am running Twonky server 5.1.2, on an OpenSuse linux dist, kernel 2.6. The server is a small 1.8Ghz C7 machine on an EPIA board. TV is hooked up on local 802.3 network.
Here some excerpt of what I get in the Twonky server log, with the file already cached:
Code: Select all
[...]
15:51:24:468 LOG_SCAN: checking for new locations
15:51:24:468 LOG_SCAN filescanner thread checking scan queue
15:51:24:468 dbx_queue_flush flushing cache
15:51:24:468 dbx_queue_flush cache empty
15:51:24:468 LOG_SCAN filescanner thread reading external import items
15:51:24:469 dbx_queue_flush flushing cache
15:51:24:469 dbx_queue_flush cache empty
15:51:24:469 LOG_SCAN filescanner thread checking plugins
15:51:25:469 LOG_SCAN: checking for new locations
15:51:25:469 LOG_SCAN filescanner thread checking scan queue
15:51:25:469 dbx_queue_flush flushing cache
15:51:25:469 dbx_queue_flush cache empty
15:51:25:469 LOG_SCAN filescanner thread reading external import items
15:51:25:470 dbx_queue_flush flushing cache
15:51:25:470 dbx_queue_flush cache empty
15:51:25:470 LOG_SCAN filescanner thread checking plugins
15:51:26:312 HTTP entering receive module
15:51:26:312 LOG_HTTP:HTTP_send_receive GET /cgi-bin/Xffmpeg-flv-avi.desc/DLNA-PNAVI-OP00-CI1-FLAGS01700000/video/O0$3$27I62/Test.avi HTTP/1.1
Host: x.x.x.x:9000
transferMode.dlna.org: Streaming
Connection: keep-alive
15:51:26:312 http_cgi_handler - requested url /cgi-bin/Xffmpeg-flv-avi.desc/DLNA-PNAVI-OP00-CI1-FLAGS01700000/video/O0$3$27I62/Test.avi
15:51:26:313 IsTranscoded - file /var/twonkymedia/db/cache/11Kids2fTest.flv(0x0).avi exists
15:51:26:313 LOG_HTTP:HTTP_send_header HTTP/1.1 200 OK
Content-Type: video/avi
Transfer-Encoding: chunked
Date: Sat, 30 Jan 2010 14:51:26 GMT
Pragma: no-cache
Cache-control: no-cache
Last-Modified: Sat, 30 Jan 2010 14:36:14 GMT
Accept-Ranges: bytes
Connection: keep-alive
transferMode.dlna.org: Streaming
EXT:
Server: Linux/2.x.x, UPnP/1.0, pvConnect UPnP SDK/1.0
15:51:26:347 HTTP entering receive module
15:51:26:347 LOG_HTTP:HTTP_send_receive GET /cgi-bin/Xffmpeg-flv-avi.desc/DLNA-PNAVI-OP00-CI1-FLAGS01700000/video/O0$3$27I62/Test.avi HTTP/1.1
Host: x.x.x.x:9000
Range: bytes=0-
transferMode.dlna.org: Streaming
Connection: keep-alive
15:51:26:347 http_cgi_handler - requested url /cgi-bin/Xffmpeg-flv-avi.desc/DLNA-PNAVI-OP00-CI1-FLAGS01700000/video/O0$3$27I62/Test.avi
15:51:26:348 IsTranscoded - file /var/twonkymedia/db/cache/11Kids2fTest.flv(0x0).avi exists
15:51:26:348 LOG_HTTP:HTTP_send_header HTTP/1.1 406 Not Acceptable
Content-Type: text/html; charset=utf-8
Content-Length: 0
Date: Sat, 30 Jan 2010 14:51:26 GMT
Pragma: no-cache
Cache-control: no-cache
Last-Modified: Sat, 30 Jan 2010 14:36:14 GMT
Accept-Ranges: bytes
Connection: keep-alive
transferMode.dlna.org: Streaming
EXT:
Server: Linux/2.x.x, UPnP/1.0, pvConnect UPnP SDK/1.0
15:51:26:367 HTTP entering receive module
15:51:26:368 LOG_HTTP:HTTP_send_receive GET /cgi-bin/Xffmpeg-flv-avi.desc/DLNA-PNAVI-OP00-CI1-FLAGS01700000/video/O0$3$27I62/Test.avi HTTP/1.1
Host: x.x.x.x:9000
transferMode.dlna.org: Streaming
Connection: keep-alive
15:51:26:368 http_cgi_handler - requested url /cgi-bin/Xffmpeg-flv-avi.desc/DLNA-PNAVI-OP00-CI1-FLAGS01700000/video/O0$3$27I62/Test.avi
15:51:26:368 IsTranscoded - file /var/twonkymedia/db/cache/11Kids2fTest.flv(0x0).avi exists
15:51:26:368 LOG_HTTP:HTTP_send_header HTTP/1.1 200 OK
Content-Type: video/avi
Transfer-Encoding: chunked
Date: Sat, 30 Jan 2010 14:51:26 GMT
Pragma: no-cache
Cache-control: no-cache
Last-Modified: Sat, 30 Jan 2010 14:36:14 GMT
Accept-Ranges: bytes
Connection: keep-alive
transferMode.dlna.org: Streaming
EXT:
Server: Linux/2.x.x, UPnP/1.0, pvConnect UPnP SDK/1.0
[...]
Calling http://x.x.x.x:9000/cgi-bin/Xffmpeg-flv ... 2/Test.avi
from a web browser running on the same network segment than the tv plays the video fine.