Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#7134 closed defect (invalid)

-flags2 local_header does not work when -vcodec copy

Reported by: leeoxiang Owned by:
Priority: normal Component: avcodec
Version: unspecified Keywords: h264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug:

i want to send my h264 encoded file to another rtp system, the rtp system need sps and pps before every keyframe, when -vcodec copy i can only get the one sps and pps in the beginning.

How to reproduce:

% ffmpeg -re -fflags nobuffer -i ./guigu_1.mp4 -vcodec copy -flags2 local_header -an -f rtp -payload_type 96 rtp://
ffmpeg 3.4.2 

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (3)

comment:1 Changed 2 years ago by heleppkes

codec=copy is designed to do what its name suggests - it copies the contents of the stream from the source to the destination without modification.

comment:2 Changed 2 years ago by cehoyos

  • Keywords h264 added
  • Resolution set to invalid
  • Status changed from new to closed
  • Version changed from 3.4 to unspecified

The option -flags2 cannot work with -vcodec copy.

comment:3 Changed 2 years ago by leeoxiang

The option -flags2 cannot work with -vcodec copy, so i have to decode and encode the stream, that will waste a lots of cpu.

any other way to do what i want whout decode and encode?

Note: See TracTickets for help on using tickets.