Converted .mov to .mp4 won't play in some players and devices [on hold]












0















I convert a .mov file to .mp4 using the following ffmpeg command on Ubuntu:



ffmpeg -i infile.mov -vcodec h264 -acodec aac -strict -2 outx3.mp4


I was able to play outx3.mp4 on Ubuntu.

However, only has sound and no video on Firefox in Ubuntu, Windows 10 using "Movie & TV" player, or QuickTime on macOS, or on iOS.

What was the cause?



Edit on Mar 13 14:47 GMT+8



The output is in https://drive.google.com/open?id=1rZXMHMEKMrrFW2BRWxZ-M6nklxPUFrXY



ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'infile.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2019-03-10T01:16:27.000000Z

compatible_brands: qt
creation_time : 2019-03-10T01:16:27.000000Z
Duration: 01:20:25.36, start: 0.000000, bitrate: 40206 kb/s
Stream #0:0(eng): Video: prores (apco / 0x6F637061), yuv422p10le(bt709, top coded first (swapped)), 1920x1080, 37864 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
encoder : Apple ProRes 422 Proxy
timecode : 03:09:06:01
Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
timecode : 03:09:06:01
Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
timecode : 03:09:06:01
Stream mapping:
Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_s24le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55c4a1365a40] using SAR=1/1
[libx264 @ 0x55c4a1365a40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55c4a1365a40] profile High 4:2:2, level 4.0, 4:2:2 8-bit
[libx264 @ 0x55c4a1365a40] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'outx3.mp4':
Metadata:
major_brand : qt
minor_version : 537199360

frame= 47 fps=0.0 q=0.0 size= 0kB time=00:00:00.93 bitrate= 0.0kbits/s speed=1.08x ^Mframe= 60 fps= 43 q=28.0 size= 512kB time=00:00:01.32 bitrate=3171.4kbits/s speed=0.949x ^Mframe= 73 fps= 37 q=28.0 size= 1024kB time=00:00:01.94 bitrate=4321.3kbits/s speed=0.971x ^Mframe= 87 fps= 34 q=28.0 size= 1536kB time=00:00:02.41 bitrate=5219.9kbits/s speed=0.945x


Edit on Mar 14 09:51 GMT+8

On ubuntu using VLC converting .mov to .mp4 can be played on Windows10 using "Movie & TV" player.
Seem I am using wrong parameters.










share|improve this question















put on hold as off-topic by Pilot6, user535733, karel, Eric Carvalho, wjandrea Mar 14 at 1:54


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Pilot6, user535733, karel, Eric Carvalho, wjandrea

If this question can be reworded to fit the rules in the help center, please edit the question.












  • 2





    Your Windows installation lacks the video codec for your file. Try to convert it (with ffmpeg) using another video codec or install an h264 codec in Windows.

    – sudodus
    Mar 12 at 18:34






  • 2





    This a question about Windows.

    – Pilot6
    Mar 12 at 19:24











  • To their credit the OP is using Ubuntu, and the issue is more due to the usage of ffmpeg creating a widely non-compatible output, so it is not particularly a Windows issue and off-topic closers did not consider this. Problem is the pixel format. Need to add -vf format=yuv420p to the command. Remove -strict -2: that was only needed by old versions years ago.

    – llogan
    Mar 14 at 19:01


















0















I convert a .mov file to .mp4 using the following ffmpeg command on Ubuntu:



ffmpeg -i infile.mov -vcodec h264 -acodec aac -strict -2 outx3.mp4


I was able to play outx3.mp4 on Ubuntu.

However, only has sound and no video on Firefox in Ubuntu, Windows 10 using "Movie & TV" player, or QuickTime on macOS, or on iOS.

What was the cause?



Edit on Mar 13 14:47 GMT+8



The output is in https://drive.google.com/open?id=1rZXMHMEKMrrFW2BRWxZ-M6nklxPUFrXY



ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'infile.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2019-03-10T01:16:27.000000Z

compatible_brands: qt
creation_time : 2019-03-10T01:16:27.000000Z
Duration: 01:20:25.36, start: 0.000000, bitrate: 40206 kb/s
Stream #0:0(eng): Video: prores (apco / 0x6F637061), yuv422p10le(bt709, top coded first (swapped)), 1920x1080, 37864 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
encoder : Apple ProRes 422 Proxy
timecode : 03:09:06:01
Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
timecode : 03:09:06:01
Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
timecode : 03:09:06:01
Stream mapping:
Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_s24le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55c4a1365a40] using SAR=1/1
[libx264 @ 0x55c4a1365a40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55c4a1365a40] profile High 4:2:2, level 4.0, 4:2:2 8-bit
[libx264 @ 0x55c4a1365a40] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'outx3.mp4':
Metadata:
major_brand : qt
minor_version : 537199360

frame= 47 fps=0.0 q=0.0 size= 0kB time=00:00:00.93 bitrate= 0.0kbits/s speed=1.08x ^Mframe= 60 fps= 43 q=28.0 size= 512kB time=00:00:01.32 bitrate=3171.4kbits/s speed=0.949x ^Mframe= 73 fps= 37 q=28.0 size= 1024kB time=00:00:01.94 bitrate=4321.3kbits/s speed=0.971x ^Mframe= 87 fps= 34 q=28.0 size= 1536kB time=00:00:02.41 bitrate=5219.9kbits/s speed=0.945x


