
Recherche avancée
Autres articles (28)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (3616)
-
Update URLs as nedeed.
28 juin 2014, par Erik de Castro LopoUpdate URLs as nedeed.
Sourceforge.net links updated as nedeed with some of them
being changed to point to xiph.org/flac.Patch-from : lvqcl <lvqcl.mail@gmail.com>
- [DH] examples/c/decode/file/main.c
- [DH] examples/c/encode/file/main.c
- [DH] examples/cpp/decode/file/main.cpp
- [DH] examples/cpp/encode/file/main.cpp
- [DH] include/FLAC/metadata.h
- [DH] include/share/getopt.h
- [DH] src/flac/decode.c
- [DH] src/flac/encode.c
- [DH] src/flac/main.c
- [DH] src/libFLAC/lpc.c
- [DH] src/plugin_xmms/configure.c
- [DH] src/share/getopt/getopt.c
- [DH] src/share/getopt/getopt1.c
-
Why my concated videos resulting in fps drop ?
3 juillet 2020, par swdevI have one main .mp4 video and several logo .mp4 videos. I manage to create python script that eventually called
ffmpeg.exe
to create duplicate of that one main .mp4 video into distinct ..mp4 video with different logo

Problem is, sometimes (I think if the file size is in more than 1GB) the generated video resulted in audio that plays sooner than the video. This is my command to produce that concatenated video :


ffmpeg.exe -f concat -safe 0 -i "{file_list_name}" -c copy "{target_file}" -y

file_list_name is .txt file with content such as :

file 'logo1.mp4'
file 'main.mp4'



Both of the file already in the same resolution : 1080p


-
streaming data with ffmpeg using pipe - stream never starts
9 novembre 2022, par tamirgIm fetching some video data, and trying to stream it using ffmpeg. what i do is create an ffmpeg process, set it to get info from '-', and then when i fetch the video data i write it to the process STDIN.


My issue is that the steaming procces sometimes starts, and sometimes doesnt start. it really seems random (will add the ffmpeg logs at the end).
But if i save the entire data into a file, and then use ffplay on that file, it works perfectly fine, all the time.


So im guessing something in the data is causing some issues with ffmpeg usage with pipe. The logs indicate that there are some issues with the DTS, but i dont know if thats the reason that stream never plays, and what can be done to fix that.


I cant really understand the issue from the logs, but maybe they indicate what is the issue exactly ?


logs :


When the stream proccess doesnt start and doesnt work, those are the logs :


[mpeg @ 0x7fc7b63ef840] Format mpeg probed with size=262144 and score=52
[mpeg @ 0x7fc7b63ef840] Before avformat_find_stream_info() pos: 6 bytes read:263756 seeks:0 nb_streams:0
[NULL @ 0x7fc7b63eec00] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x7fc7b63eec00] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x7fc7b63eec00] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x7fc7b63eec00] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x7fc7b63eec00] Decoding VPS
[NULL @ 0x7fc7b63eec00] Main profile bitstream
[NULL @ 0x7fc7b63eec00] Decoding SPS
[NULL @ 0x7fc7b63eec00] Main profile bitstream
[NULL @ 0x7fc7b63eec00] Decoding VUI
[NULL @ 0x7fc7b63eec00] Decoding PPS
[extract_extradata @ 0x7fc7b63f2140] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[extract_extradata @ 0x7fc7b63f2140] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[extract_extradata @ 0x7fc7b63f2140] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[extract_extradata @ 0x7fc7b63f2140] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] Decoding VPS
[hevc @ 0x7fc7b63eec00] Main profile bitstream
[hevc @ 0x7fc7b63eec00] Decoding SPS
[hevc @ 0x7fc7b63eec00] Main profile bitstream
[hevc @ 0x7fc7b63eec00] Decoding VUI
[hevc @ 0x7fc7b63eec00] Decoding PPS
[hevc @ 0x7fc7b63eec00] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] Decoding VPS
[hevc @ 0x7fc7b63eec00] Main profile bitstream
[hevc @ 0x7fc7b63eec00] Decoding SPS
[hevc @ 0x7fc7b63eec00] Main profile bitstream
[hevc @ 0x7fc7b63eec00] Decoding VUI
[hevc @ 0x7fc7b63eec00] Decoding PPS
[mpeg @ 0x7fc7b63ef840] Non-increasing DTS in stream 1: packet 3 with DTS 150119711008467, packet 4 with DTS 150119711008467
[mpeg @ 0x7fc7b63ef840] Non-increasing DTS in stream 1: packet 5 with DTS 150119711008469, packet 6 with DTS 150119711008469
[hevc @ 0x7fc7b63eec00] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7fc7b63eec00] Decoding VPS
[hevc @ 0x7fc7b63eec00] Main profile bitstream
[hevc @ 0x7fc7b63eec00] Decoding SPS
[hevc @ 0x7fc7b63eec00] Main profile bitstream
[hevc @ 0x7fc7b63eec00] Decoding VUI
[hevc @ 0x7fc7b63eec00] Decoding PPS



After the last log line, nothing happens, and no more log lines appear.


When the process actually starts and works fine, those are the logs :


