Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (67)

  • Les images

    15 mai 2013
  • Mediabox : ouvrir les images dans l’espace maximal pour l’utilisateur

    8 février 2011, par

    La visualisation des images est restreinte par la largeur accordée par le design du site (dépendant du thème utilisé). Elles sont donc visibles sous un format réduit. Afin de profiter de l’ensemble de la place disponible sur l’écran de l’utilisateur, il est possible d’ajouter une fonctionnalité d’affichage de l’image dans une boite multimedia apparaissant au dessus du reste du contenu.
    Pour ce faire il est nécessaire d’installer le plugin "Mediabox".
    Configuration de la boite multimédia
    Dès (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (7936)

  • FFMPEG : Remove packets based on PTS/DTS

    9 mai 2018, par stevendesu

    I have a video which contains some audio packets beyond the end of the video data :

    $> ffprobe -show_packets video.mp4
    ...
    ...
    ...
    [PACKET]
    codec_type=video
    stream_index=0
    pts=5653648
    pts_time=235.568667
    dts=5653648
    dts_time=235.568667
    duration=1001
    duration_time=0.041708
    convergence_duration=N/A
    convergence_duration_time=N/A
    size=1030
    pos=25233684
    flags=__
    [/PACKET]
    [PACKET]
    codec_type=audio
    stream_index=1
    pts=11310080
    pts_time=235.626667
    dts=11310080
    dts_time=235.626667
    duration=1024
    duration_time=0.021333
    convergence_duration=N/A
    convergence_duration_time=N/A
    size=284
    pos=25234714
    flags=K_
    [/PACKET]
    [PACKET]
    codec_type=audio
    stream_index=1
    pts=11311104
    pts_time=235.648000
    dts=11311104
    dts_time=235.648000
    duration=1024
    duration_time=0.021333
    convergence_duration=N/A
    convergence_duration_time=N/A
    size=285
    pos=25234998
    flags=K_
    [/PACKET]
    [PACKET]
    codec_type=audio
    stream_index=1
    pts=11312128
    pts_time=235.669333
    dts=11312128
    dts_time=235.669333
    duration=992
    duration_time=0.020667
    convergence_duration=N/A
    convergence_duration_time=N/A
    size=290
    pos=25235283
    flags=K_
    [/PACKET]
    $>

    The last video packet in the video has a PTS time of 235.568667 and a duration of 0.041708 - meaning all video data ends at 235.610375. However there are audio packets beginning at 235.626667 and later.

    Is there an easy way to strip these audio packets from the file so that the audio and video end simultaneously ?

  • ffmpeg : improving MP4 to webm ogg conversions

    14 juillet 2017, par Randy

    (Edited to include some of the things I’ve tried)

    I’m a musician, and occasional web coder. I’ve been using video editing software (old version of Roxio Videowave from 2011) to build promotional videos from clips of some of my performances, and I’d like to put some of them on my own web pages in HTML5 video format. So that currently means I need MP4, WEBM, and OGG conversions. Fortunately the editing software churns out some very nice MP4 (H264) files, and has plenty of options for doing so. I purposely output the output size about 2X the likely display size, in hopes of offering more detail for better conversions. Specifically, the video output was AVC/H.264, 800 x 450, 30fps, variable bit rate, but with 600000 as a base line (that was the default for this setting anyway).

    Now I’m nowhere near expert at this stuff, and I probably left out some important data. But bottom line, the resulting MP4 looked very good. Unfortunately, to put it on my own web page means at least converting to WEBM and OGG formats. It would be nice if all browsers just supported MP4, but then there would be licensing fees, so conversions are needed. Sadly, I’ve been wasting days now trying to do this with ffmpeg. Its easy to do, its doing it WELL that is a mystery to me. Just letting ffmpeg work using its defaults (meaning I just specify an input and output file) results in pretty terrible video. But I’ve also tried most of the settings for better quality available, and the resulting conversions are nowhere near as good as youtube’s conversions.

    Based on the info about my original MP4 file, can someone suggest some better settings for ffmpeg conversions to WEBM and OGG ? Am I going about this all wrong ? The best I’ve done so far was with a string like this, which specified a high quality and a fairly robust bit rate...

    ffmpeg -i input-file.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output-file.webm

    That was much better than the default settings, but still nowhere near the quality of YOUTUBE conversions. In my resulting WEBM video, you can pretty plainly see how the picture degrades, and will snap into focus every few seconds when a "key frame" comes up. These artifacts should not be so obvious. Thanks for any help.

  • Error inclunding in FFMPEG project on a Mac using clang

    3 juillet 2018, par benwiz

    I’m having trouble running the remuxing.c example code. I get the following error. I have confirmed that the files can be found in /usr/local/include. I am running macOS Sierra 10.12.6.

    $ cc -v playground/remuxing.c
    Apple LLVM version 9.0.0 (clang-900.0.39.2)
    Target: x86_64-apple-darwin16.7.0
    Thread model: posix
    InstalledDir: /Library/Developer/CommandLineTools/usr/bin
    "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecat
    ed-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-v
    erifier -discard-value-names -main-file-name remuxing.c -mrelocation-model pic -pic-level 2 -mthread-mo
    del posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -target
    -linker-version 305 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Library/Developer/Comman
    dLineTools/usr/lib/clang/9.0.0 -fdebug-compilation-dir /Users/myuser/github/personal/synthesthesi
    a -ferror-limit 19 -fmessage-length 103 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0 -fenc
    ode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/
    folders/8s/2xc3v8dd7zz2c2trymzybvd534bnhg/T/remuxing-819223.o -x c playground/remuxing.c
    clang -cc1 version 9.0.0 (clang-900.0.39.2) default target x86_64-apple-darwin16.7.0
    #include "..." search starts here:
    #include <...> search starts here:
    /usr/local/include
    /Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/include
    /Library/Developer/CommandLineTools/usr/include
    /usr/include
    /System/Library/Frameworks (framework directory)
    /Library/Frameworks (framework directory)
    End of search list.
    "/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -no_deduplicate -dynamic -arch x86_64 -macosx_version_min 10.12.0 -o a.out /var/folders/8s/2xc3v8dd7zz2c2trymzybvd534bnhg/T/remuxing-819223.o -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.osx.a
    Undefined symbols for architecture x86_64:
     "_av_dump_format", referenced from:
         _main in remuxing-819223.o
     "_av_freep", referenced from:
         _main in remuxing-819223.o
     "_av_interleaved_write_frame", referenced from:
         _main in remuxing-819223.o
     "_av_mallocz_array", referenced from:
         _main in remuxing-819223.o
     "_av_packet_unref", referenced from:
         _main in remuxing-819223.o
     "_av_read_frame", referenced from:
         _main in remuxing-819223.o
     "_av_rescale_q", referenced from:
         _main in remuxing-819223.o
     "_av_rescale_q_rnd", referenced from:
         _main in remuxing-819223.o
     "_av_strerror", referenced from:
         _av_make_error_string in remuxing-819223.o
     "_av_write_trailer", referenced from:
         _main in remuxing-819223.o
     "_avcodec_parameters_copy", referenced from:
         _main in remuxing-819223.o
     "_avformat_alloc_output_context2", referenced from:
         _main in remuxing-819223.o
     "_avformat_close_input", referenced from:
         _main in remuxing-819223.o
     "_avformat_find_stream_info", referenced from:
         _main in remuxing-819223.o
     "_avformat_free_context", referenced from:
         _main in remuxing-819223.o
     "_avformat_new_stream", referenced from:
         _main in remuxing-819223.o
     "_avformat_open_input", referenced from:
         _main in remuxing-819223.o
     "_avformat_write_header", referenced from:
         _main in remuxing-819223.o
     "_avio_closep", referenced from:
         _main in remuxing-819223.o
     "_avio_open", referenced from:
         _main in remuxing-819223.o
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)