Advanced search

Medias (91)

Other articles (68)

  • Supporting all media types

    13 April 2011, by

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats: images: png, gif, jpg, bmp and more audio: MP3, Ogg, Wav and more video: AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data: OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Submit bugs and patches

    13 April 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information: the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • MediaSPIP 0.1 Beta version

    25 April 2011, by

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

On other websites (9087)

  • avcodec/pixlet: fix architecture-dependent code and values

    7 March 2017, by Vittorio Giovara
    avcodec/pixlet: fix architecture-dependent code and values
    

    The constants used in the decoder used floating point precision,
    and this caused different values to be generated on different
    architectures.

    So, eradicate floating point numbers and use fixed point (32.32)
    arithmetics everywhere, replacing constants with precomputed integer
    values.

    Signed-off-by: Vittorio Giovara <vittorio.giovara at gmail.com>
    Signed-off-by: Paul B Mahol <onemda@gmail.com>

    • [DH] libavcodec/pixlet.c
  • Is there a way to batch split a file by chapter with ffmpeg and then reassemble with mkvmerge in windows?

    13 April, by Sipherdrakon

    So I made a batch script originally with the ability to relatively precision trim a video into chapters without having to run by keyframes, but the code looks horrible and I can't get it to loop through all mp4 files nor get mkvmerge to append the files after splitting them. Code is below but be gentle it is my first try.

    &#xA;

    @echo off&#xA;setlocal enableDelayedExpansion&#xA;&#xA;REM CODE BELOW CREATES JSON FILES FOR ALL MP4 FILES WITHIN THE SAME DIRECTORY&#xA;ffprobe -v quiet -print_format json -show_chapters -loglevel error "01x01.mp4" > "01x01.json"&#xA;&#xA;REM CODE BELOW SETS VARIABLES FROM EACH SPECIFIC JSON&#xA;FOR /F "delims=" %%i in (&#x27;jq .chapters[2].start ^&lt; 01x01.json&#x27;) DO SET /A start1=%%i&#xA;FOR /F "delims=" %%j in (&#x27;jq .chapters[2].end ^&lt; 01x01.json&#x27;) DO SET /A end1=%%j&#xA;&#xA;FOR /F "delims=" %%k in (&#x27;jq .chapters[4].start ^&lt; 01x01.json&#x27;) DO SET /A start2=%%k&#xA;FOR /F "delims=" %%l in (&#x27;jq .chapters[4].end ^&lt; 01x01.json&#x27;) DO SET /A end2=%%l&#xA;&#xA;FOR /F "delims=" %%m in (&#x27;jq .chapters[6].start ^&lt; 01x01.json&#x27;) DO SET /A start3=%%m&#xA;FOR /F "delims=" %%n in (&#x27;jq .chapters[6].end ^&lt; 01x01.json&#x27;) DO SET /A end3=%%n&#xA;&#xA;FOR /F "delims=" %%o in (&#x27;jq .chapters[8].start ^&lt; 01x01.json&#x27;) DO SET /A start4=%%o&#xA;FOR /F "delims=" %%p in (&#x27;jq .chapters[8].end ^&lt; 01x01.json&#x27;) DO SET /A end4=%%p&#xA;&#xA;REM SETS THE DURATION OF EACH FILE TO USE PRECISION TIMING FOR START AND STOP TIMES&#xA;CALL vbs (%end1%-%start1%)/1000&#xA;SET duration1=%val%&#xA;CALL vbs (%end2%-%start2%)/1000&#xA;SET duration2=%val%&#xA;CALL vbs (%end3%-%start3%)/1000&#xA;SET duration3=%val%&#xA;CALL vbs (%end4%-%start4%)/1000&#xA;SET duration4=%val%&#xA;&#xA;REM SETS THE START TIME IN SECONDS VS MILLISECONDS&#xA;CALL vbs (%start1%)/1000&#xA;SET start1=%val%&#xA;CALL vbs (%start2%)/1000&#xA;SET start2=%val%&#xA;CALL vbs (%start3%)/1000&#xA;SET start3=%val%&#xA;CALL vbs (%start4%)/1000&#xA;SET start4=%val%&#xA;&#xA;REM TRIM AND SPLIT ORIGINAL FILE INTO SEPERATE SECTIONS BASED ON CHAPTER MARKERS&#xA;ffmpeg -ss %START1% -i 01x01.mp4 -ss 0 -c copy -to %DURATION1% -avoid_negative_ts make_zero 01x01-1.mp4&#xA;ffmpeg -ss %START2% -i 01x01.mp4 -ss 0 -c copy -to %DURATION2% -avoid_negative_ts make_zero 01x01-2.mp4&#xA;ffmpeg -ss %START3% -i 01x01.mp4 -ss 0 -c copy -to %DURATION3% -avoid_negative_ts make_zero 01x01-3.mp4&#xA;ffmpeg -ss %START4% -i 01x01.mp4 -ss 0 -c copy -to %DURATION4% -avoid_negative_ts make_zero 01x01-4.mp4&#xA;&#xA;REM DELETES UNNEEDED JSON AFTER USE&#xA;del /s *.json&#xA;&#xA;REM APPEND ALL MP4 FILES INTO COHESIVE MKV&#xA;for /d /r %%D in (*) do (&#xA;    pushd %%D&#xA;    set files=&#xA;    for %%F in (*.mp4) do set files=!files! &#x2B; ^( "%%F" ^)&#xA;    if not "!files!"=="" %mkvmerge% -o "01x01-FINAL.mkv" !files:~2!&#xA;    popd&#xA;)&#xA;&#xA;REM DELETE UNNEEDED MP4 ORIGINALS AND SPLIT FILES&#xA;del /s *.mp4&#xA;

    &#xA;

    I know it is super long and every time I try to use a variable or a loop to run through all files it can't read the json file. I've been at this all day and I can use the script as is but I have to make a file for each iteration.

    &#xA;

    I was also hoping to be able to have it only pull chapters labeled as "video" but I haven't quite figured that one out yet.

    &#xA;

    I'll add the vbs batch file for the arithmetic section as well as the sample json if it will help.

    &#xA;

    @echo off&#xA;>"%temp%\VBS.vbs" echo Set fso = CreateObject("Scripting.FileSystemObject") : Wscript.echo (%*)&#xA;for /f "delims=" %%a in (&#x27;cscript /nologo "%temp%\VBS.vbs"&#x27;) do set "val=%%a"&#xA;del "%temp%\VBS.vbs"&#xA;

    &#xA;

    {&#xA;    "chapters": [&#xA;        {&#xA;            "id": 0,&#xA;            "time_base": "1/1000",&#xA;            "start": 0,&#xA;            "start_time": "0.000000",&#xA;            "end": 5590,&#xA;            "end_time": "5.590000",&#xA;            "tags": {&#xA;                "title": "Video"&#xA;            }&#xA;        },&#xA;        {&#xA;            "id": 1,&#xA;            "time_base": "1/1000",&#xA;            "start": 5590,&#xA;            "start_time": "5.590000",&#xA;            "end": 13994,&#xA;            "end_time": "13.994000",&#xA;            "tags": {&#xA;                "title": "Advertisement"&#xA;            }&#xA;        },&#xA;        {&#xA;            "id": 2,&#xA;            "time_base": "1/1000",&#xA;            "start": 13994,&#xA;            "start_time": "13.994000",&#xA;            "end": 163964,&#xA;            "end_time": "163.964000",&#xA;            "tags": {&#xA;                "title": "Video"&#xA;            }&#xA;        },&#xA;        {&#xA;            "id": 3,&#xA;            "time_base": "1/1000",&#xA;            "start": 163964,&#xA;            "start_time": "163.964000",&#xA;            "end": 195940,&#xA;            "end_time": "195.940000",&#xA;            "tags": {&#xA;                "title": "Advertisement"&#xA;            }&#xA;        },&#xA;        {&#xA;            "id": 4,&#xA;            "time_base": "1/1000",&#xA;            "start": 195940,&#xA;            "start_time": "195.940000",&#xA;            "end": 547849,&#xA;            "end_time": "547.849000",&#xA;            "tags": {&#xA;                "title": "Video"&#xA;            }&#xA;        },&#xA;        {&#xA;            "id": 5,&#xA;            "time_base": "1/1000",&#xA;            "start": 547849,&#xA;            "start_time": "547.849000",&#xA;            "end": 595850,&#xA;            "end_time": "595.850000",&#xA;            "tags": {&#xA;                "title": "Advertisement"&#xA;            }&#xA;        },&#xA;        {&#xA;            "id": 6,&#xA;            "time_base": "1/1000",&#xA;            "start": 595850,&#xA;            "start_time": "595.850000",&#xA;            "end": 1413588,&#xA;            "end_time": "1413.588000",&#xA;            "tags": {&#xA;                "title": "Video"&#xA;            }&#xA;        },&#xA;        {&#xA;            "id": 7,&#xA;            "time_base": "1/1000",&#xA;            "start": 1413588,&#xA;            "start_time": "1413.588000",&#xA;            "end": 1477569,&#xA;            "end_time": "1477.569000",&#xA;            "tags": {&#xA;                "title": "Advertisement"&#xA;            }&#xA;        },&#xA;        {&#xA;            "id": 8,&#xA;            "time_base": "1/1000",&#xA;            "start": 1477569,&#xA;            "start_time": "1477.569000",&#xA;            "end": 1529696,&#xA;            "end_time": "1529.696000",&#xA;            "tags": {&#xA;                "title": "Video"&#xA;            }&#xA;        }&#xA;    ]&#xA;}&#xA;

    &#xA;

    I also tried using the start_time so I didn't have to do extra calculations but jq didn't like that either.

    &#xA;

    mkvmerge doesn't even try to run when I have it in here and I still need to cut 7 seconds off the end and 12 seconds off the front of it once it is all one file again.

    &#xA;

    Any help would be appreciated, I know it's a lot but I seem to have hit a roadblock or just sleep deprived at this point.

    &#xA;

    UPDATE

    &#xA;

    This works amazing I just need to figure out how to use files with spaces and I'm all set. I guess I could run a batch before hand replacing all spaces with underscores. That would probably work but I would like to not change filenames if I can help it.

    &#xA;

    @echo off&#xA;&#xA;for %%i in (*.mp4) do (&#xA;FOR /F "delims=" %%A IN (&#x27;ffprobe -v quiet -print_format json -show_chapters -loglevel error "%%i" ^| xidel - -se "$json/(chapters)()[id!=0 and tags/title=&#x27;Video&#x27;]/concat(&#x27;ffmpeg -ss &#x27;,start div 1000,&#x27; -i %%i -to &#x27;,((end - start) div 1000),&#x27; -c copy -avoid_negative_ts make_zero %%~ni-&#x27;,position(),&#x27;.mp4&#x27;)"&#x27;) DO %%A&#xA;FOR /F "delims=" %%A IN (&#x27;xidel -s --xquery "concat(&#x27;mkvmerge -o &amp;quot;%%~ni-FINAL.mkv&amp;quot; &amp;quot;&#x27;,join(file:list(.,false(),&#x27;%%~ni-*.mp4&#x27;),&#x27;&amp;quot; &#x2B; &amp;quot;&#x27;),&#x27;&amp;quot;&#x27;)"&#x27;) DO %%A&#xA;)&#xA;

    &#xA;

  • How to add multiple filters in ffmpeg?

    12 October 2020, by ashish soni

    I want to apply volume increase, brightness increase and placing the logo in top right of the video.&#xA;Please correct me:

    &#xA;

    ffmpeg -y -i input_video_path -i logo_path -filter_complex "[0:1]volume=volume=6dB:precision=fixed;[0:0]eq=gamma=1.5:saturation=1.3;[1:0]overlay= main_w-(overlay_w &#x2B; 10): 10" -pix_fmt yuvj420p output_video_path

    &#xA;

    I am getting this error after apply this:

    &#xA;

    Cannot find a matching stream for unlabeled input pad 1 on filter Parsed_overlay_2

    &#xA;