
Recherche avancée
Médias (1)
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (44)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;
Sur d’autres sites (8563)
-
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%



-
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.
-
Tools for investigating video corruption — ffmpeg / libavcodec
11 juillet 2013, par GopherkhanIn my current work I'm trying to encode some images to h264 video using the FFMPEG's C library. The resulting video plays fine in VLC, but has no preview image. The video can play in VLC and Mplayer on ubuntu, but won't play on Mac or PC (in fact, it causes a "VTDecoderXPCService quit unexpectedly" error on Mac).
If I run the resulting file through FFMPEG using the command line, the resulting file has a preview image, and plays correctly everywhere.
Apparently the file that I get out of the program is corrupt in some weird place, but I don't have any output during my compilation or run to indicate where. I can't share my code at the moment (work code isn't open source yet :-( ), but I have tried a number of things :
- Writing only header and trailer data (av_write_trailer) and no frames
- writing frames only minus the trailer (using avcodec_encode_video2 and av_write_frame)
- Adjusting our time_base and frame pts values to encode only one frame per second
- Removing all variable frame rate code
- Numerous other variants that I won't bother you with here
In creating my project, I've also followed the following tutorials :
And consulted the deprecated ffmpeg functions list
And compiled FFMPEG on ubuntu according to the official doc
But every run of the program runs into the exact same problem.
My question is, is there anything obvious that causes a programmatic run of FFMpeg to differ from a console run (e.g., an incomplete finalization, some threading issues, etc.) ? Like some obvious reason that a console run could repair a corrupted file ? Or is there a decent tool/method for inspecting a video file and finding the point of corruption ?