Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#19 closed defect (invalid)

MVs not available

Reported by: cosai Owned by: Michael Niedermayer
Priority: normal Component: ffmpeg
Version: 0.6 Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: yes

Description

when I try to create a screenshot of the video it gives the error below. You can also find the command I am using. The generated fiele is 0 kb.

Maybe I don't have png library in ffmpeg? Can I install it seperately?

FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers

built on Dec 4 2010 15:35:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0

Input #0, mpeg, from './baby.mpeg':

Duration: 26:30:43.71, start: 0.808011, bitrate: 0 kb/s

Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x240 [PAR 200:219 DAR 880:657], 334 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, 1 channels, s16, 32 kb/s

Output #0, rawvideo, to './baby.png':

Metadata:

encoder : Lavf52.64.2
Stream #0.0: Video: png, rgb24, 320x240 [PAR 220:219 DAR 880:657], q=2-31, 200 kb/s, 90k tbn, 25 tbc

Stream mapping:

Stream #0.0 -> #0.0

Press [q] to stop encoding
[mpeg1video @ 0x1fb9c60]ac-tex damaged at 14 12
[mpeg1video @ 0x1fb9c60]Warning MVs not available
[mpeg1video @ 0x1fb9c60]concealing 0 DC, 0 AC, 0 MV errors
[mpeg1video @ 0x1fb9c60]ac-tex damaged at 12 9
[mpeg1video @ 0x1fb9c60]concealing 132 DC, 132 AC, 132 MV errors
frame= 0 fps= 0 q=0.0 Lsize= 0kB time=10000000000.00 bitrate= 0.0kbits/s dup=0 drop=86
video:0kB audio:0kB global headers:0kB muxing overhead nan%

Change History (7)

comment:1 by cosai, 14 years ago

Status: newopen

sorry command is:
/usr/bin/ffmpeg -itsoffset -4 -i ./baby.mpeg -vcodec png -vframes 1 -an -f rawvideo -s 320x240 ./baby.png

comment:2 by Carl Eugen Hoyos, 14 years ago

Does ffmpeg -i baby.mpeg baby,png produce a working screen-shot? (I know it displays an error message, but the screen-shot should be there anyway.)

And please try latest git snapshot.

Version 0, edited 14 years ago by Carl Eugen Hoyos (next)

comment:3 by cosai, 14 years ago

The output is:

FFmpeg version 0.6.1, Copyright (c) 2000-2010 the FFmpeg developers

built on Dec 4 2010 15:35:31 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0

Input #0, mpeg, from 'baby.mpeg':

Duration: 26:30:43.71, start: 0.808011, bitrate: 0 kb/s

Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x240 [PAR 200:219 DAR 880:657], 334 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, 1 channels, s16, 32 kb/s

Output #0, image2, to 'baby2.png':

Metadata:

encoder : Lavf52.64.2
Stream #0.0: Video: png, rgb24, 352x240 [PAR 200:219 DAR 880:657], q=2-31, 200 kb/s, 90k tbn, 25 tbc

Stream mapping:

Stream #0.0 -> #0.0

Press [q] to stop encoding
[image2 @ 0x109420a0]Could not get frame filename from pattern
av_interleaved_write_frame(): Input/output error

It is not working..??

comment:4 by cosai, 14 years ago

The upper code is working but creating errors. I have installed the newest ffmpeg but I can not again create screenshot.
Please see the output below

ffmpeg -itsoffset -4 -i ./baby.mpeg -vcodec png -vframes 1 -an -f rawvideo -s 320x240 ./babynew.png
FFmpeg version 0.6.2, Copyright (c) 2000-2010 the FFmpeg developers

built on Mar 30 2011 08:50:34 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
configuration:
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0

Input #0, mpeg, from './baby.mpeg':

Duration: 26:30:43.71, start: 0.808011, bitrate: 0 kb/s

Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x240 [PAR 200:219 DAR 880:657], 334 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, 1 channels, s16, 32 kb/s

Output #0, rawvideo, to './baby6.png':

Metadata:

encoder : Lavf52.64.2
Stream #0.0: Video: png, rgb24, 320x240 [PAR 220:219 DAR 880:657], q=2-31, 200 kb/s, 90k tbn, 25 tbc

Stream mapping:

Stream #0.0 -> #0.0

Press [q] to stop encoding
[mpeg1video @ 0xcab67d0]ac-tex damaged at 14 12
[mpeg1video @ 0xcab67d0]Warning MVs not available
[mpeg1video @ 0xcab67d0]concealing 0 DC, 0 AC, 0 MV errors
[mpeg1video @ 0xcab67d0]ac-tex damaged at 12 9
[mpeg1video @ 0xcab67d0]concealing 132 DC, 132 AC, 132 MV errors
frame= 0 fps= 0 q=0.0 Lsize= 0kB time=10000000000.00 bitrate= 0.0kbits/s dup=0 drop=86
video:0kB audio:0kB global headers:0kB muxing overhead nan%

comment:5 by Carl Eugen Hoyos, 14 years ago

Please provide output for latest git (and if ffmpeg -i baby.mpeg -vframes 1 baby.png works, please find the additional option that breaks the command).

comment:6 by Stefano Sabatini, 14 years ago

Analyzed by developer: set
Resolution: invalid
Status: openclosed

Replying to cosai:

The upper code is working but creating errors. I have installed the newest ffmpeg but I can not again create screenshot.
Please see the output below

ffmpeg -itsoffset -4 -i ./baby.mpeg -vcodec png -vframes 1 -an -f rawvideo -s 320x240 ./babynew.png

This command is wrong if you want to take just the first picture, you should rather do:
ffmpeg -vframes 1 -i ./baby.mpeg -s 320x240 ./babynew.png

-f rawvideo and .png are contradicting and will likely cause a wrong result.

Also see the image2 documentation in the manual muxers section to clarify the image2 syntax.

FFmpeg version 0.6.2, Copyright (c) 2000-2010 the FFmpeg developers

built on Mar 30 2011 08:50:34 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
configuration:
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libswscale 0.11. 0 / 0.11. 0

Input #0, mpeg, from './baby.mpeg':

Duration: 26:30:43.71, start: 0.808011, bitrate: 0 kb/s

Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 352x240 [PAR 200:219 DAR 880:657], 334 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0.1[0x1c0]: Audio: mp2, 44100 Hz, 1 channels, s16, 32 kb/s

Output #0, rawvideo, to './baby6.png':

Metadata:

encoder : Lavf52.64.2
Stream #0.0: Video: png, rgb24, 320x240 [PAR 220:219 DAR 880:657], q=2-31, 200 kb/s, 90k tbn, 25 tbc

Stream mapping:

Stream #0.0 -> #0.0

Press [q] to stop encoding
[mpeg1video @ 0xcab67d0]ac-tex damaged at 14 12
[mpeg1video @ 0xcab67d0]Warning MVs not available
[mpeg1video @ 0xcab67d0]concealing 0 DC, 0 AC, 0 MV errors
[mpeg1video @ 0xcab67d0]ac-tex damaged at 12 9
[mpeg1video @ 0xcab67d0]concealing 132 DC, 132 AC, 132 MV errors

These warnings are typical for MJPEG corrupted streams, but usually don't compromise the decoding (although with some inevitable artifacts).

comment:7 by cosai, 14 years ago

Thank you very much for the answer.

Thanks

Note: See TracTickets for help on using tickets.