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 _________________________________