Recherche avancée

Médias (2)

Mot : - Tags -/kml

Autres articles (93)

Sur d’autres sites (16719)

  • ffmpeg : "invalid syntax" on file name ?

    26 novembre 2017, par Josh Flori

    I am trying to use this line of code in python :

    ffmpeg -i test.mp4 -vf fps=1 out%d.png

    per the documentation here https://trac.ffmpeg.org/wiki/Create%20a%20thumbnail%20image%20every%20X%20seconds%20of%20the%20video

    but python is giving me :

    File "<stdin>", line 1
    ffmpeg -i test.mp4 -vf fps=10 out%d.png
                ^
    SyntaxError: invalid syntax
    </stdin>

    I have imported ffmpeg and have my test.mp4 file exactly where I keep everything else python related. I have looked for a good while and am not sure what I am doing wrong, seems like it should be something simple ? Any ideas ?

    Thanks

  • Merge mp3 files using FFmpeg on Android

    13 mai 2017, par Ali

    I am trying to merge two mp3 files using this command :

    ffmpeg -i "concat:/storage/emulated/0/Recordings/oneone.mp3|/storage/emulated/0/Recordings/twone.mp3" -c copy /storage/emulated/0/Recordings/concated.mp3

    but get this error :

    "concat:/storage/emulated/0/Recordings/oneone.mp3|/storage/emulated/0/Recordings/twone.mp3": No such file or directory

    Even though the both files exist in the directory. I have written this command according to the documentation : https://trac.ffmpeg.org/wiki/Concatenate#protocol

    How do I fix this ? Please help me.

  • FFmpeg WebM AV1 Support

    6 septembre 2018, par Matt McManis

    With FFmpeg how can I use AV1 codec in a webm container ?

    I get the error :

    Only VP8 or VP9 video and Vorbis or Opus audio and WebVTT subtitles are supported for WebM.
    Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
    Error initializing output stream 0:0 --

    However Wikipedia says WebM supports AV1.

    https://en.wikipedia.org/wiki/AV1

    AV1 is intended to be able to be used together with the audio format Opus in a future version of the WebM container format for HTML5 web video

    Or can FFmpeg simply not encode this new version ?


    My settings :

    ffmpeg -y

    -i "C:\Users\Matt\video.mp4"

    -c:v libaom-av1 -strict experimental
    -cpu-used 1 -crf 28
    -pix_fmt yuv420p
    -map 0:v:0? -map_chapters -1
    -sn

    -c:a libopus
    -map 0:a:0?

    -map_metadata 0

    -f webm

    -threads 0

    "C:\Users\Matt\video.webm"