Edit on Mar 14 09:51 GMT+8

On ubuntu using VLC converting .mov to .mp4 can be played on Windows10 using "Movie & TV" player.
Seem I am using wrong parameters.










share|improve this question















put on hold as off-topic by Pilot6, user535733, karel, Eric Carvalho, wjandrea Mar 14 at 1:54


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Pilot6, user535733, karel, Eric Carvalho, wjandrea

If this question can be reworded to fit the rules in the help center, please edit the question.












  • 2





    Your Windows installation lacks the video codec for your file. Try to convert it (with ffmpeg) using another video codec or install an h264 codec in Windows.

    – sudodus
    Mar 12 at 18:34






  • 2





    This a question about Windows.

    – Pilot6
    Mar 12 at 19:24











  • To their credit the OP is using Ubuntu, and the issue is more due to the usage of ffmpeg creating a widely non-compatible output, so it is not particularly a Windows issue and off-topic closers did not consider this. Problem is the pixel format. Need to add -vf format=yuv420p to the command. Remove -strict -2: that was only needed by old versions years ago.

    – llogan
    Mar 14 at 19:01
















0












0








0








I convert a .mov file to .mp4 using the following ffmpeg command on Ubuntu:



ffmpeg -i infile.mov -vcodec h264 -acodec aac -strict -2 outx3.mp4


I was able to play outx3.mp4 on Ubuntu.

However, only has sound and no video on Firefox in Ubuntu, Windows 10 using "Movie & TV" player, or QuickTime on macOS, or on iOS.

What was the cause?



Edit on Mar 13 14:47 GMT+8



The output is in https://drive.google.com/open?id=1rZXMHMEKMrrFW2BRWxZ-M6nklxPUFrXY



ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'infile.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2019-03-10T01:16:27.000000Z

compatible_brands: qt
creation_time : 2019-03-10T01:16:27.000000Z
Duration: 01:20:25.36, start: 0.000000, bitrate: 40206 kb/s
Stream #0:0(eng): Video: prores (apco / 0x6F637061), yuv422p10le(bt709, top coded first (swapped)), 1920x1080, 37864 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
encoder : Apple ProRes 422 Proxy
timecode : 03:09:06:01
Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
timecode : 03:09:06:01
Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
timecode : 03:09:06:01
Stream mapping:
Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_s24le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55c4a1365a40] using SAR=1/1
[libx264 @ 0x55c4a1365a40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55c4a1365a40] profile High 4:2:2, level 4.0, 4:2:2 8-bit
[libx264 @ 0x55c4a1365a40] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'outx3.mp4':
Metadata:
major_brand : qt
minor_version : 537199360

frame= 47 fps=0.0 q=0.0 size= 0kB time=00:00:00.93 bitrate= 0.0kbits/s speed=1.08x ^Mframe= 60 fps= 43 q=28.0 size= 512kB time=00:00:01.32 bitrate=3171.4kbits/s speed=0.949x ^Mframe= 73 fps= 37 q=28.0 size= 1024kB time=00:00:01.94 bitrate=4321.3kbits/s speed=0.971x ^Mframe= 87 fps= 34 q=28.0 size= 1536kB time=00:00:02.41 bitrate=5219.9kbits/s speed=0.945x


Edit on Mar 14 09:51 GMT+8

On ubuntu using VLC converting .mov to .mp4 can be played on Windows10 using "Movie & TV" player.
Seem I am using wrong parameters.










share|improve this question
















I convert a .mov file to .mp4 using the following ffmpeg command on Ubuntu:



ffmpeg -i infile.mov -vcodec h264 -acodec aac -strict -2 outx3.mp4


I was able to play outx3.mp4 on Ubuntu.

However, only has sound and no video on Firefox in Ubuntu, Windows 10 using "Movie & TV" player, or QuickTime on macOS, or on iOS.

What was the cause?



Edit on Mar 13 14:47 GMT+8



The output is in https://drive.google.com/open?id=1rZXMHMEKMrrFW2BRWxZ-M6nklxPUFrXY



ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7 (Ubuntu 7.3.0-16ubuntu3)
configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
WARNING: library configuration mismatch
avcodec configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared --enable-version3 --disable-doc --disable-programs --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libtesseract --enable-libvo_amrwbenc
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libavresample 3. 7. 0 / 3. 7. 0
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Guessed Channel Layout for Input Stream #0.1 : stereo
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'infile.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2019-03-10T01:16:27.000000Z

