Recherche avancée

Médias (1)

Mot : - Tags -/epub

Autres articles (39)

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (6087)

  • 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%
  • ffmpeg : "Error setting profile" ; how to keep original resolution odf odd sized videos ; getting Quicktime compatible output ; fixing pixel format

    26 février 2017, par P. Reid

    I’ve been having trouble using ffmpeg to compress videos to something readable by quicktime. My goal in the end is to have a simple command that I can use to compress high bitrate videos (ie screencaptures) to something more reasonable to be able to share them with people.

    I want to use a command I found here as a starting point :

    ffmpeg -i input-file.avi -codec:v libx264 -profile: high -preset slow -b:v 500k -maxrate 500k -bufsize 1000k -vf scale=-1:480 -threads 0 -codec:a libfdk_aac -b:a 128k output_file.mp4

    Unfortunately I get this error :

    [libx264 @ 0x7f92ab81c200] Error setting profile high.
    [libx264 @ 0x7f92ab81c200] Possible profiles: baseline main high high10 high422 high444
    Stream mapping:
     Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    If I take out the -profile: high the command functions but the output still doesn’t open in quicktime (it does in VLC). I can’t find the keyword -profile on the ffmpeg man page : https://ffmpeg.org/ffmpeg.html so I don’t know if this is important or what to do about it.

    Does anyone know what might be causing my problem ? What should I do to try and debug this problem ? I would describe myself as inexperienced so sorry if I’m missing something obvious.

    Thanks in advance for your help,
    Peter

    This is my ffmpeg version :

    ffmpeg version 3.2.4 Copyright (c) 2000-2017 the FFmpeg developers
     built with Apple LLVM version 7.0.2 (clang-700.1.81)
  • Crashing adobe premier cc pro when importing h264 mp4 file

    11 février 2017, par rpo

    I am screencasting with kazam in Ubuntu which is h264.

    To edit the video i tried to use vegas pro latest version. It only play the audio without any video.

    Then i tried to edit it with adobe premier 2017. Whenever i import the file(mp4) the premier pro just crash without any useful message.

    I installed quicktime for the codecs but no luck. I also converted the media with Format Factory(http://www.pcfreetime.com/) to MOV ... but premier just crash.

    How can i solve this ?

    here is the MediaInfo :

           General
       Complete name                            : C:\Users\user\Desktop\vdo.mp4
       Format                                   : MPEG-4
       Format profile                           : Base Media / Version 2
       Codec ID                                 : mp42 (mp42/mp41/isom/iso2)
       File size                                : 23.0 MiB
       Duration                                 : 9 min 20 s
       Overall bit rate                         : 344 kb/s
       Encoded date                             : UTC 2017-02-11 06:43:57
       Tagged date                              : UTC 2017-02-11 06:43:57

       Video
       ID                                       : 1
       Format                                   : AVC
       Format/Info                              : Advanced Video Codec
       Format profile                           : High 4:4:4 Predictive@L4
       Format settings, CABAC                   : No
       Format settings, ReFrames                : 1 frame
       Codec ID                                 : avc1
       Codec ID/Info                            : Advanced Video Coding
       Duration                                 : 9 min 20 s
       Bit rate                                 : 343 kb/s
       Maximum bit rate                         : 2 097 kb/s
       Width                                    : 1 674 pixels
       Height                                   : 858 pixels
       Display aspect ratio                     : 1.951
       Frame rate mode                          : Constant
       Frame rate                               : 15.000 FPS
       Color space                              : YUV
       Chroma subsampling                       : 4:4:4
       Bit depth                                : 8 bits
       Scan type                                : Progressive
       Bits/(Pixel*Frame)                       : 0.016
       Stream size                              : 22.9 MiB (100%)
       Writing library                          : x264 core 148 r2643 5c65704
       Encoding settings                        : cabac=0 / ref=1 / deblock=0:0:0 / analyse=0:0 / me=dia / subme=0 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=6 / threads=4 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0 / weightp=0 / keyint=150 / keyint_min=15 / scenecut=0 / intra_refresh=0 / rc=cqp / mbtree=0 / qp=15 / ip_ratio=1.40 / aq=0
       Language                                 : English
       Encoded date                             : UTC 2017-02-11 06:43:57
       Tagged date                              : UTC 2017-02-11 06:43:57

    Here is the screencast preference :
    In few format the kazam can record