Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
appwiki:ffmpeg [2018/02/22 11:44]
ying [Common Convertion]
appwiki:ffmpeg [2019/10/03 20:26] (current)
ying [FFmpeg - the core command app of open source transcoder]
Line 6: Line 6:
   * output video format: 3GP, AVI, Blu-ray, DVD, FLV, MKV, MP4, MPEG-PS, Ogg, mov, super VCD, TS, VCD, Webm, WMV   * output video format: 3GP, AVI, Blu-ray, DVD, FLV, MKV, MP4, MPEG-PS, Ogg, mov, super VCD, TS, VCD, Webm, WMV
  
 +  * Doc: https://​ffmpeg.org/​
  
 ====== Common Convertion ====== ====== Common Convertion ======
 +
 +  * disable ffmpeg feedback by adding in 1st flag <code bash>​ffmpeg -hide_banner -loglevel panic -i test.jpg test.png</​code>​
  
   * MTS 50i interlaced video to progress video 50p (ref: [[http://​blog.tahvok.com/​2013/​10/​deinterlacing-and-converting-mts-video.html|link]]) <code bash>​ffmpeg -i in.MTS -vf yadif=1 -acodec ac3 -ab 192k -vcodec mpeg4 -f mp4 -y -qscale 0 out.mp4</​code>​   * MTS 50i interlaced video to progress video 50p (ref: [[http://​blog.tahvok.com/​2013/​10/​deinterlacing-and-converting-mts-video.html|link]]) <code bash>​ffmpeg -i in.MTS -vf yadif=1 -acodec ac3 -ab 192k -vcodec mpeg4 -f mp4 -y -qscale 0 out.mp4</​code>​
Line 34: Line 37:
 enc = '​D:/​toolPath/​ffmpeg.exe -y -r 24 -start_number %s -i "​%s"​ -an -c:v prores_ks -profile:v 2 -pix_fmt yuv422p10le -vendor ap10 "​%s"'​ % (start_number,​ imgSeqPath, movPath) enc = '​D:/​toolPath/​ffmpeg.exe -y -r 24 -start_number %s -i "​%s"​ -an -c:v prores_ks -profile:v 2 -pix_fmt yuv422p10le -vendor ap10 "​%s"'​ % (start_number,​ imgSeqPath, movPath)
 </​code>​ </​code>​
 +
 +  * image conversion and resize (width 320px) <​code>​
 +ffmpeg -i input.jpg -vf scale=320:​-1 output_320.png
 +</​code>​
 +
 +