Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8246783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T22:37:15+00:00 2026-06-07T22:37:15+00:00

Im currently designing the video table for a CMS Im working on and Im

  • 0

Im currently designing the video table for a CMS Im working on and Im a little stumped as to how I should set it up. I need the table to store the following information:

  • content_id: a FK referencing the main content table
  • The file location for 6 versions: 240p, 480p, and 1080p each in 2 codecs
  • The availability of each of the video qualities
  • The status of each of the video qualities (Whether they are done being transcoded or not)

So far What I have looks like this:

CREATE TABLE tbl_content_video (
    con_id INT NOT NULL AUTO_INCREMENT,
    vid_length INT NOT NULL,
    flv_1080_file_loc VARCHAR(255) DEFAULT NULL,
    flv_480_file_loc VARCHAR(255) DEFAULT NULL,
    flv_240_file_loc VARCHAR(255) NOT NULL,
    vp8_1080_file_loc VARCHAR(255) DEFAULT NULL,
    vp8_480_file_loc VARCHAR(255) DEFAULT NULL,
    vp8_240_file_loc VARCHAR(255) NOT NULL,

FOREIGN KEY (con_id) REFERENCES tbl_content (con_id)
);

Im still uncertain on the best solution for storing the available qualities and their availability status any thoughts are much appreciated

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T22:37:17+00:00Added an answer on June 7, 2026 at 10:37 pm

    There’s no reason for storing the individual file locations. Most of that is going to be highly repetitive pathing data. Instead, keep the paths in a separate table or hard-coded into a config file, and simply use those paths plus the id of the video (con_it?) to build a path pointing at the appropriate version of the video.

    As for the status stuff, keep a field for each video type you suport, and figure out some values to put in there. 0 – not available, 1 – transcoding, 2- error, 3- good to go, etc…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am currently designing a Membership/Profile scheme for a new project I am working
I'm currently designing an architecture for a web-based application that should also provide some
I am currently designing a reviews site for video games similar to gamespot am
I am currently designing a service (wsHttp) which should be used to return sensitive
Currently designing a CMS for use on my website. I am wondering if there
I'm currently designing a windows mobile application using compact framework 3.5 and I need
I am currently designing a system where we need to know if the user
I'm currently designing a system that watches the ranks / views of youtube videos.
I am currently designing an API where I want that the user to be
I'm currently designing a web application using php, javascript, and MySQL. I'm considering two

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.