This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import mimetypes | |
import subprocess | |
import sys | |
# Codec Reader for HTML Video Tags by Steve-Tech | |
# Usage: python3 codec-reader.py [-d] file_name | |
# Requires ffmpeg and ffprobe to be installed. | |
# | |
# Supported Codecs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
header("Content-type: text/xml"); | |
$feed_name = "My Audio Feed"; | |
$feed_description = "Feed for the my audio files in some server folder"; | |
$base_url = strtok('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'], '?'); //gets the current page's url. strips off the url's parameters | |
$allowed_extensions = array('mp4','mp3'); | |
?> | |
<?php echo '<?xml version="1.0"?>'; //we have to use php to output the "<?" ?> | |
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> |