Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (58)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

Sur d’autres sites (6950)

  • Saving OpenCV output in Motion JPEG format. Getting a "'MJPG' is not supported with codec id 7" error

    23 novembre 2022, par portsample

    I'd like to save video camera output in motion JPEG (MJPG) format. The below code,

    


    import cv2
import numpy as np

cap = cv2.VideoCapture(0)
if (cap.isOpened() == False): 
print("Unable to read camera feed")
frame_width = int(cap.get(3))
frame_height = int(cap.get(4))
frame_per_sec = int('10')

out = cv2.VideoWriter('output.mjpeg',cv2.VideoWriter_fourcc('M','J','P','G'),         (frame_per_sec), (frame_width,frame_height))
while(True):
ret, frame = cap.read()
if ret == True:      
# Write the frame into the file 'output.mjpeg'
out.write(frame) 
# Display the resulting frame    
cv2.imshow('frame',frame)
# Press Q on keyboard to stop recording
if cv2.waitKey(1) & 0xFF == ord('q'):
  break
else:
break 
cap.release()
out.release()
cv2.destroyAllWindows()


    


    While it will run, I am getting the following error(s),

    


    [ WARN:0] OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
OpenCV: FFMPEG: tag 0x67706a6d/'mjpg' is not supported with codec id 7 and format 'mjpeg / raw MJPEG video'


    


    What can I do to resolve these ? I've tried changing the case, ('M','J','P','G' to 'm','j','p','g') with no success.
Appreciate any suggestions regarding resolving the above issue, as well as the GStreamer issue. Thanks in advance.

    


  • FFMPEG bash > folder processing > AI upscale - script ERROR ">" [closed]

    13 novembre 2022, par Jason Paul Michaels

    Trying to port a single file manual command from Topaz AI so I can run it as a part of a simple script allowing me to run multiple sessions from terminal. I am running MacOS with BASH 5.2 and when I run the script I get dumped to ">" instead of command prompt and no error message is displayed.

    


    This is my command -

    


    for f in *.mp4; do
  /Applications/Topaz\ Video\ AI.app/Contents/MacOS/ffmpeg \
    -hide_banner \
    -nostdin \
    -y \
    -nostats \
    -i “$f” \
    -vsync 0 \
    -avoid_negative_ts 1 \
    -sws_flags spline+accurate_rnd+full_chroma_int \
    -color_trc 1 \
    -colorspace 1 \
    -color_primaries 1 \
    -filter_complex veai_up=model=prob-3:scale=0:w=1920:h=1080:preblur=0:noise=0:details=0:halo=0:blur=0:compression=0:estimate=20:device=0:vram=1:instances=1,scale=w=1920:h=1080:flags=lanczos:threads=0,scale=out_color_matrix=bt709 \
    -c:v prores_videotoolbox \
    -profile:v lt \
    -pix_fmt p210le \
    -allow_sw 1 \
    -map_metadata 0 \
    -movflags frag_keyframe+empty_moov+delay_moov+use_metadata_tags+write_colr \
    -map_metadata:s:v 0:s:v \
    -map_metadata:s:a 0:s:a \
    -c:a aac \
    "encoded/${f%.*}.mp4”;
done


    


    I have a feeling it's something really simple I'm missing but I've gone through it a dozen times and can't seem to modify in any way to success.

    


    Thank you !

    


    Getting dumped back to ">" terminal prompt.

    


  • ffmpeg error "Output file is empty, nothing was encoded" when trying to increase the tempo (speed up) mp3 file

    28 octobre 2022, par rasoolZero

    I'm trying to increase the tempo of an mp3 file using ffmpeg and atempo filter, but always get "Output file is empty, nothing was encoded"

    


    this is the output log

    


    ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.1 (GCC) 20200726
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libsrt --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[mp3 @ 0000023bf37fdbc0] Estimating duration from bitrate, this may be inaccurate
Input #0, mp3, from 'normal.mp3':
  Metadata:
    encoder         : Lavf58.65.100
  Duration: 00:00:05.93, start: 0.000000, bitrate: 32 kb/s
    Stream #0:0: Audio: mp3, 22050 Hz, mono, fltp, 32 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mp3 (mp3float) -> mp3 (mp3_mf))
Press [q] to stop, [?] for help
[mp3_mf @ 0000023bf3822880] MFT name: 'MP3 Encoder ACM Wrapper MFT'
Output #0, mp3, to 'faster.mp3':
  Metadata:
    TSSE            : Lavf58.45.100
    Stream #0:0: Audio: mp3 (mp3_mf), 22050 Hz, mono, s16, 128 kb/s
    Metadata:
      encoder         : Lavc58.91.100 mp3_mf
size=       0kB time=00:00:05.42 bitrate=   0.7kbits/s speed= 116x
video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)


    


    this is the command I'm using
ffmpeg -i normal.mp3 -af "atempo=1.1" faster.mp3