Recherche avancée

Médias (1)

Mot : - Tags -/iphone

Autres articles (77)

  • Soumettre bugs et patchs

    10 avril 2011

    Un logiciel n’est malheureusement jamais parfait...
    Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
    Si vous pensez avoir résolu vous même le bug (...)

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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (8932)

  • Execute multiple commands in background from terminal & redirecting output

    9 octobre 2016, par Guernica

    I’m running ffmpeg via an exec command from php. I need to wait for the command to finish executing and run another command to call a php script.

    I need the output to be redirected to text files.

    This i have accomplished with the following code but it wont execute in the background. PHP hangs until the script has finished executing.

    exec("ffmpeg -i INPUTFILE -f mp4 -vcodec libx264 -preset fast -profile:v main -acodec aac -strict -2 OUTPUTFILE -hide_banner 1> /tmp/1.txt 2>/tmp/1.txt && php PATH_TO_PHP_SCRIPT/complete.php id=11 1> /tmp/11.txt 2> /tmp/11.txt &");

    Any help would be greatly appreciated.

    EDIT : I’ve got the required functionality by calling my original php containing the above code from another php containing

    exec("php convert.php id=".$id."  1> /tmp/".$id."_error.txt 2>/tmp/".$id."_error.txt &");

    I would rather leave this question open to find a more elegant solution or information as to why my original code at the top doesn’t function in the way i would expect.

  • FFmpeg command works in terminal but gives an error in php code

    21 mai 2021, par Rider

    Use this command :

    


    ffmpeg -i lecture.mp4 -codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls filename.m3u8


    


    It works.

    


    $path = '1/';
  $inputFile = 'lecture.mp4';
  $filePath = 'filename.m3u8';
  $commandOutput = exec ('/opt/ffmpeg/ffmpeg -I '.$path .$inputFile. ' -Codec: copy -start_number 0 -hls_time 10 -hls_list_size 0 -f hls'.$path .$filePath);


    


    Using this PHP code I get the error : At least one output file must be specified

    


    What is causing this error ?

    


  • Python script doesn't work properly when ran through terminal, but works fine in Jupyter and Visual Studio

    21 octobre 2018, par Ivan Novikov

    I have a script to extract the audio from all video files in a folder.

    The folder with videos is located at : /Users/MyName/Downloads/Video_Audio_files

    When I try to run it through terminal and I’m prompted for the folder path folder = input("Path to folder:"), I drag and drop it there (which is how I got the above path), but the script doesn’t seem to be working (stuck at 0 out of 7 and no output files).

    When I input exactly the same path when prompted in Jupyter Notebook or in Visual Studio it works perfectly !

    Edit : I think I have found the issue, when I drag and drop the folder, there is an extra space (’Downloads/folder ’ instead of ’Downloads/folder’).

    pbar = ProgressBar()
    files = []
    extensions = []
    folder = input("Path to folder:")
    #folder = 'Video_Audio_files'
    pathlist = Path(folder).glob('**/*.mp4')
    for path in pathlist:
       path_in_str = str(path)
       name = path_in_str.split("/")[1]
       files.append(path_in_str.split(".")[0])
       extensions.append(path_in_str.split(".")[1])

    os.system('cd ' + folder)

    for i in pbar(range(len(files))):
       video_format = extensions[i]
       video_name = files[i]
       output_format = 'flac'
       output_name = video_name + '_audio'

       bashCommand = 'ffmpeg -i ' + video_name + '.'   + video_format + ' -f ' + output_format + ' -ab 192000 -vn ' + output_name + '.' + output_format
    #should be of this format: bashCommand = 'ffmpeg -i Video.mp4 -f flac -ab 192000 -vn ExtractedAudio.flac'

       os.system(bashCommand)