FAQ  •  Register  •  Login

How to play MOV and MTS files

<<

killer

Serviio newbie

Posts: 4

Joined: Tue Mar 15, 2011 2:24 am

Post Tue Mar 15, 2011 2:49 am

How to play MOV and MTS files

Hi, my name is Flavio and I have a Samsung UN40B7000 (a "B" Series) and even with Serviio it doesn´t play MOV (Quicktime) and MTS (AVCHD) files (both of files generated from my Panasonic Lumix pocket camera). I tried to edit the "profiles.xml" but everytime that I do the program crashes. Below I post the ffmpeg -i

I hope you can help to play them, thanks

----------MTS FILE------------
C:\Program Files (x86)\Serviio\lib>ffmpeg -i "J:\Movies\HD\0teste\00005.MTS"
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 10 2011 21:46:22 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-shared --disable-ffp
lay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --arch=x86 --e
nable-runtime-cpudetect --enable-w32threads --target-os=mingw32 --cross-prefix=i
686-mingw32-
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.92. 0 / 52.92. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.72. 0 / 1.72. 0
libswscale 0.12. 0 / 0.12. 0

Seems stream 0 codec frame rate differs from container frame rate: 119.88 (12000
0/1001) -> 29.97 (30000/1001)
Input #0, mpegts, from 'J:\Movies\HD\0teste\00005.MTS':
Duration: 00:00:44.03, start: 0.369989, bitrate: 15133 kb/s
Program 1
Stream #0.0[0x1011]: Video: h264, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], 29.9
7 fps, 29.97 tbr, 90k tbn, 119.88 tbc
Stream #0.1[0x1100]: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
At least one output file must be specified


----------MOV FILE------------
C:\Program Files (x86)\Serviio\lib>ffmpeg -i "J:\Movies\HD\0teste\000P1020590.MO
V"
FFmpeg version UNKNOWN, Copyright (c) 2000-2011 the FFmpeg developers
built on Jan 10 2011 21:46:22 with gcc 4.4.2
configuration: --enable-static --disable-shared --disable-shared --disable-ffp
lay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --arch=x86 --e
nable-runtime-cpudetect --enable-w32threads --target-os=mingw32 --cross-prefix=i
686-mingw32-
libavutil 50.36. 0 / 50.36. 0
libavcore 0.16. 0 / 0.16. 0
libavcodec 52.108. 0 / 52.108. 0
libavformat 52.92. 0 / 52.92. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1.72. 0 / 1.72. 0
libswscale 0.12. 0 / 0.12. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'J:\Movies\HD\0teste\000P1020590.MOV':
Metadata:
major_brand : qt
minor_version : 537331972
compatible_brands: qt pana
creation_time : 2011-03-14 22:23:44
Duration: 00:00:16.50, start: 0.000000, bitrate: 17135 kb/s
Stream #0.0(eng): Video: mjpeg, yuvj420p, 1280x720, 16621 kb/s, 30 fps, 30 t
br, 30 tbn, 30 tbc
Metadata:
creation_time : 2011-03-14 22:23:44
Stream #0.1(eng): Audio: pcm_s16be, 16000 Hz, 2 channels, s16, 512 kb/s
Metadata:
creation_time : 2011-03-14 22:23:44
At least one output file must be specified
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17095

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Tue Mar 15, 2011 12:47 pm

Re: How to play MOV and MTS files

The mts file, I'm not sure, it looks ok. Could you post mediaInfo result of the file?

The mov will need to be transcoded, try to replace the Samsung B profile with this:

  Code:
<Profile id="2" name="Samsung TV (B-series)" extendsProfileId="1">
        <ContentDirectoryMessageBuilder>org.serviio.upnp.service.contentdirectory.SamsungDLNAMessageBuilder</ContentDirectoryMessageBuilder>
        <ResourceTransportProtocolHandler>org.serviio.upnp.protocol.http.transport.SamsungWiseLinkProtocolHandler</ResourceTransportProtocolHandler>
        <Detection>
            <UPnPSearch>
                <FriendlyName>^TV$</FriendlyName>
                <ModelName>Samsung DTV DMR</ModelName>
                <ModelNumber>1\.0</ModelNumber>
            </UPnPSearch>   
        </Detection>
        <MediaFormatProfiles>
            <MediaFormatProfile mime-type="video/x-mkv">MATROSKA</MediaFormatProfile>
        </MediaFormatProfiles>
        <Transcoding>
            <!-- transcode MKV with DST audio to AC3, remux into mpeg2ts -->
            <!-- transcode H264 MP4 files with LPCM audio -->
            <Video targetContainer="mpegts" targetACodec="ac3">
                <Matches container="matroska" vCodec="h264" aCodec="dca" />
                <Matches container="mp4" vCodec="h264" aCodec="lpcm" />
                <Matches container="avi" vCodec="h264" />
                <Matches container="flv" vCodec="h264" />
            </Video>
            <!-- transcode unsupported codec/container combinations into mpeg2ts -->
            <Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video">
                <Matches container="asf" vCodec="wmv2" />
                <Matches container="matroska" vCodec="mpeg2video" />
                <Matches container="avi" vCodec="mjpeg" />
                <Matches container="mp4" vCodec="mjpeg" />
                <Matches container="flv" />
            </Video>
            <!-- For dvr-ms files force mpeg2video transcoding to fix monotone timestamps problems-->
            <Video targetContainer="mpegts" targetACodec="ac3" forceVTranscoding="true">
                <Matches container="asf" vCodec="mpeg2video" />
            </Video>
            <Video targetContainer="mpegts">
                <Matches container="wtv" />
            </Video>
            <!-- transcode audio only for wmv with wmapro -->
            <Video targetContainer="asf" targetACodec="ac3" aBitrate="256">
                <Matches container="asf" aCodec="wmapro" />
            </Video>
            <Audio targetContainer="lpcm">
                <Matches container="asf" />
                <Matches container="mp4" />
                <Matches container="flac" />
                <Matches container="ogg" />
            </Audio>
        </Transcoding>
        <AutomaticImageRotation>true</AutomaticImageRotation>
        <LimitImageResolution>false</LimitImageResolution>
        <SubtitlesMimeType>smi/caption</SubtitlesMimeType>
    </Profile>
