Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#7294 closed defect (invalid)

FFmpeg copy NOT OK; FFmpeg x264 transcoding OK

Reported by: barhom Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no


Summary of the bug:

I came across a live channel (multicat.ts) which is recorded from satellite.
When trying to copy the stream with ffmpeg it fails.
When trying to transcode the stream with ffmpeg it succeeds.

How to reproduce:
Download the file and unpack it.
Inside the folderm the original file is called 'multicat.ts'.
Run the bash script "" to produce a copy of the file named 'copy.ts' (the bad file)
Run the bash script "" to produce a transcoded variant of the file named "transcoded.ts" (the good file)

Expected behaviour:
The bash script should produce a file in similar size to the original multicat.ts file and be playable with video players.

File can be downloaded here:

Change History (4)

comment:1 by barhom, 5 years ago

Version: unspecifiedgit-master

comment:2 by Carl Eugen Hoyos, 5 years ago

Component: ffmpegundetermined

Please test current FFmpeg git head, provide the command line you tested together with the complete, uncut console output here in the ticket and upload the input file to your favorite file hoster, posting a link here.

comment:3 by mkver, 5 years ago

Resolution: invalid
Status: newclosed

The problem is that the H.264 track in this file doesn't contain any frames that ffmpeg detects as keyframes: Zero IDR frames and zero frames with recovery point SEI.
You can use the -copyinkf switch (intended to copy initial non-keyframes) as a workaround.

comment:4 by barhom, 5 years ago

This means that it is impossible to segment the original h264 track since it does not contain any IDR frames?

I would like to HLS segment this original h264 source by copying the stream instead of transcoding but I see no method of doing that.

Note: See TracTickets for help on using tickets.