
Recherche avancée
Autres articles (69)
-
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (6654)
-
Ffmpeg examples run in debug mode [on hold]
25 août 2017, par Saeid ZangenehI’m not so professional in c and cpp. I want to run FFmpeg official examples but there are many errors on include files. I can’t solve them.
below output :when i try to run or debug the sample code
debug output :
cd '/home/saeid/NetBeansProjects/CppApplication_2'
/usr/bin/make -f Makefile CONF=Debug
"/usr/bin/make" -f nbproject/Makefile-Debug.mk QMAKE= SUBPROJECTS= .build- conf
make[1]: Entering directory '/home/saeid/NetBeansProjects
/CppApplication_2'
"/usr/bin/make" -f nbproject/Makefile-Debug.mk dist/Debug/GNU-
Linux/cppapplication_2
make[2]: Entering directory '/home/saeid/NetBeansProjects
/CppApplication_2'
mkdir -p dist/Debug/GNU-Linux
gcc -o dist/Debug/GNU-Linux/cppapplication_2 build/Debug/GNU-
Linux/sample.o
build/Debug/GNU-Linux/sample.o: In function `select_channel_layout':
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:87: undefined
reference to `av_get_channel_layout_nb_channels'
build/Debug/GNU-Linux/sample.o: In function `audio_encode_example':
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:112: undefined
reference to `avcodec_find_encoder'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:117: undefined
reference to `avcodec_alloc_context3'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:127: undefined
reference to `av_get_sample_fmt_name'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:134: undefined
reference to `av_get_channel_layout_nb_channels'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:136: undefined
reference to `avcodec_open2'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:146: undefined
reference to `av_frame_alloc'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:156: undefined
reference to `av_samples_get_buffer_size'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:162: undefined
reference to `av_malloc'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:169: undefined
reference to `avcodec_fill_audio_frame'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:179: undefined
reference to `av_init_packet'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:183: undefined
reference to `sin'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:189: undefined
reference to `avcodec_encode_audio2'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:196: undefined
reference to `av_free_packet'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:201: undefined
reference to `avcodec_encode_audio2'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:208: undefined
reference to `av_free_packet'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:212: undefined
reference to `av_freep'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:213: undefined
reference to `av_frame_free'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:214: undefined
reference to `avcodec_close'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:215: undefined
reference to `av_free'
build/Debug/GNU-Linux/sample.o: In function `audio_decode_example':
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:229: undefined
reference to `av_init_packet'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:232: undefined
reference to `avcodec_find_decoder'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:237: undefined
reference to `avcodec_alloc_context3'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:243: undefined
reference to `avcodec_open2'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:254: undefined
reference to `av_free'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:264: undefined
reference to `av_frame_alloc'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:269: undefined
reference to `avcodec_decode_audio4'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:276: undefined
reference to `av_get_bytes_per_sample'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:305: undefined reference to `avcodec_close'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:306: undefined reference to `av_free'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:307: undefined reference to `av_frame_free'build/Debug/GNU-Linux/sample.o : In function `video_encode_example’ :
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:323: undefined reference to `avcodec_find_encoder'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:328: undefined reference to `avcodec_alloc_context3'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:350: undefined reference to `av_opt_set'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:352: undefined reference to `avcodec_open2'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:361: undefined reference to `av_frame_alloc'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:371: undefined reference to `av_image_alloc'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:379: undefined reference to `av_init_packet'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:399: undefined reference to `avcodec_encode_video2'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:407: undefined reference to `av_free_packet'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:413: undefined reference to `avcodec_encode_video2'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:421: undefined reference to `av_free_packet'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:427: undefined reference to `avcodec_close'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:428: undefined reference to `av_free'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:429: undefined reference to `av_freep'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:430: undefined reference to `av_frame_free'
build/Debug/GNU-Linux/sample.o: In function `decode_write_frame':
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:452: undefined reference to `avcodec_decode_video2'build/Debug/GNU-Linux/sample.o : In function `video_decode_example’ :
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:481: undefined reference to `av_init_packet'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:486: undefined reference to `avcodec_find_decoder'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:491: undefined reference to `avcodec_alloc_context3'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:502: undefined reference to `avcodec_open2'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:511: undefined reference to `av_frame_alloc'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:545: undefined reference to `avcodec_close'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:546: undefined reference to `av_free'
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:547: undefined reference to `av_frame_free'
build/Debug/GNU-Linux/sample.o: In function `main':
/home/saeid/NetBeansProjects/CppApplication_2/sample.c:556: undefined
reference to `avcodec_register_all'
collect2: error: ld returned 1 exit status
nbproject/Makefile-Debug.mk:62: recipe for target 'dist/Debug/GNU-
Linux/cppapplication_2' failed
make[2]: *** [dist/Debug/GNU-Linux/cppapplication_2] Error 1
make[2]: Leaving directory '/home/saeid/NetBeansProjects/CppApplication_2'
nbproject/Makefile-Debug.mk:59: recipe for target '.build-conf' failed
make[1]: *** [.build-conf] Error 2
make[1]: Leaving directory '/home/saeid/NetBeansProjects/CppApplication_2'
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
make: *** [.build-impl] Error 2 -
FFMPEG "Segmentation fault" with network stream source
23 décembre 2023, par user11186466I use release : 4.2.2 (static) from "https://johnvansickle.com/ffmpeg/"



