
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 (106)
-
Soumettre bugs et patchs
10 avril 2011Un logiciel n’est malheureusement jamais parfait...
Si vous pensez avoir mis la main sur un bug, reportez le dans notre système de tickets en prenant bien soin de nous remonter certaines informations pertinentes : le type de navigateur et sa version exacte avec lequel vous avez l’anomalie ; une explication la plus précise possible du problème rencontré ; si possibles les étapes pour reproduire le problème ; un lien vers le site / la page en question ;
Si vous pensez avoir résolu vous même le bug (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community. -
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) (...)
Sur d’autres sites (8005)
-
Using ffmpeg To Convert wav file to g729 file
30 novembre 2023, par UserProgI am using
ffmpeg
in my Windows laptop to convert.wav
to.g729
format. I have spent some times on the documentation, tutorials, and some threads with no success till now.


Below is my
ffmpeg
version details :


ffmpeg version N-89674-g57d0c24132 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.2.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-amf --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth --enable-libmfx
libavutil 56. 7.100 / 56. 7.100
libavcodec 58. 9.100 / 58. 9.100
libavformat 58. 3.100 / 58. 3.100
libavdevice 58. 0.100 / 58. 0.100
libavfilter 7. 8.100 / 7. 8.100
libswscale 5. 0.101 / 5. 0.101
libswresample 3. 0.101 / 3. 0.101
libpostproc 55. 0.100 / 55. 0.100



I have tried
ffmpeg -i testA.wav -c:a libavformat -f g.729 output.g729
and ended up with error saying[NULL @ 0000022aa639dd80] Requested output format 'g.729' is not a suitable output format
output.g729: Invalid argument
.


I did try some different format names with no success still.



Appreciate some guidance on this. Thanks.


