Recherche avancée

Médias (1)

Mot : - Tags -/publishing

Autres articles (93)

  • Gestion générale des documents

    13 mai 2011, par

    MédiaSPIP ne modifie jamais le document original mis en ligne.
    Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
    Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...)

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

  • Les images

    15 mai 2013

Sur d’autres sites (15671)

  • Maintain keyframes when transcoding and removing b-frames

    9 mai 2022, par Dave Johansen

    I need to transcode a video from H.265 in a .mov container to H.264 in a .mkv container and would like to remove b-frames. The command to do that with ffmpeg is relatively straightforward [0], but it appears to be removing keyframes and using scene detection for when to use them.

    


    Is there a way to have it maintain the keyframes in the output ?

    


    0 : ffmpeg -i  -vcodec libx264 -bf 0 -acodec copy

    


  • ffmpeg-python trim and concat doesn't work

    10 février 2020, par Saturnix

    I have two files, in.mp4 and outro.mp4.

    I need a very simple thing : trim in.mp4 to an arbitrary lenght, and concat outro.mp4 after it.

    I can do that without the trimming part

    import ffmpeg

    main_video = ffmpeg.input('in.mp4')
    outro = ffmpeg.input('outro.mp4')

    v1 = main_video.video.filter("scale", size='hd720')
    a1 = main_video.audio
    v2 = outro.video
    a2 = outro.audio

    joined = ffmpeg.concat(v1, a1, v2, a2, v=1, a=1).node
    v3 = joined[0]
    a3 = joined[1]

    out = ffmpeg.output(v3, a3, 'out.mp4')
    out.run()

    But if I add the trimming here :

    main_video = ffmpeg.input('in.mp4').trim(start_frame=0, end_frame=1000)

    I get this error :

    ValueError : Encountered trim(end_frame=1000, start_frame=0)
    <17c7b86357ec> with multiple outgoing edges with same upstream label
    None ; a split filter is probably required

    and if I try to do it here :

    v1 = main_video.video.filter("scale", size='hd720').trim(start_frame=0, end_frame=1000)
    a1 = main_video.audio.trim(start_frame=0, end_frame=1000)

    I get these errors :

    [Parsed_trim_2 @ 00000295587ca840] Media type mismatch between the 'Parsed_trim_2' filter output pad 0 (video) and the 'Parsed_concat_3' filter input pad 1 (audio)
    [AVFilterGraph @ 00000295587cc800] Cannot create the link trim:0 -> concat:1

    How can I solve this ?

  • how to convert mjpeg to h264 with ffmpeg

    11 juin 2014, par Peter Van de Put

    I have a mjpeg encoded video with this metadata :

    { filename: './public/uploads/f8cca1dfff2558e22d83c1b1c7766d0d.mov',
     title: '',
     artist: '',
     album: '',
     track: '',
     date: '',
     synched: true,
     duration: { raw: '00:00:06.01', seconds: 6 },
     video:
      { container: 'mov',
        bitrate: 858336,
        stream: 0,
        codec: 'mjpeg',
        resolution: { w: 4096, h: 2160 },
        resolutionSquare: { w: 4096, h: 2160 },
        aspect: { x: 256, y: 135, string: '256:135', value: 1.8962962962962964 },
        rotate: 0,
        fps: 23.98,
        pixelString: '72:72',
        pixel: 1 },
     audio:
      { codec: 'pcm_s16le',
        bitrate: '1536',
        sample_rate: 48000,
        stream: 0,
        channels: { raw: 'stereo', value: 2 } } }

    I wanna convert it to h264 encoded in a mp4 container using the following command :

    ffmpeg -i,./public/uploads/f8cca1dfff2558e22d83c1b1c7766d0d.mov,-strict -2 -f mp4 -vcodec h264,./public/uploads/result.mp4

    Conversion is executed without any errors however the resulting file’s metadata still indicates the container is mov and the file is not playing