
Recherche avancée
Autres articles (105)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 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 (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (12132)
-
ffmpeg_streaming capture Webcam
10 décembre 2022, par Anoop YadavI am trying to run the following example from https://github.com/aminyazdanpanah/python-ffmpeg-video-streaming : To capture the webcam and convert it to hls.


import ffmpeg_streaming
import logging

from ffmpeg_streaming import Formats

logging.basicConfig(level=logging.DEBUG)

video = ffmpeg_streaming.input(r"Integrated Webcam", capture=True)

hls = video.hls(Formats.h264())
hls.auto_generate_representations()
hls.output(r'C:\PycharmProjects\hls\hls.m3u8')



To list the webcam I used the command :
ffmpeg -list_devices true -f dshow -i dummy


Output :


[dshow @ 0000025f5317ecc0] "Integrated Webcam" (video)
[dshow @ 0000025f5317ecc0] Alternative name "@device_pnp_\\?\usb#vid_0bda&pid_5673&mi_00#6&15ef479&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global"
[dshow @ 0000025f5317ecc0] "Microphone Array (Realtek(R) Audio)" (audio)
[dshow @ 0000025f5317ecc0] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\wave_{13610D2E-9970-4A37-8D19-42A73F796ED1}"



I am getting this error :


INFO:root:ffprobe running command: ffprobe -show_format -show_streams -of json video=Integrated Webcam
ERROR:root:b'{\r\n\r\n}\r\n'b'ffprobe version N-109396-g9651f873f8-20221209 Copyright (c) 2007-2022 the FFmpeg developers\r\n built with gcc 12.2.0 (crosstool-NG 1.25.0.90_cf9beb1)\r\n configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --disable-libpulse --enable-libvmaf --disable-libxcb --disable-xlib --enable-amf --enable-libaom --enable-libaribb24 --enable-avisynth --enable-chromaprint --enable-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --enable-frei0r --enable-libgme --enable-libkvazaar --enable-libass --enable-libbluray --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librist --enable-libssh --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --disable-libmfx --enable-libvpl --enable-openal --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopenmpt --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --disable-libdrm --disable-vaapi --enable-libvidstab --enable-vulkan --enable-libshaderc --enable-libplacebo --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --enable-libzvbi --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp --extra-version=20221209\r\n libavutil 57. 43.100 / 57. 43.100\r\n libavcodec 59. 54.101 / 59. 54.101\r\n libavformat 59. 34.102 / 59. 34.102\r\n libavdevice 59. 8.101 / 59. 8.101\r\n libavfilter 8. 52.100 / 8. 52.100\r\n libswscale 6. 8.112 / 6. 8.112\r\n libswresample 4. 9.100 / 4. 9.100\r\n libpostproc 56. 7.100 / 56. 7.100\r\nvideo=Integrated Webcam: No such file or directory\r\n'



I have also tried with alternate name, but error is still same. I think error is with the arguments for
ffprobe
. How can I fix the arguments ?

-
avformat/movenc : allow writing out channel count in MP4 and 3GP
7 février 2023, par Jan Ekströmavformat/movenc : allow writing out channel count in MP4 and 3GP
ISOBMFF (14496-12) made this field ('channelcount') in the
AudioSampleEntry structure non-template¹ somewhere before the
release of the 2022 edition. As for ETSI TS 126 244 AKA 3GPP
file format (V16.1.0, 2020-10), it does not seem contain any
references limiting the channelcount entry in AudioSampleEntry
or in its own definition of EVSSampleEntry.fate-mov-mp4-chapters test had to be adjusted as it output a
mono vorbis stream, which would now be properly marked as such
in the container.1 : As per 14496-12 :
Fields shown as “template” in the box descriptions are fields
which are coded with a default value unless a derived
specification defines their use and permits writers to use
other values than the default. -
PGS subtitle track is out of sync after extracting then adding to another video file
23 décembre 2022, par DiericxI have the Japanese and English version of a show. I am attempting to extract the subtitles and audio from the English version and add them to the Japanese version.


The video in both files seems to be exactly the same.


Here is the info for the streams contained in the english file. When playing this source video file
Track 2
subtitles seem to be almost empty whileTrack 1
contains all of them forced.

Stream #0:1(eng): Audio: dts (DTS-HD MA), 48000 Hz, stereo, s32p (24 bit) (default)
 Metadata:
 title : Stereo
 BPS-eng : 1572054
 DURATION-eng : 00:29:08.789333333
 NUMBER_OF_FRAMES-eng: 163949
 NUMBER_OF_BYTES-eng: 343648948
 SOURCE_ID-eng : 001100
 _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 darwin(arm64-release)
 _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-18 02:20:00
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
 Stream #0:2(eng): Audio: dts (DTS), 48000 Hz, stereo, fltp, 1536 kb/s
 Metadata:
 title : Stereo
 BPS-eng : 1509000
 DURATION-eng : 00:29:08.789333333
 NUMBER_OF_FRAMES-eng: 163949
 NUMBER_OF_BYTES-eng: 329865388
 SOURCE_ID-eng : 001100
 _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 darwin(arm64-release)
 _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-18 02:20:00
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
 Stream #0:3(eng): Subtitle: hdmv_pgs_subtitle
 Metadata:
 BPS-eng : 22140
 DURATION-eng : 00:28:47.454895833
 NUMBER_OF_FRAMES-eng: 836
 NUMBER_OF_BYTES-eng: 4780741
 SOURCE_ID-eng : 001200
 _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 darwin(arm64-release)
 _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-18 02:20:00
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
 Stream #0:4(eng): Subtitle: hdmv_pgs_subtitle
 Metadata:
 BPS-eng : 1770
 DURATION-eng : 00:28:39.655437500
 NUMBER_OF_FRAMES-eng: 62
 NUMBER_OF_BYTES-eng: 380532
 SOURCE_ID-eng : 001201
 _STATISTICS_WRITING_APP-eng: MakeMKV v1.17.2 darwin(arm64-release)
 _STATISTICS_WRITING_DATE_UTC-eng: 2022-12-18 02:20:00
 _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID



I extract the english audio


ffmpeg -i s01e01_ja.mkv \
-muxdelay 0 \
-map 0:1 \
-vn \
-acodec copy \
s01e01_en_audio.dts



I extract the english subtitles


ffmpeg -i s01e01_en.mkv \
-muxdelay 0 \
-map 0:3 \
-vn \
-c copy \
s01e01_en_sub.sup



I add the english audio track to the japanese video


ffmpeg -i s01e01_ja.mkv \
-i s01e01_en_audio.dts \
-muxdelay 0 \
-map 0 \
-map 1:a \
-c copy \
-shortest \
s01e01_en_ja.mkv



And finally add the english subtitles to the new japanese video that contains english audio


ffmpeg -i s01e01_en_ja.mkv \
-itsoffset 6 \
-i future_boy_conan_s01e01_en_sub.sup \
-muxdelay 0 \
-map 0 \
-map 1:s \
-c copy \
-shortest \
s01e01_en_ja_subs.mkv



As you can see I need to offset the subtitles by 6 seconds in order to get the subtitles to sync with the audio. The english audio is in sync with the video.


I do not know how to debug this in order to tell if the subtitles are extracted or injected incorrectly causing the time offset. Any help would be appreciated !