Hello,
I get many errors when i try to transcode video from .mp4 to .ogg or .ogv or .mp4.

I am on Mac OSX with ffmpeg 3.2.2 and use the 7.x-2.11 video module version.

  1. I upload the .mp4 file to the server and it is correctly copied on the /default/files/videos/original as is.
    Then, i prompt the drush command "drush video-scheduler" to lauch the transcode process and i get errors :
    in that case a .mp4 to "Ogg" preset (with the libtheora)
    WD transcoder: FFmpeg failed to transcode video-test.mp4. Reported errorsPHPVideoToolkit error: Execute error. It was not possible to encode "/Users/mrebillard/Sites/sarthe-me-up/sites/default/files/videos/original/video-test_4.mp4" as FFmpeg     [error]
    returned an error. The error is with the video codec of the input file. FFmpeg reports the error to be "Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height".
     Executed commands and output/usr/local/Cellar/ffmpeg/3.2.2/bin/ffmpeg -i '/Users/mrebillard/Sites/sarthe-me-up/sites/default/files/videos/original/video-test_4.mp4' -strict experimental -vcodec 'theora' -qscale '19' -acodec 'vorbis' -b '200k' -ac
    '2' -ar '11025' -pass '1' -passlogfile '/private/tmp/1484743650-587f63e22d482-multipass'  -y /private/tmp/1484743650-587f63e22d33d.oggffmpeg version 3.2.2 Copyright (c) 2000-2016 the FFmpeg developers
      built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
      configuration: --prefix=/usr/local/Cellar/ffmpeg/3.2.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-libass
    --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libschroedinger --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-opencl
    --enable-openssl --disable-lzma --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.1.2/include/openjpeg-2.1 --enable-nonfree --enable-vda
      libavutil      55. 34.100 / 55. 34.100
      libavcodec     57. 64.101 / 57. 64.101
      libavformat    57. 56.100 / 57. 56.100
      libavdevice    57.  1.100 / 57.  1.100
      libavfilter     6. 65.100 /  6. 65.100
      libavresample   3.  1.  0 /  3.  1.  0
      libswscale      4.  2.100 /  4.  2.100
      libswresample   2.  3.100 /  2.  3.100
      libpostproc    54.  1.100 / 54.  1.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/mrebillard/Sites/sarthe-me-up/sites/default/files/videos/original/video-test_4.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 512
        compatible_brands: isomiso2avc1mp41
        creation_time   : 1970-01-01T00:00:00.000000Z
        encoder         : Lavf53.24.2
      Duration: 00:00:29.57, start: 0.000000, bitrate: 1421 kb/s
        Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 1032 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
        Metadata:
          creation_time   : 1970-01-01T00:00:00.000000Z
          handler_name    : VideoHandler
        Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, 5.1, fltp, 383 kb/s (default)
        Metadata:
          creation_time   : 1970-01-01T00:00:00.000000Z
          handler_name    : SoundHandler
    Please use -q:a or -q:v, -qscale is ambiguous
    Please use -b:a or -b:v, -b is ambiguous
    [libtheora @ 0x7fe55a822a00] Error getting first pass stats
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (native) -> theora (libtheora))
      Stream #0:1 -> #0:1 (aac (native) -> vorbis (native))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
    

    The process can't get correct stats :/

  2. I tried to call native ffmpeg in the console with the command :
    ffmpeg -i '/Users/mrebillard/Sites/sarthe-me-up/sites/default/files/videos/original/video-test_4.mp4' -strict experimental -vcodec 'theora' -qscale '19' -acodec 'vorbis' -b '200k' -ac '2' -ar '11025' -pass '1' -passlogfile '/private/tmp/1484743650-587f63e22d482-multipass' -y /private/tmp/1484743650-587f63e22d33d.oggffmpeg

    I get an error also :

    Please use -q:a or -q:v, -qscale is ambiguous
    Please use -b:a or -b:v, -b is ambiguous
    [NULL @ 0x7fe0ea80a000] Unable to find a suitable output format for '/private/tmp/1484743650-587f63e22d33d.oggffmpeg'
    /private/tmp/1484743650-587f63e22d33d.oggffmpeg: Invalid argument
    

    <

  3. So i tried with another output file : "/private/tmp/1484743650-587f63e22d33d.ogg" and i get the same error that i get with the module.
  4. I tried that command :
    ffmpeg -i '/Users/mrebillard/Sites/sarthe-me-up/sites/default/files/videos/original/video-test_4.mp4' -strict experimental -c:v theora -q:a 19 -c:a vorbis -b:a 200k -ac 2 -ar 11025 -pass 1 -passlogfile '/private/tmp/1484743650-587f63e22d482-multipass'  -y /private/tmp/1484743650-587f63e22d33d.ogg
    

    and everything is fine :)

What could I do to fix that issue ?
Thanks very much for your help.

Matt

Comments

hyperclub created an issue. See original summary.

hyperclub’s picture

Issue summary: View changes