root/lang/ruby/ffmpeg-helper/sample/sample_flv2mp4.rb
@
8375
| Revision 8375, 344 bytes (checked in by gtaka555, 5 years ago) |
|---|
| Line | |
|---|---|
| 1 | $: << '../lib' |
| 2 | |
| 3 | require 'ffmpeg' |
| 4 | |
| 5 | ffmpeg = FFmpeg::Helper.new('ffmpeg') |
| 6 | ffmpeg.set_profile(:ipod_touch) |
| 7 | |
| 8 | time = %Q{"#{Time.now.strftime("%Y-%m-%d %H:%M:%S")}"} |
| 9 | ffmpeg.set_option({ |
| 10 | :title => "foobar", |
| 11 | :timestamp => time, |
| 12 | }) |
| 13 | ffmpeg.extended_option('-level 30 -g 300 -coder 0') |
| 14 | |
| 15 | ffmpeg.execute('foobar.flv', 'foobar.mp4') |
| 16 |
Note: See TracBrowser
for help on using the browser.
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)