[FFmpeg-user] trim AND fade video

Ryan M rymerrick at gmail.com
Mon Apr 29 23:05:11 CEST 2013


Hello,
I am taking video and trimming it into sections. This works fine but I'd
also like to, at the same time, fade those sections in and out.  This is
the command I'm trying and the results.  Any help would be appreciated.
thanks

 ffmpeg -i "/mnt/dsm_dvdrip/vob/processed/022891452898.vob" -ss 0:0:0.0 -t
195 -vf fade=in:0:150 -vf fade=out:5700:150 -vf afade=t=in:ss=0:d=5 -vf
afade=t=out:ss=190:d=5 -crf 25.0 -vcodec libx264 -ar 48000 -ab 128k -ac 2
-coder 1 -flags +loop -partitions +parti4x4+partp8x8+partb8x8 -me_method
hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor
0.71 -b_strategy 1 -y -threads 0 -map 0:1 -map 0:2
"/mnt/dsm_dvdrip/encodes/chunked/022891452898/022891452898_chap1.mp4"

ffmpeg version N-51331-g7b3ca7a Copyright (c) 2000-2013 the FFmpeg
developers
  built on Mar 26 2013 16:16:36 with gcc 4.4.3 (Ubuntu 4.4.3-4ubuntu5.1)
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
--enable-version3 --enable-x11grab
  libavutil      52. 22.101 / 52. 22.101
  libavcodec     55.  1.100 / 55.  1.100
  libavformat    55.  0.100 / 55.  0.100
  libavdevice    55.  0.100 / 55.  0.100
  libavfilter     3. 48.105 /  3. 48.105
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[mpeg @ 0x1cc0040] max_analyze_duration 5000000 reached at 5005000
microseconds
Input #0, mpeg, from '/mnt/dsm_dvdrip/vob/processed/022891452898.vob':
  Duration: 00:36:13.63, start: 0.233567, bitrate: 7220 kb/s
    Stream #0:0[0x1bf]: Data: dvd_nav_packet
    Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p, 720x480 [SAR 8:9
DAR 4:3], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
    Stream #0:2[0x80]: Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s
    Stream #0:3[0x81]: Audio: ac3, 48000 Hz, stereo, fltp, 192 kb/s
[abuffer @ 0x1cb7d40] Value inf for parameter 'time_base' out of range [0 -
2.14748e+09]
Error opening filters!


More information about the ffmpeg-user mailing list