magmastonealex / ffproc

A batch transcoding system. Supports multiple remote workers.
Apache License 2.0
46 stars 4 forks source link

Replace 'xvid' with 'H264' in filename #6

Closed JudsonHat closed 7 years ago

JudsonHat commented 8 years ago

I am kinda picky about what my file names look like, so I made a feeble attempt to replace any instance of 'xvid' with 'H264', since the files will no longer use the xvid codec. It will also remove the old extension coming before the new .mp4 extension.

I am not an experienced programmer. I just did some googling to find a few lines of code that could work. So, there may be a more professional way of doing this. Also, I don't use redis and queue my files, so I didn't test tasks.py, but I think it should work.

magmastonealex commented 7 years ago

Thanks for putting this together. Now that most of ffproc has been rewritten, this isn't really applicable anymore.

I'll add the features you've implemented here to the to-do list in the readme, because there are a lot of good suggestions (renaming, log file, space difference especially)