A WordPress plugin that allows users to input a video URL from sites like TikTok, YouTube, Twitter/X, etc. and performs audio transcription and fact-checking using the OpenAI Whisper and ChatGPT APIs.
- Upload the plugin files to the
/wp-content/plugins/video-fact-checker
directory - Run
composer install
in the plugin directory - Activate the plugin through the 'Plugins' screen in WordPress
- Configure your OpenAI API key in Settings > Fact Checker
Use the shortcode [video_fact_checker]
in any post or page to display the video fact-checking form.
The plugin maintains detailed logs of video processing operations in:
/wp-content/video-fact-checker.log
Logs include:
- Video metadata (URL, title, duration)
- Processing steps
- API responses
- Error messages
Logging can be enabled/disabled via:
- Settings > Fact Checker > Enable Logging
- Or programmatically:
update_option('vfc_enable_logging', true|false)
- PHP 7.4 or higher
- WordPress 5.0 or higher
- OpenAI API key
- Local or hosting environment with ffmpeg and yt-dlp installed
- For YouTube videos on servers:
- A valid cookies.txt file in the plugin root directory (
wp-content/plugins/video-fact-checker/cookies.txt
)
- A valid cookies.txt file in the plugin root directory (
Note: You may need to update the cookies.txt file periodically when the authentication expires.
GPL v2 or later