# Encoding glitches

**URL:** <https://community.transloadit.com/t/encoding-glitches/17940>\
**Category:** Transloadit\
**Tags:** tender-archive\
**Created:** [June 19, 2011, 11:49am UTC](https://community.transloadit.com/t/encoding-glitches/17940 "2011-06-19T11:49:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter1](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/peter1/32/1514_2.png) [@peter1](https://community.transloadit.com/u/peter1)\
**Post date:** [June 19, 2011, 11:49am UTC](https://community.transloadit.com/t/encoding-glitches/17940/1 "2011-06-19T11:49:00Z")

</div>

> Archived from the Transloadit support forum. Originally posted on June 19, 2011; details may be outdated, see [our docs](https://transloadit.com/docs/) for current behavior. [Original thread](https://web.archive.org/web/20110621020835/http://support.transloadit.com/discussions/problems/130-encoding-glitches)

I’ve had some weird encoding glitches recently. Seems to happen most often when downsizing from HD files. Can you look into it and let me know if there is something wrong with my template?

On Assembly REDACTED it messed up the compression at 0:03 and 1:33 til the end of the video it all goes messy again. This was H264 HD using a template to convert to H264 640x360. In this case I recompressed in Quicktime to the same dimensions and then uploaded to the same template and it worked fine. The second working assembly is: REDACTED

I had the same problem on Assembly REDACTED - there’s a weird compression bug at 0:03 and from 2:39 on to the end the whole video goes messy. I tried the same method of re-compressing in quicktime to 640x360 and got even worse results: assembly REDACTED breaks up at 0:05.

We’re running this on a production server and some of our users are uploading 90 minute movies, so it would be great if we could figure out why these are going bad ASAP.  
Thanks!

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [June 19, 2011, 12:48pm UTC](https://community.transloadit.com/t/encoding-glitches/17940/2 "2011-06-19T12:48:00Z")

</div>

Hi peter,

I would love to look into this, but it seems like you deleted the result files from S3 for all the mentioned assembly id’s, is that correct?

--fg

---

<div class="post-metadata">

**Author:** ![peter1](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/peter1/32/1514_2.png) [@peter1](https://community.transloadit.com/u/peter1)\
**Post date:** [June 19, 2011, 2:03pm UTC](https://community.transloadit.com/t/encoding-glitches/17940/3 "2011-06-19T14:03:00Z")

</div>

sorry, no I automatically move all the files automatically. here are the converted files:

REDACTED  
[https://s3.amazonaws.com/distrify/clips/211/original.mp4](https://s3.amazonaws.com/distrify/clips/211/original.mp4)

REDACTED  
[https://s3.amazonaws.com/distrify/clips/220/original.mp4](https://s3.amazonaws.com/distrify/clips/220/original.mp4)

REDACTED  
[https://s3.amazonaws.com/distrify/clips/238/original.mp4](https://s3.amazonaws.com/distrify/clips/238/original.mp4)

REDACTED  
[https://s3.amazonaws.com/distrify/clips/239/original.mp4](https://s3.amazonaws.com/distrify/clips/239/original.mp4)

Thanks in advance for your help!

---

<div class="post-metadata">

**Author:** ![Felix\_Geisendorfer](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/felix_geisendorfer/32/1463_2.png) [@Felix\_Geisendorfer](https://community.transloadit.com/u/Felix_Geisendorfer)\
**Post date:** [June 19, 2011, 4:36pm UTC](https://community.transloadit.com/t/encoding-glitches/17940/4 "2011-06-19T16:36:00Z")

</div>

Hi Peter,

ok, I’m able to see the artifacts you mentioned. First a question: Why are you using the iPad preset if you are clearly targeting another dimension (640 x 480)? I guess you just want an mp4 output to play on the web right?

Another thing I noticed is that you are trying overwrite the bitrate via the ffmpeg parameter. That’s possible, but you need to set 3 options for that:

```auto
"b": "550k",
"maxrate": "550k",
"bufsize": "550k"

```

(We really need a standalone parameter for that, sorry it’s not in yet)

Anyway, without the original files I can’t actually run any tests for you. However, maybe you could try these settings and let me know how it goes for you:

```auto
"encode": {
  "robot": "/video/encode",
  "width": 640,
  "height": 480,
  "ffmpeg": {
    "vcodec": "libx264",
    "f": "mp4",
    "acodec": "libfaac",
    "ab": "96k",
    "ar": "48k",
    "threads": 3,
    "vpre": [
      "slow",
      "main"
    ],
    "r": 25,
    "b": "550k",
    "maxrate": "550k",
    "bufsize": "550k"
  }

```

We came up with these settings for MTV Europe, and they work pretty well for them. However, I don’t think there is any way to always avoid artifacts with x264. One thing worth trying so is to use the `"g"` option in ffmpeg to reduce the number of frames per keyframe down to something really low (say 10) to see if that helps. The downside of that is that you’ll get a lower overall quality, but artifacts from quick scene changes and stuff should be kept to a minimum.

--fg

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/transloadit/original/1X/04ee57da0cb7ac8728a9ac5965c288164f4ce280.svg) [@system](https://community.transloadit.com/u/system)\
**Post date:** [October 7, 2026, 9:29am UTC](https://community.transloadit.com/t/encoding-glitches/17940/5 "2026-10-07T09:29:31Z")

</div>

Closed on October 7, 2026, 9:29am UTC


