[FFmpeg-user] generating only last frame of video
tank pranav
akshar_tank at yahoo.com
Fri Nov 9 21:45:11 CET 2012
Hi,
I would like to generate last frame of some video. I applied following command.
> ffmpeg -i t1.ts -vf "select='eq(n,LAST_FRAME_INDEX)'" -vframes 1 LAST_FRAME.ppm
ffmpeg version 1.0 Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 10 2012 01:44:06 with gcc 4.2.4 (GCC) (Ubuntu 4.2.4-1ubuntu4)
configuration: --disable-yasm
libavutil 51. 73.101 / 51. 73.101
libavcodec 54. 59.100 / 54. 59.100
libavformat 54. 29.104 / 54. 29.104
libavdevice 54. 2.101 / 54. 2.101
libavfilter 3. 17.100 / 3. 17.100
libswscale 2. 1.101 / 2. 1.101
libswresample 0. 15.100 / 0. 15.100
[mpeg2video @ 0x8e72b60] mpeg_decode_postinit() failure
Last message repeated 3 times
[mpegts @ 0x8e6e500] max_analyze_duration 5000000 reached at 5016000
[mpegts @ 0x8e6e500] PES packet size mismatch
Input #0, mpegts, from 't1.ts':
Duration: 00:00:27.55, start: 183.567756, bitrate: 3577 kb/s
Program 1
No Program
Stream #0:0[0x44]: Audio: mp2, 48000 Hz, stereo, s16, 128 kb/s
Stream #0:1[0x45]: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 16:15 DAR 4:3], 3200 kb/s, 25.42 fps, 25 tbr, 90k tbn, 50 tbc
[Parsed_select_0 @ 0x8e768c0] [Eval @ 0xbffbb6f0] Undefined constant or missing '(' in 'LAST_FRAME_INDEX)'
[Parsed_select_0 @ 0x8e768c0] [Eval @ 0xbffbb6f0] Missing ')' or too many args in 'eq(n,LAST_FRAME_INDEX)'
[Parsed_select_0 @ 0x8e768c0] Error while parsing expression 'eq(n,LAST_FRAME_INDEX)'
[AVFilterGraph @ 0x8e726a0] Error initializing filter 'select' with args 'eq(n,LAST_FRAME_INDEX)'
Error opening filters!
but ffmpeg gives me above errors about syntax.
I have tried to apply possible combinations but it did not work.
Thanks,
Pranav.
More information about the ffmpeg-user
mailing list