Mute video without re-encoding

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

Hi,
I’m trying to mute a file without re-encoding.
This is the command which I run locally which works:
> ffmpeg -i input.mp4 -c copy -an -y output.mp4

I tried to convert it to this template:

"mute": {
"use": ":original",
"robot": "/video/encode",
"ffmpeg_stack": "v2.2.3",
"ffmpeg": {
"f": "mp4",
"c": "copy",
"an": true
}
}

BUT I get this error, “Filtering and streamcopy cannot be used together.”.

Is there a way to do it without re-encoding the video?

Hey Nir,

could you please post the assembly_id where this happened so that we could dive deeper?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Sure,

TemplateId : ****
AssemblyId: ****

And here is the error
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 256 kb/s (default)
Metadata:
creation_time : 2015-05-20 11:18:25
handler_name : SoundHandle
Filtergraph ‘[in] transpose=2 [out]’ was defined for video output stream 0:0 but codec copy was selected.
Filtering and streamcopy cannot be used together.
Conversion failed!

Any update on that matter?

Hey Nir,

could you please remove the “c”: “copy” from the assembly step and then try again?

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

Hi,

I changed the “c”:“copy” to “vcodec”:“copy” and now it works.
Hi highly recommend documenting it, removing the assembly id and the ticket id from this discussion and make it public would be great.

Thanks,
Nir

Okay great.

Yes, will follow your advice. Thanks!

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

All done. Closing this then.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos