Recherche avancée

Médias (91)

Sur d’autres sites (2029)

  • Try to execute ffmpeg in python - subtitles error

    3 septembre 2022, par user103162

    I try to exectute :
./ffmpeg.exe -i "video.mkv" -vf subtitles="video.mkv" "video.mp4"
This command works fine

    


    But not in my python code

    


    
from pathlib import Path
import subprocess
import os


ffmpeg = r"D:\Archives\ffmpeg.exe"
os.chdir(r"D:\temp\video")
videos = Path(".")

for file_mkv in videos.glob("*.mkv"):
    file_mp4 = file_mkv.with_suffix(".mp4")
    subprocess.run([ffmpeg, "-i", file_mkv, "-vf", f'subtitles="{file_mkv}"', file_mp4])



    


    Error :
[Parsed_subtitles_0 @ 0000020cb26222c0] Unable to open "video.mkv"
[AVFilterGraph @ 0000020cb715a380] Error initializing filter 'subtitles' with args '"video.mkv"'
Error reinitializing filters !
Failed to inject frame into filter network : Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed !

    


  • x86 : hpeldsp : kill hpeldsp_mmx.c

    22 mai 2014, par Christophe Gisquet
    x86 : hpeldsp : kill hpeldsp_mmx.c
    

    before :
    1987 decicycles in 8_x2, 262121 runs, 23 skips

    after :
    1902 decicycles in 8_x2, 262112 runs, 32 skips

    Signed-off-by : Michael Niedermayer <michaelni@gmx.at>

    • [DH] libavcodec/x86/Makefile
    • [DH] libavcodec/x86/hpeldsp.asm
    • [DH] libavcodec/x86/hpeldsp_init.c
    • [DH] libavcodec/x86/hpeldsp_mmx.c
  • mov : Export geotag metadata fields

    3 juin 2014, par Martin Storsjö
    mov : Export geotag metadata fields
    

    The ’ ?xyz’ form is used by android devices (and according to apple
    mailing list archives, also by older iOS devices). The ’loci’ field
    (defined in 3GPP 26.244) is used by recent iOS devices.

    Even though the loci field can contain an altitude, it was plain
    0 in my sample. Just export longitude and latitude, in a string
    format matching the one used by the ’ ?xyz’ metadata field.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavformat/mov.c