
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (86)
-
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 (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...) -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)
Sur d’autres sites (9965)
-
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 !


-
ffmpeg works with laptop webcam but not with android camera
28 février 2023, par Rajkumar SomasundaramI am working on Macbook with M1 Chip with this ffmpeg version locally installed.


ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers 
built with Apple clang version 14.0.0 (clang-1400.0.29.202)



With this, I am able to use my laptop's webcam as input and do my ffmpeg work.


Following command is what worked (avfoundation was needed for OSX)


ffmpeg -f avfoundation -framerate 30 -i 0:0 \
-map 0:v:0 -map 0:a:0 \
-pix_fmt yuv420p \
-c:v libx264 -profile:v high \
-crf 32 -ar 44100 \
-c:a aac \
-filter:v:0 scale=w=480:h=360 \
-utc_timing_url "https://time.akamai.com/?iso" \
-segment_time 8 \
-f dash ${path.join(__dirname, "/output/sample.mpd")}



Now, I am trying to use my android front camera as an input.


But, it is not working. (Errors are mainly in & around camera_index)


I am trying the following command and facing error.


ffmpeg -f android_camera -camera_index 0 -framerate 30 -map 0:v -map 0:a -c:v\
libx264 -profile:v high -c:a aac -filter:v:0 scale=w=480:h=360 \
-utc_timing_url "https://time.akamai.com/?iso" -segment_time 8 \
-f dash ${path.join(__dirname, "/output/sample.mpd")}



This is the stacktrace of the whole error log : https://www.diffchecker.com/Mnnghg7M/


- 

- What is the correct command for android camera as input ?
- Do all stable versions of ffmpeg work with android or any limitations ?






-
AC3 decoding throws error number -16976906 ... vlc plays well
23 décembre 2022, par user1940163I have got a mpeg ts file with following composition (shown by ffprobe)


ffprobe version N-109444-geef763c705 Copyright (c) 2007-2022 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 configuration: --enable-openssl
 libavutil 57. 43.100 / 57. 43.100
 libavcodec 59. 55.103 / 59. 55.103
 libavformat 59. 34.102 / 59. 34.102
 libavdevice 59. 8.101 / 59. 8.101
 libavfilter 8. 53.100 / 8. 53.100
 libswscale 6. 8.112 / 6. 8.112
 libswresample 4. 9.100 / 4. 9.100
[mpegts @ 0x56201c2c1cc0] Could not find codec parameters for stream 1 (Audio: ac3 ([129][0][0][0] / 0x0081), stereo, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mpegts, from 'ff_vlc.ts':
 Duration: 00:10:00.02, start: 1.400000, bitrate: 1839 kb/s
 Program 1
 Metadata:
 service_name : Service01
 service_provider: FFmpeg
 Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 856x480 [SAR 320:321 DAR 16:9], 30 fps, 59.94 tbr, 90k tbn
 Stream #0:1[0x101](spa): Audio: ac3 ([129][0][0][0] / 0x0081), stereo, fltp




I intend to transcode this so that I copy the video as it is but the audio will be encoded to aac ...so that I can play it in the browser.


I use the following ffmpeg command to attempt that


ffmpeg -i ff_vlc.ts -vcodec copy -acodec aac -map 0:v:0 -map 0:a:0 ff_vlc_2.ts



this throws errors with -16976906 as follows..........( I have clipped the repetitive excessively long output)


ffmpeg -i ff_vlc.ts -vcodec copy -acodec aac -map 0:v:0 -map 0:a:0 ff_vlc_2.ts
ffmpeg version N-109444-geef763c705 Copyright (c) 2000-2022 the FFmpeg developers
 built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
 configuration: --enable-openssl
 libavutil 57. 43.100 / 57. 43.100
 libavcodec 59. 55.103 / 59. 55.103
 libavformat 59. 34.102 / 59. 34.102
 libavdevice 59. 8.101 / 59. 8.101
 libavfilter 8. 53.100 / 8. 53.100
 libswscale 6. 8.112 / 6. 8.112
 libswresample 4. 9.100 / 4. 9.100
[mpegts @ 0x55b4369b2440] Could not find codec parameters for stream 1 (Audio: ac3 ([129][0][0][0] / 0x0081), stereo, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, mpegts, from 'ff_vlc.ts':
 Duration: 00:10:00.02, start: 1.400000, bitrate: 1839 kb/s
 Program 1
 Metadata:
 service_name : Service01
 service_provider: FFmpeg
 Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709, progressive), 856x480 [SAR 320:321 DAR 16:9], 30 fps, 59.94 tbr, 90k tbn
 Stream #0:1[0x101](spa): Audio: ac3 ([129][0][0][0] / 0x0081), stereo, fltp
Stream mapping:
 Stream #0:0 -> #0:0 (copy)
 Stream #0:1 -> #0:1 (ac3 (native) -> aac (native))
Press [q] to stop, [?] for help
Error while decoding stream #0:1: Error number -16976906 occurred
 Last message repeated 17065 times
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Error while decoding stream #0:1: Error number -16976906 occurred
 Last message repeated 2 times
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Error while decoding stream #0:1: Error number -16976906 occurred
 Last message repeated 2 times
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Error while decoding stream #0:1: Error number -16976906 occurred
 Last message repeated 2 times
....
....
....(repetitive output clipped and removed)
....
....
 Last message repeated 2 times
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Error while decoding stream #0:1: Error number -16976906 occurred
 Last message repeated 2 times
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Error while decoding stream #0:1: Error number -16976906 occurred
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
Too many packets buffered for output stream 0:0.
Error submitting a packet to the muxer for output stream #0:0.
[abuffer @ 0x56289e5ab100] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]
 Last message repeated 1 times
[abuffer @ 0x56289e5ab100] Error setting option time_base to value 1/0.
[graph_0_in_0_1 @ 0x5628a3f5e800] Error applying options to the filter.
Error reinitializing filters!
Error while filtering: Numerical result out of range
Finishing stream 0:1 without any data written to it.
[abuffer @ 0x56289b2b89c0] Value inf for parameter 'time_base' out of range [0 - 2.14748e+09]
 Last message repeated 1 times
[abuffer @ 0x56289b2b89c0] Error setting option time_base to value 1/0.
[graph_0_in_0_1 @ 0x56289a63e780] Error applying options to the filter.
Error configuring filter graph
Conversion failed!




I tried the above even with this command


ffmpeg -analyzeduration 2147483647 -probesize 2147483647 -i ff_vlc.ts -vcodec copy -acodec aac -map 0:v:0 -map 0:a:0 ff_vlc_2.ts



Still get the same errors. Only changed lines in the output are


[mpegts @ 0x55e1b757d580] Failed to allocate buffers for seekback
[mpegts @ 0x55e1b757d580] Could not find codec parameters for stream 1 (Audio: ac3 ([129][0][0][0] / 0x0081), stereo, fltp): unspecified sample rate
Consider increasing the value for the 'analyzeduration' (2147483647) and 'probesize' (2147483647) options




VLC player has no problems in playing this audio ... only ffmpeg cannot decode.


How do I fix this ?


Please help
Thanks