hi everyone,
i am sharing a solution for pd to remix youtube video (download, transcode, sequence, fx). it's only for linux and it's using py.pd_linux (included for python 2.6) + python-gdata, mtl and other applications (readme.txt).
you can see a video of the patch in action (i didn't take the time to choose the video for a nice demo...): http://vimeo.com/14059272
you can download the patch here: http://puredata.info/Members/patrick
if anyone use or make modification, let me know! pat
Very nice! Definitely gonna try it.
best regards, Pedro p.s.: thanks for sharing it.
On Wed, Aug 11, 2010 at 3:42 PM, patrick puredata@11h11.com wrote:
hi everyone,
i am sharing a solution for pd to remix youtube video (download, transcode, sequence, fx). it's only for linux and it's using py.pd_linux (included for python 2.6) + python-gdata, mtl and other applications (readme.txt).
you can see a video of the patch in action (i didn't take the time to choose the video for a nice demo...): http://vimeo.com/14059272
you can download the patch here: http://puredata.info/Members/patrick
if anyone use or make modification, let me know! pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
cool!!
Eduardo
i am sharing a solution for pd to remix youtube video (download, transcode, sequence, fx). it's only for linux and it's using py.pd_linux (included for python 2.6) + python-gdata, mtl and other applications (readme.txt).
you can see a video of the patch in action (i didn't take the time to choose the video for a nice demo...): http://vimeo.com/14059272
you can download the patch here: http://puredata.info/Members/patrick
if anyone use or make modification, let me know! pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On Wed, 11 Aug 2010, Eduardo Patricio wrote:
patrick wrote:
i am sharing a solution for pd to remix youtube video (download, transcode, sequence, fx). it's only for linux and it's using py.pd_linux (included for python 2.6) + python-gdata, mtl and other applications (readme.txt).
cool!!
First shown at the 32nd meeting of the Pd users group of the city of Montréal, on 11 novembre 2009. http://artengine.ca/pdmtl/pdmtl-32.png
_ _ __ ___ _____ ________ _____________ _____________________ ... | Mathieu Bouchard, Montréal, Québec. téléphone: +1.514.383.3801
imagine this patch controlled through some faders... wow!
Eduardo
hi everyone,
i am sharing a solution for pd to remix youtube video (download, transcode, sequence, fx). it's only for linux and it's using py.pd_linux (included for python 2.6) + python-gdata, mtl and other applications (readme.txt).
you can see a video of the patch in action (i didn't take the time to choose the video for a nice demo...): http://vimeo.com/14059272
you can download the patch here: http://puredata.info/Members/patrick
if anyone use or make modification, let me know! pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
wow... nice!!! how then on OSX 10.6? Suggestions?
m
On Wed, Aug 11, 2010 at 10:42 AM, patrick puredata@11h11.com wrote:
hi everyone,
i am sharing a solution for pd to remix youtube video (download, transcode, sequence, fx). it's only for linux and it's using py.pd_linux (included for python 2.6) + python-gdata, mtl and other applications (readme.txt).
you can see a video of the patch in action (i didn't take the time to choose the video for a nice demo...): http://vimeo.com/14059272
you can download the patch here: http://puredata.info/Members/patrick
if anyone use or make modification, let me know! pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi,
for OSX maybe using the compiled py external from: http://grrrr.org/ext/beta/macos/pd/
but that's only to search / download video from youtube...
you will have to change how pd is started (portaudio in mac?) & youscrap.py (ffmpeg, path). i am sure it's doable.
pat
hello,
yeah everything is working but the transcoding. ffmpeg transcodes from the terminal fine. ffmpeg, normalize and sox all installed from macports. python-gdata installed, etc.
downloads and cleans *.flv fine too... just no transcoding. and no errors in pd console.
m
On Wed, Aug 11, 2010 at 11:33 PM, patrick puredata@11h11.com wrote:
hi,
for OSX maybe using the compiled py external from: http://grrrr.org/ext/beta/macos/pd/
but that's only to search / download video from youtube...
you will have to change how pd is started (portaudio in mac?) & youscrap.py (ffmpeg, path). i am sure it's doable.
pat
hi mark,
you can try with a simple python script something like:
import os os.system('ffmpeg -i /Users/bla/video.flv -vcodec mjpeg /Users/bla/video.avi')
if it's working, then maybe it's a problem with the savepath. also starting pd in a terminal might give you more info.
pat
yeah something like this works fine running the the terminal:
import os os.system('ffmpeg -i /Users/megrimm/Desktop/youtube2pd/footage/MuU00Q3RhDg.flv -an -pix_fmt yuv420p -vcodec mjpeg -s 640x480 -sameq -f mov -y /Users/megrimm/Desktop/youtube2pd/footage/test.mov')
os.system('ffmpeg -i /Users/megrimm/Desktop/youtube2pd/footage/MuU00Q3RhDg.flv /Users/megrimm/Desktop/youtube2pd/footage/temp.wav') os.system('sox /Users/megrimm/Desktop/youtube2pd/footage/temp.wav -r 44100 /Users/megrimm/Desktop/youtube2pd/footage/test.wav') os.system('normalize-audio /Users/megrimm/Desktop/youtube2pd/footage/test.wav')
so I am assuming its a path problem with your script? since it downloads and cleans. although why would it be able to clean the downloaded file from '+savepath+'/footage/' but not able to find to transcode?
m
On Thu, Aug 12, 2010 at 1:00 AM, patrick puredata@11h11.com wrote:
hi mark,
you can try with a simple python script something like:
import os os.system('ffmpeg -i /Users/bla/video.flv -vcodec mjpeg /Users/bla/video.avi')
if it's working, then maybe it's a problem with the savepath. also starting pd in a terminal might give you more info.
pat
right, in the footage folder after you downloaded a youtube video, do you have -.wav ? if yes, then at least ffmpeg is able to extract a wav from the .flv - it means that it should be able to transcode from flv to avi / mov.
maybe only the encoding part needs to be adapted: youscrap.py - line 133
like i said, start pd in a terminal, it should give you more information about the problem.
pat
yeah works fine run from terminal, just not when opening patch directly from osx finder. only error is this: sys:1: RuntimeWarning: Python C API version mismatch for module pyext: This Python has API version 1013, module pyext has version 1012.
should this really matter? maybe it does... i dont know.
see output below.
tk scaling is 1.0 Pt_Start() called sys:1: RuntimeWarning: Python C API version mismatch for module pyext: This Python has API version 1013, module pyext has version 1012. sys:1: RuntimeWarning: Python C API version mismatch for module stdout: This Python has API version 1013, module stdout has version 1012. sys:1: RuntimeWarning: Python C API version mismatch for module stderr: This Python has API version 1013, module stderr has version 1012. FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers built on Aug 11 2010 15:15:48 with gcc 4.2.1 (Apple Inc. build 5664) configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --enable-nonfree --mandir=/opt/local/share/man --enable-shared --enable-pthreads --disable-indevs --cc=/usr/bin/gcc-4.2 --arch=x86_64 libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 1.11. 0 / 1.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 [flv @ 0x12180c800]Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 59.94 (2997/50) -> 29.92 (359/12) Input #0, flv, from '/youtube2pd/footage/90xhaI8TNgA.flv': Metadata: duration : 13 starttime : 0 totalduration : 13 width : 320 height : 240 videodatarate : 218 audiodatarate : 106 totaldatarate : 324 framerate : 30 bytelength : 553552 canseekontime : true sourcedata : BD075FC41HH1281673145446658 purl : pmsg : Duration: 00:00:13.11, start: 0.000000, bitrate: 331 kb/s Stream #0.0: Video: h264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 222 kb/s, 29.92 tbr, 1k tbn, 59.94 tbc Stream #0.1: Audio: aac, 44100 Hz, stereo, s16, 108 kb/s Output #0, mov, to '/youtube2pd/footage/90xhaI8TNgA.mov': Metadata: encoder : Lavf52.64.2 Stream #0.0: Video: mjpeg, yuvj420p, 640x480 [PAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 359 tbn, 29.92 tbc Stream mapping: Stream #0.0 -> #0.0 Press [q] to stop encoding frame= 393 fps=299 q=0.0 Lsize= 8963kB time=13.14 bitrate=5589.5kbits/s dup=0 drop=1 video:8959kB audio:0kB global headers:0kB muxing overhead 0.041702% FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers built on Aug 11 2010 15:15:48 with gcc 4.2.1 (Apple Inc. build 5664) configuration: --prefix=/opt/local --enable-gpl --enable-postproc --enable-swscale --enable-avfilter --enable-avfilter-lavf --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libdirac --enable-libschroedinger --enable-libfaac --enable-libfaad --enable-libxvid --enable-libx264 --enable-libvpx --enable-libspeex --enable-nonfree --mandir=/opt/local/share/man --enable-shared --enable-pthreads --disable-indevs --cc=/usr/bin/gcc-4.2 --arch=x86_64 libavutil 50.15. 1 / 50.15. 1 libavcodec 52.72. 2 / 52.72. 2 libavformat 52.64. 2 / 52.64. 2 libavdevice 52. 2. 0 / 52. 2. 0 libavfilter 1.19. 0 / 1.19. 0 libswscale 1.11. 0 / 1.11. 0 libpostproc 51. 2. 0 / 51. 2. 0 [flv @ 0x12180c800]Estimating duration from bitrate, this may be inaccurate
Seems stream 0 codec frame rate differs from container frame rate: 59.94 (2997/50) -> 29.92 (359/12) Input #0, flv, from '/youtube2pd/footage/90xhaI8TNgA.flv': Metadata: duration : 13 starttime : 0 totalduration : 13 width : 320 height : 240 videodatarate : 218 audiodatarate : 106 totaldatarate : 324 framerate : 30 bytelength : 553552 canseekontime : true sourcedata : BD075FC41HH1281673145446658 purl : pmsg : Duration: 00:00:13.11, start: 0.000000, bitrate: 331 kb/s Stream #0.0: Video: h264, yuv420p, 320x240 [PAR 1:1 DAR 4:3], 222 kb/s, 29.92 tbr, 1k tbn, 59.94 tbc Stream #0.1: Audio: aac, 44100 Hz, stereo, s16, 108 kb/s Output #0, wav, to '/youtube2pd/footage/90xhaI8TNgAtemp.wav': Metadata: encoder : Lavf52.64.2 Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s Stream mapping: Stream #0.1 -> #0.0 Press [q] to stop encoding size= 2352kB time=13.65 bitrate=1411.2kbits/s video:0kB audio:2352kB global headers:0kB muxing overhead 0.001827% Computing levels... 90xhaI8TNgA.wav 100% done, ETA 00:00:00 (batch 100% done, ETA 00:00:00) Applying adjustment of 9.64dB to /youtube2pd/footage/90xhaI8TNgA.wav... 90xhaI8TNgA.wav 100% done, ETA 00:00:00 (batch 100% done, ETA 00:00:00)
On Thu, Aug 12, 2010 at 4:15 PM, mark edward grimm mgrimm@syr.edu wrote:
yeah something like this works fine running the the terminal:
import os os.system('ffmpeg -i /Users/megrimm/Desktop/youtube2pd/footage/MuU00Q3RhDg.flv -an -pix_fmt yuv420p -vcodec mjpeg -s 640x480 -sameq -f mov -y /Users/megrimm/Desktop/youtube2pd/footage/test.mov')
os.system('ffmpeg -i /Users/megrimm/Desktop/youtube2pd/footage/MuU00Q3RhDg.flv /Users/megrimm/Desktop/youtube2pd/footage/temp.wav') os.system('sox /Users/megrimm/Desktop/youtube2pd/footage/temp.wav -r 44100 /Users/megrimm/Desktop/youtube2pd/footage/test.wav') os.system('normalize-audio /Users/megrimm/Desktop/youtube2pd/footage/test.wav')
so I am assuming its a path problem with your script? since it downloads and cleans. although why would it be able to clean the downloaded file from '+savepath+'/footage/' but not able to find to transcode?
m
On Thu, Aug 12, 2010 at 1:00 AM, patrick puredata@11h11.com wrote:
hi mark,
you can try with a simple python script something like:
import os os.system('ffmpeg -i /Users/bla/video.flv -vcodec mjpeg /Users/bla/video.avi')
if it's working, then maybe it's a problem with the savepath. also starting pd in a terminal might give you more info.
pat
-- ____________________ mark edward grimm | m.f.a IT macintosh engineer | adjunct syracuse u. | vpa foundations | timearts mgrimm@syr.edu | 315.378.2136 _________________________________
awesome! congrats patrick! I was looking for a patch like that some time ago.
thanks to share! :-)
2010/8/11 patrick puredata@11h11.com
hi everyone,
i am sharing a solution for pd to remix youtube video (download, transcode, sequence, fx). it's only for linux and it's using py.pd_linux (included for python 2.6) + python-gdata, mtl and other applications (readme.txt).
you can see a video of the patch in action (i didn't take the time to choose the video for a nice demo...): http://vimeo.com/14059272
you can download the patch here: http://puredata.info/Members/patrick
if anyone use or make modification, let me know! pat
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list