--starttime option fails to seek AVCHD movies and produces garbage at beginning

Bug #651981 reported by Golffies
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ffmpeg2theora
New
Undecided
Unassigned

Bug Description

When encoding with option --starttime, risk is high that frame available in source movie at the targeted position won't be a key frame, but rather a predicted frame. In case source movie is an AVCHD 1080i stream (file extension 'm2ts' or 'mts'), OGV file displays a scrambled picture over a couple of frames, at the very beginning, when created with -s option. Likely, ffmep2theora starts working from AVCHD B-frames, not I-frame. A few frames later, Theora picture gets rebuilt rightly. May such a behaviour be a consequence of a lack of IDR I-frames in the AVCHD stream delivered by the camcorder (here a Canon) ? A screenshot taken from the flawed OGV file is attached to the bug report.

Test environment:
OS.X 10.5.8
ffmpeg2theora 0.27
Quicktime 7.6.6 + Perian 1.2.1
VLC 1.0.3

Revision history for this message
Golffies (golffies) wrote :
summary: - --starttime option produce garbage at beginning
+ --starttime option produces garbage at beginning
Revision history for this message
Golffies (golffies) wrote : Re: --starttime option produces garbage at beginning

I forgot to report that ffmpeg2theora fails to seek the AVCHD file to the position targeted by --starttime option, but starts encoding from the beginning of the AVCHD source file, delivering scrambled frames at the beginning of ogv file. Such a behaviour seems constant with AVCHD files used as input, whatever the value given to --starttime option might have been.

summary: - --starttime option produces garbage at beginning
+ --starttime option fails to seek AVCHD movies and produces garbage at
+ beginning
Revision history for this message
j^ (j) wrote :

can you provide the output of ffmpeg2theora, mostly i would want to know what the Duration: *, start: *, values are.
can you also try http://firefogg.org/nightly/ffmpeg2theora.macosx to check if that still has that problem.

Revision history for this message
Golffies (golffies) wrote :

This is a 34 minutes AVCHD movie, encoded to Theora with option -s targeting starting point at 474th second. Here are the line you are interested in:

Duration: 00:34:06.69, start: 681.940033, bitrate: 23998 kb/s

Full output message is attached.

In case it might be usefull, this is the command sent to ffmpeg2theora:

ffmpeg2theora --cropbottom 216 --cropright 384 -p videobin --pp tn:3 --optimize --speedlevel 0 --two-pass --seek-index -o test_short.ogv test_part1.m2ts -s 474 -e 500

Revision history for this message
Golffies (golffies) wrote :

The nightly build behaves exactly in the same way.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.