Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-29 Thread Simon Daniels
Hi Carl -- any luck digging into that video? Thanks! On Wed, Jun 27, 2012 at 9:03 AM, Noah Spitzer-Williams n...@highlighthunter.com wrote: Input file: https://dl.dropbox.com/u/28441949/sample%20video.MP4 On Tue, Jun 26, 2012 at 10:45 PM, Carl Eugen Hoyos ceho...@ag.or.atwrote: Simon

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-27 Thread Simon Daniels
Input file: https://dl.dropbox.com/u/28441949/sample%20video.MP4 On Tue, Jun 26, 2012 at 10:45 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Simon Daniels simondaniels23@... writes: I've confirmed this does seem to be a regression. I ran the same code with the same video on ffmpeg 0.8.3

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-27 Thread Simon Daniels
Thanks Pavel but it doesn't look like I can use the -skip_frame flag to specify a particular number of frames to skip. From: http://ffmpeg.org/doxygen/trunk/group__lavc__decoding.html#g352363bce7d3ed82c101b3bc001d1c16 *AVDISCARD_NONE* discard nothing*AVDISCARD_DEFAULT* discard useless packets

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-27 Thread Michael Bradshaw
On Tue, Jun 26, 2012 at 1:11 PM, Simon Daniels simondaniel...@gmail.com wrote: Hi Michael -- after reading into things a bit more, I agree that it's risky what I'm doing. However, I only need about 3 frames per second so maybe waiting for a key frame isn't the end of the world... Is there a

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-27 Thread Noah Spitzer-Williams
Input file: https://dl.dropbox.com/u/28441949/sample%20video.MP4 On Tue, Jun 26, 2012 at 10:45 PM, Carl Eugen Hoyos ceho...@ag.or.at wrote: Simon Daniels simondaniels23@... writes: I've confirmed this does seem to be a regression. I ran the same code with the same video on ffmpeg 0.8.3

[Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-26 Thread Simon Daniels
Hey guys, I'm doing some simply video analysis in which I walk through frames of a video and do some calculations on the pixel data. I started noticing some issues with frame timing so I tried to compare my results with a simple thumbnail extraction script using ffmpeg.exe. *The thumbnails from

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-26 Thread Carl Eugen Hoyos
Simon Daniels simondaniels23@... writes: The thumbnails from my code did not visually line up with the thumbnails generated by ffmpeg.exe. Command line and complete, uncut console output missing. If you are a user and not a distributor, please always use current git head. Carl Eugen

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-26 Thread Michael Bradshaw
On Tue, Jun 26, 2012 at 12:34 PM, Simon Daniels simondaniel...@gmail.com wrote: // Is this a packet from the video stream? if (packet.stream_index == videoStreamIndex frameLocation++ % frameSkip == 0) { // Decode video frame avcodec_decode_video2(pCodecCtx, pFrameYUV, isFrameFinished,

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-26 Thread Simon Daniels
Sorry Carl -- here you go: C:\Users\Simonffmpeg.exe -i sample video.mp4 -vframes 1 -f image2 -sameq -vcodec mjpeg frame-%05d.jpg ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers built on Jun 12 2012 21:10:06 with gcc 4.6.3 configuration: --enable-version3

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-26 Thread Simon Daniels
Hi Michael -- after reading into things a bit more, I agree that it's risky what I'm doing. However, I only need about 3 frames per second so maybe waiting for a key frame isn't the end of the world... Is there a safer way? The decoding is extremely expensive so I only want to do it when I

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-26 Thread Simon Daniels
Interesting. There was a difference of 30 between the frames that ffmpeg.exe output and the result of -nb_frames. Sure enough, ffmpeg.exe with -vsync 0 output 480 frames instead of 510. So now how do I get my code's output to match ffmpeg.exe's output? (and hopefully skip frames in the process)

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-26 Thread Simon Daniels
I've confirmed this does seem to be a regression. https://dl.dropbox.com/u/28441949/0.8.3.results.zip https://dl.dropbox.com/u/28441949/0.11.1.results.zip I ran the same code with the same video on ffmpeg 0.8.3 and 0.11.1 and you can see the thumbnails generated are not the same. #281 in 0.11.1

Re: [Libav-user] Frames are not visually lining up between my code and ffmpeg.exe

2012-06-26 Thread Carl Eugen Hoyos
Simon Daniels simondaniels23@... writes: I've confirmed this does seem to be a regression. I ran the same code with the same video on ffmpeg 0.8.3 and 0.11.1 and you can see the thumbnails generated are not the same. #281 in 0.11.1 lines up with #221 in 0.8.3. Please provide the input