Jump to content

XVID videos transcoding broken


japzone
Go to solution Solved by Waldonnis,

Recommended Posts

japzone

I have an old show encoded in XVID inside AVI containers. When I DirectPlay them on a device that supports AVI/XVID, they play fine, but if transcoding kicks in then the video turns into a garbled pixelated mess with tons of macroblocking. The audio sounds fine.

 

This happens on all devices when transcoding.

5b32fbd778021_2018062622_43_58ZoidsGenes

 

Here are the transcoding logs:

ffmpeg-transcode-13c2ec0e-ff80-4827-b534-fd0bcc046eea.txt

ffmpeg-transcode-fc23c1d9-8a80-4821-b2ec-1c32e92785c8.txt

Media Info for the file:

Format                      : AVI
Format/Info                 : Audio Video Interleave
File size                   : 232 MiB
Duration                    : 24 min 42 s
Overall bit rate            : 1 311 kb/s
Writing library             : VirtualDub build 13720/release

Video
ID                          : 0
Format                      : MPEG-4 Visual
Format profile              : Advanced Simple@L5
Format settings             : BVOP2 / GMC3
Format settings, BVOP       : 2
Format settings, QPel       : No
Format settings, GMC        : 3 warppoints
Format settings, Matrix     : Default (H.263)
Muxing mode                 : Packed bitstream
Codec ID                    : XVID
Codec ID/Hint               : XviD
Duration                    : 24 min 42 s
Bit rate                    : 1 173 kb/s
Width                       : 640 pixels
Height                      : 480 pixels
Display aspect ratio        : 4:3
Frame rate                  : 23.976 (23976/1000) FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Compression mode            : Lossy
Bits/(Pixel*Frame)          : 0.159
Stream size                 : 207 MiB (90%)
Writing library             : XviD 1.0.2 (UTC 2004-08-29)

Audio
ID                          : 1
Format                      : MPEG Audio
Format version              : Version 1
Format profile              : Layer 3
Format settings             : Joint stereo / MS Stereo
Mode                        : Joint stereo
Mode extension              : MS Stereo
Codec ID                    : 55
Codec ID/Hint               : MP3
Duration                    : 24 min 42 s
Bit rate mode               : Constant
Bit rate                    : 128 kb/s
Channel(s)                  : 2 channels
Sampling rate               : 48.0 kHz
Compression mode            : Lossy
Delay relative to video     : 3 s 3 ms
Stream size                 : 22.6 MiB (10%)
Alignment                   : Split accross interleaves
Interleave, duration        : 42  ms (1.00 video frame)
Interleave, preload duratio : 500  ms
Writing library             : LAME3.95
Edited by japzone
Link to comment
Share on other sites

japzone

Update:
Managed to find another old XVID in my collection. Strangely, this one transcodes fine.

Transcode log:
ffmpeg-transcode-6db0edac-8559-4e04-afc0-e93143eb0e7a.txt

 

Media Info:
 

Format                      : AVI
Format/Info                 : Audio Video Interleave
File size                   : 659 MiB
Duration                    : 1 h 21 min
Overall bit rate            : 1 130 kb/s
Writing application         : MEncoder 1.0rc1-3.4.2
Writing library             : MPlayer

Video
ID                          : 0
Format                      : MPEG-4 Visual
Format profile              : Simple@L1
Format settings, BVOP       : No
Format settings, QPel       : No
Format settings, GMC        : No warppoints
Format settings, Matrix     : Default (H.263)
Codec ID                    : XVID
Codec ID/Hint               : XviD
Duration                    : 1 h 21 min
Bit rate                    : 989 kb/s
Width                       : 640 pixels
Height                      : 352 pixels
Display aspect ratio        : 16:9
Frame rate                  : 23.976 (24000/1001) FPS
Color space                 : YUV
Chroma subsampling          : 4:2:0
Bit depth                   : 8 bits
Scan type                   : Progressive
Compression mode            : Lossy
Bits/(Pixel*Frame)          : 0.183
Stream size                 : 577 MiB (88%)
Writing library             : Lavc51.21.0

Audio
ID                          : 1
Format                      : MPEG Audio
Format version              : Version 1
Format profile              : Layer 3
Format settings             : Joint stereo / MS Stereo
Mode                        : Joint stereo
Mode extension              : MS Stereo
Codec ID                    : 55
Codec ID/Hint               : MP3
Duration                    : 1 h 21 min
Bit rate mode               : Constant
Bit rate                    : 128 kb/s
Channel(s)                  : 2 channels
Sampling rate               : 48.0 kHz
Compression mode            : Lossy
Stream size                 : 74.6 MiB (11%)
Alignment                   : Aligned on interleaves
Interleave, duration        : 24  ms (0.58 video frame)
Interleave, preload duratio : 504  ms
Writing library             : LAME3.96.1
Link to comment
Share on other sites

Try turning off cuvid, it may have just had a problem with that one particular file. Thanks.

Link to comment
Share on other sites

japzone

Try turning off cuvid, it may have just had a problem with that one particular file. Thanks.

By cuvid do you mean Hardware Acceleration? I tried disabling hardware decoding for MPEG4 files and that seemed to fix the issue, but I don't want to disable hardware decoding for all my files since my GPU picking up slack for my CPU is important for my hardware setup. Is there anyway to solve this? Or at least disable Hardware Acceleration just for these files?

Link to comment
Share on other sites

You could try using our new convert feature so that you can convert them to h264. otherwise these hardware decoders and encoders are not perfect yet, that's why we call the feature expiremental.

Link to comment
Share on other sites

  • Solution
Waldonnis

mpeg4/DivX shouldn't be too hard for a modern CPU to decode, so you can probably leave hardware decoding for mpeg4 off and testing transcoding a few files to see if you can live with the load.  From past troubleshooting, I've seen issues with nVidia's mpeg4 decoder before, so it doesn't surprise me that it's having issues here.

 

I also concur with Luke that converting the problematic files may end up being the best solution in the long run (either using the convert feature in Emby or something like Handbrake)....h.264 is far better supported by playback devices these days, and I haven't seem the same problems from nVidia's h.264 hardware decoder.

  • Like 1
Link to comment
Share on other sites

japzone

I guess I'll go with converting them then, since only the one show is giving me issues, though it is 50 episodes long. :P

Edited by japzone
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...