-
UWP run ffmpeg process to capture
16 février 2018, par InspiracvionVI’m developing a UWP app with C# and I need to start FFmpeg in a process.
I use this
ffmpeg
command which works good in CMD :D :\ffmpeg.exe -f dshow -crossbar_video_input_pin_number 1 -i
video="AVerMedia BDA Analog Capture" -vcodec rawvideo -pix_fmt yuv420p
-s 864x768 -r 10 "D :\capture\output.yuv" -loglevel 16But when I start the process with the same command and arguments in my UWP app I get this error from ffmpeg :
[dshow @ 000001bd43907e80] Unable to BindToObject for AVerMedia BDA
Analog Capture [dshow @ 000001bd43907e80] Could not find video device
with name [AVerMedia BDA Analog Capture] among source devices of type
video. video=AVerMedia BDA Analog Capture : I/O errorThis is my code :
string filename = @"D:\ffmpeg.exe";
string arg = " -f dshow -crossbar_video_input_pin_number [VIDEOPIN] -i video=\"AVerMedia BDA Analog Capture\" -vcodec rawvideo -pix_fmt [PIXELCONF] -s [SIZE] -r [FPS] \"[FOLDER]\\[VIDEONAME]\" -loglevel 16";
arg = path.Text;
if (!File.Exists(filename))
System.Diagnostics.Debug.WriteLine("Not exist ffmpeg");
arg = arg.Replace("[VIDEOPIN]", "1");
arg = arg.Replace("[VIDEODEVICE]", "AVerMedia BDA Analog Capture");
arg = arg.Replace("[PIXELCONF]", "yuv420p");
arg = arg.Replace("[SIZE]", "864x768");
arg = arg.Replace("[FPS]", "10");
arg = arg.Replace("[FOLDER]", "D:\\capture");
arg = arg.Replace("[VIDEONAME]", "output.yuv");
ProcessStartInfo pi = new ProcessStartInfo(filename, arg);
System.Diagnostics.Debug.WriteLine(pi.FileName + " " + pi.Arguments.ToString());
pi.RedirectStandardInput = true;
pi.RedirectStandardOutput = true;
pi.RedirectStandardError = true;
pi.UseShellExecute = false;
pi.CreateNoWindow = true;
process = new Process();
process.StartInfo = pi;
process.EnableRaisingEvents = true;
process.OutputDataReceived += new DataReceivedEventHandler(MyProcOutputHandler);
process.ErrorDataReceived += new DataReceivedEventHandler(MyProcErrorHandler);
process.Exited += new EventHandler(ExitedProcess);
process.Start();
process.BeginErrorReadLine();
process.BeginOutputReadLine();EDIT : This is what i have with :
ffmpeg -list_devices true -f dshow -i dummy
ffmpeg version N-90054-g474194a8d0 Copyright (c) 2000-2018 the FFmpeg
developers built with gcc 7.2.0 (GCC) configuration : —enable-gpl
—enable-version3 —enable-sdl2 —enable-bzlib —enable-fontconfig —enable-gnutls —enable-iconv —enable-libass —enable-libbluray —enable-libfreetype —enable-libmp3lame —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libopenjpeg —enable-libopus —enable-libshine —enable-libsnappy —enable-libsoxr —enable-libtheora —enable-libtwolame —enable-libvpx —enable-libwavpack —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxml2 —enable-libzimg —enable-lzma —enable-zlib —enable-gmp —enable-libvidstab —enable-libvorbis —enable-libvo-amrwbenc —enable-libmysofa —enable-libspeex —enable-libxvid —enable-libmfx —enable-amf —enable-cuda —enable-cuvid —enable-d3d11va —enable-nvenc —enable-dxva2 —enable-avisynth libavutil 56. 7.101 / 56. 7.101 libavcodec 58. 11.101 / 58. 11.101 libavformat 58. 9.100 / 58. 9.100 libavdevice 58. 1.100 / 58. 1.100 libavfilter 7. 12.100 / 7. 12.100 libswscale 5. 0.101 / 5. 0.101 libswresample 3. 0.101 / 3. 0.101 libpostproc 55. 0.100 / 55. 0.100 [dshow @ 0000029065b07940] DirectShow video devices (some may be both video and audio devices) [dshow @ 0000029065b07940]
"AVerMedia BDA Analog Capture" [dshow @ 0000029065b07940] Alternative
name
"@device_pnp_~?\pci#ven_1a0a&dev_6202&subsys_620f1461&rev_01#4&3632f028&0&00e6#65e8773d-8f56-11d0-a3b9-00a0c9223196ca465100-deb0-4d59-818f-8c477184adf6"
[dshow @ 0000029065b07940] "AVerMedia BDA Analog Capture Secondary"
[dshow @ 0000029065b07940] Alternative name
"@device_pnp_~?\pci#ven_1a0a&dev_6202&subsys_620f1461&rev_01#4&3632f028&0&00e6#65e8773d-8f56-11d0-a3b9-00a0c9223196ede957b0-eaa5-4bf4-acf3-6e10cb4836c3"
[dshow @ 0000029065b07940] DirectShow audio devices [dshow @
0000029065b07940] Could not enumerate audio only devices (or none
found). dummy : Immediate exit requested -
FFMPEG Concat DNxHD-Files : wrong duration of output-file
4 mai 2020, par ThomasI have AVID-DNxHD-files created by Ikegami EditCamHD and FFMPEG-coded DNxHD-Files.



Ikegami-Files are 1080/25psF at 185MBit/sec (10Bit). FFMPEG-Files are crated with this command :



ffmpeg -loop 1 -i c:\pics\VideoNichtVorhanden.jpg -s 1920x1080 -r 25 -t 92.8 -c:v dnxhd -b:v 185M -pix_fmt yuv422p10le d:\MissingFiles\missing_0001.mov




ffprobe from Ikegami-file :



