7
1
Does anyone have an idea of how I can put an image mask over the video without changing the audio & video codec?
I'm making different media files for testing purposes and I want control over my audio and video codecs used in a A/V container, now I need to put an image mask over a A/V file, without changing the audio and video codec.
When using ffmpeg -i video.avi -i image.png -filter_complex 'overlay' avi.mkv
I can add -acodec copy
but not -vcodec copy
, this gives the error:
Streamcopy requested for output streaam 0:0, which is fed from a complex filtergraph. Filtering and streamcopy cannot be used together.
And when just using the above command FFmpeg encodes my streams to another format (MPEG-4 & MP3)
3However, this seems like bad architecture. E.g. what if I want to do a "setpts=2*PTS" filter to slow down the video. That should be able to run with only demuxing and muxing and should not require transcoding! (Because it's not accessing the pixel data, just the frame metadatas). – AlcubierreDrive – 2013-06-16T00:25:31.177
3
@EvolvedAI That's a good point, and ffmpeg has support for bit stream filters that can be used with stream copying. I suspect this is just a case of nobody has got around to writing a bit stream filter that does this, because it's a fairly niche use of ffmpeg, and outside of the tool's main purpose. Maybe you should raise this on the ffmpeg-users mailing list, and/or file a request on their bug tracker.
– evilsoup – 2013-06-16T09:31:31.540