compatible_brands: qt
creation_time : 2019-03-10T01:16:27.000000Z
Duration: 01:20:25.36, start: 0.000000, bitrate: 40206 kb/s
Stream #0:0(eng): Video: prores (apco / 0x6F637061), yuv422p10le(bt709, top coded first (swapped)), 1920x1080, 37864 kb/s, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
encoder : Apple ProRes 422 Proxy
timecode : 03:09:06:01
Stream #0:1(eng): Audio: pcm_s24le (in24 / 0x34326E69), 48000 Hz, stereo, s32 (24 bit), 2304 kb/s (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
timecode : 03:09:06:01
Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
Metadata:
creation_time : 2019-03-10T01:16:27.000000Z
handler_name : ?Apple Alias Data Handler
timecode : 03:09:06:01
Stream mapping:
Stream #0:0 -> #0:0 (prores (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (pcm_s24le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x55c4a1365a40] using SAR=1/1
[libx264 @ 0x55c4a1365a40] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x55c4a1365a40] profile High 4:2:2, level 4.0, 4:2:2 8-bit
[libx264 @ 0x55c4a1365a40] 264 - core 152 r2854 e9a5903 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'outx3.mp4':
Metadata:
major_brand : qt
minor_version : 537199360

frame= 47 fps=0.0 q=0.0 size= 0kB time=00:00:00.93 bitrate= 0.0kbits/s speed=1.08x ^Mframe= 60 fps= 43 q=28.0 size= 512kB time=00:00:01.32 bitrate=3171.4kbits/s speed=0.949x ^Mframe= 73 fps= 37 q=28.0 size= 1024kB time=00:00:01.94 bitrate=4321.3kbits/s speed=0.971x ^Mframe= 87 fps= 34 q=28.0 size= 1536kB time=00:00:02.41 bitrate=5219.9kbits/s speed=0.945x


Edit on Mar 14 09:51 GMT+8

On ubuntu using VLC converting .mov to .mp4 can be played on Windows10 using "Movie & TV" player.
Seem I am using wrong parameters.







sound video ffmpeg






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 14 at 19:07









llogan

5,2001737




5,2001737










asked Mar 12 at 16:37









user1121055user1121055

3417




3417




put on hold as off-topic by Pilot6, user535733, karel, Eric Carvalho, wjandrea Mar 14 at 1:54


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Pilot6, user535733, karel, Eric Carvalho, wjandrea

If this question can be reworded to fit the rules in the help center, please edit the question.







put on hold as off-topic by Pilot6, user535733, karel, Eric Carvalho, wjandrea Mar 14 at 1:54


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This is not about Ubuntu. Questions about other Linux distributions can be asked on Unix & Linux, those about Windows on Super User, those about Apple products on Ask Different and generic programming questions on Stack Overflow." – Pilot6, user535733, karel, Eric Carvalho, wjandrea

If this question can be reworded to fit the rules in the help center, please edit the question.








  • 2





    Your Windows installation lacks the video codec for your file. Try to convert it (with ffmpeg) using another video codec or install an h264 codec in Windows.

    – sudodus
    Mar 12 at 18:34






  • 2





    This a question about Windows.

    – Pilot6
    Mar 12 at 19:24











  • To their credit the OP is using Ubuntu, and the issue is more due to the usage of ffmpeg creating a widely non-compatible output, so it is not particularly a Windows issue and off-topic closers did not consider this. Problem is the pixel format. Need to add -vf format=yuv420p to the command. Remove -strict -2: that was only needed by old versions years ago.

    – llogan
    Mar 14 at 19:01
















  • 2





    Your Windows installation lacks the video codec for your file. Try to convert it (with ffmpeg) using another video codec or install an h264 codec in Windows.

    – sudodus
    Mar 12 at 18:34






  • 2





    This a question about Windows.

    – Pilot6
    Mar 12 at 19:24











  • To their credit the OP is using Ubuntu, and the issue is more due to the usage of ffmpeg creating a widely non-compatible output, so it is not particularly a Windows issue and off-topic closers did not consider this. Problem is the pixel format. Need to add -vf format=yuv420p to the command. Remove -strict -2: that was only needed by old versions years ago.

    – llogan
    Mar 14 at 19:01










2




2





Your Windows installation lacks the video codec for your file. Try to convert it (with ffmpeg) using another video codec or install an h264 codec in Windows.

– sudodus
Mar 12 at 18:34





Your Windows installation lacks the video codec for your file. Try to convert it (with ffmpeg) using another video codec or install an h264 codec in Windows.

– sudodus
Mar 12 at 18:34




2




2





This a question about Windows.

– Pilot6
Mar 12 at 19:24





This a question about Windows.

– Pilot6
Mar 12 at 19:24













To their credit the OP is using Ubuntu, and the issue is more due to the usage of ffmpeg creating a widely non-compatible output, so it is not particularly a Windows issue and off-topic closers did not consider this. Problem is the pixel format. Need to add -vf format=yuv420p to the command. Remove -strict -2: that was only needed by old versions years ago.

– llogan
Mar 14 at 19:01







To their credit the OP is using Ubuntu, and the issue is more due to the usage of ffmpeg creating a widely non-compatible output, so it is not particularly a Windows issue and off-topic closers did not consider this. Problem is the pixel format. Need to add -vf format=yuv420p to the command. Remove -strict -2: that was only needed by old versions years ago.

– llogan
Mar 14 at 19:01












0






active

oldest

votes

















0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes

Popular posts from this blog

Category:香港粉麵

List *all* the tuples!

Channel [V]