Page 1 of 1

s390 and avi files

PostPosted: Thu Sep 20, 2012 5:54 pm
by nagyg
I just got a SONY S390 and cannot get avi files to play via SERVIIO. The show as MPEG files, but i get "the file is corrupt or not supported" error. I have tried FourCC changer and DivFix, but to no avail. I have a huge AVI film collection, what can I do to get them to play?

Re: s390 and avi files

PostPosted: Thu Sep 20, 2012 6:37 pm
by Illico
What is your region US, UK,etc ?

Re: s390 and avi files

PostPosted: Thu Sep 20, 2012 7:08 pm
by nagyg
US

Re: s390 and avi files

PostPosted: Fri Sep 21, 2012 8:50 am
by Illico
US models does not support AVI/DIVX/MKV format.

viewtopic.php?f=11&t=2004

Re: s390 and avi files

PostPosted: Fri Sep 21, 2012 11:44 am
by nagyg
what a bummer!! Thanks for letting me know ...

Re: s390 and avi files

PostPosted: Tue Oct 02, 2012 9:07 pm
by patters
Can you try deleting this line from the Sony BDP/SMP section of profiles.xml:
  Code:
<MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVI</MediaFormatProfile>


Then restart Serviio and see if AVI playback works? I only have a UK model of 2012 BDP to test on, so to get some testing on a US model would be very useful. If it works, it's very likely that only AVIs which use the XVid codec will work, whereas DivX ones won't (this is the case with the European players).

Re: s390 and avi files

PostPosted: Fri Oct 05, 2012 1:48 am
by jakev383
I also have the US region BDP-S390, and experienced errors when playing AVI files. I made the following changes to the /opt/serviio/config/profiles.xml file:

# diff profiles.xml orig_profiles.xml
701c701
< <MediaFormatProfile mime-type="video/mpeg">MATROSKA</MediaFormatProfile>
---
> <MediaFormatProfile mime-type="video/divx">MATROSKA</MediaFormatProfile>
704c704
< <!-- <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVI</MediaFormatProfile> -->
---
> <MediaFormatProfile mime-type="video/mpeg" name="MPEG_PS_PAL,MPEG_PS_NTSC">AVI</MediaFormatProfile>

(for those not familiar with diff, I changed the video/mpeg to video/divx on line 701, and commented out line 704 as advised above).

I no longer have issues playing AVI files stored on my file server.
Thanks!

(edit)
Here are the details of the AVI file I was trying to watch, which was previously giving me an unsupported error:

Metadata:
encoder : VirtualDubMod 1.5.10.2 (build 2540/release)
Duration: 01:35:13.36, start: 0.000000, bitrate: 1036 kb/s
Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 704x288 [SAR 1:1 DAR 22:9], 25 tbr, 25 tbn, 25 tbc
Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 32 kb/s

Re: s390 and avi files

PostPosted: Sun Oct 07, 2012 6:15 pm
by patters
That's useful thanks. The problem we have is that there doesn't seem to be a way to automatically identify whether a player is running US or European firmware. So going forward we'll have to make a separate US profile that will need manually selecting in the dropdown.
Can you confirm whether your modification above works ok for Matroska files?

Re: s390 and avi files

PostPosted: Tue Oct 09, 2012 5:53 am
by sloMoses
patters wrote:Can you confirm whether your modification above works ok for Matroska files?


I have a US version BDP-S390. It has the 7/20/2012 M11.R.0422 firmware. Using Serviio over DLNA, this player was not playing any AVI files that I tried ("use" and "description" fourcc of XVID on all I tried). It was not playing mkv files, either. All files play without issue from a USB drive.

I made modifications to profiles.xml according to the diff supplied by jakev383 (changed video/divx to video/mpeg on line 701 and also commented out the referenced AVI line 704).

The player now plays the XVID AVI files and I can confirm that it now plays mkv files (at least the few mkv files that I have).

Thanks to jakev383 for posting the diff output and to Serviio developers/maintainers for providing the software.

Re: s390 and avi files

PostPosted: Tue Oct 09, 2012 6:57 am
by Illico
sloMoses wrote:I made modifications to profiles.xml according to the diff supplied by jakev383 (changed video/divx to video/mpeg on line 701 and also commented out the referenced AVI line 704).
The player now plays the XVID AVI files and I can confirm that it now plays mkv files (at least the few mkv files that I have).

So for the next release, with new fourcc matcher option, we could create specific US BDP profile. Patters could you follow this for the next beta version?
https://bitbucket.org/xnejp03/serviio/i ... for-fourcc

Re: s390 and avi files

PostPosted: Wed Oct 10, 2012 12:56 am
by patters
Yep will do.

Re: s390 and avi files

PostPosted: Wed Oct 10, 2012 12:44 pm
by zip
Is it not just mime-type change, rather that transcoding matching?

Re: s390 and avi files

PostPosted: Sun Oct 28, 2012 11:55 am
by patters
The newer ones only play Xvid natively (not DivX) so we want to transcode all MPEG4-ASP fourCCs to MPEG2 except Xvid. Same for new Bravias I think. Would be great if we could use FFmpeg to spoof the FourCC then I think they'd just play. After all, it doesn't take long to copy a 700MB file to Serviio's temp folder before playback starts.