{
 "streams": [
 {
 "index": 0,
 "codec_name": "dnxhd",
 "codec_long_name": "VC3\/DNxHD",
 "profile": "DNXHD",
 "codec_type": "video",
 "codec_time_base": "1\/25",
 "codec_tag_string": "[0][0][0][0]",
 "codec_tag": "0x0000",
 "width": 1920,
 "height": 1080,
 "coded_width": 1920,
 "coded_height": 1088,
 "has_b_frames": 0,
 "sample_aspect_ratio": "1:1",
 "display_aspect_ratio": "16:9",
 "pix_fmt": "yuv422p10le",
 "level": -99,
 "color_space": "bt709",
 "field_order": "tt",
 "refs": 1,
 "r_frame_rate": "25\/1",
 "avg_frame_rate": "25\/1",
 "time_base": "1\/25",
 "start_pts": 0,
 "start_time": "0.000000",
 "duration_ts": 827,
 "duration": "33.080000",
 "bits_per_raw_sample": "10",
 "disposition": {
 "default": 0,
 "dub": 0,
 "original": 0,
 "comment": 0,
 "lyrics": 0,
 "karaoke": 0,
 "forced": 0,
 "hearing_impaired": 0,
 "visual_impaired": 0,
 "clean_effects": 0,
 "attached_pic": 0,
 "timed_thumbnails": 0
 },
 "tags": {
 "file_package_umid": "0x060A2B340101010101010F0013000000D6F21F070302074C060E2B347F7F2A80",
 "file_package_name": "File Package",
 "track_name": "V1"
 }
 },
 {
 "index": 1,
 "codec_type": "data",
 "codec_tag_string": "[0][0][0][0]",
 "codec_tag": "0x0000",
 "r_frame_rate": "0\/0",
 "avg_frame_rate": "0\/0",
 "time_base": "1\/90000",
 "start_pts": 0,
 "start_time": "0.000000",
 "duration_ts": 2977200,
 "duration": "33.080000",
 "disposition": {
 "default": 0,
 "dub": 0,
 "original": 0,
 "comment": 0,
 "lyrics": 0,
 "karaoke": 0,
 "forced": 0,
 "hearing_impaired": 0,
 "visual_impaired": 0,
 "clean_effects": 0,
 "attached_pic": 0,
 "timed_thumbnails": 0
 },
 "tags": {
 "file_package_umid": "0x060A2B34010101010101080013000000D6F21F070276074C060E2B347F7F2A80",
 "track_name": "A1",
 "data_type": "audio"
 }
 },
 {
 "index": 2,
 "codec_type": "data",
 "codec_tag_string": "[0][0][0][0]",
 "codec_tag": "0x0000",
 "r_frame_rate": "0\/0",
 "avg_frame_rate": "0\/0",
 "time_base": "1\/90000",
 "start_pts": 0,
 "start_time": "0.000000",
 "duration_ts": 2977200,
 "duration": "33.080000",
 "disposition": {
 "default": 0,
 "dub": 0,
 "original": 0,
 "comment": 0,
 "lyrics": 0,
 "karaoke": 0,
 "forced": 0,
 "hearing_impaired": 0,
 "visual_impaired": 0,
 "clean_effects": 0,
 "attached_pic": 0,
 "timed_thumbnails": 0
 },
 "tags": {
 "file_package_umid": "0x060A2B34010101010101080013000000D6F21F07028A074C060E2B347F7F2A80",
 "track_name": "A2",
 "data_type": "audio"
 }
 }
 ],
 "format": {
 "filename": "G:\\MXF-sortiert\\Ikegami\\2018-04-10\\V\\MULTI_NN17GN0V\\NN17GN0V.0001.MXF",
 "nb_streams": 3,
 "nb_programs": 0,
 "format_name": "mxf",
 "format_long_name": "MXF (Material eXchange Format)",
 "start_time": "0.000000",
 "duration": "33.080000",
 "size": "761004264",
 "bit_rate": "184039725",
 "probe_score": 100,
 "tags": {
 "operational_pattern_ul": "060e2b34.04010102.0d010201.10030000",
 "uid": "caf0bf8e-ff07-b34d-9616-bc3e7bd32d54",
 "generation_uid": "fb90769f-a46d-d546-983d-dda63339a8fd",
 "company_name": "Ikegami",
 "product_name": "HDN-X10",
 "product_version": "1.30d",
 "product_uid": "3e2189d7-294b-4612-8243-1b1990e14055",
 "modification_date": "2018-04-10T05:57:59.788000Z",
 "material_package_umid": "0x060A2B340101010101010F0013000000D6F21F070262074C060E2B347F7F2A80",
 "material_package_name": "01047",
 "timecode": "01:23:17:03"
 }
 }
}




ffprobe from ffmpeg-coded-file :



