Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#7134 closed defect (invalid)

-flags2 local_header does not work when -vcodec copy

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

Description

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://127.0.0.1:63158
ffmpeg 3.4.2 

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

Change History (3)

comment:1 by Hendrik, 7 years ago

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 by Carl Eugen Hoyos, 7 years ago

Keywords: h264 added
Resolution: invalid
Status: newclosed
Version: 3.4unspecified

The option -flags2 cannot work with -vcodec copy.

comment:3 by liu xiang, 7 years ago

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.