Page 1 of 1

Targeting DivX (DX50) files

PostPosted: Mon Aug 20, 2012 3:10 am
by archtaku
I want to turn on forceVTranscoding for DivX files on the profile for my Sony Blu-ray player. I checked the guide, and in the "Matches" section I saw the list of acceptable vCodec values. The only problem is that DivX files seem to match the same container and vCodec as XviD files:

Here's one that plays just fine on my Blu-ray player:

  Code:
Input #0, avi, from 'foo.avi':
  Duration: 00:24:27.13, start: 0.000000, bitrate: 1212 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 29.97 tbr, 29.97 tbn, 29.98 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb/s


And here is one that Serviio doesn't transcode, and then fails to play with an error saying that the file is corrupted:

  Code:
Input #0, avi, from 'bar.avi':
  Duration: 00:24:29.80, start: 0.000000, bitrate: 1939 kb/s
    Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 640x480 [SAR 1:1 DAR 4:3], 29.97 fps, 29.97 tbr, 29.97 tbn, 30k tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16, 128 kb/s



As you can see, both are in avi containers and show up as mpeg4. So when I set it up to force video transcoding on avi files matching vCodec "mpeg4", it ends up transcoding XviD as well, which is unnecessary as the Blu-ray player can play this codec natively.

Is there any way to specifically target DivX files?

Re: Targeting DivX (DX50) files

PostPosted: Mon Aug 20, 2012 2:22 pm
by patters
I think not at the moment, but this is desirable behaviour for a future version. I noticed that the boxes of the new generation Sony players feature an Xvid logo, but there is no DivX logo to be seen. The BDP-S370 box proudly displays the DivX one, so I can only assume that Sony have refused to pay the DivX licensing fee on current models.

Re: Targeting DivX (DX50) files

PostPosted: Mon Aug 20, 2012 2:38 pm
by archtaku
Yeah, ours even shows an XviD logo on the "display" area when playing an XviD file.

In the meantime I just created another profile which extends the Sony BDP profile, and inherits all its transcoding options, while adding the Video tag to setup transcoding of mpeg4 (Divx 5) and msmpeg4 (Divx 3) files. I just switch profiles when there is something that won't play natively. This will work fine in the meantime.

Re: Targeting DivX (DX50) files

PostPosted: Mon Aug 27, 2012 9:34 pm
by zip
patters wrote:I think not at the moment, but this is desirable behaviour for a future version. I noticed that the boxes of the new generation Sony players feature an Xvid logo, but there is no DivX logo to be seen. The BDP-S370 box proudly displays the DivX one, so I can only assume that Sony have refused to pay the DivX licensing fee on current models.

Create a ticket if it's necessary.

Re: Targeting DivX (DX50) files

PostPosted: Tue Aug 28, 2012 5:40 pm
by pagan0ne
I'm having the same issue. Ticket opened - https://bitbucket.org/xnejp03/serviio/i ... dec#submit

Re: Targeting DivX (DX50) files

PostPosted: Tue Aug 28, 2012 5:47 pm
by archtaku
pagan0ne wrote:I'm having the same issue. Ticket opened - https://bitbucket.org/xnejp03/serviio/i ... dec#submit


I don't have a bitbucket account, but while we're at it, support for DIV3 (Divx3) and whatever codec is reported for Divx4 would be nice.

Re: Targeting DivX (DX50) files

PostPosted: Tue Aug 28, 2012 6:35 pm
by pagan0ne
It took me 20 seconds to use my gmail account to login to bitbucket... with that said, im pretty sure a ticket exists on it. you may want to double check on the bitbucket site though.


Edit: Ticket is here: https://bitbucket.org/xnejp03/serviio/i ... codecs-for it was marked as resolved in 2010.
Related forum post: viewtopic.php?f=5&t=287

It is labeled as msmpeg4 for DIV3 - reference here: http://www.serviio.org/index.php?option ... icle&id=24

Re: Targeting DivX (DX50) files

PostPosted: Wed Sep 05, 2012 1:05 am
by patters
Really it would be better if individual fourCC codes could be matched, since the newer Sony firmwares from this year onwards will play Xvid but not DivX of any kind.

Re: Targeting DivX (DX50) files

PostPosted: Fri Sep 07, 2012 5:14 pm
by pagan0ne
The FourCC codes sounds like what i was trying to get at, but im not extremely knowledgeable on this. Just wanted to raise the issue to try to work toward a resolution. From my limited experience, the FourCC code is EXACTLY what would need to be matched,

Re: Targeting DivX (DX50) files

PostPosted: Thu Dec 27, 2012 12:42 am
by firefox15
Has this actually been implemented? The bug report sounds like it was implemented in 1.1 but I can't seem to get it to work. I can hardly find any documentation or examples at all on vFourCC. I have files that are detected as DX50 with ffmpeg, but when I attempt to target them, they do not transcode. Am I doing something wrong?

Transcodes :<Matches container="avi" vCodec="mpeg4" />
Doesn't transcode: <Matches container="avi" vCodec="mpeg4" vFourCC="DX50" />

ffmpeg -i output:
  Code:
C:\Users\AlexAdmin>"C:\Program Files\Serviio\lib\ffmpeg.exe" -i "D:\ServerFolder
s\TV Shows\Digimon\Tamers\- Digimon Tamers Opening.avi"
ffmpeg version N-42368-gbf53863 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 10 2012 03:40:45 with gcc 4.6.3
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffs
erver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='
-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enab
le-pthreads --target-os=mingw32 --cross-prefix=i686-w64-mingw32- --pkg-config=pk
g-config
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
[mpeg4 @ 0035C5E0] Invalid and inefficient vfw-avi packed B frames detected
Input #0, avi, from 'D:\ServerFolders\TV Shows\Digimon\Tamers\- Digimon Tamers O
pening.avi':
  Duration: 00:01:00.01, start: 0.000000, bitrate: 3257 kb/s
    Stream #0:0: Video: mpeg4 (DX50 / 0x30355844), yuv420p, 640x480 [SAR 1:1 DAR
 4:3], 23.98 fps, 23.98 tbr, 23.98 tbn, 30k tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 256 kb
/s
At least one output file must be specified

Re: Targeting DivX (DX50) files

PostPosted: Thu Dec 27, 2012 1:45 am
by firefox15
Ahh, I figured it out. The FourCC codes have to be all lowercase without spaces in the CSV list. It may be helpful to add that to the wiki for the vFourCC section since FourCC codes are normally written in caps, and that is the way ff-mpeg displays them as well.

Re: Targeting DivX (DX50) files

PostPosted: Thu Dec 27, 2012 11:05 pm
by zip
I'll fix it for the next release so that it's case insensitive.

Re: Targeting DivX (DX50) files

PostPosted: Fri Jan 11, 2013 8:02 pm
by sachiel
This was the thread which lead me to this solution: viewtopic.php?f=11&t=8799

Thanks for adding the vFourCC switch.