Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (52)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • 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

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

  • FFMPEG width not divisible by 2 (639x360)

    5 octobre 2020, par yasgur99

    I am using python wrapper command of ffmepeg. I followed the tutorial from here for a "Production ready HLS" : https://docs.peer5.com/guides/production-ready-hls-vod/

    


    This is my code :

    


     subprocess.call(['ffmpeg', '-y', '-i', download_path,
                     '-vf', 'scale=w=640:h=360:force_original_aspect_ratio=decrease', \
                     '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
                     '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
                     '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
                     '-hls_playlist_type', 'vod',  '-b:v', '800k', \
                     '-maxrate', '856k', '-bufsize', '1200k', '-b:a', '96k', \
                     '-hls_segment_filename', upload_path + \
                     '/360p_%03d.ts', upload_path + '/360p.m3u8', \
                     '-vf', 'scale=w=842:h=480:force_original_aspect_ratio=decrease', \
                     '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
                     '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
                     '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
                     '-hls_playlist_type', 'vod', '-b:v', '1400k', \
                     '-maxrate', '1498k', '-bufsize', '2100k', '-b:a', '128k', \
                     '-hls_segment_filename', upload_path + \
                     '/480p_%03d.ts', upload_path + '/480p.m3u8', \
                     '-vf', 'scale=w=1280:h=720:force_original_aspect_ratio=decrease', \
                     '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
                     '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
                     '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
                     '-hls_playlist_type', 'vod', '-b:v', '2800k', \
                     '-maxrate', '2996k', '-bufsize', '4200k', '-b:a', '128k', \
                     '-hls_segment_filename', upload_path + \
                     '/720p_%03d.ts', upload_path + '/720p.m3u8', \
                     '-vf', 'scale=w=1920:h=1080:force_original_aspect_ratio=decrease', \
                     '-c:a', 'aac', '-ar', '48000', '-c:v', 'h264', \
                     '-profile:v', 'main', '-crf', '20', '-sc_threshold', '0', \
                     '-g', '48', '-keyint_min', '48', '-hls_time', '4', \
                     '-hls_playlist_type', 'vod', '-b:v', '5000k', \
                     '-maxrate', '5350k', '-bufsize', '7500k', '-b:a', '192k', \
                     '-hls_segment_filename', upload_path + '/1080p_%03d.ts', upload_path + '/1080p.m3u8'])


    


    And getting this output

    


    [libx264 @ 0x7fb95500c800] width not divisible by 2 (639x360)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height


    


    Any ideas of whats going wrong ?

    


  • "Relocation cannot be used against local symbol" only for one platform (x86)

    10 janvier 2023, par JonasVautherin

    Problem

    


    I am cross-compiling gstreamer using Meson, and it works for 3 different platforms (android-arm, android-arm64, android-x86_64) but fails for android-x86 with errors like :

    


    ld: error: relocation R_386_32 cannot be used against local symbol; recompile with -fPIC


    


    I can't seem to understand which component was not built with -fPIC, and I don't understand why this would differ between the 4 platforms. If 3 are built with -fPIC, why would the fourth be different ?

    


    Details

    


    More specifically, it fails with a bunch of the following errors :

    


    FAILED: subprojects/FFmpeg/test_avcodec_utils
/usr/i686-linux-android/bin/clang  -o subprojects/FFmpeg/test_avcodec_utils subprojects/FFmpeg/test_avcodec_utils.p/libavcodec_tests_utils.c.o -Wl,--as-needed -Wl,--no-undefined -Wl,-O1 -pie -Wl,-Bsymbolic -fPIC -Wl,--start-group subprojects/FFmpeg/libavcodec-static.a subprojects/FFmpeg/libavutil.a subprojects/FFmpeg/libavutil-static.a subprojects/FFmpeg/libswresample.a subprojects/FFmpeg/libswresample-static.a -pthread -lm -lz -lz -Wl,--end-group
ld: error: relocation R_386_32 cannot be used against local symbol; recompile with -fPIC
>>> defined in subprojects/FFmpeg/libavcodec-static.a(libavcodec-static.a.p/dirac_dwt.o)
>>> referenced by x86util.asm:1315 (/work/build/android-x86/dependencies/gstreamer/gstreamer/src/gstreamer/subprojects/FFmpeg/libavutil/x86/x86util.asm:1315)
>>>               libavcodec-static.a.p/dirac_dwt.o:(.text+0x9F) in archive subprojects/FFmpeg/libavcodec-static.a


    


    I essentially run $ meson setup --cross-file my-crossfile build . in a Dockcross container, with some options, so nothing special there as far as I can tell.

    


    My cross-file looks like this (similar to the other 3 that work, except for cpu and cpu_family that differ) :

    


    [constants]
cross_triple = 'i686-linux-android'
cross_root = '/usr/' + cross_triple

[properties]
pkg_config_libdir = ''

[binaries]
c = cross_root + '/bin/clang'
cpp = cross_root + '/bin/clang++'
ar = cross_root + '/bin/llvm-ar'
as = cross_root + '/bin/llvm-as'
ranlib = cross_root + '/bin/llvm-ranlib'
ld = cross_root + '/bin/ld'
strip = cross_root + '/bin/llvm-strip'
pkgconfig = 'pkg-config'

[host_machine]
system = 'android'
cpu_family = 'x86'
cpu = 'i686'
endian = 'little'


    


  • Is it okay to execute ffmpeg and do not use their library ?

    18 juillet 2017, par Michael Pravilov

    I need to extract audio from video and save it. FFmpeg has command for this purpose. I wonder if it is a right way to execute ffmpeg from my code and not to write code with their API functions.

    The lack of this approach is that I use Qt Framework and need cross-platform application. Sometimes (especially in windows, because PATH variable doesn’t set up automatically so call ffmpeg won’t work) a user will need to indicate path to executable file to run in command line.

    So both variants are possible to realize, but which is the best and correct one ?

    I don’t really want to use their API because it is not so easy to understand and will take time to write my own code.

    Thanks for any advice !