Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (104)

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

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

Sur d’autres sites (12313)

  • Building ffmpeg on Windows

    27 février 2014, par Niranjan

    I've the source code of ffmpeg and would like to build it in my win7. I've minGW installed on my machine. I found a step by step instruction from this link :

    http://www.gooli.org/blog/building-ffmpeg-for-windows-with-msys-and-mingw/

    The link 'Download updated bash for MSYS' did not follow. It showed the file is not found. When I try to build the program the way explained in the site, it shows an error :

    Unknown option “–extra-cflags=-mno-cygwin”.
    See ./configure –help for available options.
    ./myconfig : –extra-ldflags=-Wl,–add-stdcall-alias : command not found
    ./myconfig : –target-os=mingw32 : command not found

    From a similar question posted here, I followed the link http://ffmpeg.arrozcru.org/ but the static build downloaded from the site was corrupted. Pls help.

  • How to split an audio / video file based upon multiple timestamps by using FFMPEG (preferably)

    19 février, par badr2001

    I would like to be able to split my audio (mp3 or equiv.) or video file based upon multiple timestamps. The same way, for those who have used any editing software, you can crop the file based upon selecting a start time and end time.

    


    What I have done so far :

    


    [HttpPost]&#xA;public async Task<string> ProcessFullAudio([FromBody] ProcessFullAudioRequest processFullAudioRequest)&#xA;{&#xA;    if (processFullAudioRequest == null || processFullAudioRequest.StartEndTimes == null || processFullAudioRequest.StartEndTimes.Length == 0)&#xA;    {&#xA;        throw new ArgumentException("Invalid request: StartEndTimes cannot be null or empty.");&#xA;    }&#xA;&#xA;    var timestamp = DateTime.Now.ToString("yyyyMMdd_HHmmss");&#xA;    var fileName = $"{Guid.NewGuid()}_{timestamp}.mp3";&#xA;    var outputFilePath = Path.Combine(customFolder, fileName);&#xA;&#xA;    int amntOfTimeStamps = processFullAudioRequest.StartEndTimes.Length;&#xA;    int step = 0;&#xA;    string lineOfCodeForFirstTime = " \"aselect=&#x27;not(between(t,<start>,<end>)";&#xA;    string lineOfCodeForRestOfTimes = "&#x2B;between(t,<start>,<end>)";&#xA;    string argument = "";&#xA;    string result = null;&#xA;    string filterComplex = GenerateAtrims(processFullAudioRequest.StartEndTimes);&#xA;&#xA;    while (step != amntOfTimeStamps)&#xA;    {&#xA;        step&#x2B;&#x2B;;&#xA;        if (step == 1)&#xA;        {&#xA;            result = ReplacePlaceholders(lineOfCodeForFirstTime, HhMmSsToSeconds(processFullAudioRequest.StartEndTimes[step - 1].Start).ToString() , HhMmSsToSeconds(processFullAudioRequest.StartEndTimes[step - 1].End).ToString());&#xA;            argument &#x2B;= result;&#xA;        }&#xA;        else&#xA;        {&#xA;            result = ReplacePlaceholders(lineOfCodeForRestOfTimes, HhMmSsToSeconds(processFullAudioRequest.StartEndTimes[step - 1].Start).ToString() , HhMmSsToSeconds(processFullAudioRequest.StartEndTimes[step - 1].End).ToString());&#xA;            argument &#x2B;= result;&#xA;        }&#xA;&#xA;    }&#xA;    var FFMPEG_PATH = Path.Combine(Directory.GetCurrentDirectory(), "wwwroot", "ffmpeg.exe");&#xA;    if (!System.IO.File.Exists(FFMPEG_PATH))&#xA;    {&#xA;        return "ffmpeg.exe IS NULL";&#xA;    }&#xA;    var arguments = $"-i {processFullAudioRequest.InputFilePath} -af {argument})&#x27; ,asetpts=N/SR/TB\" -acodec libmp3lame {outputFilePath}";&#xA;&#xA;    await ProcessAsyncHelper.ExecuteShellCommand(FFMPEG_PATH, arguments, Timeout.Infinite);&#xA;&#xA;    return outputFilePath;&#xA;}&#xA;</end></start></end></start></string>

    &#xA;

    The code, I hope, is self explanatory.&#xA;The argument variable should like something like this :

    &#xA;

    -i C:\Users\User\Desktop\AudioEditorBackEnmd\AudioEditorAPI\wwwroot\mp3\TestAudio_123.mp3 -af  "aselect=&#x27;not(between(t,120,240))&#x27; ,asetpts=N/SR/TB" -acodec libmp3lame C:\Users\User\Desktop\AudioEditorBackEnmd\AudioEditorAPI\wwwroot\mp3\aa887f21-0a90-4ec5-80ba-2b265cb445b4_20250219_123804.mp3&#xA;

    &#xA;

    After returning the output path for the newly processed edited audio, I pass it to my DownloadFile function :

    &#xA;

            [HttpGet]&#xA;        public async Task<iactionresult> DownloadProcessedFile([FromQuery] string fileName)&#xA;        {&#xA;            if (string.IsNullOrWhiteSpace(fileName))&#xA;            {&#xA;                return BadRequest("File name is required.");&#xA;            }&#xA;&#xA;            var filePath = Path.Combine(customFolder, fileName);&#xA;&#xA;            if (!System.IO.File.Exists(filePath))&#xA;            {&#xA;                return NotFound(new { fileName });&#xA;            }&#xA;&#xA;            try&#xA;            {&#xA;                var fileBytes = await System.IO.File.ReadAllBytesAsync(filePath);&#xA;&#xA;                return File(fileBytes, "audio/mpeg", fileName);&#xA;&#xA;            }&#xA;            catch (Exception ex)&#xA;            {&#xA;                throw;&#xA;            }&#xA;&#xA;        }&#xA;&#xA;</iactionresult>

    &#xA;

    Everything works, in the sense off, I am able to get an processed file which is shorter than the original audio. However the issue is that the timestamps are off.&#xA;For example, in the argument that I provided above, I am cropping the audio from 120 to 240, which is from the 2 min mark till the 4 min mark. The audio which I am passing is 01:06:53 however the processed audio gives me back 1:05:22 which is not excepted as I should be getting 01:04:53.

    &#xA;

    The annoying thing is that I was getting the desired output at one point. Im not sure what changes caused the timestamps to become off. The only changes which I did was changing the file locations to my wwwroot folder.

    &#xA;

    I have tried many different variations of commands to get a desired output but can't seem to get anything close - I always get 1:05:22 back. From the commands that I tired was :

    &#xA;

                var arguments = $"-i {processFullAudioRequest.InputFilePath} -af {argument})&#x27; , asetpts=N/SR/TB\" -c:a libmp3lame -q:a 2  {outputFilePath}";&#xA;

    &#xA;

    I tried so many more but I simply can't remember. And now I feel like I have reached a hard wall in coming up with a solution for this.

    &#xA;

    Any help I would much appreciate. I have tried to give as much detail as I can but if anything remains please let me know.

    &#xA;

  • ffmpeg Invalid data found when processing input

    20 mai 2019, par Sulli

    I’m trying to download a specific part of a youtube video with this code :

    step=`youtube-dl -g -f 'bestvideo[ext=mp4]' https://www.youtube.com/watch?v=pMntMsHTDZ0`
    ffmpeg -nostdin  -i "$step" -ss 00:00:10.00 -t 00:00:02.00 -c copy frames/out.mp4

    but I’m getting this error :

    https://manifest.googlevideo.com/api/manifest/dash/requiressl/yes/source/youtube/id/a4c9ed32c1d30d9d/itag/0/ei/fG7iXMihC8_oxwK0qJ-YAQ/playback_host/r6---sn-n4g-jqbd.googlevideo.com/mm/31%2C26/mn/sn-n4g-jqbd%2Csn-5hne6n7s/ms/au%2Conr/mv/m/pl/22/hfr/all/as/fmp4_audio_clear%2Cwebm_audio_clear%2Cwebm2_audio_clear%2Cfmp4_sd_hd_clear%2Cwebm2_sd_hd_clear/initcwndbps/716250/mt/1558343198/fvip/4/ip/79.86.92.133/ipbits/0/expire/1558364892/sparams/ip%2Cipbits%2Cexpire%2Crequiressl%2Csource%2Cid%2Citag%2Cei%2Cplayback_host%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Chfr%2Cas%2Cinitcwndbps/signature/D046699C35F9AFF84334BAB20E1D8D4CA5318794.6EF1739E2ED134D16EBBE9242BDDE31F59801AAB/key/yt8: Invalid data found when processing input

    I don’t understand this error, and this code has worked for tens of videos I’ve downloaded before.

    How to fix this or get more information on the error ?