Python Forum
how do you use stupid ffmpeg
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how do you use stupid ffmpeg
#1
I copied the very first example line basically from https://trac.ffmpeg.org/wiki/Slideshow
It prints 'doin shit' and 'done' with no errors, but I don't see any stupid mp4 in my c:\python27\mypy folder. Also my windows 7 is total shit (kinda like how ffmpeg is total shit and python is total shit), I go start/and type 'ffmpeg' in the stupid search box. It doesn't find shit. Of course it never finds anything else either, maybe indexing is turned off or something. Isn't it great to not be able to locate files on your computer? Why would you want to do that? Just part of the new world order sabotaging all computation. They have working hard drive search but keep it secret for their computers and roll out this fail search for all their pawns. Nothing works, you can't make money anywhere, and we're all rental slaves in a giant kleptocracy where it's illegal to homestead your own land.
import pygame,time,copy,math,random,sys,traceback,ffmpeg,os

def zeroprefix(n):
    ndigits=6
    numzeros=ndigits-len(str(n))
    return ''.join(['0' for i in range(numzeros)])+str(n)

sw=64
sh=64
screen=pygame.display.set_mode((sw,sh))


try:
    cc=0
    running=True
    while running:
        print cc
        for e in pygame.event.get():
            if e.type==pygame.QUIT:
                running=False
        
        screen.fill((255,255,255))
        if cc%8==0:
            screen.fill((0,0,0))
        else:
            screen.fill((255,255,255))

        pygame.image.save(screen,'img'+zeroprefix(cc)+'.bmp')
        cc+=1
        if cc==32:
            running=False
    print 'doin shit'
    os.system("ffmpeg -r 8.33333333 -i img%06d.bmp -vcodec mpeg4 -y c:\mypy\movie.mp4")
    #os.system('ffmpeg -framerate 8.33333333 -i img%06d.bmp c:\mypy\output.mp4')
    print 'done'

except Exception, e:
    tb = sys.exc_info()[2]
    traceback.print_exception(e.__class__, e, tb)
pygame.quit()


User has been warned for this post. Reason: Poe's Law


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to 'soft-embedd' subtitles with python-ffmpeg Pavel_47 2 2,091 Jul-04-2022, 12:33 PM
Last Post: Pavel_47
  Python Flask Realtime system printout (console) ffmpeg jttolleson 3 2,908 Apr-18-2022, 06:39 PM
Last Post: jttolleson
  MovieWriter ffmpeg unavailable; using Pillow instead. Joni_Engr 1 29,011 Aug-13-2021, 03:39 PM
Last Post: deanhystad
  When piping a FFMPEG stream to PyAudio, I get a "click" on every loop klehman 0 4,820 Dec-15-2019, 04:22 AM
Last Post: klehman
  Reverse list items in a stupid way pyth0n123 4 2,637 Jul-28-2019, 02:52 PM
Last Post: pyth0n123
  stupid > comparison question adetheheat 2 2,891 Jan-11-2018, 01:04 PM
Last Post: adetheheat
  Stupid question abradler 3 3,656 Apr-13-2017, 07:10 AM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020