Recherche avancée

Médias (91)

Autres articles (28)

  • Contribute to translation

    13 avril 2011

    You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
    To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
    MediaSPIP is currently available in French and English (...)

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

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (4599)

  • lavc/jpeg2000dec : Fix used variables reading palette.

    12 novembre 2017, par Carl Eugen Hoyos
    lavc/jpeg2000dec : Fix used variables reading palette.
    

    Affected files with palette and colour-depth < 8.

    • [DH] libavcodec/jpeg2000dec.c
  • Failed to find two consecutive MPEG audio frames [closed]

    3 décembre 2024, par matrixebiz

    I'm receiving this error trying to download/convert an m3u8

    &#xA;

    [mp3 @ 000001c8f5112200] Format mp3 detected only with low score of 1, misdetection possible!&#xA;[mp3 @ 000001c8f5112200] Failed to find two consecutive MPEG audio frames.&#xA;[in#0 @ 000001c8f5111f40] Error opening input: Invalid data found when processing input&#xA;

    &#xA;

    Any way to fix this in my ffmpeg command line ? Also, playing the stream in VLC and other apps shows this in the path /%EF%BB%BF for some reason.&#xA;VLC is unable to open the MRL 'file :///C :/Temp/%EF%BB%BF'. Check the log for details. Then it will play the actual video.

    &#xA;

    Do i need to change the beginning of the m3u8 ?&#xA;#EXTM3U&#xA;#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1000,RESOLUTION=640x360,

    &#xA;

    Even if I remove it and just leave the URL that is inside the m3u8, will still display the %EF%BB%BF which I need to stop from happening

    &#xA;

    EDIT : Adding the PowerShell script I'm using to output my file :

    &#xA;

    function Replace-FileText&#xA;{&#xA;    [CmdletBinding()]&#xA;    Param&#xA;    (&#xA;        $File1,&#xA;        $File2,&#xA;        $File1StartAnchor,&#xA;        $File1EndAnchor = "$",&#xA;        $File2StartAnchor,&#xA;        $File2EndAnchor = "$"&#xA;    )&#xA;    &#xA;    #Escape the regex meta characters, this assumes literals are used in the input&#xA;    $File1StartAnchorEscaped = [System.Text.RegularExpressions.Regex]::Escape($File1StartAnchor)&#xA;    $File2StartAnchorEscaped = [System.Text.RegularExpressions.Regex]::Escape($File2StartAnchor)&#xA;&#xA;    if ($PSBoundParameters.ContainsKey(&#x27;File1EndAnchor&#x27;))&#xA;    {&#xA;        $File1EndAnchorEscaped = [System.Text.RegularExpressions.Regex]::Escape($File1EndAnchor)&#xA;    }&#xA;    else&#xA;    {&#xA;        $File1EndAnchorEscaped = $File1EndAnchor&#xA;    }&#xA;&#xA;    if ($PSBoundParameters.ContainsKey(&#x27;File2EndAnchor&#x27;))&#xA;    {&#xA;        $File2EndAnchorEscaped = [System.Text.RegularExpressions.Regex]::Escape($File2EndAnchor)&#xA;    }&#xA;    else&#xA;    {&#xA;        $File2EndAnchorEscaped = $File2EndAnchor&#xA;    }&#xA;&#xA;&#xA;    if ((Get-Content $File1 -Raw) -match "$File1StartAnchorEscaped(.*?)$File1EndAnchorEscaped")&#xA;    {&#xA;        Write-Host "Found the following string in between the anchors in $File1 :$($Matches[1])"&#xA;        $TextToInject = $Matches[1]&#xA;    }&#xA;    else&#xA;    {&#xA;        Write-Host "Could not find the Start and end Anchors in $File1"&#xA;        return&#xA;    }&#xA; &#xA;    if ((Get-Content $File2 -Raw) -match "$File2StartAnchorEscaped(.*?)$File2EndAnchorEscaped")&#xA;    {&#xA;        Write-Host "Found the following string in between the anchors in $File2 :$($Matches[1])"&#xA;        $TextToReplace = $Matches[1]&#xA;    }&#xA;    else&#xA;    {&#xA;        Write-Host "Could not find the Start Anchor in $File2"&#xA;        return&#xA;    }&#xA; &#xA;    (Get-Content $File2 -Raw) -replace $TextToReplace,$TextToInject | Out-File $File2 -NoNewline&#xA;}&#xA; &#xA; &#xA;Replace-FileText -File1 &#x27;C:\EQDA\File1.txt&#x27; -File2 &#x27;C:\EQDA\File2.txt&#x27; -File1StartAnchor &#x27;two&#x27; -File1EndAnchor &#x27;"&#x27; -File2StartAnchor &#x27;four&#x27;&#xA;Replace-FileText -File1 &#x27;C:\EQDA\File1.txt&#x27; -File2 &#x27;C:\EQDA\File2.txt&#x27; -File1StartAnchor &#x27;server-&#x27; -File1EndAnchor &#x27;-name&#x27; -File2StartAnchor &#x27;server-&#x27; -File2EndAnchor &#x27;-name&#x27;&#xA;

    &#xA;

  • Unable to find correct bash syntax for comparing numbers

    17 octobre 2024, par kali

    Part of a long script I'm simply trying to compare two numbers, one is constant and the other one is retrieved via ffprobe (The 474 in the error messages is the height found by ffprobe)

    &#xA;

    CURRENT_RES=$(ffprobe -v quiet -select_streams v:0 -show_entries stream=height -of csv=s=x:p=0 "${fn}")&#xA;  if [[ $CURRENT_RES -gt 1080 ]]; then&#xA;    echo "leaving preset normal"&#xA;    SLOW_PRESET=("" "")&#xA;  else&#xA;    echo "setting preset to slow"&#xA;    SLOW_PRESET=(-preset slow)&#xA;  fi;&#xA;

    &#xA;

    produces :

    &#xA;

    /usr/local/bin/startScreen.sh: line 95: [[: 474&#xA;&#xA;474: syntax error in expression (error token is "474")&#xA;setting preset to slow&#xA;

    &#xA;

    I also tried arithmetic operators like :

    &#xA;

      if (($CURRENT_RES>1080)); then&#xA;    echo "leaving preset normal"&#xA;    SLOW_PRESET=("" "")&#xA;  else&#xA;    echo "setting preset to slow"&#xA;    SLOW_PRESET=(-preset slow)&#xA;  fi;&#xA;

    &#xA;

    got a slightly different, but essentially same error message like :

    &#xA;

    /usr/local/bin/startScreen.sh: line 95: ((: 474&#xA;&#xA;474>1080: syntax error in expression (error token is "474>1080")&#xA;setting preset to slow&#xA;

    &#xA;

    What's even more baffling is there 15 lines below this block there is another comparison which works perfectly fine !

    &#xA;

    if [[ $CURRENT_RES -gt $CONVERT_HEIGHT ]]; then&#xA;

    &#xA;

    I thought may be the inline written 1080 number is confusing the if expression so I tried assigning 1080 to variable and reusing it, which changed nothing.

    &#xA;

    edit : (dropping this here in case someone else falls into same mistake)&#xA;following up on Shawn's advice from comments using cat -v showed 474 was repeated twice.&#xA;For debugging purposes ran :

    &#xA;

    ffprobe -v quiet -select_streams v:0 -show_entries stream=height -of json "filename.mp4"&#xA;

    &#xA;

    to find this weird format :

    &#xA;

    {&#xA;    "programs": [&#xA;        {&#xA;            "streams": [&#xA;                {&#xA;                    "height": 472&#xA;                }&#xA;            ]&#xA;        }&#xA;    ],&#xA;    "streams": [&#xA;        {&#xA;            "height": 472&#xA;        }&#xA;    ]&#xA;}&#xA;

    &#xA;

    finally changed the ffprobe command to :

    &#xA;

    CURRENT_RES=$(ffprobe -v quiet -select_streams v:0 -show_entries stream=height -of json "${fn}" | jq .streams[0].height)&#xA;

    &#xA;

    to resolve the issue.

    &#xA;