Recherche avancée

Médias (0)

Mot : - Tags -/tags

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

Autres articles (55)

  • 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

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

  • How can I encode a video to play on a DLink DSM-520 using FFMPEG ?

    4 octobre 2015, par tolsen64

    I have been searching, testing, and coming up with nothing for over a week. I want to use FFMPEG to convert mp4’s and mkv’s to AVI files that will play on my DLink DSM-520. Mencoder will do it. The files that FFMPEG generates cause the player to lock up less than a minute into the video. First, here’s what I use to encode the file using Mencoder (scraped from the test.bat file that PocketDIVXEncoder generates :

    mencoder.exe ftwd105.mp4 -af volnorm -srate 44100 -oac mp3lame -lameopts mode=0:cbr:br=128 -noodml -vf pp=ac,scale=720:404,crop=720:400,harddup -sws 9 -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:last_pred=2:vstrict=1:threads=2:vmax_b_frames=0:vbitrate=1200 -ffourcc XVID -o ftwd105_HDTV.avi

    The output file plays perfectly on the DSM-520. Looking at the file using FFPROBE, I see this :

    Input #0, avi, from 'ftwd105_HDTV.avi':
     Metadata:
       encoder         : MEncoder Redxii-SVN-r37527-4.9.3 (x86_64)
     Duration: 00:44:32.96, start: 0.000000, bitrate: 1193 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1053 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 24k tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s

    So now I try the same thing with FFMPEG.

    ffmpeg -i ftwd105.mp4 -vcodec mpeg4 -vtag XVID -b:v 1200k -s 720x400 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -f avi ftwd105_ffmpeg.avi

    This file does not play on the media player. It plays choppy with only clicking for sound for about 15-30 seconds, then it freezes. Looking at it with FFPROBE, it looks exactly the same as the one created by Mencoder.

    Input #0, avi, from 'ftwd105_ffmpeg.avi':
     Metadata:
       encoder         : Lavf57.0.100
     Duration: 00:44:33.14, start: 0.000000, bitrate: 1305 kb/s
       Stream #0:0: Video: mpeg4 (Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1165 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 24k tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s

    So now I encode the video using Xvid4PSP. It plays perfectly fine and FFPROBE shows this :

    Input #0, avi, from 'ftwd105_ps2.avi':
     Metadata:
       encoder         : VirtualDubMod 1.5.10.3 | www.virtualdub-fr.org || (build 2550/release)
     Duration: 00:44:33.09, start: 0.000000, bitrate: 861 kb/s
       Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 723 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 23.98 tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16p, 128 kb/s

    It’s using Advanced Simple Profile so I look this up and change my FFMPEG options :

    ffmpeg -i ftwd105.mp4 -vcodec mpeg4 -vtag XVID -b:v 1200k -s 720x400 -profile:v 15 -level 0 -acodec libmp3lame -ab 128k -ar 44100 -ac 2 -f avi ftwd105_ffmpeg.avi

    But though the output file looks the same using FFPROBE as the one made by Xvid4PSP, it still doesn’t play on the DSM-520.

    Input #0, avi, from 'ftwd105_ffmpeg_asp.avi':
     Metadata:
       encoder         : Lavf57.0.100
     Duration: 00:44:33.14, start: 0.000000, bitrate: 1305 kb/s
       Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1165 kb/s, 23.98 fps, 23.98 tbr, 23.98 tbn, 24k tbc
       Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 44100 Hz, stereo, s16p, 128 kb/s

    So now i’m at a loss. Is FFMPEG incapable of generating a file that the DSM-520 can play ? The reason I want to use FFMPEG over Mencoder is that it’s much faster. What takes FFMPEG 15 minutes takes Mencoder 40.

    I should note that all the files created by FFMPEG play fine on the PC and on my Visio television. The DSM-520 is hooked up to a bedroom tv that isn’t a smart tv.

    Edit : I also tried libxvid in place of mpeg4 with the same results.

  • lavc/aacenc_utils : replace sqrtf(Q*sqrtf(Q)) by precomputed value

    1er mars 2016, par Ganesh Ajjanagadde
    lavc/aacenc_utils : replace sqrtf(Q*sqrtf(Q)) by precomputed value
    

    It makes no sense whatsoever to do this at each function call ; we
    already have a table for this.

    Yields a 2x improvement in find_min_book (x86-64, Haswell+GCC) :
    ffmpeg -i sin.flac -acodec aac -y sin.aac
    find_min_book
    old
    605 decicycles in find_min_book, 8388453 runs, 155 skips.9x
    606 decicycles in find_min_book,16776912 runs, 304 skips.9x
    607 decicycles in find_min_book,33553819 runs, 613 skips.2x
    607 decicycles in find_min_book,67107668 runs, 1196 skips.3x
    607 decicycles in find_min_book,134215360 runs, 2368 skips3x

    new
    359 decicycles in find_min_book, 8388552 runs, 56 skips.3x
    360 decicycles in find_min_book,16777112 runs, 104 skips.1x
    361 decicycles in find_min_book,33554218 runs, 214 skips.4x
    361 decicycles in find_min_book,67108381 runs, 483 skips.5x
    361 decicycles in find_min_book,134216725 runs, 1003 skips5x

    and more importantly a non-negligible speedup ( 8%) to overall AAC encoding :
    old :
    ffmpeg -i sin.flac -acodec aac -strict -2 -y sin_new.aac 6.82s user 0.03s system 104% cpu 6.565 total
    new :
    ffmpeg -i sin.flac -acodec aac -strict -2 -y sin_old.aac 6.24s user 0.03s system 104% cpu 5.993 total

    This also improves accuracy of the expression by 2 ulp in some cases.

    Reviewed-by : Derek Buitenhuis <derek.buitenhuis@gmail.com>
    Reviewed-by : Rostislav Pehlivanov <atomnuker@gmail.com>
    Signed-off-by : Ganesh Ajjanagadde <gajjanag@gmail.com>

    • [DH] libavcodec/aacenc_utils.h
  • ffmpeg creating mp4 vs mp4

    23 octobre 2015, par user1207446

    I have two mp4 files. One of them was given to me and plays well under mediawiki (using the MediawikiPlayer extension). The other I created from a WMV file and it does not play. When I look at the two files through the eyes of ffprobe, they appear to be very different. The working file returns this :

    Metadata:
     major_brand     : mp42
     minor_version   : 0
     compatible_brands: mp42isomavc1
     creation_time   : 2013-12-28 20:25:51
     encoder         : HandBrake 0.9.9 2013052900
    Duration: 00:00:17.05, start: 0.000000, bitrate: 957 kb/s
     Chapter #0:0: start -0.066733, end 17.017000
     Metadata:
       title           : Chapter 1
     Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 704x480 [SAR 10:11 DAR 4:3], 824 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc (default)
     Metadata:
       creation_time   : 2013-12-28 20:25:51
       encoder         : JVT/AVC Coding
     Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
     Metadata:
       creation_time   : 2013-12-28 20:25:51
     Stream #0:2(und): Subtitle: mov_text (text / 0x74786574), 0 kb/s
     Metadata:
       creation_time   : 2013-12-28 20:25:51

    The non-working produces this :

    Metadata:
     major_brand     : isom
     minor_version   : 512
     compatible_brands: isomiso2mp41
     encoder         : Lavf55.0.100
    Duration: 00:05:25.79, start: 0.033333, bitrate: 1331 kb/s
     Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 704x528 [SAR 1:1 DAR 4:3], 1198 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
     Metadata:
       handler_name    : VideoHandler
     Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
     Metadata:
       handler_name    : SoundHandler

    What ffmpeg options do I need to supply to convert my wmv file to an mp4 file like the first of those listed here (the working one) ?

    Update : 2015-10-23, here is the full output from ffmpeg for the non-working file :

    E:\>ffmpeg -i non-working.mp4
    ffmpeg version N-71329-g235589e Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libblu
    ray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --ena
    ble-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
    ble-decklink --enable-zlib
     libavutil      54. 22.101 / 54. 22.101
     libavcodec     56. 34.100 / 56. 34.100
     libavformat    56. 30.100 / 56. 30.100
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 13.101 /  5. 13.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'non-working.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2mp41
       encoder         : Lavf55.0.100
     Duration: 00:10:12.94, start: 0.033333, bitrate: 1324 kb/s
       Stream #0:0(eng): Video: mpeg4 (Simple Profile) (mp4v / 0x7634706D), yuv420p, 704x528 [SAR 1:1 DAR 4:3], 1191 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
       Metadata:
         handler_name    : SoundHandler
    At least one output file must be specified