Hi everyone
I got problem with ffmpeg: I am trying to encode some unsompressed avi (captured using dscaler) to x264 and crop picture eddges.
Command line that I am using is:
ffmpeg -i in.avi -acodec libfaac -ab 128k -cropleft 64 -vcodec libx264 -vpre %ffmpeg_hq% -b 1024k -bt 1024k -threads 0 -y out.mp4
%ffmpeg_hq% is path to x264 preset for high quality
After starting this I immediately get: "error cropping picture" all over the screen. And if I remove -cropleft 64 from the command everything works fine (but picture doesn't get cropped).
Is there any solution or workaround to this? I am using ffmpeg since it's easy to script, so any script frendly solution that does encoding and DOESN'T produce temporary files is aceptable for me.
My ffmpeg -version output (it should be the latest)
Code:D:\deponija\tv_grab\experiment>ffmpeg -version FFmpeg version SVN-r18695-Sherpya, Copyright (c) 2000-2009 Fabrice Bellard, et al. libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.27. 0 / 52.27. 0 libavformat 52.32. 0 / 52.32. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 0. 5. 0 / 0. 5. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Apr 27 2009 01:52:58, gcc: 4.5.0 20090426 (experimental) FFmpeg SVN-r18695-Sherpya libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.27. 0 / 52.27. 0 libavformat 52.32. 0 / 52.32. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 0. 5. 0 / 0. 5. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0
Error output that I get for cropping:
Code:FFmpeg version SVN-r18695-Sherpya, Copyright (c) 2000-2009 Fabrice Bellard, et al. libavutil 50. 3. 0 / 50. 3. 0 libavcodec 52.27. 0 / 52.27. 0 libavformat 52.32. 0 / 52.32. 0 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 0. 5. 0 / 0. 5. 0 libswscale 0. 7. 1 / 0. 7. 1 libpostproc 51. 2. 0 / 51. 2. 0 built on Apr 27 2009 01:52:58, gcc: 4.5.0 20090426 (experimental) [avi @ 0x3ebb80]non-interleaved AVI Input #0, avi, from 'ds000.avi': Duration: 00:00:01.34, start: 0.000000, bitrate: 167482 kb/s Stream #0.0: Video: rawvideo, yuyv422, 720x576, 25 tbr, 25 tbn, 25 tbc Stream #0.1: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s [libx264 @ 0x1789c30]using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 [libx264 @ 0x1789c30]profile High, level 3.0 Output #0, mp4, to 'out.mp4': Stream #0.0: Video: libx264, yuv420p, 656x576, q=10-51, 1024 kb/s, 25 tbn, 25 tbc Stream #0.1: Audio: libfaac, 44100 Hz, stereo, s16, 128 kb/s Stream mapping: Stream #0.0 -> #0.0 Stream #0.1 -> #0.1 Press [q] to stop encoding error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture error cropping picture frame= 0 fps= 0 q=-2.0 Lsize= 12kB time=1.25 bitrate= 77.2kbits/s video:0kB audio:11kB global headers:1kB muxing overhead 4.543884% [libx264 @ 0x1789c30]final ratefactor: 24.94
+ Reply to Thread
Results 1 to 2 of 2
-
-
See https://forum.videohelp.com/topic343287-120.html#1922560 . I guess you need to use avisynth to be able to crop.
Similar Threads
-
"Live" picture effect - pictures end up "filmized"
By ANOther1676 in forum Software PlayingReplies: 10Last Post: 14th Oct 2011, 11:59 -
VirtualDub questions about cropping and "blurring"
By SignedupGuest in forum Newbie / General discussionsReplies: 17Last Post: 18th Jul 2010, 18:19 -
how we can implement "VirtualDub" or "FFmpeg" with my C# windows applicati
By dhemittal in forum ProgrammingReplies: 0Last Post: 8th Jun 2010, 07:17 -
Vdubmod "Source image format incorrect" when cropping with filter
By Gruelius in forum Newbie / General discussionsReplies: 4Last Post: 22nd Dec 2008, 19:37 -
DVD Flick error message "ffmpeg.exe has stopped working"
By stewiegriffin711 in forum Authoring (DVD)Replies: 4Last Post: 17th Aug 2008, 07:20