Page 1 of 1
Purple Pixels - MJPEG Transcoding

Posted:
Sun Aug 04, 2013 2:28 pm
by steveb23
Hi all,
I have some old Avi's that are of MJPEG format from a Canon and Fujufilm digital camera. Everytime I try to play these on my 2011 Panasonic E50 all I get is a jumbled screen of purpleish pixels.
I know the panasonic doesn't support MJPEG and that transcoding is required. I've looked at the transcoded (.STF file) and played it through VLC and its fine, so I think FFMPEG is doing its stuff correctly.
Not sure where to turn next to try and make this work?
Here is the FFMEG test:
Input #0, avi, from 'c:\temp\test1.avi':
Duration: 00:00:34.00, start: 0.000000, bitrate: 1266 kb/s
Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p, 320x240, 10 tbr, 10
tbn, 10 tbc
Metadata:
title : FUJIFILM AVI STREAM 0100
Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 8000 Hz, mono, u8, 64 kb/s
Re: Purple Pixels - MJPEG Transcoding

Posted:
Sun Aug 04, 2013 3:17 pm
by Illico
I have the same problem with my old Canon Ixus video MJPEG/PCM_U8
I think its a ffmpeg issue, not serviio. You have to post on ffmpeg support forum.
Re: Purple Pixels - MJPEG Transcoding

Posted:
Tue Aug 13, 2013 2:52 pm
by peatlinch
I have the same issue while streaming MJPG encoded avi files from Serviio. Via Windows Media the file is streamed accurately. Is any progress made with this issue? My end client renderer is the Panasonic DMP-BDT 220 Blu-ray.
Re: Purple Pixels - MJPEG Transcoding

Posted:
Tue Aug 13, 2013 3:30 pm
by zip
Did you try with 1.3? If it still doesn't work, try the latest FFmpeg
Re: Purple Pixels - MJPEG Transcoding

Posted:
Tue Aug 13, 2013 5:27 pm
by peatlinch
I am using serviio 1.3. What is the latest FFMPEG build - 2.01? Just stick the updated binary in serviio bin or run some sort of executable? Its a windows 7 box.
Re: Purple Pixels - MJPEG Transcoding

Posted:
Tue Aug 13, 2013 7:39 pm
by zip
Get the latest static binary from zeranoe and stick it into Serviio's lib folder (to overwrite the original)
Re: Purple Pixels - MJPEG Transcoding

