mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-20 21:46:04 -05:00
feat: Video Trimmer and more
This commit is contained in:
24
files/migrations/0007_alter_media_state_videochapterdata.py
Normal file
24
files/migrations/0007_alter_media_state_videochapterdata.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# Generated by Django 5.1.6 on 2025-04-15 07:26
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
('files', '0006_alter_category_title'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='VideoChapterData',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('data', models.JSONField(help_text='Chapter data')),
|
||||
('media', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='chapters', to='files.media')),
|
||||
],
|
||||
options={
|
||||
'unique_together': {('media',)},
|
||||
},
|
||||
),
|
||||
]
|
||||
30
files/migrations/0008_alter_media_state_videotrimrequest.py
Normal file
30
files/migrations/0008_alter_media_state_videotrimrequest.py
Normal file
@@ -0,0 +1,30 @@
|
||||
# Generated by Django 5.1.6 on 2025-05-02 14:23
|
||||
|
||||
import django.db.models.deletion
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
('files', '0007_alter_media_state_videochapterdata'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='media',
|
||||
name='state',
|
||||
field=models.CharField(choices=[('private', 'Private'), ('public', 'Public'), ('unlisted', 'Unlisted')], db_index=True, default='public', help_text='state of Media', max_length=20),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='VideoTrimRequest',
|
||||
fields=[
|
||||
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
|
||||
('status', models.CharField(choices=[('initial', 'Initial'), ('running', 'Running'), ('success', 'Success'), ('fail', 'Fail')], default='initial', max_length=20)),
|
||||
('add_date', models.DateTimeField(auto_now_add=True)),
|
||||
('video_action', models.CharField(choices=[('replace', 'Replace Original'), ('save_new', 'Save as New'), ('create_segments', 'Create Segments')], max_length=20)),
|
||||
('media_trim_style', models.CharField(choices=[('no_encoding', 'No Encoding'), ('precise', 'Precise')], default='no_encoding', max_length=20)),
|
||||
('timestamps', models.JSONField(help_text='Timestamps for trimming')),
|
||||
('media', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, related_name='trim_requests', to='files.media')),
|
||||
],
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user