**I am using ruby 1.9.3 it would be helpful if i can get any gem name or method to convert the .ppt to .mp4
            Asked
            
        
        
            Active
            
        
            Viewed 136 times
        
    -2
            
            
        - 
                    Are you really still using Ruby 1.9.3 and a Ruby on Rails 3.x version? Both are outdated for at least 5 years. – spickermann Mar 30 '20 at 15:05
- 
                    yes we are on track on latest one... but existing project is going on – Sanket Mar 30 '20 at 15:39
1 Answers
0
            
            
        PPTX >> PNG >> MP4
You can use docsplit gem to convert PDF to PNG
Docsplit.extract_images('test.pdf', :format => [:png])
and ffmpeg to convert PNGs to MP4.
ffmpeg -framerate 1/5 -i img_%d.png -c:v libx264 -vf scale=1280:-2 -pix_fmt yuv420p output.mp4
if your player cannot handle a non-standard frame rate add -r 30 eg. VLC
ffmpeg -framerate 1/5 -i img_%d.png -r 30 -c:v libx264 -vf scale=1280:-2 -pix_fmt yuv420p output.mp4
check docs for more
 
    
    
        PGill
        
- 3,373
- 18
- 21
