
Recherche avancée
Médias (1)
-
DJ Dolores - Oslodum 2004 (includes (cc) sample of “Oslodum” by Gilberto Gil)
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (36)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)
Sur d’autres sites (6678)
-
How can I save local video file to django FileField ?
11 janvier 2021, par Nina deRossiI create a local video file (.mp4) by adding a logo to an existing video with the following code :


logo_path = os.path.join(MEDIA_ROOT, 'logo.png')

 logo = (mp.ImageClip(logo_path)
 .set_duration(video.duration)
 .resize(height=50) # if you need to resize...
 .margin(right=8, top=8, opacity=0) # (optional) logo-border padding
 .set_pos(("right", "top")))

 video_path = os.path.join(MEDIA_ROOT, 'test7.mp4')
 audio_path = os.path.join(MEDIA_ROOT, 'temp-audio.m4a')

 final = mp.CompositeVideoClip([video, logo])
 final.write_videofile(video_path, codec='libx264',
 audio_codec='aac',
 temp_audiofile=audio_path,
 remove_temp=True
 )



I want to save the new video to a FileField of my model.
Here is the code :


f = open(video_path)
 flick.videoWithWatermark.save("videoWithWaterMark.mp4", File(f))



I keep getting the error :
'ascii' codec can't decode byte 0xd1 in position 42 : ordinal not in range(128)


How can I save the video to a FileField ?


-
Error inclunding in FFMPEG project on a Mac using clang
3 juillet 2018, par benwizI’m having trouble running the remuxing.c example code. I get the following error. I have confirmed that the files can be found in
/usr/local/include
. I am running macOS Sierra 10.12.6.$ cc -v playground/remuxing.c
Apple LLVM version 9.0.0 (clang-900.0.39.2)
Target: x86_64-apple-darwin16.7.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
"/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.12.0 -Wdeprecat
ed-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -mrelax-all -disable-free -disable-llvm-v
erifier -discard-value-names -main-file-name remuxing.c -mrelocation-model pic -pic-level 2 -mthread-mo
del posix -mdisable-fp-elim -fno-strict-return -masm-verbose -munwind-tables -target-cpu penryn -target
-linker-version 305 -v -dwarf-column-info -debugger-tuning=lldb -resource-dir /Library/Developer/Comman
dLineTools/usr/lib/clang/9.0.0 -fdebug-compilation-dir /Users/myuser/github/personal/synthesthesi
a -ferror-limit 19 -fmessage-length 103 -stack-protector 1 -fblocks -fobjc-runtime=macosx-10.12.0 -fenc
ode-extended-block-signature -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -o /var/
folders/8s/2xc3v8dd7zz2c2trymzybvd534bnhg/T/remuxing-819223.o -x c playground/remuxing.c
clang -cc1 version 9.0.0 (clang-900.0.39.2) default target x86_64-apple-darwin16.7.0
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/include
/Library/Developer/CommandLineTools/usr/include
/usr/include
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)
End of search list.
"/Library/Developer/CommandLineTools/usr/bin/ld" -demangle -lto_library /Library/Developer/CommandLineTools/usr/lib/libLTO.dylib -no_deduplicate -dynamic -arch x86_64 -macosx_version_min 10.12.0 -o a.out /var/folders/8s/2xc3v8dd7zz2c2trymzybvd534bnhg/T/remuxing-819223.o -lSystem /Library/Developer/CommandLineTools/usr/lib/clang/9.0.0/lib/darwin/libclang_rt.osx.a
Undefined symbols for architecture x86_64:
"_av_dump_format", referenced from:
_main in remuxing-819223.o
"_av_freep", referenced from:
_main in remuxing-819223.o
"_av_interleaved_write_frame", referenced from:
_main in remuxing-819223.o
"_av_mallocz_array", referenced from:
_main in remuxing-819223.o
"_av_packet_unref", referenced from:
_main in remuxing-819223.o
"_av_read_frame", referenced from:
_main in remuxing-819223.o
"_av_rescale_q", referenced from:
_main in remuxing-819223.o
"_av_rescale_q_rnd", referenced from:
_main in remuxing-819223.o
"_av_strerror", referenced from:
_av_make_error_string in remuxing-819223.o
"_av_write_trailer", referenced from:
_main in remuxing-819223.o
"_avcodec_parameters_copy", referenced from:
_main in remuxing-819223.o
"_avformat_alloc_output_context2", referenced from:
_main in remuxing-819223.o
"_avformat_close_input", referenced from:
_main in remuxing-819223.o
"_avformat_find_stream_info", referenced from:
_main in remuxing-819223.o
"_avformat_free_context", referenced from:
_main in remuxing-819223.o
"_avformat_new_stream", referenced from:
_main in remuxing-819223.o
"_avformat_open_input", referenced from:
_main in remuxing-819223.o
"_avformat_write_header", referenced from:
_main in remuxing-819223.o
"_avio_closep", referenced from:
_main in remuxing-819223.o
"_avio_open", referenced from:
_main in remuxing-819223.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation) -
Cannot find a proper format for codec ‘h264’ (id 28), pixel format ‘none’
20 avril 2022, par 이중범I downloaded jocover’s git hub ffmpeg and compiled it to stream the video to the web on the Jetsonano board
However, i tried


ffmpeg -c:vh264_nvmpi -i /dev/video -f null -





Cannot find a proper format for codec ‘h264’ (id 28), pixel format
‘none’ (id-1)


Assertion *codec_id != AV_CODEC_ID_NONE failed at
src/libavdevice/v4l2.c:811




I got this error


and I tried
./ffmpeg -encoders |grep 264


As a result of this console, the output is as follows :




v… h264_nvmpi nvmpi H.264 encoder wrapper (codec h264)






v… h264_v4l2m2m V4L2 mem2mem H.264 encoder wrapper (codec h264)






v… h264_vaapi H.264/AVC (VAAPI) (codec h264)




The camera specs are like this maybe Sony IMX219, a model called Raspberry Pi Camera Module V2




ioctl : VIDIOC_ENUM_FMT


Index : 0


Type : Video Capture


Pixel Format : ‘RG10’


Name : 10-bit Bayer RGRG/GBGB




I’d really appreciate your help


thx