Recherche avancée

Médias (0)

Mot : - Tags -/content

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (34)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (4282)

  • Cutting out a part of a video in ffmpeg creates a corrupted output file

    30 octobre 2020, par lagmoellertim

    I currently have a problem with ffmpeg. I'm trying to cut out a part of a video (e.g. from 00:10:00 to 00:10:30).

    


    I use this command ffmpeg -ss 600 -to 630 -i not_working.mp4  not_working_part.mp4.

    


    I tried reencoding the video, but it is still corrupted (only first few frames working, video is multiple hours long but jumps to end if you try to skip).

    


    I use the -ss and the -to parameter before the -i parameter because it is much faster I want to cut out a part that is e.g. right at the end of the video. Moving the -i parameter infront of the other args solves the problem, but the performance is really bad for cutouts late in the video. For many other of my videos, both methods work without a problem.

    


    Here is some metadata about the video from ffmpeg :

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'media\not_working.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2020-09-22T06:20:53.000000Z
  Duration: 03:03:40.04, start: 0.000000, bitrate: 537 kb/s
    Chapter #0:0: start 0.000000, end 204.120000
    Metadata:
      title           : Recording Started
    Chapter #0:1: start 204.120000, end 2045.200000
    Metadata:
      title           : Sharing Started
    Chapter #0:2: start 2045.200000, end 2056.880000
    Metadata:
      title           : Sharing Stopped
    Chapter #0:3: start 2056.880000, end 4018.280000
    Metadata:
      title           : Sharing Started
    Chapter #0:4: start 4018.280000, end 4024.760000
    Metadata:
      title           : Sharing Stopped
    Chapter #0:5: start 4024.760000, end 4096.000000
    Metadata:
      title           : Sharing Started
    Chapter #0:6: start 4096.000000, end 4101.800000
    Metadata:
      title           : Sharing Stopped
    Chapter #0:7: start 4101.800000, end 4481.920000
    Metadata:
      title           : Sharing Started
    Chapter #0:8: start 4481.920000, end 4624.480000
    Metadata:
      title           : Sharing Stopped
    Chapter #0:9: start 4624.480000, end 6902.000000
    Metadata:
      title           : Sharing Started
    Chapter #0:10: start 6902.000000, end 6906.760000
    Metadata:
      title           : Sharing Stopped
    Chapter #0:11: start 6906.760000, end 6922.880000
    Metadata:
      title           : Sharing Started
    Chapter #0:12: start 6922.880000, end 6936.800000
    Metadata:
      title           : Sharing Stopped
    Chapter #0:13: start 6936.800000, end 9140.840000
    Metadata:
      title           : Sharing Started
    Chapter #0:14: start 9140.840000, end 9145.680000
    Metadata:
      title           : Sharing Stopped
    Chapter #0:15: start 9145.680000, end 9297.600000
    Metadata:
      title           : Sharing Started
    Chapter #0:16: start 9297.600000, end 9306.040000
    Metadata:
      title           : Sharing Stopped
    Chapter #0:17: start 9306.040000, end 9572.480000
    Metadata:
      title           : Sharing Started
    Chapter #0:18: start 9572.480000, end 9620.680000
    Metadata:
      title           : Sharing Stopped
    Chapter #0:19: start 9620.680000, end 10020.760000
    Metadata:
      title           : Sharing Started
    Chapter #0:20: start 10020.760000, end 10085.480000
    Metadata:
      title           : Sharing Stopped
    Chapter #0:21: start 10085.480000, end 10781.920000
    Metadata:
      title           : Sharing Started
    Chapter #0:22: start 10781.920000, end 11020.040000
    Metadata:
      title           : Sharing Stopped
    Stream #0:0(und): Audio: aac (LC) (mp4a / 0x6134706D), 32000 Hz, mono, fltp, 53 kb/s (default)
    Metadata:
      creation_time   : 2020-09-22T06:20:53.000000Z
      handler_name    : AAC audio
    Stream #0:1(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 481 kb/s, 25 fps, 25 tbr, 30k tbn, 60k tbc (default)
    Metadata:
      creation_time   : 2020-09-22T06:20:53.000000Z
      handler_name    : H.264/AVC video
      encoder         : AVC Coding
    Stream #0:2(und): Data: bin_data (text / 0x74786574)
    Metadata:
      creation_time   : 2020-09-22T06:20:53.000000Z
      handler_name    : Text


    


    Here is a link to the -report log file from ffmpeg (on pastebin) : https://pastebin.com/i9ix3GsC

    


  • Using explicit casting to solve invalid conversion from ‘int’ to ‘AVRounding’

    29 juillet 2020, par C4RN4GE

    I'm trying to follow the "learn ffmpeg the hard way" guide on github (https://github.com/leandromoreira/ffmpeg-libav-tutorial#chapter-2---remuxing) and when I try to run the remuxing code for myself using a C++ compiler I always get the error

    


    invalid conversion from ‘int’ to ‘AVRounding’[-fpermissive]


    


    The only real difference between my code and the github original is that I take the input filename and output filename as parameters instead. Doing some resarch I have found that AVRounding is a enum ? I think ? Thus I need to explicitly cast somehow. However I'm failing to understand how explicit casting works and how I would use it to solve my issue. Where would I cast it ?