Posted:
Wed Aug 14, 2013 11:25 pm
by peatlinch
Got the latest Stable binary from FFMPEG to use in Serviio. Still no change in how the video is rendering on screen. With windows media as the streamer the avi plays fine. It's a 4:3 aspect ratio file and it appears that serviio is trying to play it 16:9 - not sure if that has anything to do with the jumbled video. The audio plays fine. I logged some of the request for this file to see what it got me:
- Code:
2013-08-14 00:01:52,138 DEBUG [ServiioHttpService] Incoming request from /192.168.0.109:4713: GET /resource/2280/MEDIA_ITEM/MPEG_TS_SD_NA_ISO-0/ORIGINAL HTTP/1.1, headers = [TimeSeekRange.dlna.org: npt=0.000-,HOST: 192.168.0.102:8895,transferMode.dlna.org: Streaming,getcontentFeatures.dlna.org: 1]]
2013-08-14 00:01:52,138 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.109
2013-08-14 00:01:52,139 DEBUG [RendererDAOImpl] Reading a Renderer with ip address 192.168.0.109
2013-08-14 00:01:52,140 DEBUG [ResourceDeliveryProcessor] Resource request accepted. Using client 'Identifier=192.168.0.109, Profile=Panasonic BD player'
2013-08-14 00:01:52,140 DEBUG [ResourceDeliveryProcessor] Request for resource 2280 and type 'MEDIA_ITEM' received
2013-08-14 00:01:52,140 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 2280 (local)
2013-08-14 00:01:52,140 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 2280)
2013-08-14 00:01:52,141 DEBUG [VideoDAOImpl] Reading a Video (id = 2280)
2013-08-14 00:01:52,142 DEBUG [VideoDeliveryEngine] Retrieving resource information for item 2280, format MPEG_TS_SD_NA_ISO and profile Panasonic BD player
2013-08-14 00:01:52,142 DEBUG [AbstractTranscodingDeliveryEngine] Getting media info for transcoded version of file MVI_7262.AVI
2013-08-14 00:01:52,142 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MVI_7262.AVI: MPEG_TS_SD_EU_ISO
2013-08-14 00:01:52,142 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MVI_7262.AVI: MPEG_TS_SD_NA_ISO
2013-08-14 00:01:52,142 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MVI_7262.AVI: MPEG_TS_SD_KO_ISO
2013-08-14 00:01:52,142 DEBUG [MediaResourceRetrievalStrategy] Getting information about media item 2280 (local)
2013-08-14 00:01:52,143 DEBUG [MediaItemDAOImpl] Reading a MediaItem (id = 2280)
2013-08-14 00:01:52,144 DEBUG [VideoDAOImpl] Reading a Video (id = 2280)
2013-08-14 00:01:52,145 DEBUG [VideoDeliveryEngine] Delivering item '2280' for client 'Identifier=192.168.0.109, Profile=Panasonic BD player'
2013-08-14 00:01:52,145 DEBUG [VideoDeliveryEngine] Delivering file 'MVI_7262.AVI' using transcoding
2013-08-14 00:01:52,145 DEBUG [AbstractTranscodingDeliveryEngine] A suitable transcoding job already exists, re-use it for client 'Identifier=192.168.0.109, Profile=Panasonic BD player'
2013-08-14 00:01:52,145 DEBUG [FileBasedTranscodingDeliveryStrategy] Transcoded file 'C:\Windows\TEMP\Serviio\transcoding-temp-2280-panasonicBDT220-ORIGINAL.stf' is complete, sending simple stream
2013-08-14 00:01:52,146 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MVI_7262.AVI: MPEG_TS_SD_EU_ISO
2013-08-14 00:01:52,146 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MVI_7262.AVI: MPEG_TS_SD_NA_ISO
2013-08-14 00:01:52,146 DEBUG [VideoDeliveryEngine] Found Format profile for transcoded file MVI_7262.AVI: MPEG_TS_SD_KO_ISO
2013-08-14 00:01:52,146 DEBUG [MediaItemDAOImpl] Marking MediaItem (id = 2280) as read
2013-08-14 00:01:52,149 DEBUG [LocalContentCacheDecorator] Cleared cache (local_resetafterplay)
2013-08-14 00:01:52,150 DEBUG [GETMethodProcessor] Stream entity has length: 44213840
2013-08-14 00:01:52,150 DEBUG [ResourceTransportRequestHandler] Creating entity with chunked transfer
2013-08-14 00:01:52,150 DEBUG [ResourceTransportRequestHandler] HTTP/1.1 200 OK, headers = [[Content-Type: video/mpeg,Date: Wed, 14 Aug 2013 04:01:52 GMT,Server: Windows 7, UPnP/1.0 DLNADOC/1.50, Serviio/1.3,Cache-control: no-cache,TimeSeekRange.dlna.org: npt=0-25/25,contentFeatures.dlna.org: DLNA.ORG_PN=MPEG_TS_SD_NA_ISO;DLNA.ORG_OP=10;DLNA.ORG_CI=1;DLNA.ORG_FLAGS=01500000000000000000000000000000,transferMode.dlna.org: Streaming,realTimeInfo.dlna.org: DLNA.ORG_TLAG=*]]
Re: Purple Pixels - MJPEG Transcoding

Posted:
Thu Aug 15, 2013 11:43 pm
by zip
I've created FFmpeg ticket, let's see:
https://trac.ffmpeg.org/ticket/2870
Re: Purple Pixels - MJPEG Transcoding

Posted:
Sat Nov 30, 2013 1:37 pm
by mihai
Great to know that "-pix_fmt yuv420p" fixes it! Thanks for pursing it through the ffmpeg ticket.
How do we pass this switch from Serviio?
Re: Purple Pixels - MJPEG Transcoding

Posted:
Sat Nov 30, 2013 4:59 pm
by Illico
This will be available in the next 1.4 version (in few weeks for Chrmx).
Re: Purple Pixels - MJPEG Transcoding

Posted:
Sun Dec 01, 2013 5:58 pm
by mihai
Cool!