Recherche avancée

Médias (91)

Autres articles (40)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

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

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (6757)

  • avformat/unix : set is_streamed to true

    6 février, par dank074
    avformat/unix : set is_streamed to true
    

    Currently when a Unix Domain Socket is used as input there is a loss
    of data when data is consumed from the stream. Setting is_streamed to
    true fixes this, since the unix domain socket is now treated like a
    consumable stream.

    Fixes : #9346
    Signed-off-by : dank074 <torresefrain10@gmail.com>
    Reviewed-by : Leo Izen <leo.izen@gmail.com>

    • [DH] libavformat/unix.c
  • avcodec/xvididct : Remove always-true checks

    20 mai, par Andreas Rheinhardt
    avcodec/xvididct : Remove always-true checks
    

    ff_xvid_idct_init() is now only called from ff_idctdsp_init()
    and only if idct_algo is FF_IDCT_XVID.
    This also implies that it is unnecessary to initalize
    the permutation on our own.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/xvididct.c
  • Bash script to automate FFmpeg operations fails when calling the command, but copy-pasting the generated command into the terminal works [duplicate]

    28 février, par GaboScharff99

    I wrote a bash script which automates a number of conversion operations on video files using FFmpeg. Oddly enough, the FFmpeg call itself now fails when running the script, with a very confusing error message, I might add, but when I copy the command generated by the script into the terminal and run it, it works flawlessly. I'm sorry to insert such a long code block here, but considering how strange this error is, it might be anywhere in the script, so here it is :

    &#xA;

    #!/bin/bash&#xA;&#xA;audioTrack=1&#xA;subSource=1&#xA;subTrack=0&#xA;transcodeVideo=1&#xA;transcodeAudio=1&#xA;volumeMultiplier=1&#xA;degradeToStereo=0&#xA;subLanguage="Japanese"&#xA;&#xA;while getopts "t:ns:vam:dl:h" opt; do&#xA;    case "$opt" in&#xA;        t) audioTrack=${OPTARG};;&#xA;        n) subSource=0;;&#xA;        s) subTrack=${OPTARG};;&#xA;        v) transcodeVideo=0;;&#xA;        a) transcodeAudio=0;;&#xA;        m) volumeMultiplier=${OPTARG};;&#xA;        d) degradeToStereo=1;;&#xA;        l) subLanguage=${OPTARG};;&#xA;        h)&#xA;            echo "Options:"&#xA;            echo "-t [integer]: Audio track number. Default: 1."&#xA;            echo "-n: If included, subtitles will be taken from internal source."&#xA;            echo "-s [integer]: Subtitles track number. Default: 0."&#xA;            echo "-v: If included, video source will be copied without transcoding."&#xA;            echo "-a: If included, audio source will be copied without transcoding."&#xA;            echo "-m [number]: Volume multiplier. If 1, volume is unaffected. Default: 1"&#xA;            echo "-d: If included, audio will be degraded to stereo."&#xA;            echo "-l [language]: Subtitles language. Only used for external subtitles source. Default: Japanese."&#xA;            exit 0&#xA;        ;;&#xA;    esac&#xA;done&#xA;&#xA;echo "Audio track: $audioTrack."&#xA;echo "Subtitles track: $subTrack."&#xA;params="-map 0:0 -map 0:$audioTrack -map $subSource:$subTrack -c:v"&#xA;&#xA;if [[ $transcodeVideo -eq 1 ]]; then&#xA;    echo "Video will be transcoded."&#xA;    params="$params hevc"&#xA;elif [[ $transcodeVideo -eq 0 ]]; then&#xA;    echo "Video will be copied without transcoding."&#xA;    params="$params copy"&#xA;fi&#xA;&#xA;params="$params -c:a"&#xA;&#xA;if [[ $transcodeAudio -eq 1 ]]; then&#xA;    echo "Audio will be transcoded."&#xA;    params="$params libopus"&#xA;elif [[ $transcodeAudio -eq 0 ]]; then&#xA;    echo "Audio will be copied without transcoding."&#xA;    params="$params copy"&#xA;fi&#xA;&#xA;if [[ $volumeMultiplier -ne 1 ]]; then&#xA;    echo "Volume will be multiplied by a factor of $volumeMultiplier."&#xA;    params="$params -filter:a &#x27;volume=$volumeMultiplier&#x27;"&#xA;else&#xA;    echo "Volume will be unaffected."&#xA;fi&#xA;&#xA;if [[ $degradeToStereo -eq 1 ]]; then&#xA;    echo "Audio will be degraded to stereo."&#xA;    params="$params -ac 2"&#xA;elif [[ $degradeToStereo -eq 0 ]]; then&#xA;    echo "Audio will not be degraded to stereo."&#xA;fi&#xA;&#xA;params="$params -c:s copy"&#xA;&#xA;if [[ $subSource -eq 1 ]]; then&#xA;    echo "Subtitles source is external."&#xA;    echo "Subtitles language is $subLanguage."&#xA;    params="$params -metadata:s:s:0 title=&#x27;&#x27; -metadata:s:s:0 language=&#x27;$subLanguage&#x27;"&#xA;else&#xA;    echo "Subtitles source is internal."&#xA;fi&#xA;&#xA;if [[ -f titles.txt ]]; then&#xA;    echo "A titles.txt file was found. Titles will be changed according to it."&#xA;    echo "Please check titles.txt to make sure the titles are correct."&#xA;    changeTitles=1&#xA;    counter=0&#xA;else&#xA;    echo "A titles.txt file was not found. Titles will not be changed."&#xA;    changeTitles=0&#xA;fi&#xA;&#xA;read -p "Are these options correct? (y/n) " choice&#xA;&#xA;case "$choice" in&#xA;    y|Y)&#xA;        echo "Initiating conversion sequence. This may take a while..."&#xA;&#xA;        mkdir output&#xA;        currentParams=""&#xA;&#xA;        shopt -s nullglob&#xA;        for i in *.mp4 *.mkv; do&#xA;            currentParams=$params&#xA;            fileNameNoExtension=$(echo $i | rev | cut -f 2- -d &#x27;.&#x27; | rev)&#xA;&#xA;            if [[ $subSource -eq 1 ]]; then&#xA;                currentParams="-f srt -i $fileNameNoExtension.srt $currentParams"&#xA;            fi&#xA;&#xA;            if [[ $changeTitles -eq 1 ]]; then&#xA;                ((counter&#x2B;&#x2B;))&#xA;                currentParams="$currentParams -metadata title=&#x27;$(awk "NR==$counter" titles.txt)&#x27;"&#xA;            fi&#xA;&#xA;            ffmpeg -i "$i" $currentParams "output/$fileNameNoExtension.mkv"&#xA;        done&#xA;&#xA;        echo "Conversion finished!"&#xA;    ;;&#xA;    n|N) echo "Operation canceled. Exiting.";;&#xA;    *) echo "Invalid input. Try again.";;&#xA;esac&#xA;

    &#xA;

    The directory I'm running this in contains six video files :

    &#xA;

      &#xA;
    1. E1 - The Pirates of Orion.mkv
    2. &#xA;

    3. E2 - Bem.mkv
    4. &#xA;

    5. E3 - The Practical Joker.mkv
    6. &#xA;

    7. E4 - Albatross.mkv
    8. &#xA;

    9. E5 - How Sharper Than a Serpent&#x27;s Tooth.mkv
    10. &#xA;

    11. E6 - The Counter-Clock Incident.mkv
    12. &#xA;

    &#xA;

    Here's the titles.txt file, for completion's sake :

    &#xA;

    Star Trek: The Animated Series - Season 2, Episode 1 - The Pirates of Orion&#xA;Star Trek: The Animated Series - Season 2, Episode 2 - Bem&#xA;Star Trek: The Animated Series - Season 2, Episode 3 - The Practical Joker&#xA;Star Trek: The Animated Series - Season 2, Episode 4 - Albatross&#xA;Star Trek: The Animated Series - Season 2, Episode 5 - How Sharper Than a Serpent&#x27;s Tooth&#xA;Star Trek: The Animated Series - Season 2, Episode 6 - The Counter-Clock Incident&#xA;

    &#xA;

    And finally, here's the error message given by FFmpeg on the terminal for every video file when running the command :

    &#xA;

    Unable to find a suitable output format for &#x27;Trek:&#x27;&#xA;Trek:: Invalid argument&#xA;

    &#xA;

    Maybe there are better ways to handle all of this, but first and foremost, I would like to figure out why the command fails with such a confusing error message. The only place where the string 'Trek :' is found is in the title taken from titles.txt, but I don't understand why that's seemingly being passed to the name of the output file instead of the title, and apparently only when running the script.

    &#xA;

    Thanks a lot for your answers ! I know this is quite a bit of text, so I really appreciate you taking your time to read through this.

    &#xA;