Wrong result from Template

Archived from the Transloadit support forum. Originally posted on October 3, 2013; details may be outdated, see our docs for current behavior. Original thread

My template:

{
"steps": {
"ogv_encode": {
"robot": "/video/encode",
"use": ":original",
"realtime": true,
"width": 670,
"height": 380,
"resize_strategy": "fit",
"result": true,
"ffmpeg": {
"vcodec": "libtheora",
"b": "1200K",
"acodec": "libvorbis",
"ab": "128K",
"ar": "44100",
"f": "ogg"
}
},
"webm_encode": {
"robot": "/video/encode",
"use": ":original",
"preset": "webm",
"realtime": true,
"width": 670,
"height": 380,
"resize_strategy": "fit",
"result": true
},
"mp4_encode": {
"robot": "/video/encode",
"use": ":original",
"preset": "ipad-high",
"realtime": true,
"width": 670,
"height": 380,
"resize_strategy": "fit",
"result": true
},
"thumbs": {
"use": "ogv_encode",
"robot": "/video/thumbs",
"count": 1,
"result": true
},
"small_thumbs": {
"robot": "/image/resize",
"width": 293,
"resize_strategy": "fit",
"result": true
}
}

1. I havn’t small_thumbs results at Assembly
2. thumbs result field have extension: videp.ogv (not video.jpg)
What I do wrong?

Hey Evgeny,

do you have the assembly id where you saw the problem?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

AssemlyID: REDACTED

Hey Evgeny,

hm this is weird. The problem is that the “thumbs” step generated .ogv files and not jpg files. Can you please try adding “use”: “ogv_encode” in your “thumbs” step and then run the assembly again?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Actually, nevermind. It is already there. I will debug this and then get back to you.

Hey Tim,
when I use:

"thumbs": {
"use": "ogv_encode",
"robot": "/video/thumbs",
"count": 1,
"result": true
},
I have got same bug.
But:
"thumbs": {
"use": "mp4_encode",
"robot": "/video/thumbs",
"count": 1,
"result": true
},

All right.

Okay, that’s weird. I am going to debug this tomorrow. This is fixed for you with this right?

Sorry again for the inconvenience.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Hey Evgeny,

can you please try again and see if it works now?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Yes it is!
With: use: ogv_encode - successful result
Thanks!

Alright cool. Closing this then!