
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 (111)
-
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
De l’upload à la vidéo finale [version standalone]
31 janvier 2010, parLe chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
Upload et récupération d’informations de la vidéo source
Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)
Sur d’autres sites (8809)
-
FFmpeg - Error submitting a packet to the muxer [closed]
26 novembre 2023, par undercashI m having an issue with my self compiled ffmpeg since 2020.
here is my ffmpeg comfig


[```
built with gcc 11 (Ubuntu 11.4.0-1ubuntu1 22.04)
configuration : —enable-gpl —enable-version3 —enable-nonfree —enable-postproc —enable-libfdk_aac —enable-libtheora —enable-libvorbis —enable-libmp3lame —enable-libx264 —enable-libx265 —enable-libvpx —enable-librtmp —enable-libass —enable-libfreetype —enable-libdav1d —extra-libs='-lpthread -lm' —enable-openssl —enable-cuda-nvcc —enable-libnpp —extra-cflags=-I/usr/local/cuda/include —extra-ldflags=-L/usr/local/cuda/lib64 —disable-static —enable-shared



I know this is a config with nvidea but this is not relevent to the problem. Happens to me on real server without gpu , ubuntu 20 or 22.

I use ffmpeg to stream to a remote rtmp server (-f flv rtmp://xx)
Depending on the file it will consistently fail at the same time of the file with this error warning
If I just transcode a video locally, there is no issue at all
I have been testing streaming to youtube or big sites so I could discard the possibility of my own rtmp servers being misconfigured.

[```
[vost#0:0/h264 @ 0x55de16e8ebc0] Error submitting a packet to the muxer: End of fileop=1 speed= 1x
[flv @ 0x55de16e78980] Failed to update header with correct duration.
[flv @ 0x55de16e78980] Failed to update header with correct filesize.
[out#0/flv @ 0x55de16e83640] Error writing trailer: End of file
```]


 0070: 22 30 "0
 [vost#0:0/h264 @ 0x55ca300a0200] Error submitting a packet to the muxer: End of file
 [out#0/flv @ 0x55ca3019f6c0] Muxer returned EOF
 [out#0/flv @ 0x55ca3019f6c0] Terminating muxer thread
 [out#0/flv @ 0x55ca3019f6c0] sq: send 1 ts 1676.94
 [out#0/flv @ 0x55ca3019f6c0] sq: receive 1 ts 1676.93 queue head -1 ts N/A
 [NULL @ 0x55ca30076180] ct_type:0 pic_struct:3
 Last message repeated 2 times
 [out#0/flv @ 0x55ca3019f6c0] sq: send 0 ts 1676.72
 [out#0/flv @ 0x55ca3019f6c0] sq: receive 0 ts 1676.72 queue head -1 ts N/A
 No more output streams to write to, finishing.
 [vist#0:0/h264 @ 0x55ca301a3b40] Decoder thread received EOF packet
 [vist#0:0/h264 @ 0x55ca301a3b40] Decoder returned EOF, finishing
 [vist#0:0/h264 @ 0x55ca301a3b40] Terminating decoder thread
 [aist#0:1/ac3 @ 0x55ca301a3680] Decoder thread received EOF packet
 [aist#0:1/ac3 @ 0x55ca301a3680] Decoder returned EOF, finishing
 [aist#0:1/ac3 @ 0x55ca301a3680] Terminating decoder thread


As a work around, and since I have not seen any threads on the internet talking about this issue, I have been using since 2020 static builds from https://johnvansickle.com/ffmpeg/
They work fine (once you enable dns resolution with them) but as I m willing to use a nvidea card I need to use my own ffmpeg with nvidea drivers.

thanks

Well pretty much what I wrote previously



-
No sound when running ffmpeg on youtube live
28 mai 2020, par BartonsenDespite my limited knowledge in ffmpeg, I've managed to livestream my birdbox camera to youtube using ffmpeg running on a raspberry pi. The camera has also audio and by using local vlc in windows with rtsp, the audio is ok.



However, on youtube there is no sound (same rtsp command as used locally in windows), and I see this "warning" in youtube studio : "The current bitrate (0) of the audio stream is lower than the recommended bitrate. We recommend using a 128 Kbps bitrate for the audio stream."



How can I get the sound through youtube ?
This is the command I run. The command was found on the net, and I adopted it for my usage, and got video working straight away :



pi@raspberrypi:~ $ ffmpeg -f lavfi -i anullsrc -thread_queue_size 512 -rtsp_transport udp -i "rtsp://10.x.x.x:554/user=user&password=password&channel=1&stream=0.sdp?real_stream" -tune zerolatency -vcodec libx264 -use_wallclock_as_timestamps 1 -pix_fmt + -c:v copy -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/mykey
ffmpeg version git-2020-05-01-3c740f2 Copyright (c) 2000-2020 the FFmpeg developers
 built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
 configuration: --arch=armel --target-os=linux --enable-gpl --enable-libx264 --enable-nonfree
 libavutil 56. 43.100 / 56. 43.100
 libavcodec 58. 82.100 / 58. 82.100
 libavformat 58. 42.102 / 58. 42.102
 libavdevice 58. 9.103 / 58. 9.103
 libavfilter 7. 80.100 / 7. 80.100
 libswscale 5. 6.101 / 5. 6.101
 libswresample 3. 6.100 / 3. 6.100
 libpostproc 55. 6.100 / 55. 6.100
Input #0, lavfi, from 'anullsrc':
 Duration: N/A, start: 0.000000, bitrate: 705 kb/s
 Stream #0:0: Audio: pcm_u8, 44100 Hz, stereo, u8, 705 kb/s
Guessed Channel Layout for Input Stream #1.1 : mono
Input #1, rtsp, from 'rtsp://10.x.x.x:554/user=user&password=password&channel=1&stream=0.sdp?real_stream':
 Metadata:
 title : RTSP Session
 Duration: N/A, start: 0.000000, bitrate: N/A
 Stream #1:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1920x1080, 20 fps, 20 tbr, 90k tbn, 180k tbc
 Stream #1:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
Multiple -c, -codec, -acodec, -vcodec, -scodec or -dcodec options specified for stream 0, only the last option '-c:v copy' will be used.
Stream mapping:
 Stream #1:0 -> #0:0 (copy)
 Stream #0:0 -> #0:1 (pcm_u8 (native) -> aac (native))
Press [q] to stop, [?] for help
Output #0, flv, to 'rtmp://a.rtmp.youtube.com/live2/mykey':
 Metadata:
 encoder : Lavf58.42.102
 Stream #0:0: Video: h264 (Main) ([7][0][0][0] / 0x0007), yuvj420p(pc, bt709, progressive), 1920x1080, q=2-31, 20 fps, 20 tbr, 1k tbn, 90k tbc
 Stream #0:1: Audio: aac (LC) ([10][0][0][0] / 0x000A), 44100 Hz, stereo, fltp, 128 kb/s
 Metadata:
 encoder : Lavc58.82.100 aac
[flv @ 0x2c43750] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly



-
How can I set qcomp 0.72 and crf 16 ? When I try I get qcomp 0.6 crf 28 ?
19 octobre 2020, par For FunHow can I convert with this settings ?
I want to convert using this settings example : ref=4 subme=9 -crf 16 -qcomp 0.72
But When I try this settings it won't work all settings below go default I get crf 28 qcomp 0.6 ?




ffmpeg -i input.mp4 -c:a copy -c:v libx265 -x265-params "cabac=1:ref=4:deblock=1:1 :-1:analyse=0x3:0x113:me=umh:subme=9:psy=1:fade_compensate=0.00:psy_rd=1.00:0.00:mixed_ref=1:me_range=32:chroma_me=1:trellis=2:8x8dct=1:cqm=0:deadzone=21,11:fast_pskip=1:chroma_qp_offset=-2:threads=34:lookahead_threads=5:sliced_threads=0:nr=0:decimate=1:interlaced=0:bluray_compat=0:constrained_intra=0:bframes=9:b_pyramid=2:b_adapt=2:b_bias=0:direct=1:weightb=1:open_gop=0:weightp=2:keyint=240:keyint_min=23:scenecut=40:intra_refresh=:rc=crf:mbtree=0:crf=16.0000:qcomp=0.72:qpmin=0:qpmax=81:qpstep=4:ip_ratio=1.40:pb_ratio=1.30:aq=1:0.85" -x265-params profile=main10 -pix_fmt yuv420p10le output.mp4




Update:
Full output:
ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-10ubuntu2) 
configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 creation_time : 2020-10-18T17:47:30.000000Z
 com.android.version: 10
 com.android.capture.fps: 60.000000
 Duration: 00:00:01.92, start: 0.000000, bitrate: 19228 kb/s
 Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv), 1920x1080, 15658 kb/s, SAR 1:1 DAR 16:9, 59.88 fps, 59.94 tbr, 90k tbn, 90k tbc (default)
 Metadata:
 rotate : 90
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : VideoHandle
 Side data:
 displaymatrix: rotation of -90.00 degrees
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
 Metadata:
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : SoundHandle
Stream mapping:
 Stream #0:0 -> #0:0 (hevc (native) -> hevc (libx265))
 Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[libx265 @ 0x30000c4930] Unknown option: profile.
x265 [info]: HEVC encoder version 3.2.1+1-b5c86a64bbbe
x265 [info]: build info [Linux][GCC 9.3.0][32 bit][noasm] 10bit
x265 [info]: using cpu capabilities: none!
x265 [info]: Main 10 profile, Level-4.1 (Main tier)
x265 [warning]: No thread pool allocated, --wpp disabled
x265 [warning]: No thread pool allocated, --lookahead-slices disabled
x265 [info]: Slices : 1
x265 [info]: frame threads / pool features : 3 / none
x265 [info]: Coding QT: max CU size, min CU size : 64 / 8
x265 [info]: Residual QT: max TU size, max depth : 32 / 1 inter / 1 intra
x265 [info]: ME / range / subpel / merge : hex / 57 / 2 / 3
x265 [info]: Keyframe min / max / scenecut / bias: 25 / 250 / 40 / 5.00
x265 [info]: Lookahead / bframes / badapt : 20 / 4 / 2
x265 [info]: b-pyramid / weightp / weightb : 1 / 1 / 0
x265 [info]: References / ref-limit cu / depth : 3 / off / on
x265 [info]: AQ: mode / str / qg-size / cu-tree : 2 / 1.0 / 32 / 1
x265 [info]: Rate Control / qCompress : CRF-28.0 / 0.60
x265 [info]: tools: rd=3 psy-rd=2.00 early-skip rskip signhide tmvp b-intra
x265 [info]: tools: strong-intra-smoothing deblock sao
Output #0, mp4, to 'output.mp4':
 Metadata:
 major_brand : mp42
 minor_version : 0
 compatible_brands: isommp42
 com.android.capture.fps: 60.000000
 com.android.version: 10
 encoder : Lavf58.29.100
 Stream #0:0(eng): Video: hevc (libx265) (hev1 / 0x31766568), yuv420p10le, 1080x1920 [SAR 1:1 DAR 9:16], q=2-31, 59.94 fps, 60k tbn, 59.94 tbc (default)
 Metadata:
 encoder : Lavc58.54.100 libx265
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : VideoHandle
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
 displaymatrix: rotation of -0.00 degrees
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 191 kb/s (default)
 Metadata:
 creation_time : 2020-10-18T17:47:30.000000Z
 handler_name : SoundHandle
frame= 18 fps=0.0 q=0.0 size= 0kB time=00:00:00.frame= 28 fps=3.6 q=0.0 size= 0kB time=00:00:00.frame= 31 fps=2.6 q=-0.0 size= 0kB time=00:00:00frame= 33 fps=2.6 q=-0.0 size= 0kB time=00:00:00frame= 34 fps=2.3 q=-0.0 size= 0kB time=00:00:00frame= 37 fps=2.2 q=-0.0 size= 0kB time=00:00:00frame= 39 fps=2.1 q=-0.0 size= 0kB time=00:00:00frame= 42 fps=2.0 q=-0.0 size= 0kB time=00:00:00frame= 44 fps=1.9 q=-0.0 size= 0kB time=00:00:00frame= 47 fps=1.9 q=-0.0 size= 0kB time=00:00:00frame= 49 fps=1.8 q=-0.0 size= 0kB time=00:00:00frame= 52 fps=1.8 q=-0.0 size= 0kB time=00:00:00frame= 54 fps=1.7 q=-0.0 size= 0kB time=00:00:00frame= 57 fps=1.7 q=-0.0 size= 0kB time=00:00:01frame= 59 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 62 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 64 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 67 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 69 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 72 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 74 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 77 fps=1.6 q=-0.0 size= 0kB time=00:00:01frame= 78 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 81 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 83 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 86 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 88 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 91 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 93 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 96 fps=1.5 q=-0.0 size= 0kB time=00:00:01frame= 97 fps=1.2 q=-0.0 Lsize= 135kB time=00:00:01.89 bitrate= 586.0kbits/s speed=0.0234x
video:85kB audio:45kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 4.650742%
x265 [info]: frame I: 1, Avg QP:31.00 kb/s: 6091.83
x265 [info]: frame P: 20, Avg QP:31.26 kb/s: 1253.18
x265 [info]: frame B: 76, Avg QP:35.37 kb/s: 134.14
x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x265 [info]: consecutive B-frames: 4.8% 0.0% 0.0% 19.0% 76.2%encoded 97 frames in 80.86s (1.20 fps), 426.29 kb/s, Avg QP:34.48