Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (21)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

Sur d’autres sites (3652)

  • FFMPEG TimeCode synchronization

    14 juin 2017, par Spadieri

    I have a problem with the length of a TS video file.

    Use Hauppauge QuadTV HD video capture card,

    ffprobe TS file

    {

    [STREAM]
    index=0
    codec_name=mpeg2video
    codec_long_name=MPEG-2 video
    profile=Main
    codec_type=video
    codec_time_base=1/25
    codec_tag_string=[2][0][0][0]
    codec_tag=0x0002
    width=720
    height=576
    coded_width=0
    coded_height=0
    has_b_frames=1
    sample_aspect_ratio=64:45
    display_aspect_ratio=16:9
    pix_fmt=yuv420p
    level=8
    color_range=tv
    color_space=unknown
    color_transfer=unknown
    color_primaries=unknown
    chroma_location=left
    field_order=tt
    timecode=N/A
    refs=1
    id=0x201
    r_frame_rate=25/1
    avg_frame_rate=25/1
    time_base=1/90000
    start_pts=4090681690
    start_time=45452.018778
    duration_ts=323618400
    duration=3595.760000
    bit_rate=N/A
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=N/A
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=0
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    DISPOSITION:timed_thumbnails=0
    [/STREAM]
    [STREAM]
    index=1
    codec_name=mp2
    codec_long_name=MP2 (MPEG audio layer 2)
    profile=unknown
    codec_type=audio
    codec_time_base=1/48000
    codec_tag_string=[4][0][0][0]
    codec_tag=0x0004
    sample_fmt=s16p
    sample_rate=48000
    channels=2
    channel_layout=stereo
    bits_per_sample=0
    id=0x28b
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=1/90000
    start_pts=4090672903
    start_time=45451.921144
    duration_ts=323585280
    duration=3595.392000
    bit_rate=192000
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=N/A
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=0
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    DISPOSITION:timed_thumbnails=0
    TAG:language=ita
    [/STREAM]
    [STREAM]
    index=2
    codec_name=dvb_teletext
    codec_long_name=DVB teletext
    profile=unknown
    codec_type=subtitle
    codec_tag_string=[6][0][0][0]
    codec_tag=0x0006
    width=N/A
    height=N/A
    id=0x241
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=1/90000
    start_pts=4090655137
    start_time=45451.723744
    duration_ts=323611200
    duration=3595.680000
    bit_rate=N/A
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=N/A
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=0
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    DISPOSITION:timed_thumbnails=0
    TAG:language=ita
    [/STREAM]
    [STREAM]
    index=3
    codec_name=mp2
    codec_long_name=MP2 (MPEG audio layer 2)
    profile=unknown
    codec_type=audio
    codec_time_base=1/48000
    codec_tag_string=[4][0][0][0]
    codec_tag=0x0004
    sample_fmt=s16p
    sample_rate=48000
    channels=1
    channel_layout=mono
    bits_per_sample=0
    id=0x2b7
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=1/90000
    start_pts=4090668157
    start_time=45451.868411
    duration_ts=323589600
    duration=3595.440000
    bit_rate=64000
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=N/A
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=0
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    DISPOSITION:timed_thumbnails=0
    TAG:language=Oth
    [/STREAM]
    [STREAM]
    index=4
    codec_name=mp2
    codec_long_name=MP2 (MPEG audio layer 2)
    profile=unknown
    codec_type=audio
    codec_time_base=1/48000
    codec_tag_string=[4][0][0][0]
    codec_tag=0x0004
    sample_fmt=s16p
    sample_rate=48000
    channels=2
    channel_layout=stereo
    bits_per_sample=0
    id=0x2b8
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=1/90000
    start_pts=4090663971
    start_time=45451.821900
    duration_ts=323585280
    duration=3595.392000
    bit_rate=192000
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=N/A
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=0
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    DISPOSITION:timed_thumbnails=0
    TAG:language=eng
    [/STREAM]
    [STREAM]
    index=5
    codec_name=unknown
    codec_long_name=unknown
    profile=unknown
    codec_type=unknown
    codec_tag_string=[5][0][0][0]
    codec_tag=0x0005
    id=0x7d2
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=1/90000
    start_pts=4090655137
    start_time=45451.723744
    duration_ts=323644953
    duration=3596.055033
    bit_rate=N/A
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=N/A
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=0
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    DISPOSITION:timed_thumbnails=0
    [/STREAM]
    [STREAM]
    index=6
    codec_name=unknown
    codec_long_name=unknown
    profile=unknown
    codec_type=unknown
    codec_tag_string=[11][0][0][0]
    codec_tag=0x000b
    id=0xbb9
    r_frame_rate=0/0
    avg_frame_rate=0/0
    time_base=1/90000
    start_pts=4090655137
    start_time=45451.723744
    duration_ts=323644953
    duration=3596.055033
    bit_rate=N/A
    max_bit_rate=N/A
    bits_per_raw_sample=N/A
    nb_frames=N/A
    nb_read_frames=N/A
    nb_read_packets=N/A
    DISPOSITION:default=0
    DISPOSITION:dub=0
    DISPOSITION:original=0
    DISPOSITION:comment=0
    DISPOSITION:lyrics=0
    DISPOSITION:karaoke=0
    DISPOSITION:forced=0
    DISPOSITION:hearing_impaired=0
    DISPOSITION:visual_impaired=0
    DISPOSITION:clean_effects=0
    DISPOSITION:attached_pic=0
    DISPOSITION:timed_thumbnails=0
    [/STREAM]

    }

    steps :

    1°- demux con ProjectX
    output :
    video.m2v (25 fps)
    audio.mp2

    ffmprobe video.m2v
    {


    [STREAM]
       index=0
       codec_name=mpeg2video
       codec_long_name=MPEG-2 video
       profile=Main
       codec_type=video
       codec_time_base=1/25
       codec_tag_string=[0][0][0][0]
       codec_tag=0x0000
       width=720
       height=576
       coded_width=0
       coded_height=0
       has_b_frames=1
       sample_aspect_ratio=64:45
       display_aspect_ratio=16:9
       pix_fmt=yuv420p
       level=8
       color_range=tv
       color_space=unknown
       color_transfer=unknown
       color_primaries=unknown
       chroma_location=left
       field_order=progressive
       timecode=N/A
       refs=1
       id=0x1e0
       r_frame_rate=25/1
       avg_frame_rate=25/1
       time_base=1/90000
       start_pts=48600
       start_time=0.540000
       duration_ts=322970400
       duration=3588.560000
       bit_rate=N/A
       max_bit_rate=N/A
       bits_per_raw_sample=N/A
       nb_frames=N/A
       nb_read_frames=N/A
       nb_read_packets=N/A
       DISPOSITION:default=0
       DISPOSITION:dub=0
       DISPOSITION:original=0
       DISPOSITION:comment=0
       DISPOSITION:lyrics=0
       DISPOSITION:karaoke=0
       DISPOSITION:forced=0
       DISPOSITION:hearing_impaired=0
       DISPOSITION:visual_impaired=0
       DISPOSITION:clean_effects=0
       DISPOSITION:attached_pic=0
       DISPOSITION:timed_thumbnails=0
       [/STREAM]

    }

    2° - Burn TimeCode with ffmpeg

    CL : "ffmpeg -i video.m2v -c:v mpeg2video -vf "drawtext=fontfile=courier.ttf: timecode='00\:00\:00\:00': r=25: x=10: y=10: fontcolor=white: box=1: fontsize=50: boxcolor=0x00000099" output.mpeg"

    ffmpeg output:
    {


    ffmpeg version N-85604-g207e6de Copyright (c) 2000-2017 the FFmpeg developers
       built with gcc 6.3.0 (GCC)
       configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
       libavutil      55. 61.100 / 55. 61.100
       libavcodec     57. 93.100 / 57. 93.100
       libavformat    57. 72.101 / 57. 72.101
       libavdevice    57.  7.100 / 57.  7.100
       libavfilter     6. 86.100 /  6. 86.100
       libswscale      4.  7.101 /  4.  7.101
       libswresample   2.  8.100 /  2.  8.100
       libpostproc    54.  6.100 / 54.  6.100
       Input #0, mpegvideo, from 'R2_TG2_20170607_13001.m2v':
       Duration: N/A, bitrate: N/A
       Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 1200k tbn, 50 tbc
       Stream mapping:
       Stream #0:0 -> #0:0 (mpeg2video (native) -> mpeg2video (native))
       Press [q] to stop, [?] for help
       [mpeg @ 00000000025eb760] VBV buffer size not set, using default size of 130KB
       If you want the mpeg file to be compliant to some specification
       Like DVD, VCD or others, make sure you set the correct buffer size
       Output #0, mpeg, to 'output.mpeg':
       Metadata:
       encoder         : Lavf57.72.101
       Stream #0:0: Video: mpeg2video (Main), yuv420p, 720x576 [SAR 64:45 DAR 16:9], q=2-31, 200 kb/s, 25 fps, 90k tbn, 25 tbc
       Metadata:
         encoder         : Lavc57.93.100 mpeg2video
       Side data:
         cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
       [mpeg2video @ 0000000002625020] ac-tex damaged at 1 3027.24 bitrate= 879.1kbits/s speed=  39x
       [mpeg2video @ 0000000002625020] Warning MVs not available
       [mpeg2video @ 0000000002625020] concealing 45 DC, 45 AC, 45 MV errors in I frame
       [mpeg2video @ 0000000002625020] Warning MVs not available56 bitrate= 846.8kbits/s speed=39.1x
       [mpeg2video @ 0000000002625020] concealing 1 DC, 1 AC, 1 MV errors in B frame
       frame=89714 fps=974 q=31.0 Lsize=  332412kB time=00:59:48.52 bitrate= 758.8kbits/s speed=  39x
       video:329859kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.774119%

    }

    As seen from the screenshots there are 14 frames of difference, and later rise to 35

    Can frames be damaged and ffmpeg skip them ?

    The video for the first 13 minutes is perfectly synchronized

    OriginalFrame Time

    OutputFrame Time

    3° - remux [output.mmpeg] with original audio [audio.mp2]

    CL: "ffmpeg -i output.mpeg -i originalAudio.mp2 -c:a copy -c:v copy finalOutput.mpeg"

    ffmpeg output:
    {


    ffmpeg version N-85604-g207e6de Copyright (c) 2000-2017 the FFmpeg developers
       built with gcc 6.3.0 (GCC)
       configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
       libavutil      55. 61.100 / 55. 61.100
       libavcodec     57. 93.100 / 57. 93.100
       libavformat    57. 72.101 / 57. 72.101
       libavdevice    57.  7.100 / 57.  7.100
       libavfilter     6. 86.100 /  6. 86.100
       libswscale      4.  7.101 /  4.  7.101
       libswresample   2.  8.100 /  2.  8.100
       libpostproc    54.  6.100 / 54.  6.100
       Input #0, mpeg, from 'output.mpeg':
       Duration: 00:59:48.56, start: 0.540000, bitrate: 758 kb/s
       Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
       [mp3 @ 0000000002894980] Estimating duration from bitrate, this may be inaccurate
       Input #1, mp3, from 'R2_TG2_20170607_13001.mp2':
       Duration: 00:59:48.55, start: 0.000000, bitrate: 192 kb/s
       Stream #1:0: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
       [mpeg @ 000000000289a880] VBV buffer size not set, using default size of 130KB
       If you want the mpeg file to be compliant to some specification
       Like DVD, VCD or others, make sure you set the correct buffer size
       Output #0, mpeg, to 'finalOutput.mpeg':
       Metadata:
       encoder         : Lavf57.72.101
       Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
       Stream #0:1: Audio: mp2, 48000 Hz, stereo, s16p, 192 kb/s
       Stream mapping:
       Stream #0:0 -> #0:0 (copy)
       Stream #1:0 -> #0:1 (copy)
       Press [q] to stop, [?] for help
       [mpeg @ 000000000289a880] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
       frame=89714 fps=26872 q=-1.0 Lsize=  417232kB time=00:59:48.52 bitrate= 952.5kbits/s speed=1.07e+003x
       video:329859kB audio:84107kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.789151%

    }

    FinalOutput.mpeg has the same frames as output.mpeg
    I have several TransportStreams to process and everyone has a frame difference

    someone can help me to solve the problem ?

    I need FinalOutput.mpeg to be aligned frame by frame with the original and necessarily the video must impress the timecode.

    a possible solution would also be a replace "damaged" frame but I can not find out how to replace the skipped frames

    EDIT :

    i’ve tried to work from OriginalVideo.ts and extracted video with -map directly with FFMPEG but the result is the same

    CL : ffmpeg -i OriginalVideo.ts -map 0:0 -c:v copy output.h264

       ffmpeg version N-85604-g207e6de Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 6.3.0 (GCC)
    configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
    libavutil      55. 61.100 / 55. 61.100
    libavcodec     57. 93.100 / 57. 93.100
    libavformat    57. 72.101 / 57. 72.101
    libavdevice    57.  7.100 / 57.  7.100
    libavfilter     6. 86.100 /  6. 86.100
    libswscale      4.  7.101 /  4.  7.101
    libswresample   2.  8.100 /  2.  8.100
    libpostproc    54.  6.100 / 54.  6.100
    [mpeg2video @ 0000000000dd4c20] Invalid frame dimensions 0x0.
    Last message repeated 5 times
    [mp2 @ 0000000000dd7e00] Header missing
    [mp2 @ 0000000000dd8f20] Header missing
    [mpeg2video @ 0000000000dd4c20] Invalid frame dimensions 0x0.
    [mp2 @ 0000000000dd5b60] Header missing
    [mpegts @ 0000000000dd25a0] PES packet size mismatch
    Last message repeated 1 times
    [mpegts @ 0000000000dd25a0] Could not find codec parameters for stream 5 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    [mpegts @ 0000000000dd25a0] Could not find codec parameters for stream 6 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mpegts, from 'R2_TG2_20170607_13001.ts':
    Duration: 00:59:56.06, start: 45451.723744, bitrate: 5901 kb/s
    Program 3402
    Stream #0:0[0x201]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x28b](ita): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
    Stream #0:2[0x241](ita): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
    Stream #0:3[0x2b7](Oth): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, mono, s16p, 64 kb/s
    Stream #0:4[0x2b8](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
    Stream #0:5[0x7d2]: Unknown: none ([5][0][0][0] / 0x0005)
    Stream #0:6[0xbb9]: Unknown: none ([11][0][0][0] / 0x000B)
    Output #0, h264, to 'output.h264':
    Metadata:
    encoder         : Lavf57.72.101
    Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 25 tbn, 25 tbc
    Stream mapping:
    Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    frame=89746 fps=6083 q=-1.0 Lsize= 2131869kB time=00:59:55.64 bitrate=4857.1kbits/s speed= 244x
    video:2131869kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%

    if i try to extract video in mpeg format FFMPEG retrive me following errors :

    ffmpeg version N-85604-g207e6de Copyright (c) 2000-2017 the FFmpeg developers
         built with gcc 6.3.0 (GCC)
         configuration: --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
         libavutil      55. 61.100 / 55. 61.100
         libavcodec     57. 93.100 / 57. 93.100
         libavformat    57. 72.101 / 57. 72.101
         libavdevice    57.  7.100 / 57.  7.100
         libavfilter     6. 86.100 /  6. 86.100
         libswscale      4.  7.101 /  4.  7.101
         libswresample   2.  8.100 /  2.  8.100
         libpostproc    54.  6.100 / 54.  6.100
       [mpeg2video @ 0000000002824c20] Invalid frame dimensions 0x0.
           Last message repeated 5 times
       [mp2 @ 0000000002827e00] Header missing
       [mp2 @ 0000000002828f20] Header missing
       [mpeg2video @ 0000000002824c20] Invalid frame dimensions 0x0.
       [mp2 @ 0000000002825b60] Header missing
       [mpegts @ 00000000028225a0] PES packet size mismatch
           Last message repeated 1 times
       [mpegts @ 00000000028225a0] Could not find codec parameters for stream 5 (Unknown: none ([5][0][0][0] / 0x0005)): unknown codec
       Consider increasing the value for the 'analyzeduration' and 'probesize' options
       [mpegts @ 00000000028225a0] Could not find codec parameters for stream 6 (Unknown: none ([11][0][0][0] / 0x000B)): unknown codec
       Consider increasing the value for the 'analyzeduration' and 'probesize' options
       Input #0, mpegts, from 'R2_TG2_20170607_13001.ts':
         Duration: 00:59:56.06, start: 45451.723744, bitrate: 5901 kb/s
         Program 3402
           Stream #0:0[0x201]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
           Stream #0:1[0x28b](ita): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
           Stream #0:2[0x241](ita): Subtitle: dvb_teletext ([6][0][0][0] / 0x0006)
           Stream #0:3[0x2b7](Oth): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, mono, s16p, 64 kb/s
           Stream #0:4[0x2b8](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
           Stream #0:5[0x7d2]: Unknown: none ([5][0][0][0] / 0x0005)
           Stream #0:6[0xbb9]: Unknown: none ([11][0][0][0] / 0x000B)
       File 'output.mpeg' already exists. Overwrite ? [y/N] y
       [mpeg @ 000000000072bc80] VBV buffer size not set, using default size of 130KB
       If you want the mpeg file to be compliant to some specification
       Like DVD, VCD or others, make sure you set the correct buffer size
       Output #0, mpeg, to 'output.mpeg':
         Metadata:
           encoder         : Lavf57.72.101
           Stream #0:0: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv, top first), 720x576 [SAR 64:45 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 25 tbc
       Stream mapping:
         Stream #0:0 -> #0:0 (copy)
       Press [q] to stop, [?] for help
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=1218 size=11754=4752.0kbits/s speed= 229x
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=3247 size=11754
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=5288 size=11754
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=7329 size=11754
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=9370 size=11754
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=11411 size=11754
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=1862 size=17826
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=3891 size=17826
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=5932 size=17826
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=7973 size=17826
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=10014 size=17826
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=12055 size=17826
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=14096 size=17826
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=16137 size=17826
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=875 size=88109e=4684.9kbits/s speed= 239x
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=2904 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=4945 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=6986 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=9027 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=11068 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=13109 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=15150 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=17191 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=19232 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=21273 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=23314 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=25355 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=27396 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=29437 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=31478 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=33519 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=35560 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=37601 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=39642 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=41683 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=43724 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=45765 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=47806 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=49847 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=51888 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=53929 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=55970 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=58011 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=60052 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=62093 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=64134 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=66175 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=68216 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=70257 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=72298 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=74339 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=76380 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=78421 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=80462 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=82503 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=84544 size=88109
       [mpeg @ 000000000072bc80] buffer underflow st=0 bufi=86585 size=88109
       frame=89746 fps=5348 q=-1.0 Lsize= 2140734kB time=00:59:55.60 bitrate=4877.3kbits/s speed= 214x
       video:2131869kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.415814%
  • current version of ffmpeg3.3.2 encode twice time of my video,the duration last two times long

    20 juin 2017, par jimmy

    I have a video with 00:01:41.46 play time,and transcode it perfect with ffmpeg-2.1.1,but when I upgrade FFmpeg version to 3.3.2 and compile it with the same compile option and same transcode option as 2.1.1 version used, I got a video with 00:03:21.82 long, I played that video to see what was added after 1:41.46, and find that it just repeat the video from the beginning with no audio, I find out no idea to this issue, it seems to be a bug that FFmpeg introducing, anyone help me !

    here is the log that I had transcoded with ffmpeg 3.3.2 :

    ffmpeg -i natural.mp4 -c:v libx264 -c:a copy output.mp4
    ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2)

    configuration: --enable-gpl --enable-nonfree --yasmexe=release/bin/yasm -- prefix=release --cc= --enable-static --disable-shared --disable-debug --extra-cflags=-Irelease/include --extra-ldflags='-Lrelease/lib -lm -ldl' --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --enable-postproc --enable-bzlib --enable-zlib --enable-parsers --enable-libx264 --enable-libmp3lame --enable-libfdk-aac --enable-libspeex --enable-pthreads --extra->libs=-lpthread --enable-encoders --enable-decoders --enable-avfilter --enable->muxers --enable-demuxers

    libavutil      55. 58.100 / 55. 58.100
    libavcodec     57. 89.100 / 57. 89.100
    libavformat    57. 71.100 / 57. 71.100
    libavdevice    57.  6.100 / 57.  6.100
    libavfilter     6. 82.100 /  6. 82.100
    libswscale      4.  6.100 /  4.  6.100
    libswresample   2.  7.100 /  2.  7.100
    libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'natural.mp4':
     Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: mp42isom
     creation_time   : 2009-07-11T08:32:34.000000Z
     encoder         : mp4creator 1.6.1d
     Duration: 00:01:41.46, start: 0.000000, bitrate: 9063 kb/s
     Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 8976 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 2997 tbc (default)
    Metadata:
       creation_time   : 2009-07-11T08:32:34.000000Z
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
    Metadata:
       creation_time   : 2009-07-11T08:33:09.000000Z
    Stream mapping:
     Stream #0:0 -> #0:0 (mpeg4 (native) -> h264 (libx264))
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    [libx264 @ 0x2d951e0] using SAR=4/3
    [libx264 @ 0x2d951e0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
    [libx264 @ 0x2d951e0] profile High, level 4.0
    [libx264 @ 0x2d951e0] 264 - core 138 r1+3473M a37a143 - H.264/MPEG-4 AVC codec >- Copyleft 2003-2013 - 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=23 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 'output.mp4':
    Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: mp42isom
     encoder         : Lavf57.71.100
    Stream #0:0(eng): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=-1--1, 23.98 fps, 24k tbn, 23.98 tbc (default)
     Metadata:
       creation_time   : 2009-07-11T08:32:34.000000Z
       encoder         : Lavc57.89.100 libx264
     Side data:
       cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
     Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 125 kb/s (default)
     Metadata:
       creation_time   : 2009-07-11T08:33:09.000000Z
    frame= 4842 fps= 27 q=-1.0 Lsize=  107608kB time=00:03:21.82
    bitrate=4367.8kbits/s speed=1.11x    
       video:105973kB audio:1556kB subtitle:0kB other streams:0kB global headers:0kB >muxing overhead: 0.074199%
    [libx264 @ 0x2d951e0] frame I:54    Avg QP:19.81  size: 77248
    [libx264 @ 0x2d951e0] frame P:3960  Avg QP:22.01  size: 25371
    [libx264 @ 0x2d951e0] frame B:828   Avg QP:23.01  size:  4680
    [libx264 @ 0x2d951e0] consecutive B-frames: 75.2%  4.6%  4.3% 15.9%
    [libx264 @ 0x2d951e0] mb I  I16..4: 17.0% 79.0%  3.9%
    [libx264 @ 0x2d951e0] mb P  I16..4:  2.1%  7.8%  0.2%  P16..4: 43.9%  9.7% 6.4%  0.0%  0.0%    skip:29.9%
    [libx264 @ 0x2d951e0] mb B  I16..4:  0.2%  1.1%  0.0%  B16..8: 29.2%  1.2%  0.2%  direct: 0.7%  skip:67.3%  L0:49.0% L1:47.7% BI: 3.3%
    [libx264 @ 0x2d951e0] 8x8 transform intra:78.1% inter:81.6%
    [libx264 @ 0x2d951e0] coded y,uvDC,uvAC intra: 52.3% 66.4% 11.9% inter: 20.5% >24.2% 0.8%
    [libx264 @ 0x2d951e0] i16 v,h,dc,p: 32% 22% 28% 18%
    [libx264 @ 0x2d951e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 19% 43%  3%  3%  3%  5%  2%  4%
    [libx264 @ 0x2d951e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 24% 12%  4%  8%  7% 11%  4%  5%
    [libx264 @ 0x2d951e0] i8c dc,h,v,p: 50% 23% 23%  4%
    [libx264 @ 0x2d951e0] Weighted P-Frames: Y:1.5% UV:0.3%
    [libx264 @ 0x2d951e0] ref P L0: 71.9% 17.0%  8.5%  2.5%  0.0%
    [libx264 @ 0x2d951e0] ref B L0: 89.7%  9.2%  1.2%
    [libx264 @ 0x2d951e0] ref B L1: 97.5%  2.5%
    [libx264 @ 0x2d951e0] kb/s:4298.67

    Here is the output when use ffmpeg -i natural.mp4 -c copy out.mp4,the output still last double times long :

    ./ffmpeg -i natural.mp4 -c copy out.mp4
    ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
    built with gcc 4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2)
     configuration: --enable-gpl --enable-nonfree --yasmexe=release/bin/yasm --prefix=release --cc= --enable-static --disable-shared --disable-debug --extra-cflags=-Irelease/include --extra-ldflags='-Lrelease/lib -lm -ldl' --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --enable-postproc --enable-bzlib --enable-zlib --enable-parsers --enable-libx264 --enable-libmp3lame --enable-libfdk-aac --enable-libspeex --enable-pthreads --extra-libs=-lpthread --enable-encoders --enable-decoders --enable-avfilter --enable-muxers --enable-demuxers
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'natural.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isom
       creation_time   : 2009-07-11T08:32:34.000000Z
       encoder         : mp4creator 1.6.1d
     Duration: 00:01:41.46, start: 0.000000, bitrate: 9063 kb/s
       Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 8976 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 2997 tbc (default)
       Metadata:
         creation_time   : 2009-07-11T08:32:34.000000Z
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         creation_time   : 2009-07-11T08:33:09.000000Z
    Output #0, mp4, to 'out.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isom
       encoder         : Lavf57.71.100
       Stream #0:0(eng): Video: mpeg4 (Simple Profile) ( [0][0][0] / 0x0020), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 8976 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 90k tbc (default)
       Metadata:
         creation_time   : 2009-07-11T08:32:34.000000Z
       Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         creation_time   : 2009-07-11T08:33:09.000000Z
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame= 4842 fps=2243 q=-1.0 Lsize=  222944kB time=00:03:21.91
    bitrate=9045.4kbits/s speed=93.5x    
    video:221299kB audio:1556kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.039627%

    Here is the output what ffmpeg-2.1.1 generate,It’s executed correctly :

    ./ffmpeg -i natural.mp4 -c copy output2.mp4
    ffmpeg version 2.1.1 Copyright (c) 2000-2013 the FFmpeg developers
     built on Mar 10 2017 13:56:14 with gcc 4.6 (Ubuntu/Linaro 4.6.4-6ubuntu2)
     configuration: --enable-gpl --enable-nonfree --yasmexe=release/bin/yasm --prefix=release --cc= --enable-static --disable-shared --disable-debug --extra-cflags='-I${ffmpeg_exported_release_dir}/include' --extra-ldflags='-L${ffmpeg_exported_release_dir}/lib -lm -ldl' --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --enable-postproc --enable-bzlib --enable-zlib --enable-parsers --enable-libx264 --enable-libmp3lame --enable-libfdk-aac --enable-libspeex --enable-pthreads --extra-libs=-lpthread --enable-encoders --enable-decoders --enable-avfilter --enable-muxers --enable-demuxers
     libavutil      52. 48.101 / 52. 48.101
     libavcodec     55. 39.101 / 55. 39.101
     libavformat    55. 19.104 / 55. 19.104
     libavdevice    55.  5.100 / 55.  5.100
     libavfilter     3. 90.100 /  3. 90.100
     libswscale      2.  5.101 /  2.  5.101
     libswresample   0. 17.104 /  0. 17.104
     libpostproc    52.  3.100 / 52.  3.100
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x2d2e900] multiple edit list entries, a/v desync might occur, patch welcome
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'natural.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isom
       creation_time   : 2009-07-11 08:32:34
       encoder         : mp4creator 1.6.1d
     Duration: 00:01:41.46, start: 0.000000, bitrate: 9063 kb/s
       Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 8976 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 2997 tbc (default)
       Metadata:
         creation_time   : 2009-07-11 08:32:34
       Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         creation_time   : 2009-07-11 08:33:09
    Output #0, mp4, to 'output2.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42isom
       encoder         : Lavf55.19.104
       Stream #0:0(eng): Video: mpeg4 ( [0][0][0] / 0x0020), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 8976 kb/s, 23.98 fps, 90k tbn, 90k tbc (default)
       Metadata:
         creation_time   : 2009-07-11 08:32:34
       Stream #0:1(eng): Audio: aac ([64][0][0][0] / 0x0040), 44100 Hz, stereo, 125 kb/s (default)
       Metadata:
         creation_time   : 2009-07-11 08:33:09
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help
    frame= 2421 fps=0.0 q=-1.0 Lsize=  112273kB time=00:01:41.49 bitrate=9062.0kbits/s    
    video:110650kB audio:1556kB subtitle:0 global headers:0kB muxing overhead 0.060302%

    Here is the video link

  • Best way of playing mkv video that is being recorded with ffmpeg in web browser

    17 juin 2017, par martin49

    I’m looking for a way to play a video that is being recorded with ffmpeg in a web browser preferably using HTML5 video tag.

    I have this code in my page, the URL is pointing to a video file (example.mkv) that is being recorded by ffmpeg.

    <video class="video-player" controls="controls" loop="loop">          
               <source src="{{asset('example.mkv')}}" type="video/mp4">
               <p>Your browser does not support H.264/MP4.</p>
    </source></video>

    Google Chrome/Chromium can play mkv video in HTML5, but only plays the part that was loaded when page was loaded. Is it possible to continue to load the video while it is being recorded ?