[FFmpeg-user] Copy GOP structure

Moritz Barsnick barsnick at gmx.net
Sat Oct 10 13:08:28 CEST 2015


On Sat, Oct 10, 2015 at 17:15:41 +0800, Steven Liu wrote:
> 2015-10-08 3:55 GMT+08:00 Reuben Martin <reuben.m at gmail.com>:
> > Is there any way to transcode an h264 stream, but retain the frame type and
> > GOP structure of the origional?

> you can try this command line
> ffmpeg -i rtmp://xxx.xxx.xxx.xxx/live/stream -c copy -f flv output.flv
> ffmpeg -i rtmp://xxx.xxx.xxx.xxx/live/stream -c:v copy -f mp4 output.mp4
> ffmpeg -i rtmp://xxx.xxx.xxx.xxx/live/stream -vcodec copy -f mpegts output.ts

None of those command lines fulfills the original poster's wish to
transcode.

Moritz


More information about the ffmpeg-user mailing list