
Recherche avancée
Autres articles (102)
-
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. -
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté. -
Possibilité de déploiement en ferme
12 avril 2011, parMediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)
Sur d’autres sites (8135)
-
ffmpeg conversion from Flac to Ogg produces corrupted files
8 avril 2021, par experimentali transcoded flac files to ogg using this command


ffmpeg -i input.flac -c:a libvorbis -b:a 500k output.ogg



yes i use 500k to keep the highest quality possible, some of the files are ok, but some of them can not be played - Unsupported format or corrupted file says the foobar - also my icecast streamer cant read it. So there is something wrong with the files.


I believed it was due to the high bitrate so I tried


ffmpeg -i input.flac -c:a libvorbis -b:a 320k output.ogg



the same happened, some files were ok, some were not playable.
so I tried again with default using this command


ffmpeg -i input.flac -c:a libvorbis output.ogg



same thing. some files were ok, some were corrupted and not playable.


i have no clue why.


both flac and ogg are in the same family, what happened during the transcoding that it became a corrupted file ?


the spectral analysis does not show anything wrong - here it the ogg https://prnt.sc/115zdjl, here is the original flac https://prnt.sc/115zegw


i am really interested what is going on and how to make it work ?


can anyone explain ?


here is complete log


C:\Users\lukas.kotatko>ffmpeg -i "\\192.168.0.128\lukas\online radio resources\Atma FM playlists\channel 1\flac lossless\Tuu\One Thousand Years\02 One Thousand Years.flac" -c:a libvorbis -b:a 500k "\\192.168.0.128\lukas\online radio resources\Atma FM playlists\channel 1\flac lossless\Tuu\One Thousand Years\02 One Thousand Years [500k test].ogg"
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
Input #0, flac, from '\\192.168.0.128\lukas\online radio resources\Atma FM playlists\channel 1\flac lossless\Tuu\One Thousand Years\02 One Thousand Years.flac':
 Metadata:
 GENRE : Tribal / Ambient
 ORGANIZATION : Waveform Records
 ISRC : 01101-2
 COMMENT : US reissue featuring the six original tracks plus two taken from the Invocation album.
 MUSICBRAINZ_RELEASEGROUPID: 737d0518-3dc2-36b3-9419-282c0ade0e50
 ORIGINALDATE : 1993
 ORIGINALYEAR : 1993
 RELEASETYPE : album
 MUSICBRAINZ_ALBUMID: f6339129-f662-43a1-93df-2f20540f73cc
 ALBUM : One Thousand Years
 BARCODE : 789060110125
 MUSICBRAINZ_ALBUMARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad
 album_artist : Tuu
 ALBUMARTISTSORT : Tuu
 ASIN : B00005B9TT
 SCRIPT : Latn
 RELEASESTATUS : official
 LABEL : Waveform Records
 CATALOGNUMBER : 01101-2
 RELEASECOUNTRY : US
 DATE : 2001-05-08
 TOTALDISCS : 1
 disc : 1
 TOTALTRACKS : 8
 MEDIA : CD
 MUSICBRAINZ_TRACKID: aef9824d-e4a6-4ae6-aebe-50a83dd14f71
 TITLE : One Thousand Years
 MUSICBRAINZ_ARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad
 ARTIST : Tuu
 ARTISTSORT : Tuu
 ARTISTS : Tuu
 MUSICBRAINZ_RELEASETRACKID: 621c9da6-a85d-3f8b-b485-5e6f74a60cd0
 track : 2
 TRACKTOTAL : 8
 DISCTOTAL : 1
 Duration: 00:08:03.67, start: 0.000000, bitrate: 792 kb/s
 Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
 Stream #0:1: Video: mjpeg (Baseline), yuvj420p(pc, bt470bg/unknown/unknown), 600x600 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc (attached pic)
 Metadata:
 comment : Cover (front)
Stream mapping:
 Stream #0:1 -> #0:0 (mjpeg (native) -> theora (libtheora))
 Stream #0:0 -> #0:1 (flac (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