<<

killer

Serviio newbie

Posts: 4

Joined: Tue Mar 15, 2011 2:24 am

Post Wed Mar 16, 2011 2:55 am

Re: How to play MOV and MTS files

Thanks for the reply!!! I applied the config that you suggested and it worked to transcode MOV files! But it wasn´t clear for me what kind of transcoding it was used. I could understand that the "mp4" container will be decoded with "mjpeg" codec and after encoded with "mpeg2video" codec, am I right?

About the MTS file, the file runs only the video, but no audio. My camera record it in AVCHD Lite mode for video and AC-3 stereo for Audio. It´s kind of weird because the TV reads MKV with AC-3 audio, maybe this one is a little bit different AC-3 and the TV doesn´t recognize it to play. I think that it need to be transcoded, but I don´t know if just a little change at the header is sufficient, or if it have to be transcoded to other audio format, just to make it more "compartible" with the tv. Here is the mediainfo about this file


Video
ID : 4113 (0x1011)
Menu ID : 1 (0x1)
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : No
Format settings, ReFrames : 1 frame
Frame mode : Frame doubling
Codec ID : 27
Duration : 44s 27ms
Bit rate mode : Variable
Bit rate : 14.3 Mbps
Maximum bit rate : 16.6 Mbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 29.970 fps
Standard : NTSC
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.519
Stream size : 75.2 MiB (95%)

Audio
ID : 4352 (0x1100)
Menu ID : 1 (0x1)
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Codec ID : 129
Duration : 44s 64ms
Bit rate mode : Constant
Bit rate : 192 Kbps
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 1.01 MiB (1%)
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17095

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Wed Mar 16, 2011 9:42 am

Re: How to play MOV and MTS files

Yes, transcodes mjpeg into mpeg2video and the lpcm sound into ac3. Try adding aBitrate="256" (or 384) to the second Video config element, like this:

  Code:
<Video targetContainer="mpegts" targetACodec="ac3" targetVCodec="mpeg2video" aBitrate="256">
<<

killer

Serviio newbie

Posts: 4

Joined: Tue Mar 15, 2011 2:24 am

Post Thu Mar 17, 2011 1:19 pm

Re: How to play MOV and MTS files

Well, the MOV file is been transcoded and I can whatch it at TV, it´s ok, but about the MTS file, the audio (AC-3) is still missing when playing. I think that there is no way to solve it because Serviio knows that AC-3 is already supported by the TV so it just doesn´t do transconding, and if it does, I think that it will transcode every AC-3, even those that are in my MKV files that, today, plays flawsless without transcoding. I don´t know if I can configure Serviio to do AC-3 transcoding just for files with the ".MTS" extension in the filename, is it possible? Otherwise, I think that I have to work on these files and recode it to anything else do make it playable, thanks
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17095

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Thu Mar 17, 2011 1:23 pm

Re: How to play MOV and MTS files

You could try to add this into the profile (transcode to mpegts with ac3 to mpegts with mp3), but you'll lose 5.1 channels (will be stereo)

  Code:
<Video targetContainer="mpegts" targetACodec="mp3">
  <Matches container="mpegts" aCodec="ac3" />
</Video>
<<

killer

Serviio newbie

Posts: 4

Joined: Tue Mar 15, 2011 2:24 am

Post Thu Mar 24, 2011 7:00 pm

Re: How to play MOV and MTS files

thanks for the reply, the MOV files are running ok, and the issue about the MTS file with no audio, I decided to convert it to something else, thanks

Return to Samsung

Who is online

Users browsing this forum: No registered users and 7 guests

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