Page 1 of 1

Transcode/Remux Canon .MOV files

PostPosted: Fri May 06, 2011 2:19 pm
by davidbr
Hi and thanks first of all for Serviio it is great. I installed it a couple of days ago and have most things working fine.

I have a Canon Ixus S95 camera which records .MOV files, which I think are Apple Quicktime Video. I have in the past been converting these to DivX which the Panasonic will play but this takes a great deal of time and wastes space with extra files. I would love to play the original files without conversion.

I have selected the Panasonic Viera profile on the Serviio screen. The TV attempts to play the .MOV file but it says “invalid file format”

I have read most of the posts in the Panasonic Forum and have read your guide on “Editing Renderer Profiles” several times but my old brain can’t get round the changes I need to make to the conf/profiles.xml file.

My equipment:
TV: Panasonic Viera TH-P42GT20
Media Server PC: Dell GX270, 2.8Ghz P4, 2GB RAM
OS: MS Server 2K3

Output from ffmpeg -i
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'mvi_1777.mov':
Duration: 00:00:27.0, start: 0.000000, bitrate: 20268 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 23.98 tb(r)
Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, stereo, 1536 kb/s

Do I need to make changes to the Panasonic Viera section in the conf/profiles.xml file? If so what?

Is my power adaptor network connection too slow and the TV is timing out?

Is my Dell Server too slow to Transcode/Remux the HD video?

Thanks for any help. :)

Re: Transcode/Remux Canon .MOV files

PostPosted: Fri May 06, 2011 3:11 pm
by zip
Try this profile:

  Code:
<Profile id="12" name="Panasonic Viera" extendsProfileId="1">
        <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PanasonicDLNAMessageBuilder</ContentDirectoryMessageBuilder>
        <SubtitlesMimeType>text/srt</SubtitlesMimeType>
        <MediaFormatProfiles>
            <MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
        </MediaFormatProfiles>
        <Transcoding>
             <!-- remux DTS/FLAC in MKV to AC3 -->
             <Video targetContainer="mpegts" targetACodec="ac3">
                <Matches container="matroska" vCodec="h264" aCodec="dca" />
                <Matches container="matroska" vCodec="h264" aCodec="flac" />
                 <Matches container="matroska" vCodec="h264" aCodec="vorbis" />
                 <Matches container="mp4" vCodec="h264" aCodec="lpcm"/>
            </Video>
            <!-- Remux all h264 video to MPEG-TS stream -->
            <Video targetContainer="mpegts">
                <Matches container="avi" vCodec="h264" />
                <Matches container="mp4" vCodec="h264" />
                <Matches container="matroska" vCodec="h264" />
             </Video>
             <Audio targetContainer="mp3"> 
                <Matches container="mp4" />
                <Matches container="flac" />
                <Matches container="ogg" />
            </Audio>
        </Transcoding>
    </Profile>

Re: Transcode/Remux Canon .MOV files

PostPosted: Fri May 06, 2011 10:05 pm
by davidbr
Hi thanks for your reply. I tried you Panasonic Vera Profile but Serviio service won't start. Checked the log and am getting:

2011-05-06 22:59:20,125 ERROR [XmlUtils] XML Profiles.xsd didn't pass validation, reason: cvc-enumeration-valid: Value 'flac' is not facet-valid with respect to enumeration '[mp3, mp2, ac3, aac, dca, wmav2, wmapro, lpcm]'. It must be a value from the enumeration.
2011-05-06 22:59:20,125 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: org.serviio.profile.ProfilesDefinitionException: Profiles XML file is not valid (according to the schema). Check the log.

Re: Transcode/Remux Canon .MOV files

PostPosted: Fri May 06, 2011 10:42 pm
by zip
Sorry, it includes some values from 0.6 ;-) try this:

  Code:
<Profile id="12" name="Panasonic Viera" extendsProfileId="1">
        <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.PanasonicDLNAMessageBuilder</ContentDirectoryMessageBuilder>
        <SubtitlesMimeType>text/srt</SubtitlesMimeType>
        <MediaFormatProfiles>
            <MediaFormatProfile mime-type="video/divx">AVI</MediaFormatProfile>
        </MediaFormatProfiles>
        <Transcoding>
             <!-- remux DTS/FLAC in MKV to AC3 -->
             <Video targetContainer="mpegts" targetACodec="ac3">
                <Matches container="matroska" vCodec="h264" aCodec="dca" />
                 <Matches container="mp4" vCodec="h264" aCodec="lpcm"/>
            </Video>
            <!-- Remux all h264 video to MPEG-TS stream -->
            <Video targetContainer="mpegts">
                <Matches container="avi" vCodec="h264" />
                <Matches container="mp4" vCodec="h264" />
                <Matches container="matroska" vCodec="h264" />
             </Video>
             <Audio targetContainer="mp3"> 
                <Matches container="mp4" />
                <Matches container="flac" />
                <Matches container="ogg" />
            </Audio>
        </Transcoding>
    </Profile>

Re: Transcode/Remux Canon .MOV files

PostPosted: Sat May 07, 2011 6:43 pm
by davidbr
Hi Petr my .MOV files are playing perfectly on the Veria now so thank you very much for that you have made my day.

I have some files from an earlier Canon which won't play so could I ask very kindly if you could me the give the changes for the following. I would be very grateful and donation will follow as I am so pleased. If I understood how you do it I would add the lines myself.

Input #0, avi, from 'mvi_0543.avi':
Metadata:
ISFT : CanonMVI06
Duration: 00:00:35.29, start: 0.000000, bitrate: 15656 kb/s
Stream #0.0: Video: mjpeg, yuvj422p, 640x480, 30 tbr, 30 tbn, 30 tbc
Stream #0.1: Audio: pcm_s16le, 44100 Hz, 1 channels, s16, 705 kb/s

Thanks for all your help. Regards.

Re: Transcode/Remux Canon .MOV files

PostPosted: Sat May 07, 2011 6:53 pm
by zip
try to add this to your profile's transcoding section (just above <audio> element

  Code:
<Video targetContainer="mpegts" targetVCodec="mpeg2video" targetACodec="ac3">            
  <Matches container="avi" vCodec="mjpeg" />
  <Matches container="mp4" vCodec="mjpeg" />
</Video>

Re: Transcode/Remux Canon .MOV files

PostPosted: Wed May 18, 2011 12:28 pm
by davidbr
Hi Petr. The .avi files from my second Canon camera are working fine now so thanks very much again for your help.

Just one little thing which Twonky server did very well. If a sub folder does not contain the file type ie. Video it would not be shown in the search on the Panny. I have a folder called "Pics" which has the downloads from my Canon .jpg's and .mov's by date order in sub folders. Twonky only showed folders which contained Video when searching. Maybe something for the next update.

Thanks again Serviio is great and I am one happy user.

Regards. :D