[swscaler @ 0000015307581a00] deprecated pixel format used, make sure you did set range correctly
[ogg @ 00000153073f1680] Frame rate very high for a muxer not efficiently supporting it.
Please consider specifying a lower framerate, a different muxer or -vsync 2
Output #0, ogg, to '\\192.168.0.128\lukas\online radio resources\Atma FM playlists\channel 1\flac lossless\Tuu\One Thousand Years\02 One Thousand Years [500k test].ogg':
 Metadata:
 GENRE : Tribal / Ambient
 ORGANIZATION : Waveform Records
 ISRC : 01101-2
 COMMENT : US reissue featuring the six original tracks plus two taken from the Invocation album.
 MUSICBRAINZ_RELEASEGROUPID: 737d0518-3dc2-36b3-9419-282c0ade0e50
 ORIGINALDATE : 1993
 ORIGINALYEAR : 1993
 RELEASETYPE : album
 MUSICBRAINZ_ALBUMID: f6339129-f662-43a1-93df-2f20540f73cc
 ALBUM : One Thousand Years
 BARCODE : 789060110125
 MUSICBRAINZ_ALBUMARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad
 album_artist : Tuu
 ALBUMARTISTSORT : Tuu
 ASIN : B00005B9TT
 SCRIPT : Latn
 RELEASESTATUS : official
 LABEL : Waveform Records
 CATALOGNUMBER : 01101-2
 RELEASECOUNTRY : US
 DATE : 2001-05-08
 TOTALDISCS : 1
 disc : 1
 TOTALTRACKS : 8
 MEDIA : CD
 MUSICBRAINZ_TRACKID: aef9824d-e4a6-4ae6-aebe-50a83dd14f71
 TITLE : One Thousand Years
 MUSICBRAINZ_ARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad
 ARTIST : Tuu
 ARTISTSORT : Tuu
 ARTISTS : Tuu
 MUSICBRAINZ_RELEASETRACKID: 621c9da6-a85d-3f8b-b485-5e6f74a60cd0
 track : 2
 TRACKTOTAL : 8
 DISCTOTAL : 1
 encoder : Lavf58.45.100
 Stream #0:0: Video: theora (libtheora), yuv420p(progressive), 600x600 [SAR 1:1 DAR 1:1], q=2-31, 200 kb/s, 90k fps, 90k tbn, 90k tbc (attached pic)
 Metadata:
 DESCRIPTION : Cover (front)
 encoder : Lavc58.91.100 libtheora
 GENRE : Tribal / Ambient
 ORGANIZATION : Waveform Records
 ISRC : 01101-2
 MUSICBRAINZ_RELEASEGROUPID: 737d0518-3dc2-36b3-9419-282c0ade0e50
 ORIGINALDATE : 1993
 ORIGINALYEAR : 1993
 RELEASETYPE : album
 MUSICBRAINZ_ALBUMID: f6339129-f662-43a1-93df-2f20540f73cc
 ALBUM : One Thousand Years
 BARCODE : 789060110125
 MUSICBRAINZ_ALBUMARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad
 ALBUMARTIST : Tuu
 ALBUMARTISTSORT : Tuu
 ASIN : B00005B9TT
 SCRIPT : Latn
 RELEASESTATUS : official
 LABEL : Waveform Records
 CATALOGNUMBER : 01101-2
 RELEASECOUNTRY : US
 DATE : 2001-05-08
 TOTALDISCS : 1
 DISCNUMBER : 1
 TOTALTRACKS : 8
 MEDIA : CD
 MUSICBRAINZ_TRACKID: aef9824d-e4a6-4ae6-aebe-50a83dd14f71
 TITLE : One Thousand Years
 MUSICBRAINZ_ARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad
 ARTIST : Tuu
 ARTISTSORT : Tuu
 ARTISTS : Tuu
 MUSICBRAINZ_RELEASETRACKID: 621c9da6-a85d-3f8b-b485-5e6f74a60cd0
 TRACKNUMBER : 2
 TRACKTOTAL : 8
 DISCTOTAL : 1
 Stream #0:1: Audio: vorbis (libvorbis), 44100 Hz, stereo, fltp (16 bit), 500 kb/s
 Metadata:
 encoder : Lavc58.91.100 libvorbis
 GENRE : Tribal / Ambient
 ORGANIZATION : Waveform Records
 ISRC : 01101-2
 DESCRIPTION : US reissue featuring the six original tracks plus two taken from the Invocation album.
 MUSICBRAINZ_RELEASEGROUPID: 737d0518-3dc2-36b3-9419-282c0ade0e50
 ORIGINALDATE : 1993
 ORIGINALYEAR : 1993
 RELEASETYPE : album
 MUSICBRAINZ_ALBUMID: f6339129-f662-43a1-93df-2f20540f73cc
 ALBUM : One Thousand Years
 BARCODE : 789060110125
 MUSICBRAINZ_ALBUMARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad
 ALBUMARTIST : Tuu
 ALBUMARTISTSORT : Tuu
 ASIN : B00005B9TT
 SCRIPT : Latn
 RELEASESTATUS : official
 LABEL : Waveform Records
 CATALOGNUMBER : 01101-2
 RELEASECOUNTRY : US
 DATE : 2001-05-08
 TOTALDISCS : 1
 DISCNUMBER : 1
 TOTALTRACKS : 8
 MEDIA : CD
 MUSICBRAINZ_TRACKID: aef9824d-e4a6-4ae6-aebe-50a83dd14f71
 TITLE : One Thousand Years
 MUSICBRAINZ_ARTISTID: e05a42e7-60a3-4d2d-983c-51dc4eb67cad
 ARTIST : Tuu
 ARTISTSORT : Tuu
 ARTISTS : Tuu
 MUSICBRAINZ_RELEASETRACKID: 621c9da6-a85d-3f8b-b485-5e6f74a60cd0
 TRACKNUMBER : 2
 TRACKTOTAL : 8
 DISCTOTAL : 1
