Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use byte seeking when time to seek is given in percentage #77

Open
GoogleCodeExporter opened this issue Mar 15, 2015 · 6 comments
Open

Comments

@GoogleCodeExporter
Copy link

The default seeking method in ffmpegthumbnailer-2.0.6 (linked against 
ffmpeg-0.6) is always failing with my MPEG2-TS files and the first frame is 
used instead:

> ffmpegthumbnailer -t 30 -i video.ts -o thumb.jpg
[mpeg2video @ 0x822d8f0]mpeg_decode_postinit() failure
[mpegts @ 0x82292a0]max_analyze_duration reached
[NULL @ 0x822e890]start time is not set in av_estimate_timings_from_pts
[NULL @ 0x822f060]start time is not set in av_estimate_timings_from_pts
Seeking in video failed, will use first frame
[mpeg2video @ 0x822d8f0]mpeg_decode_postinit() failure
[mpegts @ 0x8229250]max_analyze_duration reached
[NULL @ 0x822cc70]start time is not set in av_estimate_timings_from_pts
[NULL @ 0x822f250]start time is not set in av_estimate_timings_from_pts

However, thumbnailing works nicely if seeking is done directly with byte 
offsets (AVSEEK_FLAG_BYTE) as implemented in the attached patch.

Original issue reported on code.google.com by [email protected] on 10 Jan 2011 at 12:05

Attachments:

@sarnobat
Copy link

Has this been integrated into the main release, or do we still need the patch? I experience this issue on verson 2.0.7

@dirkvdb
Copy link
Owner

dirkvdb commented Jul 18, 2015

I tried the patch but I see issues on other file formats. It needs some more investigation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants