Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (62)

  • 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

  • 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 (5912)

  • FFMPEG and libx264, WMP and QT playback at different res/aspect than specified

    10 septembre 2013, par Foltz

    So, for a little context. I'm trying to convert a JPEG2000 in .mxf video to an h264 in .mp4, maintaining its resolution/frame-size/aspect ratio. I'll say up front I'm not 100% sure on how all these ratios tie together.

    So, my input file is 720x486. I have a sample h264 file with specs I'm trying to emulate (from an OpenCube video ingest machine) with ffmpeg. The OpenCube file plays back at 720x486 in both Quick Time 7 and Windows Media Player 12. It reports a PAR of 9:10 and DAR of 4:3 (Using VideoSpec to see these values).

    When I make my derivative h264 using ffmpeg I can run the command :

    ffmpeg -i lac-test.mxf -vcodec libx264 -s 720x486 -aspect 4:3 -b:v 2500000 -pix_fmt yuv420p -coder 0 -acodec libfaac -b:a 256000 lac-test.mp4

    The output file reports the correct values in VideoSpec (720x486, DAR 4:3, PAR 9:10), but plays back in QT at 648x486. Weirder, the video plays back at the proper resolution (that is, same size as the sample OpenCube file).

    Now, an alternative command creates yet another predicament :

    ffmpeg -i lac-test.mxf -vcodec libx264 -s 720x486 -b:v 2500000 -pix_fmt yuv420p -coder 0 -acodec libfaac -b:a 256000 lac-test.mp4

    So omitting the aspect ratio gives me an output file that plays at 720x486 in QT7 (good !) but reports a DAR of 1.481 and an Undefine PAR. Unfortunately, THIS file plays back slightly too wide in WMP12.

    I've tried a slew of different strings to try and get something that plays back correctly. I've tried using various filters with the -fv flag such as :

    ffmpeg -i lac-test.mxf -vcodec libx264 -vf "scale=720x486,setsar=9:10,setdar=4:3" -b:v 2500000 -pix_fmt yuv420p -coder 0 -acodec libfaac -b:a 256000 lac-test.mp4

    This results in a video that shows all the correct specs in VideoSpec, and plays back correctly in WMP12 (same size as OpenCube file), but still plays back at 648x486 in QT7.

    What gives ?

  • scaling and cutting a portion of video using ffmpeg

    19 août 2014, par Dnaso

    I am trying to upload a video that is 640 x 480. Using FFmpeg I am trying to resize to a square but I am having much difficulty.

    if i use s=320x320 in my command or scale 320x320

       ->setVideoScale(320, 320)

    the image is distored.

    If i change the aspect ratio 1:1 i get black bars.

    is there a way to actually just cut a RECT in the video. IE i want to be able to re save the video and it only capture

      x 0 to 320
      y 0 to 320  

    or whatever bounds I pick.

    Basically I do not want to re-size I just want to be able to re record a certain portion of the video. is this possible ?

  • HTML5 - ffmpeg encoded x264 video fails to play in Chrome/IE

    11 août 2014, par Saren Arterius

    I have totally no idea why http://jiro.wtako.net/video/39 does work in all browsers while http://jiro.wtako.net/video/40 only works in Firefox.

    1 is encoded by MediaCoder (x264 + Nero encoder) and 2 is encoded by Arch Linux ffmpeg.

    ffmpeg version : ffmpeg 1:2.3.1-1

    x264 version : libx264 1:142.20140311-6

    It seems that video size, frame rate, profile, level, bitrate does not affect whether the video can be played, because I have tried all these parameters, none of these works :

    $ ffmpeg -i in.avi -c:v libx264 -crf 25 -pix_fmt yuv420p -preset veryslow -vf scale=640:360 -c:a aac -strict -2 -b:a 192k out.mp4

    $ ffmpeg -i in.avi -c:v libx264 -crf 25 -pix_fmt yuv420p -preset veryslow -vf scale=640:360 -c:a aac -strict -2 -b:a 128k out.mp4

    $ ffmpeg -i in.avi -c:v libx264 -crf 28 -pix_fmt yuv420p -preset veryslow -c:a aac -strict -2 -b:a 192k out.mp4

    $ ffmpeg -i in.avi -c:v libx264 -b:v 2000k -pix_fmt yuv420p -preset veryslow -c:a aac -strict -2 -b:a 192k out.mp4

    $ ffmpeg -i in.avi -c:v libx264 -crf 28 -pix_fmt yuv420p -level:v 3.2 -preset veryslow -c:a aac -strict -2 -b:a 192k out.mp4

    $ ffmpeg -i in.avi -c:v libx264 -crf 28 -pix_fmt yuv420p -profile:v baseline -preset veryslow -c:a aac -strict -2 -b:a 192k out.mp4

    Here is the media info of the video that does work in all browsers.

    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom
    File size                                : 12.5 MiB
    Duration                                 : 1mn 52s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 932 Kbps
    Encoded date                             : UTC 2014-05-01 13:14:37
    Tagged date                              : UTC 2014-05-01 13:14:37

    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L3.1
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 15 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 1mn 52s
    Bit rate                                 : 768 Kbps
    Maximum bit rate                         : 1 307 Kbps
    Width                                    : 640 pixels
    Height                                   : 360 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 60.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.056
    Stream size                              : 10.7 MiB (86%)
    Writing library                          : x264 core 128 r2216 198a7ea
    Encoding settings                        : cabac=1 / ref=16 / deblock=1:0:0 / analyse=0x3:0x133 / me=tesa / subme=11 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=9 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=abr / mbtree=1 / bitrate=768 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
    Encoded date                             : UTC 2014-05-01 13:14:37
    Tagged date                              : UTC 2014-05-01 13:14:37

    Audio
    ID                                       : 2
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : 40
    Duration                                 : 1mn 52s
    Bit rate mode                            : Variable
    Bit rate                                 : 124 Kbps
    Maximum bit rate                         : 133 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz
    Compression mode                         : Lossy
    Stream size                              : 1.66 MiB (13%)
    Encoded date                             : UTC 2014-05-01 13:14:37
    Tagged date                              : UTC 2014-05-01 13:14:37

    Here is the media info of the video that does work only in Firefox.

    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom
    File size                                : 57.4 MiB
    Duration                                 : 2mn 48s
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 2 856 Kbps
    Writing application                      : Lavf55.33.100

    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L5.0
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 16 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 2mn 48s
    Bit rate                                 : 2 655 Kbps
    Width                                    : 1 280 pixels
    Height                                   : 720 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 60.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Bits/(Pixel*Frame)                       : 0.048
    Stream size                              : 53.3 MiB (93%)
    Writing library                          : x264 core 142 r2397M b7a50c1
    Encoding settings                        : cabac=1 / ref=16 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 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 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=25.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00

    Audio
    ID                                       : 2
    Format                                   : AAC
    Format/Info                              : Advanced Audio Codec
    Format profile                           : LC
    Codec ID                                 : 40
    Duration                                 : 2mn 48s
    Duration_LastFrame                       : -19ms
    Bit rate mode                            : Variable
    Bit rate                                 : 192 Kbps
    Channel(s)                               : 2 channels
    Channel positions                        : Front: L R
    Sampling rate                            : 48.0 KHz
    Compression mode                         : Lossy
    Stream size                              : 3.79 MiB (7%)