frame= 1 fps=0.1 q=-0.0 Lsize= 25860kB time=00:08:03.66 bitrate= 438.0kbits/s speed=44.6x
video:8kB audio:25721kB subtitle:0kB other streams:0kB global headers:7kB muxing overhead: 0.511663%



-
using node-fluent-ffmpeg to transcode with ffmpeg on windows not working
25 juillet 2015, par jansmolders86I’m trying to use the module node-fluent-ffmpeg (https://github.com/schaermu/node-fluent-ffmpeg) to transcode and stream a videofile. Since I’m on a Windows machine, I first downloaded FFMpeg from the official site (http://ffmpeg.zeranoe.com/builds/). Then I extracted the files in the folder C :/FFmpeg and added the path to the system path (to the bin folder to be precise). I checked if FFmpeg worked by typing in the command prompt : ffmpeg -version. And it gave a successful response.
After that I went ahead and copied/altered the following code from the module (https://github.com/schaermu/node-fluent-ffmpeg/blob/master/examples/express-stream.js) :
app.get('/video/:filename', function(req, res) {
res.contentType('avi');
console.log('Setting up stream')
var stream = 'c:/temp/' + req.params.filename
var proc = new ffmpeg({ source: configfileResults.moviepath + req.params.filename, nolog: true, timeout: 120, })
.usingPreset('divx')
.withAspect('4:3')
.withSize('640x480')
.writeToStream(res, function(retcode, error){
if (!error){
console.log('file has been converted succesfully',retcode);
}else{
console.log('file conversion error',error);
}
});
});I’ve properly setup the client with flowplayer and tried to get it running but
nothing happens. I checked the console and it said :file conversion error timeout
After that I increased the timeout but somehow, It only starts when I reload the page. But of course immediately stops because of the page reload. Do I need to make a separate node server just for the transcoding of files ? Or is there some sort of event I need to trigger ?
I’m probably missing something simple but I can’t seem to get it to work.
Hopefully someone can point out what I’ve missed.Thanks
-
FFmpeg RTP_Mpegts over RTP protocol
7 mars 2020, par NicolòI’m tryin to implement a client/server application based on FFmpeg. Unfortunately RTP_MPEGTS isn’t documented in the official FFmpeg Documentation - Formats.
Anyway i found inspiration from this old thread.Server Side
(1) Capture mic audio as input. (2)Encode it as pcm 8khz mono and (3) send it locally as RTP_MPEGTS format over rtp protocol.
ffmpeg -f avfoundation -i none:2 -ar 8000 -acodec pcm_u8 -ac 1 -f rtp_mpegts rtp://127.0.0.1:41954
- This works, but on initiation it alerts "[mpegts @ 0x7fda13024600] frame size not set"
Client Side (on the same machine)
(1) Receive rtp audio stream input (2) write it in a file or playback.
ffmpeg -i rtp://127.0.0.1:41954 -vcodec copy -y "output.wav"
- I’m using
-vcodec copy
because i’ve already verified it in another rtp stream in which-acodec copy
didn’t work. -
This stuck and while closing with Ctrl+C shortcut it prints :
Input #0, rtp, from 'rtp://127.0.0.1:41954':
Duration: N/A, start: 8.956122, bitrate: N/A
Program 1
Metadata:
service_name : Service01
service_provider: FFmpeg
Stream #0:0: Data: bin_data ([6][0][0][0] / 0x0006)
Output #0, wav, to 'output.wav':
Output file #0 does not contain any stream
- I don’t understand if the client didn’t receive any stream, or it cannot write rtp packets into "output.wav" file. (Client or server problem ?)
-
In the old thread is explained a workaround. On server could run 2 ffmpeg instance :
One produces "tmp.ts" file due to mpegts, and the other takes "tmp.ts" as input and streams it over rtp. Is it possibile ? -
Is there any better way to do implement this client/server with the lowest latency possible ?
Thanks for any help provided.