
Recherche avancée
Autres articles (51)
-
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Les notifications de la ferme
1er décembre 2010, parAfin d’assurer une gestion correcte de la ferme, il est nécessaire de notifier plusieurs choses lors d’actions spécifiques à la fois à l’utilisateur mais également à l’ensemble des administrateurs de la ferme.
Les notifications de changement de statut
Lors d’un changement de statut d’une instance, l’ensemble des administrateurs de la ferme doivent être notifiés de cette modification ainsi que l’utilisateur administrateur de l’instance.
À la demande d’un canal
Passage au statut "publie"
Passage au (...)
Sur d’autres sites (6311)
-
FFMPEG adds extra contents to the beginning of the file, when converting OGG audio to MP3
3 décembre 2018, par PBMI use the following
ffmpeg -i
to convert ogg music files to mp3. I, however, realized that the resulting mp3 files on some ogg files are slightly longer, and includes the repetition of the first half a second of the original file in the beginning. (Which is quite annoying when listening to the MP3s).Anybody else faced similar issues ?
FYI, I am using ffmpeg version 4.0.3, which uses
libmp3lame
as the encoder for MP3 output.
As requested in the comments, here is the full log of @ffmpeg@
$ ffmpeg -i track.ogg track.mp3
ffmpeg version 4.0.3 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 8 (GCC)
configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' --extra-ldflags='-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags=' ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libcdio --enable-libdrm --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvidstab --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-libzvbi --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, ogg, from 'track.ogg':
Duration: 00:04:47.11, start: 0.000000, bitrate: 112 kb/s
Stream #0:0: Audio: vorbis, 44100 Hz, stereo, fltp, 112 kb/s
Metadata:
ARTIST : artist
Stream mapping:
Stream #0:0 -> #0:0 (vorbis (native) -> mp3 (libmp3lame))
Press [q] to stop, [?] for help
Output #0, mp3, to 'track.mp3':
Metadata:
TSSE : Lavf58.12.100
Stream #0:0: Audio: mp3 (libmp3lame), 44100 Hz, stereo, fltp
Metadata:
ARTIST : artist
encoder : Lavc58.18.100 libmp3lame
[ogg @ 0x5645711ebdc0] Invalid picture type: -2555935.
[ogg @ 0x5645711ebdc0] Could not read mimetype from an attached picture.
[ogg @ 0x5645711ebdc0] Invalid picture type: -2555935.
[ogg @ 0x5645711ebdc0] Could not read mimetype from an attached picture.
size= 4497kB time=00:04:47.79 bitrate= 128.0kbits/s speed=50.8x
video:0kB audio:4497kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.005494%Something that is strange is the error message
Invalid picture type
whereas the ogg file does not contain any cover-art photo. And to see the difference of the lengths :$ soxi -D track.ogg
287.111837
$ soxi -D track.mp3
287.817007 -
How to stream to the stream name come in response from Youtube livestream api
7 décembre 2018, par Anirudha GuptaI am calling this API https://developers.google.com/youtube/v3/live/docs/liveStreams/insert ? to get stream name from Livestream API
{
"kind": "youtube#liveStream",
"etag": "\"etag"",
"id": "-ABa1o",
"snippet": {
"publishedAt": "2018-12-07T05:41:12.000Z",
"channelId": "UC-
"title": "Hello World",
"description": "Snippet description of testing",
"isDefaultStream": false
},
"cdn": {
"format": "360p",
"ingestionType": "rtmp",
"ingestionInfo": {
"streamName": "9qq0-ct85-ctub-",
"ingestionAddress": "rtmp://a.rtmp.youtube.com/live2",
"backupIngestionAddress": "rtmp://b.rtmp.youtube.com/live2?backup=1"
},
"resolution": "360p",
"frameRate": "30fps"
},
"status": {
"streamStatus": "ready",
"healthStatus": {
"status": "noData"
}
},
"contentDetails": {
"closedCaptionsIngestionUrl": "http://upload.youtube.com/closedcaption?cid=9qq0-ct85-ctub-",
"isReusable": true
}
}I see a response like this, When I use OBS to stream to this RMTP URL it doesn’t have the title I set in the stream as you can see come in response. I am getting stream name but not sure if I do it correctly.
If I call the path as
rtmp://a.rtmp.youtube.com/live2/steamnamefromurl/mykey
it’s work but not have the title I set by call API. Anyone please check the page and help what I am going wrong. What I am looking for is get the title and description set for stream, or verified that I am doing it correctly. -
ffmpeg : unable to merge valid mp4 and mp3 together
3 décembre 2018, par yarekI try to merge 2 files
1 mp4 video + 1 mp3 files (both are ok and are playable inside chrome or firefox)mediainfo yarek.mp4
General
Complete name : yarek.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 86.7 KiB
Duration : 5 s 263 ms
mediainfo yarek.mp3
General
Complete name : yarek.mp3
Format : MPEG Audio
File size : 83.9 KiB
Overall bit rate mode : Variable
Writing library : Lavf57.56.101I run :
ffmpeg -i yarek.mp4 -i yarek.mp3 output.mp4
Gives me that error :
buffer @ 0x55656c11b0e0] Unable to parse option value "-1" as pixel format
Last message repeated 1 times
[buffer @ 0x55656c11b0e0] Error setting option pix_fmt to value -1.
[graph 0 input from stream 0:0 @ 0x55656c11aa40] Error applying options to the filter.Same problem when I try to extract a JPEG form the mp4 (the mp4 is valid and can be opened within VLC or inside Chrome or Firefow)
/var/www/html/record# ffmpeg -y -i "yarek.mp4" -ss "1" -vframes 1 -q:v 2 output.jpg
ffmpeg version 3.2.12-1~deb9u1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --prefix=/usr --extra-version='1~deb9u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d221642ee0] Missing key frame while reordering index according to edit list
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d221642ee0] Could not find codec parameters for stream 0 (Video: h264 (avc1 / 0x31637661), none, 640x480, 128 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'yarek.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.56.101
comment : {"t": "v", "c": "h264", "s": 1543853355450975, "u": 1543853355472477}
Duration: 00:00:22.73, bitrate: 130 kb/s
Stream #0:0(und): Video: h264 (avc1 / 0x31637661), none, 640x480, 128 kb/s, 14.69 fps, 15 tbr, 90k tbn, 180k tbc (default)
Metadata:
handler_name : VideoHandler
[buffer @ 0x55d221663420] Unable to parse option value "-1" as pixel format
Last message repeated 1 times
[buffer @ 0x55d221663420] Error setting option pix_fmt to value -1.
[graph 0 input from stream 0:0 @ 0x55d221642d60] Error applying options to the filter.
Error opening filters!