Mute video without re-encoding

Started by Nir_Altmark7 replies32 views
Nir_AltmarkOriginal post
#1

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?

tim-kos
#2

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

Nir_Altmark
#3

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!

Nir_Altmark
#4

Any update on that matter?

tim-kos
#5

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

Nir_Altmark
#6

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

tim-kos
#7

Okay great.

Yes, will follow your advice. Thanks!

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos

tim-kos
#8

All done. Closing this then.

Kind regards,
Tim

Co-Founder Transloadit
@tim_kos