Page 1 of 1

Target Container mp4

PostPosted: Tue Jan 21, 2014 9:18 am
by pqvist
Hi,

I have a device without support for MPEG1/MPEG2 containers, thus I ask why the target container format is restricted to asf, mpeg, mpegts and applehttp?

FFmepeg supports encoding to quite a few containers. I am specifically looking for support of mp4 (MPEG4, MOV) as the target container. Could it be enabled for Serviio?

The device is WD TV Play. I inserted the sink fields for WD TV Play in the wiki http://wiki.serviio.org/doku.php?id=devices_format_support.

Re: Target Container mp4

PostPosted: Tue Jan 21, 2014 10:39 am
by DenyAll
Within the MP4 format critical information is written at the end of the file. Therefore the whole file needs to be written before it can be streamed - this makes it an unsuitable target format for transcoding-on-the-fly; your WD TV Play device would need to wait for the entire file to be transcoded to MP4... it would time out way before then.

Re: Target Container mp4

PostPosted: Tue Jan 21, 2014 10:50 am
by pqvist
DenyAll wrote:Within the MP4 format critical information is written at the end of the file. Therefore the whole file needs to be written before it can be streamed - this makes it an unsuitable target format for transcoding-on-the-fly; your WD TV Play device would need to wait for the entire file to be transcoded to MP4... it would time out way before then.

Thanks for your quick and informative reply!

There must be other formats that could be used since for example Youtube, Vimeo and Netfilx are successfully running on the WD TV Play. Any ideas?

Re: Target Container mp4

PostPosted: Tue Jan 21, 2014 11:44 am
by Marksuk
I use a different DLNA server that transcodes mp4 files, I use Serviio for viewing or listening to everything else.

Re: Target Container mp4

PostPosted: Tue Jan 21, 2014 11:33 pm
by DenyAll
Serviio will transcode MP4 to other formats - but afaik the only way to transcode to an MP4 container is to pre-transcode it. Some media servers will pre-transcode your movies so that they are ready to be streamed to your end device when required. Never saw the point of this (other than making it transparent to the user), (a) it creates a permanent copy of your media files chewing up HDD space. Maybe Ok when you have one renderer device but what happens when you have multiple devices... multiple copies could potentially be made of the same video file; and (b) if you want to permanently transcode your video format you're better doing it yourself - you can then decide what changes and compromises you want to make and how to best optimise it for your end device.

@pqvist:
Youtube, Vimeo and Netfilx are not performing transcoding on the fly. These files already exist on the server and are progressively downloaded and played on your device, using completely different protocols than DLNA (which is used by your TV to connect to media servers).

I am very surprised that the WDTV Play doesn't support MPEG containers. My understanding of these devices (or at least the other WD devices) is that the play almost everything. Have you tried the WDTV Live profile - this transcodes only a few (rarely encountered) video types? You should also get by just using the Generic DLNA Profile.

Re: Target Container mp4

PostPosted: Fri Jan 24, 2014 12:12 pm
by xkamuyo
I have also WDTV Play. Matroska with h264 (AVC) video ,ac3 audio and embedded text works fine for me.
VC1 video also work and aac audio.
Audio tracks is best convert Popcorn MKV audio converter in windows.

Re: Target Container mp4 and WDTV play

PostPosted: Fri Jan 24, 2014 1:08 pm
by pqvist
xkamuyo wrote:I have also WDTV Play. Matroska with h264 (AVC) video ,ac3 audio and embedded text works fine for me.
VC1 video also work and aac audio.
Audio tracks is best convert Popcorn MKV audio converter in windows.


Thanks for your reply! I don´t have any problems playing files from my NAS. It plays most of them (except DTS and MPEG2 Video) without transcoding or changing container format.

My issue is related to VoD- and Live-streams from TV-channels streaming services where I use and write Serviio plugins to be able to distribute them to my devices such as PS3 and XBOX360 - works perfect, but with WDTV Play have I not been able to view one single stream.

Have you tried any internet streams with Serviio and WDTV Play?

Re: Target Container mp4

PostPosted: Sun Jan 26, 2014 6:18 pm
by xkamuyo
Mezzmo use mpegts,h264 and ac3, but this not work for serviio?

Lähetetty minun GT-P5100 laitteesta Tapatalkilla

Re: Target Container mp4

PostPosted: Sun Jan 26, 2014 6:26 pm
by xkamuyo
I send for admin wdtv play results for upnp spy, hope that we get own profile

Re: Target Container mp4

PostPosted: Sun Jan 26, 2014 7:09 pm
by pqvist
xkamuyo wrote:I send for admin wdtv play results for upnp spy, hope that we get own profile

Great. I uploaded the WDTV Play sink fileds to the wiki http://wiki.serviio.org/doku.php?id=dev ... at_support

Re: Target Container mp4

PostPosted: Mon Jan 27, 2014 6:22 am
by xkamuyo
I put it here. Result of wdtv play upnp spy. I hope that someone do profile that device.

Re: Target Container mp4

PostPosted: Mon Jan 27, 2014 7:10 am
by pqvist
xkamuyo wrote:I put it here. Result of wdtv play upnp spy. I hope that someone do profile that device.

I don't think that it will happen without changes in the supported container formats in Serviio.

Re: Target Container mp4

PostPosted: Mon Jan 27, 2014 10:48 am
by xkamuyo
Do you try asf packet with wmv2 and wmav2?

Re: Target Container mp4

PostPosted: Mon Jan 27, 2014 11:51 am
by pqvist
xkamuyo wrote:Do you try asf packet with wmv2 and wmav2?

Yes