Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Rotating avi file using ffmpeg and imagemagick

  1. #11
    Join Date
    Jan 2014
    Beans
    19

    Re: Rotating avi file using ffmpeg and imagemagick

    I followed the installation instructions for ffmpeg. Very smooth installation but the same result.

    I editted to highlight a number that jumped out at me from the terminal. It look's like I'm overshooting on the crop to 240 pixels. Is that significant?


    Code:
    [crop @ 0x845f1c0] w:480 h:720 -> w:480 h:240

  2. #12
    Join Date
    Sep 2006
    Beans
    3,713

    Re: Rotating avi file using ffmpeg and imagemagick

    Can you provide a short input sample if possible, your full ffmpeg command, and the complete console output?

  3. #13
    Join Date
    Jan 2014
    Beans
    19

    Re: Rotating avi file using ffmpeg and imagemagick

    Here's the full command and screen output

    Code:
     ffmpeg -i MVI_0183.AVI -vf "transpose=1,crop=iw:240:0:0,pad=320:240:(ow-iw)/2:0" -target ntsc-dvd output.mpg
    ffmpeg version 0.8.9-4:0.8.9-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
      built on Nov  9 2013 19:12:07 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, avi, from 'MVI_0183.AVI':
      Metadata:
        creation_time   : 2003-08-16 11:02:42
        encoder         : CanonMVI01
      Duration: 00:00:03.19, start: 0.000000, bitrate: 2361 kb/s
        Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 15 tbr, 15 tbn, 15 tbc
        Stream #0.1: Audio: pcm_u8, 11024 Hz, 1 channels, u8, 88 kb/s
    Incompatible pixel format 'yuvj422p' for codec 'mpeg2video', auto-selecting format 'yuv420p'
    [buffer @ 0x86d3700] w:320 h:240 pixfmt:yuvj422p
    [scale @ 0x86e33e0] w:320 h:240 fmt:yuvj422p -> w:720 h:480 fmt:yuv420p flags:0x4
    [transpose @ 0x86d2c60] w:720 h:480 dir:1 -> w:480 h:720 rotation:clockwise vflip:0
    [crop @ 0x86cb220] w:480 h:720 -> w:480 h:240
    [pad @ 0x86cb860] Negative values are not acceptable.
    Error opening filters!
    here's a link to an forum discussing this issue.

  4. #14
    Join Date
    Sep 2006
    Beans
    3,713

    Re: Rotating avi file using ffmpeg and imagemagick

    You're using the fake "ffmpeg" again. If works fine with the real ffmpeg.

    Using ffmpeg from FFmpeg
    Code:
    $ ffmpeg -i MVI_0184.AVI -vf "transpose=1,crop=iw:240:0:0,pad=320:240:(ow-iw)/2:0" -target ntsc-dvd output.mpg
    ffmpeg version N-60376-g9a4a559 Copyright (c) 2000-2014 the FFmpeg developers
      built on Feb  5 2014 10:59:38 with gcc 4.8.2 (GCC) 20131219 (prerelease)
      configuration: --prefix=/usr --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree --enable-x11grab
      libavutil      52. 63.100 / 52. 63.100
      libavcodec     55. 49.101 / 55. 49.101
      libavformat    55. 30.100 / 55. 30.100
      libavdevice    55.  7.100 / 55.  7.100
      libavfilter     4.  1.102 /  4.  1.102
      libswscale      2.  5.101 /  2.  5.101
      libswresample   0. 17.104 /  0. 17.104
      libpostproc    52.  3.100 / 52.  3.100
    Guessed Channel Layout for  Input Stream #0.1 : mono
    Input #0, avi, from 'MVI_0184.AVI':
      Metadata:
        creation_time   : 2003-08-16 11:03:02
        encoder         : CanonMVI01
      Duration: 00:00:04.53, start: 0.000000, bitrate: 2239 kb/s
        Stream #0:0: Video: mjpeg (MJPG / 0x47504A4D), yuvj422p(pc), 320x240, 15 tbr, 15 tbn, 15 tbc
        Stream #0:1: Audio: pcm_u8 ([1][0][0][0] / 0x0001), 11024 Hz, mono, u8, 88 kb/s
    File 'output.mpg' already exists. Overwrite ? [y/N] y
    [swscaler @ 0x154a880] deprecated pixel format used, make sure you did set range correctly
    [swscaler @ 0x1551f20] deprecated pixel format used, make sure you did set range correctly
    Output #0, dvd, to 'output.mpg':
      Metadata:
        encoder         : Lavf55.30.100
        Stream #0:0: Video: mpeg2video, yuv420p, 720x480, q=2-31, 6000 kb/s, 90k tbn, 29.97 tbc
        Stream #0:1: Audio: ac3, 48000 Hz, mono, fltp, 448 kb/s
    Stream mapping:
      Stream #0:0 -> #0:0 (mjpeg -> mpeg2video)
      Stream #0:1 -> #0:1 (pcm_u8 -> ac3)
    Press [q] to stop, [?] for help
    frame=  119 fps=0.0 q=2.0 size=    2460kB time=00:00:03.96 bitrate=5085.5kbits/sframe=  135 fps=0.0 q=2.0 Lsize=    2842kB time=00:00:04.53 bitrate=5129.6kbits/s dup=67 drop=0    
    video:2530kB audio:248kB subtitle:0 data:0 global headers:0kB muxing overhead 2.269339%
    Using buggy ffalse "ffmpeg" from libavthefork
    Code:
    $ /usr/bin/ffmpeg -i MVI_0184.AVI -vf "transpose=1,crop=iw:240:0:0,pad=320:240:(ow-iw)/2:0" -target ntsc-dvd output.mpg
    ffmpeg version 0.8.6-4:0.8.6-0ubuntu0.12.04.1, Copyright (c) 2000-2013 the Libav developers
      built on Apr  2 2013 17:02:36 with gcc 4.6.3
    *** THIS PROGRAM IS DEPRECATED ***
    This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
    Input #0, avi, from 'MVI_0184.AVI':
      Metadata:
        creation_time   : 2003-08-16 11:03:02
        encoder         : CanonMVI01
      Duration: 00:00:04.53, start: 0.000000, bitrate: 2239 kb/s
        Stream #0.0: Video: mjpeg, yuvj422p, 320x240, 15 tbr, 15 tbn, 15 tbc
        Stream #0.1: Audio: pcm_u8, 11024 Hz, 1 channels, u8, 88 kb/s
    File 'output.mpg' already exists. Overwrite ? [y/N] y
    Incompatible pixel format 'yuvj422p' for codec 'mpeg2video', auto-selecting format 'yuv420p'
    [buffer @ 0xc836a0] w:320 h:240 pixfmt:yuvj422p
    [scale @ 0xc83860] w:320 h:240 fmt:yuvj422p -> w:720 h:480 fmt:yuv420p flags:0x4
    [transpose @ 0xc88dc0] w:720 h:480 dir:1 -> w:480 h:720 rotation:clockwise vflip:0
    [crop @ 0xc81d40] w:480 h:720 -> w:480 h:240
    [pad @ 0xc823a0] Negative values are not acceptable.
    Error opening filters!
    Last edited by FakeOutdoorsman; February 6th, 2014 at 07:03 AM.

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •