1

I am trying to play *.flv using Video Module and FFMPEG Converter. Whenever I upload any flv video I get the following message:

PHPVideoToolkit error: Execute error. It was not possible to encode "C:\xampp\htdocs\Resonance\sites\default\files\videos\original\barsandtone_3.flv" as FFmpeg 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".

Installed Modules are:

  • Video - 7.x-2.9
  • Video.js - 7.x-2.3 - Version: 4.0.3
  • Video transcoder: FFmpeg / avconv : git: c2dd5a1
  • JW Player

All are installed correctly.

Configuration of Video Module:

Inside Player Tab of Video(admin/config/media/video/players), following has been configured:

enter image description here

A New FLV Preset has been created and added under Preset Tab of Video(admin/config/media/video/presets). Details are as follows:

Preset name: FLV Preset

Video output extension: FLV Flash Video

Video codec: H 263/H263-1996,H263+/H263-1998/H263 Version 2 (Not sure about Video Codec)

FFmpeg video preset: None

Video quality: None

Video speed: None

Dimensions: 640 x 360

Aspect mode: Preserve Aspect Ratio

When I am uploading the video from content type then it extract the thumbnail as follows:

enter image description here

After saving the video it shows the following message:

enter image description here

My gut feeling is that I am setting up wrong preset but I am not able to solve this problem.

  • I have the same problem, do you found any solution ? – Yusef Aug 18 '14 at 5:43
  • What is the error message that you are getting in the "recent log entries"? – F1234k Aug 26 '14 at 13:25
  • @F1234k Reported errors PHPVideoToolkit error: Execute error. It was not possible to encode "/var/www/html/raw-drupal-7.31/sites/default/files/videos/original/drop.avi" as FFmpeg returned an error. Note, however the error was encountered on the second pass of the encoding process and the first pass appear to go fine. 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". – Yusef Sep 7 '14 at 12:57
  • @zhilevan did you try to disable the two-pass encoding (in the Advanced Options)? Does it work without issues? – F1234k Sep 7 '14 at 13:10
  • 1
    @F1234k where is it(advanced options)? – Yusef Sep 8 '14 at 4:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.