
Recherche avancée
Médias (6)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
Autres articles (104)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 ) (...)
Sur d’autres sites (5480)
-
convert video with ffmpeg command line. but the video stream and audio stream are out of sync
24 juin 2016, par zack chenI use ffmpeg cmd to convert some mkv video files to flv.
The source files are downloaded from this site : Sample mkv files
ffmpeg -i input.mkv -c:v libx264 -crf 20 -preset ultrafast -c:a aac -ar 22050 -y output.flv
However the output video seems lose some frames, the FPS dropped from 25 to 5 suddenly and The video stream and audio stream are out of sync.
I tested some mkv files downloaded from another site, the output file could play well.
So, I guess it may be caused by the mkv files downloaded from the site : http://www.sample-videos.com/index.php#sample-mkv-videoBut i couldn’t find the reason. Could you help me ?
I get the video info by ffprobe, as below.
{
"streams": [
{
"index": 0,
"codec_name": "h264",
"codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"profile": "Main",
"codec_type": "video",
"codec_time_base": "1/50",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"width": 320,
"height": 240,
"coded_width": 320,
"coded_height": 240,
"has_b_frames": 0,
"sample_aspect_ratio": "1:1",
"display_aspect_ratio": "4:3",
"pix_fmt": "yuv420p",
"level": 20,
"chroma_location": "left",
"refs": 1,
"is_avc": "true",
"nal_length_size": "4",
"r_frame_rate": "25/1",
"avg_frame_rate": "25/1",
"time_base": "1/1000",
"duration_ts": 9818,
"duration": "9.818000",
"bits_per_raw_sample": "8",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
},
{
"index": 1,
"codec_name": "aac",
"codec_long_name": "AAC (Advanced Audio Coding)",
"profile": "LC",
"codec_type": "audio",
"codec_time_base": "1/48000",
"codec_tag_string": "[0][0][0][0]",
"codec_tag": "0x0000",
"sample_fmt": "fltp",
"sample_rate": "48000",
"channels": 6,
"channel_layout": "5.1",
"bits_per_sample": 0,
"r_frame_rate": "0/0",
"avg_frame_rate": "0/0",
"time_base": "1/1000",
"duration_ts": 9818,
"duration": "9.818000",
"disposition": {
"default": 1,
"dub": 0,
"original": 0,
"comment": 0,
"lyrics": 0,
"karaoke": 0,
"forced": 0,
"hearing_impaired": 0,
"visual_impaired": 0,
"clean_effects": 0,
"attached_pic": 0
}
}
],
"format": {
"filename": "big_buck_bunny_240p_1mb.mkv",
"nb_streams": 2,
"nb_programs": 0,
"format_name": "matroska,webm",
"format_long_name": "Matroska / WebM",
"duration": "9.818000",
"size": "1055721",
"bit_rate": "860233",
"probe_score": 100,
"tags": {
"ENCODER": "Lavf53.24.2"
}
}
} -
ffmpeg : stream -> edit -> stream ERROR : av_interleaved_write_frame() : Operation not permitted Error writing trailer of rtmps
14 février 2021, par Yurii KyparusI'm reading the horizontal hls stream, placing it in the middle of the vertical layout.




ffmpeg -i "https://......a1f6039622.m3u8" -vf "pad=iw:2*trunc(iw*16/18):(ow-iw)/2:(oh-ih)/2,setsar=1" -c:v libx264 -pix_fmt yuv420p -profile:v main -c:a aac -f flv -flvflags no_duration_filesize rtmps://...e.live-video.net:443/app/secret_key






Getting next error :



WriteN, RTMP send error 32 (129 bytes)54kB time=00:00:10.22 bitrate=1164.8kbits/s speed=3.81x
WriteN, RTMP send error 0 (91 bytes)
WriteN, RTMP send error 9 (42 bytes)
av_interleaved_write_frame(): Operation not permitted
Error writing trailer of rtmps://94e...net:443/app/...gSK: Operation not permitted
frame= 308 fps= 13 q=29.0 Lsize= 1535kB time=00:00:10.80 bitrate=1164.0kbits/s speed=0.44x
video:1396kB audio:177kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
[libx264 @ 0x7ff3c8888000] frame I:2 Avg QP:12.40 size: 46750
[libx264 @ 0x7ff3c8888000] frame P:81 Avg QP:17.80 size: 13636
[libx264 @ 0x7ff3c8888000] frame B:225 Avg QP:21.47 size: 3330
[libx264 @ 0x7ff3c8888000] consecutive B-frames: 1.6% 2.6% 1.0% 94.8%
[libx264 @ 0x7ff3c8888000] mb I I16..4: 82.0% 0.0% 18.0%
[libx264 @ 0x7ff3c8888000] mb P I16..4: 5.7% 0.0% 1.0% P16..4: 13.6% 4.3% 1.8% 0.0% 0.0% skip:73.6%
[libx264 @ 0x7ff3c8888000] mb B I16..4: 0.5% 0.0% 0.0% B16..8: 9.5% 1.2% 0.1% direct: 1.7% skip:87.0% L0:43.7% L1:52.7% BI: 3.5%
[libx264 @ 0x7ff3c8888000] coded y,uvDC,uvAC intra: 11.8% 49.2% 2.0% inter: 1.9% 5.8% 0.0%
[libx264 @ 0x7ff3c8888000] i16 v,h,dc,p: 69% 15% 9% 7%
[libx264 @ 0x7ff3c8888000] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 17% 19% 4% 5% 7% 4% 5% 3%
[libx264 @ 0x7ff3c8888000] i8c dc,h,v,p: 58% 15% 26% 2%
[libx264 @ 0x7ff3c8888000] Weighted P-Frames: Y:28.4% UV:0.0%
[libx264 @ 0x7ff3c8888000] ref P L0: 63.4% 15.3% 15.7% 5.0% 0.6%
[libx264 @ 0x7ff3c8888000] ref B L0: 90.5% 7.7% 1.8%
[libx264 @ 0x7ff3c8888000] ref B L1: 96.2% 3.8%
[libx264 @ 0x7ff3c8888000] kb/s:1517.33
[aac @ 0x7ff3c8889800] Qavg: 5013.114







-
Get x264 options from stream
29 juillet 2014, par HardRockI have a problem with H264 encoding, actually with libx264 :(
I want to encode series of images from web camera into h264 and send stream to chines DVR. Problem is DVR can’t decode my stream. I tried to adjust (using h264stream_analyzer) SPS and PPS in libx264 to match SPS and PPS headers from "correct stream", produced by other chinese DVR’s and IP cameras. But no luck :( Looks like problem in bitstream.
My stream and "correct" stream - are both may be converted and played with avconv (ffmpeg), for example.
Transport is ok. If i send "correct stream" - DVR understand it. Problem in stream.One strange thing - "correct stream" contains a lot of 28 and 29 slice types. From h264 specification this is must be "fragmentation" units. But my stream contains only P and I slices, но fragmens.
So how i can get exact stream encoding parameters from existing sample stream ? It may be difference in x264 versions ?