

ffmpeg -i input_filename.avi -c:v copy -c:a copy -y output_filename.mp4. It should work for most of the use-cases. >Encoding settings : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=6 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=18 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=0 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc=2pass / mbtree=0 / bitrate=2910 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00īeing new to ffmpeg, I'm not sure what the error means or how to correct it.Ok, if you are in a hurry to convert AVI to MP4 using FFmpeg, then simply run the following FFmpeg command. >Writing library : libebml v0.7.8 + libmatroska v0.8.1 >Writing application : mkvmerge v2.9.5 ('Tu es le seul') built on >16:28:30

The input file has the following characteristics: mediainfo input.mkv I used this command to convert the file: ffmpeg -i input.mkv -vcodec copy -acodec copy -absf aac_adtstoasc output.m4v Provided invalid, non monotonically increasing dts to muxer in streamĠ: -2 >= -2 av_interleaved_write_frame(): Invalid argument Press ctrl-c to stop encoding Application Stream #0.2(eng): Subtitle: / 0x0000 Output #0, ipod, to 'output.m4v': Metadata: Reached Estimating duration fromīitrate, this may be inaccurate Input #0, matroska,webm, from *** THIS PROGRAM IS DEPRECATED *** This program is only provided for compatibility and will be removed in a future release. When I try converting mkv to mp4 using ffmpeg, the following error occurs: version 0.8.3-4:0.8.3-0ubuntu0.12.04.1, Copyright (c) 2000-2012 the Libav developers built on 16:52:09 with gcc 4.6.3
