We need to get at least up to point #4 in the following workflow:
1. Registered user uploads an MTS using the upload form
2. The queue daemon runs and checks that there is a new video waiting to be exported
3. it launches an instance of our pre-bundled amazon AMI on EC2
4. as the ec2 jobs runs, the database model for that video is getting updated according with the status
5. all the initial Free transcodings (4 video versions) are finished
6. uploading to Archive.org starts
7. when the final url for the files from Archive.org is known, update the db and kill the AMI
** Affects: publicvideos
Importance: High
Assignee: jgalvez (jonas-codeazur)
Status: New
** Tags: daemons ec2 internals transcoding
** Changed in: publicvideos
Importance: Undecided => High
** Changed in: publicvideos
Milestone: None => august-07-weekend
** Changed in: publicvideos
Assignee: (unassigned) => jgalvez (jonas-codeazur)
--
Implement transcoding deamons for 480x272 and 640x360 .ogv and .mp4
https://bugs.launchpad.net/bugs/410458
You received this bug notification because you are a member of
Publicvideos Dev Team, which is the registrant for Public Videos.
Status in Public Videos: New
Bug description:
We need to get at least up to point #4 in the following workflow:
1. Registered user uploads an MTS using the upload form
2. The queue daemon runs and checks that there is a new video waiting to be exported
3. it launches an instance of our pre-bundled amazon AMI on EC2
4. as the ec2 jobs runs, the database model for that video is getting updated according with the status
5. all the initial Free transcodings (4 video versions) are finished
6. uploading to Archive.org starts
7. when the final url for the files from Archive.org is known, update the db and kill the AMI
NOTES:
- replace 2009-05_00140_horse-eating-sky-field.mts with the file name from s3 and use an unique name for each video instead of intermediate.avi
- replace the artist parameter on the ffmpeg2theora with the name of the contributor for that file or leave it blank
- replace the title parameter on the ffmpeg2theora with the title given on the upload form, or the original filename(not the s3 key) or leave it blank
- replace the contact parameter on the ffmpeg2theora with the website of the contributor for that file or leave it blank
- replace the output file names with whatever identifier we choose for the files to be uploaded to archive.org
mencoder "2009-05_00140_horse-eating-sky-field.mts" -o intermediate.avi \
-fps 60000/1001 -ofps 30000/1001 \
-noskip -mc 0 \
-demuxer mpegts \
-oac copy -ovc lavc \
-lavcopts vcodec=ffvhuff:format=YV12:vstrict=-1:aspect=16/9 \
-vf detc
./ffmpeg2theora.macosx \
--audiobitrate 128 \
--samplerate 44100 \
--deinterlace \
--artist "Ace of Spades" \
--title "Horse eating, sky, field" \
--copyright "No Copyright. The person who associated a work with this document has dedicated this work to the Commons by waiving all of his or her rights to the work under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law." \
--license "http://creativecommons.org/publicdomain/zero/1.0/" \
--contact "http://spades-art.com/" \
--optimize \
--videoquality 8 \
--keyint 30 \
--width 480 --height 272 \
-o 2009-05_00140_horse-eating-sky-field-480x272.ogv \
./ffmpeg2theora.macosx \
--audiobitrate 128 \
--samplerate 44100 \
--deinterlace \
--artist "Ace of Spades" \
--title "Horse eating, sky, field" \
--copyright "No Copyright. The person who associated a work with this document has dedicated this work to the Commons by waiving all of his or her rights to the work under copyright law and all related or neighboring legal rights he or she had in the work, to the extent allowable by law." \
--license "http://creativecommons.org/publicdomain/zero/1.0/" \
--contact "http://spades-art.com/" \
--optimize \
--videoquality 8 \
--keyint 30 \
--width 640 --height 360 \
-o 2009-05_00140_horse-eating-sky-field-640x360.ogv \
ffmpeg -i intermediate.avi -an -pass 1 -vcodec libx264 \
-vpre fastfirstpass \
-b 650k \
-s 480x272 \
-f ipod \
-deinterlace \
-threads 0 \
-benchmark -y /dev/null
ffmpeg -i intermediate.avi -pass 2 -vcodec libx264 \
-vpre hq \
-b 650k \
-s 480x272 \
-acodec libfaac -ab 128k -ar 44100 \
-deinterlace \
-threads 0 \
-benchmark -y 2009-05_00140_horse-eating-sky-field-480x272.mp4
ffmpeg -i intermediate.avi -an -pass 1 -vcodec libx264 \
-vpre fastfirstpass \
-b 1000k \
-s 640x360 \
-f ipod \
-deinterlace \
-threads 0 \
-benchmark -y /dev/null
ffmpeg -i intermediate.avi -pass 2 -vcodec libx264 \
-vpre hq \
-b 1000k \
-s 480x272 \
-acodec libfaac -ab 128k -ar 44100 \
-deinterlace \
-threads 0 \
-benchmark -y 2009-05_00140_horse-eating-sky-field-640x360.mp4
--
Implement transcoding deamons for 480x272 and 640x360 .ogv and .mp4
https://bugs.launchpad.net/bugs/410458
You received this bug notification because you are a member of
Publicvideos Dev Team, which is the registrant for Public Videos.
Status in Public Videos: Fix Committed