[mpeg @ 0x7f5475d69840] Format mpeg probed with size=524288 and score=52
[mpeg @ 0x7f5475d69840] Before avformat_find_stream_info() pos: 6 bytes read:526296 seeks:0 nb_streams:0
[mpeg @ 0x7f5475d69840] Non-increasing DTS in stream 1: packet 2 with DTS 150120249571596, packet 3 with DTS 150120249571596
[mpeg @ 0x7f5475d69840] Non-increasing DTS in stream 1: packet 4 with DTS 150120249571598, packet 5 with DTS 150120249571598
[mpeg @ 0x7f5475d69840] Non-increasing DTS in stream 1: packet 5 with DTS 150120249571598, packet 6 with DTS 150120249571598
[NULL @ 0x7f5475d68c00] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x7f5475d68c00] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x7f5475d68c00] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x7f5475d68c00] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[NULL @ 0x7f5475d68c00] Decoding VPS
[NULL @ 0x7f5475d68c00] Main profile bitstream
[NULL @ 0x7f5475d68c00] Decoding SPS
[NULL @ 0x7f5475d68c00] Main profile bitstream
[NULL @ 0x7f5475d68c00] Decoding VUI
[NULL @ 0x7f5475d68c00] Decoding PPS
[extract_extradata @ 0x7f5475d6c140] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[extract_extradata @ 0x7f5475d6c140] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[extract_extradata @ 0x7f5475d6c140] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[extract_extradata @ 0x7f5475d6c140] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] Decoding VPS
[hevc @ 0x7f5475d68c00] Main profile bitstream
[hevc @ 0x7f5475d68c00] Decoding SPS
[hevc @ 0x7f5475d68c00] Main profile bitstream
[hevc @ 0x7f5475d68c00] Decoding VUI
[hevc @ 0x7f5475d68c00] Decoding PPS
[hevc @ 0x7f5475d68c00] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] Decoding VPS
[hevc @ 0x7f5475d68c00] Main profile bitstream
[hevc @ 0x7f5475d68c00] Decoding SPS
[hevc @ 0x7f5475d68c00] Main profile bitstream
[hevc @ 0x7f5475d68c00] Decoding VUI
[hevc @ 0x7f5475d68c00] Decoding PPS
[hevc @ 0x7f5475d68c00] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] Decoding VPS
[hevc @ 0x7f5475d68c00] Main profile bitstream
[hevc @ 0x7f5475d68c00] Decoding SPS
[hevc @ 0x7f5475d68c00] Main profile bitstream
[hevc @ 0x7f5475d68c00] Decoding VUI
[hevc @ 0x7f5475d68c00] Decoding PPS
[hevc @ 0x7f5475d68c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 1 times
[mpeg @ 0x7f5475d69840] Non-increasing DTS in stream 1: packet 10 with DTS 150120249571825, packet 11 with DTS 150120249571825
[hevc @ 0x7f5475d68c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 4 times
[mpeg @ 0x7f5475d69840] Non-increasing DTS in stream 1: packet 15 with DTS 150120249571844, packet 16 with DTS 150120249571844
[hevc @ 0x7f5475d68c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 7 times
[mpeg @ 0x7f5475d69840] Non-increasing DTS in stream 1: packet 25 with DTS 150120249571878, packet 26 with DTS 150120249571878
[hevc @ 0x7f5475d68c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 7 times
[mpeg @ 0x7f5475d69840] DTS discontinuity in stream 0: packet 23 with DTS 150120249572205, packet 24 with DTS 150120249610965
[hevc @ 0x7f5475d68c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 35 times
[hevc @ 0x7f5475d68c00] nal_unit_type: 32(VPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 33(SPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 34(PPS), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] nal_unit_type: 19(IDR_W_RADL), nuh_layer_id: 0, temporal_id: 0
[hevc @ 0x7f5475d68c00] Decoding VPS
[hevc @ 0x7f5475d68c00] Main profile bitstream
[hevc @ 0x7f5475d68c00] Decoding SPS
[hevc @ 0x7f5475d68c00] Main profile bitstream
[hevc @ 0x7f5475d68c00] Decoding VUI
[hevc @ 0x7f5475d68c00] Decoding PPS
[hevc @ 0x7f5475d68c00] nal_unit_type: 1(TRAIL_R), nuh_layer_id: 0, temporal_id: 0
 Last message repeated 8 times
[mpeg @ 0x7f5475d69840] max_analyze_duration 5000000 reached at 5056000 microseconds st:1
[mpeg @ 0x7f5475d69840] After avformat_find_stream_info() pos: 1428588 bytes read:1428588 seeks:0 frames:152
Input #0, mpeg, from 'pipe:':
 Duration: N/A, start: 1668002773.015456, bitrate: N/A



The main issue, is that it sometimes works, sometimes doesnt work.


The ffmpeg proccess is just created by using
asyncio.create_subprocess_exec


Every time i get a video data, i pass the data to the proccess by calling
ffmpeg_process.stdin.write(data)


I believe the issue is with the data, since with video data, the whole pipeline works for me. But i cannot understand from the ffmpeg logs what is the issue exactly.