Opened 12 years ago

Closed 12 years ago

#670 closed enhancement (invalid)

Does ffmpeg support key frame alignment when creating files for multi-bitrate streaming????

Reported by: asbro Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Does ffmpeg support key frame alignment when creating files for multi-bitrate streaming????

Change History (10)

comment:1 by Carl Eugen Hoyos, 12 years ago

Please explain what you are trying to achieve, how (provide command line and complete, uncut console output) and what makes you think it does not work.

comment:2 by asbro, 12 years ago

I didn't tried yet. I'm just asking if ffmpeg encodes one file into 2 files with diferent bitrate but key frames with exactly the same timecode values.

comment:3 by Michael Niedermayer, 12 years ago

Resolution: invalid
Status: newclosed

You can force a specific keyframe distance and disable scene change detection which would achive what you are asking for.
Or
you can use -force_key_frames to force them to be at specific places, like for example the same for all
your streams.

I thus think what you ask for is supported.
If not please reopen the ticket and clarify.

comment:4 by reimar, 12 years ago

In addition at least x264 will place the keyframes according to the first pass log file, so as long as you use the same one the keyframes will be placed identically.
If the encodes vary significantly you will probably want to run an additional pass to update the log file though (instead of only running the second pass against the existing log file) to reduce quality loss.

comment:5 by asbro, 12 years ago

thanks!

comment:6 by Nikolay, 12 years ago

How to generate multiple versions of the same video file at different bitrates that are properly key-frame aligned? Is it posible with ffmpeg?

Here is an article with example http://www.wowza.com/forums/content.php?192-Encoding-Suggestions-for-Video-on-Demand

The article says that "Multi-birate encoding has not worked using ffmpeg" is it right?

comment:7 by Nikolay, 12 years ago

Resolution: invalid
Status: closedreopened

comment:8 by Carl Eugen Hoyos, 12 years ago

If it does not work for you, please provide your failing command line (preferably not using external libraries like x264 and faac if the problem is also reproducible without using them) and complete, uncut console output.

If you just need user support (and do not want to report a problem), please consider sending a mail to ffmpeg-users, this tracker is for enhancement requests and bug reports.

comment:9 by Nikolay, 12 years ago

I just need to know, is it posible with ffmpeg. I have no bug report. Thanks.

comment:10 by Carl Eugen Hoyos, 12 years ago

Resolution: invalid
Status: reopenedclosed
Note: See TracTickets for help on using tickets.