{
 "streams": [
 {
 "index": 0,
 "codec_name": "dnxhd",
 "codec_long_name": "VC3\/DNxHD",
 "profile": "DNXHD",
 "codec_type": "video",
 "codec_time_base": "1\/25",
 "codec_tag_string": "AVdn",
 "codec_tag": "0x6e645641",
 "width": 1920,
 "height": 1080,
 "coded_width": 1920,
 "coded_height": 1088,
 "has_b_frames": 0,
 "sample_aspect_ratio": "1:1",
 "display_aspect_ratio": "16:9",
 "pix_fmt": "yuv422p10le",
 "level": -99,
 "color_range": "tv",
 "color_space": "bt709",
 "refs": 1,
 "r_frame_rate": "25\/1",
 "avg_frame_rate": "25\/1",
 "time_base": "1\/12800",
 "start_pts": 0,
 "start_time": "0.000000",
 "duration_ts": 1187840,
 "duration": "92.800000",
 "bit_rate": "183500800",
 "bits_per_raw_sample": "10",
 "nb_frames": "2320",
 "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,
 "timed_thumbnails": 0
 },
 "tags": {
 "handler_name": "VideoHandler",
 "encoder": "Lavc58.54.100 dnxhd"
 }
 }
 ],
 "format": {
 "filename": "G:\\MXF-sortiert\\Ikegami\\2018-04-10\\V\\MULTI_NN1EUS0V\\MXF\\NN1EUS0V.0001.mov",
 "nb_streams": 1,
 "nb_programs": 0,
 "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
 "format_long_name": "QuickTime \/ MOV",
 "start_time": "0.000000",
 "duration": "92.800000",
 "size": "2128619444",
 "bit_rate": "183501676",
 "probe_score": 100,
 "tags": {
 "major_brand": "qt ",
 "minor_version": "512",
 "compatible_brands": "qt ",
 "encoder": "Lavf58.29.100"
 }
 }
}




When I concat for example one .mxf with one .mov and another .mxf at the end, the duration is frong (about 26 Miuntes when it should be some 4 Minutes or so) and VLC-Player gives a Framerate of a very slow framerate and the video does not play the ffmpeg coded part.



ffprobe from concat-output :



{
 "streams": [
 {
 "index": 0,
 "codec_name": "dnxhd",
 "codec_long_name": "VC3\/DNxHD",
 "profile": "DNXHD",
 "codec_type": "video",
 "codec_time_base": "20268137\/1351040",
 "codec_tag_string": "AVdn",
 "codec_tag": "0x6e645641",
 "width": 1920,
 "height": 1080,
 "coded_width": 1920,
 "coded_height": 1088,
 "has_b_frames": 0,
 "sample_aspect_ratio": "1:1",
 "display_aspect_ratio": "16:9",
 "pix_fmt": "yuv422p10le",
 "level": -99,
 "color_range": "tv",
 "color_space": "bt709",
 "refs": 1,
 "r_frame_rate": "25\/1",
 "avg_frame_rate": "1351040\/20268137",
 "time_base": "1\/12800",
 "start_pts": 0,
 "start_time": "0.000000",
 "duration_ts": 1216088220,
 "duration": "95006.892188",
 "bit_rate": "489252",
 "bits_per_raw_sample": "10",
 "nb_frames": "6333",
 "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,
 "timed_thumbnails": 0
 },
 "tags": {
 "handler_name": "VideoHandler"
 }
 }
 ],
 "format": {
 "filename": "G:\\MXF-sortiert\\Ikegami\\2018-04-10\\V\\NN1EUS0V_MIES.mov",
 "nb_streams": 1,
 "nb_programs": 0,
 "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
 "format_long_name": "QuickTime \/ MOV",
 "start_time": "0.000000",
 "duration": "95006.893000",
 "size": "5810367616",
 "bit_rate": "489258",
 "probe_score": 100,
 "tags": {
 "major_brand": "qt ",
 "minor_version": "512",
 "compatible_brands": "qt ",
 "encoder": "Lavf58.29.100"
 }
 }
}




The Ikegami and ffmpeg-coded files for themselves are playing great and do show the correct fps in VLC.



I can see in the probe-logs the



"codec_time_base": "20268137\/1351040"




and



"avg_frame_rate": "1351040\/20268137"




What is going wrong here ? How can I improve the coding-part and / or the concat to get a good result ? Is it only possible with re-encode instead of c:v copy ?



Any help welcome, thanks in advance,



tom