Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Lolu chungechunge lwabekwa kunqolobane. Uyacelwa ubuze umbuzo omusha uma udinga usizo.

firefox 102.9.0esr on windows cannot play mp4 from webcam images but google chrome can

  • Akukho zimpendulo
  • 1 inale nkinga
  • 6 views
more options

I recorded USB webcam pictures with MJPG_streamer and converted them to mp4 using

  ffmeg -r 20 -pattern_type glob -i "*.jpg" -c:v libx264 test.mp4

Firefox complains "video can't be played because the file is corrupt" Google Chrome and VLC have no problems playing the file.

What options for ffmpeg do I need to create the mp4 files so that firefox can play them?

The firefox web console says: could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) Details: RefPtr<MediaDataDecoder::DecodePromise> __cdecl mozilla::WMFMediaDataDecoder::ProcessError(HRESULT, const char *): MFTManager::Output(2):80004005

This is what mediainfo shows for the test video: Complete name  : test.mp4 Format  : MPEG-4 Format profile  : Base Media Codec ID  : isom (isom/iso2/avc1/mp41) File size  : 421 KiB Duration  : 3 s 500 ms Overall bit rate  : 985 kb/s Writing application  : Lavf58.76.100

Video ID  : 1 Format  : AVC Format/Info  : Advanced Video Codec Format profile  : High 4:2:2@L3 Format settings  : CABAC / 4 Ref Frames Format settings, CABAC  : Yes Format settings, Reference frames  : 4 frames Codec ID  : avc1 Codec ID/Info  : Advanced Video Coding Duration  : 3 s 500 ms Bit rate  : 981 kb/s Width  : 800 pixels Height  : 448 pixels Display aspect ratio  : 16:9 Frame rate mode  : Constant Frame rate  : 20.000 FPS Color space  : YUV Chroma subsampling  : 4:2:2 Bit depth  : 8 bits Scan type  : Progressive Bits/(Pixel*Frame)  : 0.137 Stream size  : 419 KiB (100%) Writing library  : x264 core 163 r3060 5db6aa6 Encoding settings  : 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=20 / 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 Color range  : Full Matrix coefficients  : BT.470 System B/G Codec configuration box  : avcC

I recorded USB webcam pictures with MJPG_streamer and converted them to mp4 using ffmeg -r 20 -pattern_type glob -i "*.jpg" -c:v libx264 test.mp4 Firefox complains "video can't be played because the file is corrupt" Google Chrome and VLC have no problems playing the file. What options for ffmpeg do I need to create the mp4 files so that firefox can play them? The firefox web console says: could not be decoded, error: Error Code: NS_ERROR_DOM_MEDIA_DECODE_ERR (0x806e0004) Details: RefPtr<MediaDataDecoder::DecodePromise> __cdecl mozilla::WMFMediaDataDecoder::ProcessError(HRESULT, const char *): MFTManager::Output(2):80004005 This is what mediainfo shows for the test video: Complete name : test.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 421 KiB Duration : 3 s 500 ms Overall bit rate : 985 kb/s Writing application : Lavf58.76.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High 4:2:2@L3 Format settings : CABAC / 4 Ref Frames Format settings, CABAC : Yes Format settings, Reference frames : 4 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 3 s 500 ms Bit rate : 981 kb/s Width : 800 pixels Height : 448 pixels Display aspect ratio : 16:9 Frame rate mode : Constant Frame rate : 20.000 FPS Color space : YUV Chroma subsampling : 4:2:2 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.137 Stream size : 419 KiB (100%) Writing library : x264 core 163 r3060 5db6aa6 Encoding settings : 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=20 / 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 Color range : Full Matrix coefficients : BT.470 System B/G Codec configuration box : avcC

Okulungisiwe ngu ffsync5