Debug the hwdVideoShare Conversion Process
From HwdMediaShare Documentation
Before you start debugging the video conversion process you should be absolutely certain that the video files are being successfully uploaded through the frontend of the website. If files are not being uploaded then the conversion script will have nothing to convert. We have documentation that tells you how to check this.
Check the Video Status in Administrator
All videos that have been uploaded will be listed in the Videos page of the hwdVideoShare administrator. If you don't see your video on this page you should assume it has not been uploaded and need to read our article on debugging the upload process.
All videos that have been uploaded have a video status. This video status informs you of the current state of the video.
There are six possible states for videos:
- Queued For Video Conversion (queuedforconversion)
These videos are waiting to be converted by the video conversion script - Queued For Thumbnail Creation (queuedforthumbnail)
These videos are waiting to be have a thumbnail image created by the video conversion script - Converting (converting)
These videos are currently being converted by the video conversion script - Pending (pending)
These videos have been converted but are waiting to be manual approved by an administrator of a website (This will only appear if auto-approve videos is switched off in the main settings of the component.) - Approved (yes)
Videos have been converted and approved - Deleted (deleted)
Videos have been deleted by the administrator, but still remain on the system (Use the system cleanup tools to permanently delete old video files.)
Check Videos are Queued for Conversion
By default, hwdVideoShare is setup to automatically convert videos immediately after a successful upload. Therefore, if your server is setup correctly then the video status of new videos will go from Converting to Approved straight away. However, if there is a problem with the conversion then the video status of new videos will remain as Queued For Video Conversion.
Log into the hwdVideoShare administrator and visit the Videos page. Under the approved column, any videos that have not been converted should say Queued For Video Conversion.
Switch on conversion debugging
To help you determine why the conversions are not working you can switch on conversion debugging. Enabling this option will result in the output from the conversion script being displayed on the screen when the conversion script is executed. This will help you see which processes are failing or, if you can't see why the conversions are failing, allows you to paste the output into our forums for extra support.
Log into the hwdVideoShare administrator and visit the General Settings page. Under the Conversions tab switch the Debug Video Conversions? to Yes.
Then save your new settings.
Execute the conversion script
You are now ready to execute the conversion script. To do this, log into the hwdVideoShare administrator and click on the Converter page. This page will display the number of videos that are waiting for conversion. Click on the start button to begin converting.
The conversion script will then run through each unconverted video until all videos have been attempted to be converted and then display the output to the screen. DO NOT INTERRUPT THIS PROCESS, or you might lose video information.
The conversion script runs through processes in this order when converting:
- Convert the video to FLV format using either MENCODER or FFMPEG
- Inject meta data with flvtool2
- Get the video length
- Create thumbnail image
- Update database
You can search though the output and locate the cause of any problems. If you don't really know what to look for, or have found a problem and don't know how to fix it then search through the list below. This is a list of common problems which link to articles explaining possible solutions.
Common problems whilst converting videos with MENOCDER
- /usr/local/bin/mencoder: No such file or directory
- MPlayer was compiled without libmp3lame support
- /usr/local/bin/mencoder: error while loading shared libraries: libmp3lame.so.0
- Option lavfopts: Unknown suboption i_certify_that_my_video_stream_does_not_use_b_frames
Common problems whilst converting videos with FFMPEG
- To be added soon
Common problems with FLVTOOL2
- To be added soon
Common problems whilst determining the video length
- To be added soon
Common problems whilst creating thumbnail images with FFMPEG
- To be added soon


