
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (39)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Changer le statut par défaut des nouveaux inscrits
26 décembre 2015, parPar défaut, lors de leur inscription, les nouveaux utilisateurs ont le statut de visiteur. Ils disposent de certains droits mais ne peuvent pas forcément publier leurs contenus eux-même etc...
Il est possible de changer ce statut par défaut. en "rédacteur".
Pour ce faire, un administrateur webmestre du site doit aller dans l’espace privé de SPIP en ajoutant ecrire/ à l’url de son site.
Une fois dans l’espace privé, il lui faut suivre les menus configuration > Interactivité et activer (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, 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 (...)
Sur d’autres sites (4828)
-
Please help me figure out why ffmpeg can't convert this .ts to .mp4
10 janvier 2023, par cpoI have ffmpeg running on my Sinology NAS, and would like to use it to convert DVR-recorded .ts videos into .mp4 format. I don't fully understand this stuff, and have researched to no avail. Perhaps someone who has some expertise in this area can quickly help me get up and running. Thanks !


Here is the command I am running with result :


$ ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i 'video.ts' -acodec -vcodec copy 'video.mp4'

ffmpeg version 4.1.8 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 8.5.0 (GCC)
 configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --disable-stripping --enable-version3 --enable-encoders --enable-pthreads --disable-protocols --disable-protocol=rtp --enable-protocol=file --enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffplay --disable-ffprobe --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-cuvid --disable-nvenc --disable-decoder=aac --disable-decoder=aac_fixed --disable-encoder=aac --disable-decoder=amrnb --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-encoder=zmbv --disable-encoder=dca --disable-decoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd --disable-encoder=hevc_vaapi --disable-decoder=hevc --disable-muxer=hevc --disable-demuxer=hevc --disable-parser=hevc --disable-bsf=hevc_mp4toannexb --x86asmexe=yasm --cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-wrap-gcc --enable-yasm --enable-libx264 --enable-encoder=libx264
 libavutil 56. 22.100 / 56. 22.100
 libavcodec 58. 35.100 / 58. 35.100
 libavformat 58. 20.100 / 58. 20.100
 libavdevice 58. 5.100 / 58. 5.100
 libavfilter 7. 40.101 / 7. 40.101
 libswscale 5. 3.100 / 5. 3.100
 libswresample 3. 3.100 / 3. 3.100
 libpostproc 55. 3.100 / 55. 3.100
[mpegts @ 0x5591c4feb4c0] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, 199 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'video.ts':
 Duration: 02:01:58.77, start: 1.405122, bitrate: 4094 kb/s
 Program 1 
 Metadata:
 service_name : Service01
 service_provider: FFmpeg
 Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
 Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, 199 kb/s
[NULL @ 0x5591c6034980] Unable to find a suitable output format for 'copy'
copy: Invalid argument



Here is the information from video.ts as displayed in VLC :




It's possible I just don't have the right encoders included with my ffmpeg packaged (obtained from https://synocommunity.com/package/ffmpeg). Here are the audio encoders that it appears I have.


A..... adpcm_adx SEGA CRI ADX ADPCM
 A..... g722 G.722 ADPCM (codec adpcm_g722)
 A..... g726 G.726 ADPCM (codec adpcm_g726)
 A..... g726le G.726 little endian ADPCM ("right-justified") (codec adpcm_g726le)
 A..... adpcm_ima_qt ADPCM IMA QuickTime
 A..... adpcm_ima_wav ADPCM IMA WAV
 A..... adpcm_ms ADPCM Microsoft
 A..... adpcm_swf ADPCM Shockwave Flash
 A..... adpcm_yamaha ADPCM Yamaha
 A..... alac ALAC (Apple Lossless Audio Codec)
 A..... libopencore_amrnb OpenCORE AMR-NB (Adaptive Multi-Rate Narrow-Band) (codec amr_nb)
 A..... aptx aptX (Audio Processing Technology for Bluetooth)
 A..... aptx_hd aptX HD (Audio Processing Technology for Bluetooth)
 A..... comfortnoise RFC 3389 comfort noise generator
 A..... flac FLAC (Free Lossless Audio Codec)
 A..... g723_1 G.723.1
 A..X.. mlp MLP (Meridian Lossless Packing)
 A..... mp2 MP2 (MPEG audio layer 2)
 A..... mp2fixed MP2 fixed point (MPEG audio layer 2) (codec mp2)
 A..... libmp3lame libmp3lame MP3 (MPEG audio layer 3) (codec mp3)
 A..... nellymoser Nellymoser Asao
 A..X.. opus Opus
 A..... pcm_alaw PCM A-law / G.711 A-law
 A..... pcm_f32be PCM 32-bit floating point big-endian
 A..... pcm_f32le PCM 32-bit floating point little-endian
 A..... pcm_f64be PCM 64-bit floating point big-endian
 A..... pcm_f64le PCM 64-bit floating point little-endian
 A..... pcm_mulaw PCM mu-law / G.711 mu-law
 A..... pcm_s16be PCM signed 16-bit big-endian
 A..... pcm_s16be_planar PCM signed 16-bit big-endian planar
 A..... pcm_s16le PCM signed 16-bit little-endian
 A..... pcm_s16le_planar PCM signed 16-bit little-endian planar
 A..... pcm_s24be PCM signed 24-bit big-endian
 A..... pcm_s24daud PCM D-Cinema audio signed 24-bit
 A..... pcm_s24le PCM signed 24-bit little-endian
 A..... pcm_s24le_planar PCM signed 24-bit little-endian planar
 A..... pcm_s32be PCM signed 32-bit big-endian
 A..... pcm_s32le PCM signed 32-bit little-endian
 A..... pcm_s32le_planar PCM signed 32-bit little-endian planar
 A..... pcm_s64be PCM signed 64-bit big-endian
 A..... pcm_s64le PCM signed 64-bit little-endian
 A..... pcm_s8 PCM signed 8-bit
 A..... pcm_s8_planar PCM signed 8-bit planar
 A..... pcm_u16be PCM unsigned 16-bit big-endian
 A..... pcm_u16le PCM unsigned 16-bit little-endian
 A..... pcm_u24be PCM unsigned 24-bit big-endian
 A..... pcm_u24le PCM unsigned 24-bit little-endian
 A..... pcm_u32be PCM unsigned 32-bit big-endian
 A..... pcm_u32le PCM unsigned 32-bit little-endian
 A..... pcm_u8 PCM unsigned 8-bit
 A..... pcm_vidc PCM Archimedes VIDC
 A..... real_144 RealAudio 1.0 (14.4K) (codec ra_144)
 A..... roq_dpcm id RoQ DPCM
 A..X.. s302m SMPTE 302M
 A..... sbc SBC (low-complexity subband codec)
 A..X.. sonic Sonic
 A..X.. sonicls Sonic lossless
 A..... tta TTA (True Audio)
 A..X.. vorbis Vorbis
 A..... wavpack WavPack
 A..... wmav1 Windows Media Audio 1
 A..... wmav2 Windows Media Audio 2



-
Why ffmpeg can't convert this .ts to .mp4
10 janvier 2023, par cpoI have ffmpeg running on my Synology NAS, and would like to use it to convert DVR-recorded .ts videos into .mp4 format. I don't fully understand this stuff, and have researched to no avail.


Here is the command I am running with result :


$ ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i 'video.ts' -acodec -vcodec copy 'video.mp4'

ffmpeg version 4.1.8 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 8.5.0 (GCC)
 configuration: --prefix=/usr --incdir='${prefix}/include/ffmpeg' --arch=i686 --target-os=linux --cross-prefix=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu- --enable-cross-compile --enable-optimizations --enable-pic --enable-gpl --enable-shared --disable-static --disable-stripping --enable-version3 --enable-encoders --enable-pthreads --disable-protocols --disable-protocol=rtp --enable-protocol=file --enable-protocol=pipe --disable-muxer=image2 --disable-muxer=image2pipe --disable-swscale-alpha --disable-ffplay --disable-ffprobe --disable-doc --disable-devices --disable-bzlib --disable-altivec --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libmp3lame --disable-vaapi --disable-cuvid --disable-nvenc --disable-decoder=aac --disable-decoder=aac_fixed --disable-encoder=aac --disable-decoder=amrnb --disable-decoder=ac3 --disable-decoder=ac3_fixed --disable-encoder=zmbv --disable-encoder=dca --disable-decoder=dca --disable-encoder=ac3 --disable-encoder=ac3_fixed --disable-encoder=eac3 --disable-decoder=eac3 --disable-encoder=truehd --disable-decoder=truehd --disable-encoder=hevc_vaapi --disable-decoder=hevc --disable-muxer=hevc --disable-demuxer=hevc --disable-parser=hevc --disable-bsf=hevc_mp4toannexb --x86asmexe=yasm --cc=/usr/local/x86_64-pc-linux-gnu/bin/x86_64-pc-linux-gnu-wrap-gcc --enable-yasm --enable-libx264 --enable-encoder=libx264
 libavutil 56. 22.100 / 56. 22.100
 libavcodec 58. 35.100 / 58. 35.100
 libavformat 58. 20.100 / 58. 20.100
 libavdevice 58. 5.100 / 58. 5.100
 libavfilter 7. 40.101 / 7. 40.101
 libswscale 5. 3.100 / 5. 3.100
 libswresample 3. 3.100 / 3. 3.100
 libpostproc 55. 3.100 / 55. 3.100
[mpegts @ 0x5591c4feb4c0] Could not find codec parameters for stream 1 (Audio: aac ([15][0][0][0] / 0x000F), 0 channels, 199 kb/s): unspecified sample rate
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpegts, from 'video.ts':
 Duration: 02:01:58.77, start: 1.405122, bitrate: 4094 kb/s
 Program 1 
 Metadata:
 service_name : Service01
 service_provider: FFmpeg
 Stream #0:0[0x100]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], Closed Captions, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
 Stream #0:1[0x101]: Audio: aac ([15][0][0][0] / 0x000F), 0 channels, 199 kb/s
[NULL @ 0x5591c6034980] Unable to find a suitable output format for 'copy'
copy: Invalid argument



Here is the information from video.ts as displayed in VLC :




It's possible I just don't have the right encoders included with my ffmpeg packaged (obtained from https://synocommunity.com/package/ffmpeg). Here are the audio encoders that it appears I have.


A..... adpcm_adx SEGA CRI ADX ADPCM
 A..... g722 G.722 ADPCM (codec adpcm_g722)
 A..... g726 G.726 ADPCM (codec adpcm_g726)
 A..... g726le G.726 little endian ADPCM ("right-justified") (codec adpcm_g726le)
 A..... adpcm_ima_qt ADPCM IMA QuickTime
 A..... adpcm_ima_wav ADPCM IMA WAV
 A..... adpcm_ms ADPCM Microsoft
 A..... adpcm_swf ADPCM Shockwave Flash
 A..... adpcm_yamaha ADPCM Yamaha
 A..... alac ALAC (Apple Lossless Audio Codec)
 A..... libopencore_amrnb OpenCORE AMR-NB (Adaptive Multi-Rate Narrow-Band) (codec amr_nb)
 A..... aptx aptX (Audio Processing Technology for Bluetooth)
 A..... aptx_hd aptX HD (Audio Processing Technology for Bluetooth)
 A..... comfortnoise RFC 3389 comfort noise generator
 A..... flac FLAC (Free Lossless Audio Codec)
 A..... g723_1 G.723.1
 A..X.. mlp MLP (Meridian Lossless Packing)
 A..... mp2 MP2 (MPEG audio layer 2)
 A..... mp2fixed MP2 fixed point (MPEG audio layer 2) (codec mp2)
 A..... libmp3lame libmp3lame MP3 (MPEG audio layer 3) (codec mp3)
 A..... nellymoser Nellymoser Asao
 A..X.. opus Opus
 A..... pcm_alaw PCM A-law / G.711 A-law
 A..... pcm_f32be PCM 32-bit floating point big-endian
 A..... pcm_f32le PCM 32-bit floating point little-endian
 A..... pcm_f64be PCM 64-bit floating point big-endian
 A..... pcm_f64le PCM 64-bit floating point little-endian
 A..... pcm_mulaw PCM mu-law / G.711 mu-law
 A..... pcm_s16be PCM signed 16-bit big-endian
 A..... pcm_s16be_planar PCM signed 16-bit big-endian planar
 A..... pcm_s16le PCM signed 16-bit little-endian
 A..... pcm_s16le_planar PCM signed 16-bit little-endian planar
 A..... pcm_s24be PCM signed 24-bit big-endian
 A..... pcm_s24daud PCM D-Cinema audio signed 24-bit
 A..... pcm_s24le PCM signed 24-bit little-endian
 A..... pcm_s24le_planar PCM signed 24-bit little-endian planar
 A..... pcm_s32be PCM signed 32-bit big-endian
 A..... pcm_s32le PCM signed 32-bit little-endian
 A..... pcm_s32le_planar PCM signed 32-bit little-endian planar
 A..... pcm_s64be PCM signed 64-bit big-endian
 A..... pcm_s64le PCM signed 64-bit little-endian
 A..... pcm_s8 PCM signed 8-bit
 A..... pcm_s8_planar PCM signed 8-bit planar
 A..... pcm_u16be PCM unsigned 16-bit big-endian
 A..... pcm_u16le PCM unsigned 16-bit little-endian
 A..... pcm_u24be PCM unsigned 24-bit big-endian
 A..... pcm_u24le PCM unsigned 24-bit little-endian
 A..... pcm_u32be PCM unsigned 32-bit big-endian
 A..... pcm_u32le PCM unsigned 32-bit little-endian
 A..... pcm_u8 PCM unsigned 8-bit
 A..... pcm_vidc PCM Archimedes VIDC
 A..... real_144 RealAudio 1.0 (14.4K) (codec ra_144)
 A..... roq_dpcm id RoQ DPCM
 A..X.. s302m SMPTE 302M
 A..... sbc SBC (low-complexity subband codec)
 A..X.. sonic Sonic
 A..X.. sonicls Sonic lossless
 A..... tta TTA (True Audio)
 A..X.. vorbis Vorbis
 A..... wavpack WavPack
 A..... wmav1 Windows Media Audio 1
 A..... wmav2 Windows Media Audio 2



-
ffmpeg error when I try to stream on trovo
16 janvier 2023, par keedWhen I try to start a stream on the trovo, the error av_interleaved_write_frame() : Unknown error appears.


comand :


ffmpeg -i D:\voi.mp4 -c copy -f flv rtmp://livepush.trovo.live/live/<key>
</key>


output :


ffmpeg version n4.4.2-2-g7ffb7d4b04-20220630 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 11.2.0 (crosstool-NG 1.24.0.533_681aaef)
 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-libdav1d --enable-libdavs2 --disable-libfdk-aac --enable-ffnvcodec --enable-cuda-llvm --disable-frei0r --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librist --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --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 --disable-vulkan --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=20220630
 libavutil 56. 70.100 / 56. 70.100
 libavcodec 58.134.100 / 58.134.100
 libavformat 58. 76.100 / 58. 76.100
 libavdevice 58. 13.100 / 58. 13.100
 libavfilter 7.110.100 / 7.110.100
 libswscale 5. 9.100 / 5. 9.100
 libswresample 3. 9.100 / 3. 9.100
 libpostproc 55. 9.100 / 55. 9.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'D:\voi.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.29.100
 Duration: 00:03:59.70, start: 0.000000, bitrate: 2683 kb/s
 Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 2511 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
Output #0, flv, to 'rtmp://livepush.trovo.live/live/73846_112160385_112160385?bizid=73846':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.76.100
 Stream #0:0(und): Video: h264 (High) ([7][0][0][0] / 0x0007), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 2511 kb/s, 30 fps, 30 tbr, 1k tbn, 30k tbc (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : [0][0][0][0]
 Stream #0:1(und): Audio: aac (LC) ([10][0][0][0] / 0x000A), 48000 Hz, stereo, fltp, 160 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 vendor_id : [0][0][0][0]
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
av_interleaved_write_frame(): Unknown errortime=00:00:02.19 bitrate=2955.2kbits/s speed=4.21x
[flv @ 0000020eada7ecc0] Failed to update header with correct duration.
[flv @ 0000020eada7ecc0] Failed to update header with correct filesize.
Error writing trailer of rtmp://livepush.trovo.live/live/73846_112160385_112160385?bizid=73846: Error number -10053 occurred
frame= 86 fps=0.0 q=-1.0 Lsize= 962kB time=00:00:02.77 bitrate=2842.1kbits/s speed=4.22x
video:922kB audio:55kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
Conversion failed!
'txSecret' is not recognized as an internal or external command,
operable program or batch file.
'txTime' is not recognized as an internal or external command,
operable program or batch file.
'cert' is not recognized as an internal or external command,
operable program or batch file.
'certTime' is not recognized as an internal or external command,
operable program or batch file.
'flag' is not recognized as an internal or external command,
operable program or batch file.
'timeshift_bps' is not recognized as an internal or external command,
operable program or batch file.
'timeshift_dur' is not recognized as an internal or external command,
operable program or batch file.
'txAddTimestamp' is not recognized as an internal or external command,
operable program or batch file.
'tp_code' is not recognized as an internal or external command,
operable program or batch file.
'tp_sign' is not recognized as an internal or external command,
operable program or batch file.
'dm_sign' is not recognized as an internal or external command,
operable program or batch file.
'pq_sn' is not recognized as an internal or external command,
operable program or batch file.
'txHost' is not recognized as an internal or external command,
operable program or batch file.



I guess this is a problem on the part of trovo. I mean, it is possible that certain restrictions must be observed for streaming on this site, but I do not know which ones specifically.
So how can I fix this ?


P.S. on other platforms the stream works for example twitch.


I have tried many commands and different video formats, the result is the same.