Recherche avancée

Médias (91)

Autres articles (33)

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

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    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 (...)

Sur d’autres sites (3960)

  • With CMD wrong output subprocess with ffmpeg/ffprobe

    21 avril 2021, par Nicolas Maslorz

    i have a problem with ffmpeg when i run it in the cmd i havethe correct output "ffprobe passionfruit.mp4 -show_streams"  

    


    But when i use the same with subprocess :

    


    command = 'ffprobe "C:/Users/NMASLORZ/Downloads/passionfruit.mp4" -show_streams'
p = subprocess.Popen(command, universal_newlines=True, shell=True,stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
text = p.stdout.read()
retcode = p.wait()
print (text)


    


    i have this output :
"'ffprobe' is not recognized as an internal command or external, an executable program or a batch file."
i tried every synthax and even in a list i still have the same output

    


  • Call ffmpeg in c++ with system() function fails

    2 septembre 2014, par zhen lee

    I write a c++ program which needs to convert some(say:10) mp4 videos to flv videos.
    I use ffmpeg in my program for each video like this :

    system("ffmpeg -i video -filter:v yadif -ar 44100 -sameq -y -f flv temp.flv")

    however,it turns out :only first video will be converted successfully,the others will fail.
    it means :
    when i change the input order of which video to convert and re-execution the program,it behave the same:only the first video(will be different each time as i changed the input video order) will be converted successfully.

    The error message like :

    [h264 @ 0xaee0740] concealing 45 DC, 45 AC, 45 MV errors
    [h264 @ 0xaee0ce0] AVC : nal size 305665
    Last message repeated 1 times
    [h264 @ 0xaee0ce0] no frame !
    [h264 @ 0xaee1280] AVC : nal size 572993
    Last message repeated 1 times
    [h264 @ 0xaee1280] no frame !
    [aac @ 0xad9ccc0] channel element 0.13 is not allocated
    Error while decoding stream #0:1
    [aac @ 0xad9ccc0] channel element 0.13 is not allocated
    Error while decoding stream #0:1
    [aac @ 0xad9ccc0] channel element 0.13 is not allocated
    Error while decoding stream #0:1
    ......
    The most strange thing is :when i run ffmpeg command in bash shell,all video will be converted successfully .

    After google it,I have try these(certainly failed) :

    1. remove -sameq option,the result is same ;
    2. write ffmpeg commod in a shell script ConvertToFlv.sh like :

      /usr/local/bin/ffmpeg -i "$dir/$1" -filter:v yadif -ar 44100 -sameq -y -f flv "$dir/temp.fiv"

      then call this script in program like

      system("ConvertToFlv.sh"+video)

      or

      system("sh ConvertToFlv.sh"+video)

      The result is same.

    The ffmpeg configure is :

     ffmpeg version 0.9.1.git Copyright (c) 2000-2012 the FFmpeg developers
     built on Dec 17 2012 16:17:30 with gcc 4.1.2 20080704 (Red Hat 4.1.2-48)
     configuration: --enable-gpl --enable-postproc --enable-nonfree --enable-postproc --enable-swscale --enable-avfilter --enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac --disable-ffserver --disable-ffplay
     libavutil      51. 41.100 / 51. 41.100
     libavcodec     54.  4.100 / 54.  4.100
     libavformat    54.  1.100 / 54.  1.100
     libavdevice    53.  4.100 / 53.  4.100
     libavfilter     2. 62.101 /  2. 62.101
     libswscale      2.  1.100 /  2.  1.100
     libswresample   0.  7.100 /  0.  7.100
     libpostproc    52.  0.100 / 52.  0.100

    and my machine envirment is :

    Linux master 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

    I’m irritable now,I hope someone can give me some advice,really appreciate it.

  • How can I get Python to find ffprobe ?

    23 décembre 2016, par Gloin

    I have ffmpeg and ffprobe installed on my mac (macOS Sierra), and I have added their path to PATH. I can run them from terminal.

    I am trying to use ffprobe to get the width and height of a video file using the following code :

    import subprocess
    import shlex
    import json


    # function to find the resolution of the input video file
    def findVideoResolution(pathToInputVideo):
       cmd = "ffprobe -v quiet -print_format json -show_streams"
       args = shlex.split(cmd)
       args.append(pathToInputVideo)
       # run the ffprobe process, decode stdout into utf-8 & convert to JSON
       ffprobeOutput = subprocess.check_output(args).decode('utf-8')
       ffprobeOutput = json.loads(ffprobeOutput)

       # find height and width
       height = ffprobeOutput['streams'][0]['height']
       width = ffprobeOutput['streams'][0]['width']

       return height, width

    h, w = findVideoResolution("/Users/tomburrows/Documents/qfpics/user1/order1/movie.mov")
    print(h, w)

    I am sorry I cannot provide a MCVE, as I didn’t write this code, and I don’t really know how it works.

    It gives the following error :

    Traceback (most recent call last):
     File "/Users/tomburrows/Dropbox/Moviepy Tests/get_dimensions.py", line 21, in <module>
       h, w = findVideoResolution("/Users/tomburrows/Documents/qfpics/user1/order1/movie.mov")
     File "/Users/tomburrows/Dropbox/Moviepy Tests/get_dimensions.py", line 12, in findVideoResolution
       ffprobeOutput = subprocess.check_output(args).decode('utf-8')
     File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 626, in check_output
       **kwargs).stdout
     File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 693, in run
       with Popen(*popenargs, **kwargs) as process:
     File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 947, in __init__
       restore_signals, start_new_session)
     File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/subprocess.py", line 1551, in _execute_child
       raise child_exception_type(errno_num, err_msg)
    FileNotFoundError: [Errno 2] No such file or directory: 'ffprobe'
    </module>

    If python is not reading from the PATH file, how can I specify where ffprobe is ?

    EDIT :
    It appears the python path is not aligned with my shell path.
    Using os.environ["PATH"]+=":/the_path/of/ffprobe/dir" at the beginning of each program allows me to use ffprobe, but why might my python path not be the same as my shell path ?