Final code will be on "Amazon AWS lambda"



Goal : use a url stream and add watermak



Link to video : https://feoval.fr/519.mp4



Link to Watermak : https://feoval.fr/watermark.png



./ffmpeg -i "https://feoval.fr/519.mp4" -i "./watermark.png" -filter_complex "overlay=W-w-10:H-h-10:format=rgb" -f "mp4" -movflags "frag_keyframe+empty_moov" -pix_fmt "yuv420p" test.mp4




return "Segmentation fault"



I have the same error on my computer and on AWS Lambda server



./ffmpeg -i "https://feoval.fr/519.mp4" -f "mp4" -movflags "frag_keyframe+empty_moov" -pix_fmt "yuv420p" test.mp4




work (but not watermak)



./ffmpeg -i "./519.mp4" -i "./watermark.png" -filter_complex "overlay=W-w-10:H-h-10:format=rgb" -f "mp4" -movflags "frag_keyframe+empty_moov" -pix_fmt "yuv420p" test.mp4




work (but not with stream)



Thanks you very much !



Logs for the first case who return "Segmentation fault" :



...
Stream mapping:
Stream #0:0 (h264) -> overlay:main (graph 0)
Stream #1:0 (png) -> overlay:overlay (graph 0)
overlay (graph 0) -> Stream #0:0 (libx264)
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, ? for help
[libx264 @ 0x742e480] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x742e480] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x742e480] 264 - core 159 r2991 1771b55 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'test.mp4':
Metadata:
major_brand : mp42
minor_version : 1
compatible_brands: isommp41mp42
encoder : Lavf58.29.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 480x848, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)
Metadata:
encoder : Lavc58.54.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2020-01-13T08:54:26.000000Z
handler_name : Core Media Audio
encoder : Lavc58.54.100 aac
Segmentation fault (core dumped)



-
Preserving or syncing audio of original video to video fragments
2 mai 2015, par Code_Ed_StudentI currently have a few videos that I want to split into EXACTLY 30 seconds segments. I have been able to accomplish but the audio is not being properly preserve. Its out of sync. I tried playing
arsample
ab
and other libraries but I am not getting the desired outuput. What would be the best way to both split the videos in exactly 30 second frames and preserve the audio ?ffmpeg -i $file -preset medium -map 0 -segment_time 30 -g 225 -r 25 -sc_threshold 0 -force_key_frames expr:gte(t,n_forced*30) -f segment -movflags faststart -vf scale=-1:720,format=yuv420p -vcodec libx264 -crf 20 -codec:a copy $dir/$video_file-%03d.mp4
short snippet of output
Input #0, flv, from '/media/sf_linux_sandbox/hashtag_pull/video-downloads/5b64d7ab-a669-4016-b55e-fe4720cbd843/5b64d7ab-a669-4016-b55e-fe4720cbd843.flv':
Metadata:
moovPosition : 40
avcprofile : 77
avclevel : 31
aacaot : 2
videoframerate : 30
audiochannels : 2
©too : Lavf56.15.102
length : 7334912
sampletype : mp4a
timescale : 48000
Duration: 00:02:32.84, start: 0.000000, bitrate: 2690 kb/s
Stream #0:0: Video: h264 (Main), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 30.30 fps, 29.97 tbr, 1k tbn, 59.94 tbc
Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, fltp
[libx264 @ 0x3663ba0] using SAR=1/1
[libx264 @ 0x3663ba0] using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
[libx264 @ 0x3663ba0] profile High, level 3.1
[libx264 @ 0x3663ba0] 264 - core 144 r2 40bb568 - H.264/MPEG-4 AVC codec - Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=225 keyint_min=22 scenecut=0 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=20.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, segment, to '/media/sf_linux_sandbox/hashtag_pull/video-edits/30/5b64d7ab-a669-4016-b55e-fe4720cbd843/5b64d7ab-a669-4016-b55e-fe4720cbd843-%03d.mp4':
Metadata:
moovPosition : 40
avcprofile : 77
avclevel : 31
aacaot : 2
videoframerate : 30
audiochannels : 2
©too : Lavf56.15.102
length : 7334912
sampletype : mp4a
timescale : 48000
encoder : Lavf56.16.102
Stream #0:0: Video: h264 (libx264), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc56.19.100 libx264
Stream #0:1: Audio: aac, 48000 Hz, stereo
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Stream #0:1 -> #0:1 (copy)