[FFmpeg-user] Copy GOP structure
Steven Liu
lingjiujianke at gmail.com
Sat Oct 10 11:15:41 CEST 2015
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? Preferably in real time with a live stream
> without haveing to dump the frame data to a file or some other type or
> pre-pass analysis.
>
you can try this command line
ffmpeg -i rtmp://xxx.xxx.xxx.xxx/live/stream -c copy -f flv output.flv
or
ffmpeg -i rtmp://xxx.xxx.xxx.xxx/live/stream -c:v copy -f mp4 output.mp4
or
ffmpeg -i rtmp://xxx.xxx.xxx.xxx/live/stream -vcodec copy -f mpegts
output.ts
More information about the ffmpeg-user
mailing list