Recherche avancée

Médias (39)

Mot : - Tags -/audio

Autres articles (54)

  • 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.

  • 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 ;

  • 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

Sur d’autres sites (8443)

  • ffmpeg not producing duration value when converting a media file. If this media is used in an html player, seeking fails on some browsers

    4 décembre 2020, par David

    I'm asking this question because I didn't find information on the web and this seems to be uncommon issue. After a lot of trial and error I'm creating this answer for reference.

    


    I'm using python which runs the ffmpeg command to convert an MP4 into WEBM file. I noticed that some of the conversions didn't seek when displaying in the webpage but other webm files worked on the same server. I was converting from two different machines. The core problem was the ffmpeg command was using pipe during the conversion process on one machine and output directly to a file on the other.

    


    Apparently doing this doesn't populate the duration attribute in the file but if I ran ffmpeg with the same switches, same order and output to a file on the system, the duration attribute would populate.

    


    I was converting from MP4 to WEBM format using opus for the audio. This issue might only impact certain file types, webm as an example and not others.

    


  • ffmpeg after converting avi to mp4 need wait till video loads in flash player 100% otherwise video is buffering

    28 octobre 2013, par Xenos Trojanowicz

    So if fixed all issues with my ffmpeg journey now I just need that after converting videos they play in flash player instantly and no need to wait till video loeaded 100% I use :

    if ($success_msg) {
       $tmp_parts = explode('.', $file['name']);
       $ext = array_pop($tmp_parts);
       $ext = strtolower($ext);
       if($ext == "avi" && $convert_avi == true) {
           $convert_source = _VIDEOS_DIR_PATH.$new_name;
           $conv_name = substr(md5($file['name'].rand(1,888)), 2, 10).".mp4";
           $converted_file  = _VIDEOS_DIR_PATH.$conv_name;
           $ffmpeg_command = 'ffmpeg -i '.$convert_source.' -acodec libfaac -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 '.$converted_file;
           echo exec($ffmpeg_command);
           $sql = "UPDATE pm_temp SET url = '".$conv_name."' WHERE url = '".$new_name."' LIMIT 1";
           $result = @mysql_query($sql);
           unlink($convert_source);
       }
       echo $success_msg;
    }

    To convert videos

    EDIT #1 ffmpeg concole output with faststart function :

    root@1tb:~# ffmpeg -i sample.avi -movflags faststart -acodec libfaac -vcodec libx264 -s 1280x720 -ar 44100 -async 44100 -r 29.970 -ac 2 -qscale 5 consample.mp4
    ffmpeg version 0.7.15, Copyright (c) 2000-2013 the FFmpeg developers
     built on Feb 22 2013 07:18:58 with gcc 4.4.5
     configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libfreetype --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
     libavutil    50. 43. 0 / 50. 43. 0
     libavcodec   52.123. 0 / 52.123. 0
     libavformat  52.111. 0 / 52.111. 0
     libavdevice  52.  5. 0 / 52.  5. 0
     libavfilter   1. 80. 0 /  1. 80. 0
     libswscale    0. 14. 1 /  0. 14. 1
     libpostproc  51.  2. 0 / 51.  2. 0
    [mp3 @ 0x15389100] Header missing
    [mpeg4 @ 0x15386dc0] Invalid and inefficient vfw-avi packed B frames detected
    Input #0, avi, from 'sample.avi':
     Metadata:
       encoder         : VirtualDubMod 1.5.10.2 (build 2540/release)
     Duration: 00:01:01.81, start: 0.000000, bitrate: 1194 kb/s
       Stream #0.0: Video: mpeg4, yuv420p, 640x352 [PAR 1:1 DAR 20:11], 23.98 tbr, 23.98 tbn, 23.98 tbc
       Stream #0.1: Audio: mp3, 48000 Hz, stereo, s16, 128 kb/s
    [MOV/3GP/MP4/3G2 muxer @ 0x15386c80] [Eval @ 0x7ffffec71230] Undefined constant or missing '(' in 'faststart'
    [MOV/3GP/MP4/3G2 muxer @ 0x15386c80] Unable to parse option value "faststart"
    Invalid value 'movflags' for option 'faststart'
  • Fail to decode a video with ffmpeg, but it can be played by video player

    23 juin 2022, par south

    i have a video witch can be played by players. But, I failed to decode it using ffmpeg 3.4.
Actually, it failed on the ffmpeg libs compiled by myself, but success on a common ffmpeg-3.4 lib of my company.

    



    My compilation seems success, as i can use it to decode most of my videos.

    



    Whats wrong with my lib ? If i should enable some special options when compiling ?
Anything special on this video ?

    



    error message :

    



    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] STSC entry 1 is invalid (first=12 count=0 id=1)
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] stream 0, contradictionary STSC and STCO
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x31b7120] error reading header


    



    video info dumped when i use libs of my company

    



    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'aaa':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2019-08-06T16:42:23.000000Z
  Duration: 00:00:10.89, start: 0.000000, bitrate: N/A
    Stream #0:0(und): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p, 1280x720, 2815 kb/s, 25.66 fps, 25.64 tbr, 1k tbn, 50 tbc (default)
    Metadata:
      creation_time   : 2019-08-06T16:42:24.000000Z
      handler_name    :
      encoder         : VC Coding
--------------------