Recherche avancée

Médias (2)

Mot : - Tags -/map

Autres articles (98)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • MediaSPIP v0.2

    21 juin 2013, par

    MediaSPIP 0.2 est la première version de MediaSPIP stable.
    Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

Sur d’autres sites (7085)

  • Frozen images at the beginning of a mts to mp4 conversion

    26 novembre 2019, par nounou

    I am trying to convert a file h264 mpegts to h264 mp4.

    ffmpeg.exe -i input.mts -f mp4 -vf "scale=512:384 " -c:a aac -b:a 64k  -c:v libx264   -pix_fmt yuv420p -movflags faststart -map 0:v -map 0:a  -y  output.mp4

    This conversion produces an output file longer than the input file and the image freezes (around 1 second) at startup, but there is already sound
    After about 1 second the picture and sound are synchronous.
    I have these messages before transcoding :

    ffmpeg version git-2019-11-13-a7245ad Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.2.1 (GCC) 20191010
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libo
    pencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-lib
    webp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enab
    le-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
     libavutil      56. 35.101 / 56. 35.101
     libavcodec     58. 62.100 / 58. 62.100
     libavformat    58. 35.100 / 58. 35.100
     libavdevice    58.  9.100 / 58.  9.100
     libavfilter     7. 66.100 /  7. 66.100
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    [mp3float @ 00000000003f63c0] Header missing
    [h264 @ 00000000003f5300] SPS unavailable in decode_picture_timing
    [h264 @ 00000000003f5300] non-existing PPS 0 referenced
    [h264 @ 00000000003f5300] SPS unavailable in decode_picture_timing
    [h264 @ 00000000003f5300] non-existing PPS 0 referenced
    [h264 @ 00000000003f5300] decode_slice_header error
    [h264 @ 00000000003f5300] no frame!
    [h264 @ 00000000003f5300] SPS unavailable in decode_picture_timing
    [h264 @ 00000000003f5300] non-existing PPS 0 referenced
    [h264 @ 00000000003f5300] SPS unavailable in decode_picture_timing
    -----
    [h264 @ 00000000003f5300] SPS unavailable in decode_picture_timing
    [h264 @ 00000000003f5300] non-existing PPS 0 referenced
    [h264 @ 00000000003f5300] decode_slice_header error
    [h264 @ 00000000003f5300] no frame!
    [mpegts @ 00000000003f1500] start time for stream 0 is not set in estimate_timings_from_pts
    [mpegts @ 00000000003f1500] PES packet size mismatch
    ---
    Press [q] to stop, [?] for help
    [mp2 @ 0000000003b1e500] Header missing
    Error while decoding stream #0:2: Invalid data found when processing input
    [libx264 @ 0000000002b200c0] using SAR=4/3
    [libx264 @ 0000000002b200c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
    [libx264 @ 0000000002b200c0] profile High, level 2.1, 4:2:0, 8-bit
    [libx264 @ 0000000002b200c0] 264 - core 158 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x1
    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=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interl
    =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 qc
    tio=1.40 aq=1:1.00
    Output #0, mp4, to 'c:\temp\output.mp4':
     Metadata:
       encoder         : Lavf58.35.100
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 512x384 [SAR 4:3 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
       Metadata:
         encoder         : Lavc58.62.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
       Stream #0:1(fre): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 64 kb/s
       Metadata:
         encoder         : Lavc58.62.100 aac
    c:\temp\input.MTS: corrupt decoded frame in stream 10:10.56 bitrate= 198.6kbits/s dup=42 drop=0 speed=7.03x
    [mp4 @ 0000000002a16d40] Starting second pass: moving the moov atom to the beginning of the filespeed=7.12x
    frame=  750 fps=175 q=-1.0 Lsize=    1806kB time=00:00:30.01 bitrate= 492.8kbits/s dup=42 drop=0 speed=   7x
    video:1546kB audio:236kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.326814%

    If I try to cut the first 3 seconds on the source file.

    ffmpeg.exe -ss 3 -i input.mts -f mpegts -c:v copy -c:a copy -map v -map a input_ss3.mts

    Then redo the conversion h264 mpegts to h264 mp4
    I have the same result.

    For the moment, in order to have an output file without frozen images at the beginning ; i need to do the following :

    I have to extract the video and sound, look for the delay betwen video and sound, cutting sound at the begining of audio file,
    concatenate the audio file et the video file, then convert to h264 - mp4.

    ffmpeg.exe -ss xx -i input.mts  -f mpegts -c:a copy -vn audio.mts
    ffmpeg.exe -i input.mts  -f mpegts -c:v copy -an video.mts
    ffmpeg.exe -i audio.mst -i video.mts   -f mpegts  -c:v copy -c:a copy -map 1:v -map 0:a  new_input.mts
    ffmpeg.exe -i new_input.mts -f mp4 -vf "scale=512:384 " -c:a aac -b:a 64k  -c:v libx264   -pix_fmt yuv420p -movflags faststart -map 0:v -map 0:a  output.mp4

    Can you tell me if there is a way to fix the source file or if there is another way to do it ?

    Maybe I should cut my source file to the first intra image and do the conversion afterwards.

    ffmpeg.exe input.mts -ss first_intra_frame  -f mpegts -c:v copy -c:a copy -map v -map a:0 new_input.mts
    ffmpeg.exe -i new_input.mts -f mp4 -vf "scale=512:384 " -c:a aac -b:a 64k  -c:v libx264   -pix_fmt yuv420p -movflags faststart -map 0:v -map 0:a  output.mp4

    But I have to find the exact position of the first intra frame.

    I try with the command :

    ffmpeg.exe -skip_frame nokey -i input.mts -t 10  -vf showinfo -vsync 0 -f null -

    But, I get "pts_time" which does not seem to match the position in "seconds.milliseconds" of the first intra frame.

    I try with the command :

    ffprobe.exe  input.mts -show_frames  -select_streams v:0  -show_entries frame=pkt_pts,pkt_pts_time,pkt_dts,pkt_dts_time,pkt_pos,coded_picture_number,pict_type > input.txt

    I also do not find the position of the first intra frame.

    Could you help me to find the exact position in "seconds.milliseconds" of the firsts intra frames ?

  • I want the mp4 file shooting date to be the xml file name

    21 novembre 2019, par re6

    In Windows 10 environment, I would like to change the name of both “file with extension mp4” and “file with extension xml” to the shooting date of mp4 file.

    C0001.MP4
    C0001M01.XML
    C0002.MP4
    C0002M01.XML

    Specifically, I want to change the file name as follows.

    2019-10-23_13-10-32.MP4
    2019-10-23_13-10-32.XML
    2019-10-23_13-10-49.MP4
    2019-10-23_13-10-49.XML

    I tried to think that using the ext option would give me the expected result, but I didn’t get the expected result.

    First time

    C:\Users\user>exiftool "-FileNamehoge/C0001M01.XML
    Warning: No writable tags set from C:/hoge/C0001M01.XML
    Warning: [minor] Error 3 placing ::NonRealTimeMetaAudioFormatAudioRecPortTrackDst in structure or list - C:/hoge/C0002M01.XML
    Warning: No writable tags set from C:/hoge/C0002M01.XML
       1 directories scanned
       0 image files updated
       2 image files unchanged

    Second time

    C:\Users\user>exiftool "-FileNamehoge/C0001.MP4
    Warning: [minor] Error 3 placing ::NonRealTimeMetaLtcChangeTableLtcChangeStatus in structure or list - C:/hoge/C0001M01.XML
    Warning: No writable tags set from C:/hoge/C0001M01.XML
    Warning: [minor] The ExtractEmbedded option may find more tags in the movie data - C:/hoge/C0002.MP4
    Warning: [minor] Error 3 placing ::NonRealTimeMetaAudioFormatAudioRecPortPort in structure or list - C:/hoge/C0002M01.XML
    Warning: No writable tags set from C:/hoge/C0002M01.XML
       1 directories scanned
       2 image files updated
       2 image files unchanged
  • amix filter is causing audio to disappear

    21 novembre 2019, par Mason

    I’m trying overlay audio onto a video. I have a very simple ffmpeg command (auido.mp3 is much longer than the video)

    ffmpeg -i video.mp4 -i audio.mp3 -filter_complex "[0:a] [1:a] amix=duration=shortest [a]" -map 0:v -map [a] test.mp4

    This produces a silent video. However, when not mapping the video stream

    ffmpeg -i video.mp4 -i audio.mp3 -filter_complex "[0:a] [1:a] amix=duration=shortest [a]" -map [a] test.mp4

    The resulting audio file is as expected.

    What could be causing this issues ?

    (Is there a better way to overlay audio onto a video via ffmpeg ?)

    Edit : log

    ffmpeg version 4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.1.1 (GCC) 20190807
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
     libavutil      56. 31.100 / 56. 31.100
     libavcodec     58. 54.100 / 58. 54.100
     libavformat    58. 29.100 / 58. 29.100
     libavdevice    58.  8.100 / 58.  8.100
     libavfilter     7. 57.100 /  7. 57.100
     libswscale      5.  5.100 /  5.  5.100
     libswresample   3.  5.100 /  3.  5.100
     libpostproc    55.  5.100 / 55.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'video.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       creation_time   : 2019-11-15T05:28:05.000000Z
     Duration: 00:00:00.53, start: 0.000000, bitrate: 9463 kb/s
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 9546 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
       Metadata:
         creation_time   : 2019-11-15T05:28:05.000000Z
         handler_name    : ?Mainconcept Video Media Handler
         encoder         : AVC Coding
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
       Metadata:
         creation_time   : 2019-11-15T05:28:05.000000Z
         handler_name    : #Mainconcept MP4 Sound Media Handler
    [mp3 @ 000001fdf5f7f040] Estimating duration from bitrate, this may be inaccurate
    Input #1, mp3, from 'audio.mp3':
     Metadata:
       date            : 2019-11-14 23:31
       id3v2_priv.XMP  : &lt;?xpacket begin="\xef\xbb\xbf" id="W5M0MpCehiHzreSzNTczkc9d"?>\x0a\x0a \x0a  <rdf 256="256" kb="kb"></rdf>s
       Stream #1:0: Audio: mp3, 44100 Hz, stereo, fltp, 256 kb/s
    Stream mapping:
     Stream #0:1 (aac) -> amix:input0 (graph 0)
     Stream #1:0 (mp3float) -> amix:input1 (graph 0)
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
     amix (graph 0) -> Stream #0:1 (aac)
    Press [q] to stop, [?] for help
    [libx264 @ 000001fdf64ab700] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 000001fdf64ab700] profile High, level 4.0, 4:2:0, 8-bit
    [libx264 @ 000001fdf64ab700] 264 - core 158 r2984 3759fcb - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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 'test.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: mp42mp41
       encoder         : Lavf58.29.100
       Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1920x1080, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
       Metadata:
         creation_time   : 2019-11-15T05:28:05.000000Z
         handler_name    : ?Mainconcept Video Media Handler
         encoder         : Lavc58.54.100 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
       Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         encoder         : Lavc58.54.100 aac
    frame=   15 fps=0.0 q=-1.0 Lsize=     695kB time=00:00:00.40 bitrate=14232.7kbits/s speed=0.437x    
    video:693kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.226150%
    [libx264 @ 000001fdf64ab700] frame I:1     Avg QP:30.52  size:101545
    [libx264 @ 000001fdf64ab700] frame P:7     Avg QP:28.22  size: 44755
    [libx264 @ 000001fdf64ab700] frame B:7     Avg QP:30.76  size: 42074
    [libx264 @ 000001fdf64ab700] consecutive B-frames: 20.0% 40.0% 40.0%  0.0%
    [libx264 @ 000001fdf64ab700] mb I  I16..4: 68.3% 10.5% 21.2%
    [libx264 @ 000001fdf64ab700] mb P  I16..4: 17.6%  4.8%  4.3%  P16..4: 28.5%  4.5%  2.8%  0.0%  0.0%    skip:37.6%
    [libx264 @ 000001fdf64ab700] mb B  I16..4: 17.6%  2.4%  1.3%  B16..8: 37.9%  6.7%  1.3%  direct: 4.9%  skip:27.8%  L0:40.5% L1:54.3% BI: 5.2%
    [libx264 @ 000001fdf64ab700] 8x8 transform intra:13.9% inter:59.5%
    [libx264 @ 000001fdf64ab700] coded y,uvDC,uvAC intra: 54.5% 53.3% 42.3% inter: 15.3% 27.8% 21.6%
    [libx264 @ 000001fdf64ab700] i16 v,h,dc,p:  5% 88%  5%  2%
    [libx264 @ 000001fdf64ab700] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 53% 29%  1%  1%  1%  2%  1%  2%
    [libx264 @ 000001fdf64ab700] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6% 80%  9%  1%  1%  0%  1%  0%  2%
    [libx264 @ 000001fdf64ab700] i8c dc,h,v,p: 16% 80%  3%  1%
    [libx264 @ 000001fdf64ab700] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 000001fdf64ab700] ref P L0: 40.3%  4.9% 11.0% 43.8%
    [libx264 @ 000001fdf64ab700] ref B L0: 80.0% 11.1%  8.9%
    [libx264 @ 000001fdf64ab700] kb/s:11349.57
    [aac @ 000001fdf64ac600] Qavg: 41522.195