
Recherche avancée
Autres articles (68)
-
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
Librairies et binaires spécifiques au traitement vidéo et sonore
31 janvier 2010, parLes logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
Binaires complémentaires et facultatifs flvtool2 : (...)
Sur d’autres sites (12526)
-
How can I solve this error, file not found error
11 août 2021, par Kapil Kumarfrom pydub import AudioSegment
sound = AudioSegment.from_mp3("F :\work\online internship\M1ML\Language_Recg\Test.mp3")
sound.export("F :\work\online internship\M1ML\Language_Recg\Test.wav", format="wav")


C :\Users\hp\anaconda3\envs\Language_Recg\python.exe "F :/work/online internship/M1ML/Language_Recg/mp3_wav.py"
C :\Users\hp\anaconda3\envs\Language_Recg\lib\site-packages\pydub\utils.py:170 : RuntimeWarning : Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
C :\Users\hp\anaconda3\envs\Language_Recg\lib\site-packages\pydub\utils.py:198 : RuntimeWarning : Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
Traceback (most recent call last) :
File "F :/work/online internship/M1ML/Language_Recg/mp3_wav.py", line 2, in 
sound = AudioSegment.from_mp3("F :\work\online internship\M1ML\Language_Recg\Test.mp3")
File "C :\Users\hp\anaconda3\envs\Language_Recg\lib\site-packages\pydub\audio_segment.py", line 796, in from_mp3
return cls.from_file(file, 'mp3', parameters=parameters)
File "C :\Users\hp\anaconda3\envs\Language_Recg\lib\site-packages\pydub\audio_segment.py", line 728, in from_file
info = mediainfo_json(orig_file, read_ahead_limit=read_ahead_limit)
File "C :\Users\hp\anaconda3\envs\Language_Recg\lib\site-packages\pydub\utils.py", line 274, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "C :\Users\hp\anaconda3\envs\Language_Recg\lib\subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C :\Users\hp\anaconda3\envs\Language_Recg\lib\subprocess.py", line 1311, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError : [WinError 2] The system cannot find the file specified


Process finished with exit code 1


-
Streaming Encoded MPEG-4 live video from a web camera using RTP in C++
20 juin 2022, par Maad A.GalilI have been working on building a video streamer from a webcam using RTP protocol in C++ language in Linux. I was able to use opencv to take frames from the webcam and send them frame by frame to a client app that shows those frames one by one using the same frame per second parameter.


But that is mostly a MJPEG kind of transfer as the encoding used is JPEG encoding with a specific quality for each frame. However, I would like to use MPEG-4 encoding before transferring the video. After a deep search online I found out that ffmpeg is the best for such purpose. But the samples online mostly work through a command line interface to capture a webcam video and save it as a video file with the given encoding and format.


Is there a possibility to encode the webcam "LIVE", and get byte data while encoding the camera stream ?


I would like to use those byte data to transfer it using RTP for example. And then I would like to decode the received byte data and show the video using opencv imshow function for example.


-
FFMPEG mkv to mp4 conversion lacks audio
28 septembre 2017, par LandslydeI used
ffmpeg
to convert anmkv
file tomp4
using this command line :ffmpeg -i input.mkv -c copy file-1.mp4
The resulting
mp4
plays fine (video and audio) onLinux Mint's Xplayer
. But after uploading file-1, it played with no audio. So I uploaded anothermp4
file-2, one I didn’t have to convert, and it plays both video and audio without a problem. So whatever’s going on withfile-1
seems to be with my use offfmpeg
.The player I’m using is called
afterglow
. But theHTML5 player
handles these two files the same way : file-1 & file-2Does anyone know why the
ffmpeg
converted file is soundless when played online ? Is there a different conversion command that ensures convertedmkv files
will play with sound by online players ?