Here's the line that causes the issue :

    


    packet.pts =  av_rescale_q_rnd(packet.pts, in_stream->time_base, out_stream->time_base, AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX);
packet.dts =  av_rescale_q_rnd(packet.dts, in_stream->time_base, out_stream->time_base, AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX);


    


    Could anyone explain how to solve the issue ? Sorry if it's a beginners mistake. Thanks in advance for any help.

    


  • Remuxing MKV to MP4 fails when using -map 0 but works fine when Remuxing MP4 to MKV

    20 septembre 2020, par AppetiteForDestruction

    I have an MKV file that contains 5 streams...

    


    0 : video
    
1 : audio
    
2 : audio
    
3 : text
    
4 : menu

    


    I was able to remux the MKV into an MP4 using this command...

    


    > ffmpeg.exe -i input.mp4 -map 0 -c copy -c:s mov_text output.mkv


    


    The resulting output MP4 contains all the streams from the original MKV.

    


    But if I try to remux the output MP4 into an MKV using the same command, but with a different codec for the subtitles (srt) and different file extension (mkv), I get an error. However, if I omit "-map 0" from the command, it works but only ONE of the audio streams get copied to the output MKV file.

    


    ====================
    
 Steps to Reproduce 
    
====================

    


    These two commands work, however, the output MKV only contains ONE of the TWO audio streams...

    


    > ffmpeg.exe -i input.mp4 -c copy -c:s srt output.mkv
> ffmpeg.exe -i input.mp4 -c:v copy -c:a copy -c:s srt output.mkv


    


    When I try to use either of the two commands below using "-map 0" just like I did when I remuxed the original MKV into an MP4, the commands fail and both result in the "Full Output" shown at the bottom...

    


    > ffmpeg.exe -i input.mp4 -map 0 -c copy -c:s srt output.mkv
> ffmpeg.exe -i input.mp4 -map 0 -c:v copy -c:a copy -c:s srt output.mkv


    


    Output Error

    


    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument


    


    So why would using "-map 0" cause it to fail when I used the exact same command to remux the original MKV into an MP4 ? And why does omitting "-map 0" allow it to work, but obviously doesn't copy both audio streams ? Seems like a BUG to me because why does practically the exact same command work for going from MKV to MP4, but not from MP4 to MKV ?

    


    Full Output

    


    ffmpeg version git-2020-07-20-43a08d9 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 9.3.1 (GCC) 20200621
  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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 55.100 / 56. 55.100
  libavcodec     58. 96.100 / 58. 96.100
  libavformat    58. 48.100 / 58. 48.100
  libavdevice    58. 11.101 / 58. 11.101
  libavfilter     7. 87.100 /  7. 87.100
  libswscale      5.  8.100 /  5.  8.100
  libswresample   3.  8.100 /  3.  8.100
  libpostproc    55.  8.100 / 55.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'F:\input.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2mp41
    encoder         : Lavf58.48.100
  Duration: 00:11:03.90, start: 0.000000, bitrate: 5873 kb/s
    Chapter #0:0: start 0.000000, end 663.872000
    Metadata:
      title           : Chapter 01
    Stream #0:0(eng): Video: mpeg2video (Main) (mp4v / 0x7634706D), yuv420p(tv, smpte170m, top first), 720x480 [SAR 8:9 DAR 4:3], 5546 kb/s, 29.97 fps, 29.97 tbr, 16k tbn, 59.94 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Side data:
      cpb: bitrate max/min/avg: 8500000/0/0 buffer size: 1835008 vbv_delay: N/A
    Stream #0:1(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 160 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
    Side data:
      audio service type: main
    Stream #0:2(eng): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, stereo, fltp, 160 kb/s
    Metadata:
      handler_name    : SoundHandler
    Side data:
      audio service type: main
    Stream #0:3(eng): Subtitle: mov_text (tx3g / 0x67337874), 0 kb/s (default)
    Metadata:
      handler_name    : SubtitleHandler
    Stream #0:4(eng): Data: bin_data (text / 0x74786574)
    Metadata:
      handler_name    : SubtitleHandler
Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified for stream 3, only the last option '-c:s srt' will be used.
[matroska @ 0000002df6f90f40] Only audio, video, and subtitles are supported for Matroska.
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #0:2 -> #0:2 (copy)
  Stream #0:3 -> #0:3 (mov_text (native) -> subrip (srt))
  Stream #0:4 -> #0:4 (copy)
    Last message repeated 1 times