Archived from the Transloadit support forum. Originally posted on July 31, 2011; details may be outdated, see our docs for current behavior. Original thread
Hey Guys,
I have a template with audio and video encoding steps (id: REDACTED if you wanna look into it) which now fails to execute as soon as I try to upload video files since apparently transloadit tries to pass them into the audio-robot, see https://transloadit.com/assemblies/view/REDACTED for details.
The audio robot accepts audio and videos because both contain audio. You can probably make the audio encoding for videos work by providing a “vn: true” option to ffmpeg.
Well, it’s just that I want to leave the audiotrack of my videos untouched while reencoding all pure-audio-files. -vn would strip the video track, which is not what I want to acchieve.
Is there any way to make the audio-robot accept only pure audio files?
We currently can’t make the audio robot only accept audio files, a bunch of customers depend on the fact that video files are also accepted.
So your only option is to also encode an audio version of all uploaded videos by using the vn: true option in the audio robots. The video steps themselves will still do the regular video encoding for videos.
OK, I think we can live with that, we may just ignore the encoded audio-streams of the videos in the resultset.
Howerver there still remains a problem, if an uploaded video file does not contain an audiostream. ffmpeg then fails with an error like
Output file #0 does not contain any stream
Having a “type” or “accept” parameter that would allow you to limit the audio bot to only accept audio would be really useful. Otherwise you can’t make a template that handles any file type correctly.
Having a “type” or “accept” parameter that would allow you to limit the audio bot to only accept audio would be really useful. Otherwise you can’t make a template that handles any file type correctly.