I tried to convert a .mov file to mp4 using the above command and I recieved the below errors. what is wrong?
[root@test video]# ffmpeg -i MVI_0797.MOV -c:v copy -c:a copy -movflags faststart MVI_0797-fast.MP4 ffmpeg version 2.6.2- http://johnvansickle.com/ffmpeg/ Copyright (c) 2000-2015 the FFmpeg developers built with gcc 4.9.2 (Debian 4.9.2-10) configuration: --enable-gpl --enable-version3 --disable-shared --disable-debug --enable-runtime-cpudetect --enable-libmp3lame --enable-libx264 --enable-libx265 --enable-libwebp --enable-libspeex --enable-libvorbis --enable-libvpx --enable-libfreetype --enable-fontconfig --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-gray --enable-libopenjpeg --enable-libopus --enable-libass --enable-gnutls --enable-libvidstab --enable-libsoxr --cc=gcc-4.9 libavutil 54. 20.100 / 54. 20.100 libavcodec 56. 26.100 / 56. 26.100 libavformat 56. 25.101 / 56. 25.101 libavdevice 56. 4.100 / 56. 4.100 libavfilter 5. 11.102 / 5. 11.102 libswscale 3. 1.101 / 3. 1.101 libswresample 1. 1.100 / 1. 1.100 libpostproc 53. 3.100 / 53. 3.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MVI_0797.MOV': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt CAEP creation_time : 2014-06-15 02:43:16 Duration: 00:00:01.00, start: 0.000000, bitrate: 36419 kb/s Stream #0:0(eng): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1920x1080, 34098 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 48k tbc (default) Metadata: creation_time : 2014-06-15 02:43:16 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, s16, 1536 kb/s (default) Metadata: creation_time : 2014-06-15 02:43:16 File 'MVI_0797-fast.MP4' already exists. Overwrite ? [y/N] y [mp4 @ 0xbe8a6c0] Could not find tag for codec pcm_s16le in stream #1, codec not currently supported in container Output #0, mp4, to 'MVI_0797-fast.MP4': Metadata: major_brand : qt minor_version : 537331968 compatible_brands: qt CAEP encoder : Lavf56.25.101 Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuvj420p, 1920x1080, q=2-31, 34098 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc (default) Metadata: creation_time : 2014-06-15 02:43:16 Stream #0:1(eng): Audio: pcm_s16le (sowt / 0x74776F73), 48000 Hz, stereo, 1536 kb/s (default) Metadata: creation_time : 2014-06-15 02:43:16 Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument On Wednesday, June 24, 2015 8:25 PM, Henk D. Schoneveld <belca...@zonnet.nl> wrote: On 25 Jun 2015, at 01:59, Dani A <danix4u-at-yahoo....@ffmpeg.org> wrote: > so the command to convert .mov tp mp4 with least CPU utilization is > > ffmpeg -i input.MOV -c:v copy -a:a copy -profile:v main -crf 23 -movflags > faststart output.MP4 > I cannot specify scale or or setdar, correct? I said UNALTERED. So NO -profile NO -crf 23 NO scale Maybe setdar is accepted, but 1st try without. And it’s -c:a copy Not -a:a > > > > > On Wednesday, June 24, 2015 5:40 PM, Henk D. Schoneveld ><belca...@zonnet.nl> wrote: > > > > On 24 Jun 2015, at 20:49, Dani A <danix4u-at-yahoo....@ffmpeg.org> wrote: > >> Than you Henk, the other suggestions were great. so if when we copy mthe >> codec,what does FFMEPG do? just rename the file from .mov to mp4? > More or less. A file you can play consist of a container, mp4 mov ts flv avi > etc, think of it as a bottle > This container contains a video and an audio stream, each of which are > encoded with a codec. > Video codecs are h264 h265 xvid mpeg2 > Audio codecs as aac ac3 etc > Further the container contains time codes and other things. > mov and mp4 are containers which have a lot in common but are not the same. > So with c:v copy a:a copy from mov to mp4 you ‘tell’ ffmpeg to put the video > and the audio stream, unaltered, from one bottle into another form of a > bottle. > Not every container can hold all kinds of codecs. You have to google to find > your way, what can and can’t be done. >> >> >> >> >> On Wednesday, June 24, 2015 2:25 PM, Henk D. Schoneveld >><belca...@zonnet.nl> wrote: >> >> >> >> On 21 Jun 2015, at 21:59, Dani A <danix4u-at-yahoo....@ffmpeg.org> wrote: >> >>> Is there any way faster I can convert iphone .mov to mp4. for example, >>> copying the same codec instead of using the libx264 so it will be faster >>> and will not consume so much resources? >> You can use codec copy. But then it is impossible to scale. >> It’s one or the other. >> How much or little did my earlier suggestions help ? >>> >>> >>> >>> On Tuesday, June 16, 2015 7:42 AM, Henk D. Schoneveld >>><belca...@zonnet.nl> wrote: >>> >>> >>> >>> On 16 Jun 2015, at 05:13, Dani A <danix4u-at-yahoo....@ffmpeg.org> wrote: >>> >>>> I am using the below command to covert the .mov files to play html5, but >>>> it takes so much time..Is there another way to convert those files so they >>>> can play on html5 players but fast to convert... >>>> ffmpeg -i input.MOV -vf scale=720x406,setdar=16:9 -c:v libx264 -profile:v >>>> main -crf 20 -movflags faststart output.MOV >>> You can make it faster by lowering the quality, by increasing the crf >>> value. -crf 23 is the default value and is faster then -crf 20. It depends >>> on the kind of stream and on your eyes how high is acceptable to you. >>> Another option if player accepts this is anamorphic encoding, non-square >>> pixels. >>>> >>>> >>>> Is there a faster codec to use compared to the libx264? >>> According to Eighth MPEG-4 AVC/H.264 Video Codecs Comparison … libx264 is >>> the fastest. >>>> >>>> >>>> _______________________________________________ >>>> ffmpeg-user mailing list >>>> ffmpeg-user@ffmpeg.org >>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user@ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >>> >>> >>> _______________________________________________ >>> ffmpeg-user mailing list >>> ffmpeg-user@ffmpeg.org >>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user@ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user >> >> >> _______________________________________________ >> ffmpeg-user mailing list >> ffmpeg-user@ffmpeg.org >> http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user > > > _______________________________________________ > ffmpeg-user mailing list > ffmpeg-user@ffmpeg.org > http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user _______________________________________________ ffmpeg-user mailing list ffmpeg-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-user