<p>You wanted to resize your video (<code>-vf scale="480:-1"</code>), and at the same time you wanted don't to use a video codec for encoding such resized video (<code>-vcodec copy</code>).</p>

<p>It's impssible — video codec <code>copy</code> means no decoding, no encoding, no filtering - simply <em>copying without any change.</em> It is not a real codec.</p>

<p>Try omitting <code>-vcodec copy</code> to enable FFmpeg to choose an appropriate codec.</p>

CC BY-SA 4.0
2019-08-25T21:47:57.110Z
OK thanks. Based on your comments, I was able to resize and to live stream using:
ffmpeg -re -i this.mp4 -vf scale="480:-1" -movflags faststart -f mpegts tcp://192.168.1.82:1235?listen
moster67
CC BY-SA 4.0
2019-08-24T22:34:27.543Z
2019-08-27T18:31:57.870Z
2019-08-27T18:31:57.870Z
MarianD
<p>My server uses this command to stream a video (1280x544):</p>

<pre><code>ffmpeg -re -i c:\ffmpeg\This.mp4 -vcodec copy -acodec copy -movflags faststart -f mpegts tcp://192.168.1.82:1234?listen
</code></pre>

<p>Now, I would like to reduce the original resolution while streaming. I tried this:</p>

<pre><code>ffmpeg -re -y -i this.mp4 -vf scale="480:-1" this480.mp4 -vcodec copy -acodec copy -movflags faststart -f mpegts tcp://192.168.1.82:1235?listen
</code></pre>

<p>but the resolution does not change.</p>

<p>Can this be done or I am asking the impossible? Thanks.</p>

<ffmpeg><streaming>
Resize video while live streaming with ffmpeg
moster67
# Resize video while live streaming with ffmpeg

(Asked by: username_0 on 2019-08-24)

My server uses this command to stream a video (1280x544):
ffmpeg -re -i c:\ffmpeg\This.mp4 -vcodec copy -acodec copy -movflags faststart -f mpegts tcp://192.168.1.82:1234?listen

Now, I would like to reduce the original resolution while streaming. I tried this:
ffmpeg -re -y -i this.mp4 -vf scale="480:-1" this480.mp4 -vcodec copy -acodec copy -movflags faststart -f mpegts tcp://192.168.1.82:1235?listen

but the resolution does not change.
Can this be done or I am asking the impossible? Thanks.

**Tags:** ffmpeg, streaming


---

## 1 answers

### Answer by username_1 on 2019-08-24. Score: 2 | Accepted answer

You wanted to resize your video (`-vf scale="480:-1"`), and at the same time you wanted don't to use a video codec for encoding such resized video (`-vcodec copy`).

It's impssible — video codec `copy` means no decoding, no encoding, no filtering - simply *copying without any change.* It is not a real codec.

Try omitting `-vcodec copy` to enable FFmpeg to choose an appropriate codec.

> **Comments:**
> **username_0**: OK thanks. Based on your comments, I was able to resize and to live stream using: ffmpeg -re -i this.mp4 -vf scale="480:-1" -movflags faststart -f mpegts tcp://192.168.1.82:1235?listen  

---

