
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
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
Autres articles (59)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
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. -
Submit bugs and patches
13 avril 2011Unfortunately a software is never perfect.
If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
You may also (...)
Sur d’autres sites (3853)
-
Begin stream simple mp4 with ffserver
19 février 2015, par Ara DeonasI want to stream a mp4 and for this I read about ffserver.
So I search and read ffserver documentations but still cant stream a simple file.
For this I done these :
1-A win 8 and last VLC installed.
2-A Ubuntu 13 with last ffmpeg package.
3-A ffserver.conf file saved to /etc/ and copied from http://ffmpeg.org/sample.html (I just copy text in a new file).
4-Run this command :ffserver -f /etc/ffconfig.conf
and this is result :avserver version 0.8.13-6:0.8.13-0ubuntu0.13.10.1, Copyright (c) 2000-2014 the Libav developers
built on Jul 15 2014 13:53:49 with gcc 4.8.1
Tue Feb 10 07:29:07 2015 AVserver started.5-Check http://localhost:8090/stat.html and server status is OK.It shows me 4 stream : test1.mpg,test.asf,stat.html,index.html.
6-Run this command :ffmpeg -i test.mp4 http://localhost:8090/feed1.ffm
and this is result :ffmpeg version 0.8.13-6:0.8.13-0ubuntu0.13.10.1, Copyright (c) 2000-2014 the Libav developers
built on Jul 15 2014 13:53:49 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'big.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2015-02-05 20:35:09
Duration: 00:21:36.12, start: 0.000000, bitrate: 788 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 720x404, 677 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
Metadata:
creation_time : 2015-02-05 17:05:45
Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 106 kb/s
Metadata:
creation_time : 2015-02-05 20:35:12
Incompatible sample format '(null)' for codec 'mp2', auto-selecting format 's16'
Last message repeated 1 times
Incompatible sample format '(null)' for codec 'libmp3lame', auto-selecting format 's16'
[buffer @ 0x900f0c0] w:720 h:404 pixfmt:yuv420p
[scale @ 0x8ea5080] w:720 h:404 fmt:yuv420p -> w:160 h:128 fmt:yuv420p flags:0x4
[buffer @ 0x8ea34a0] Invalid pixel format string '-1'
Error opening filters!7-I look at error and I can not find why this happen and where I go wrong !
Until now I read many sample and tutorials about ffserver but most of them is about live streaming but I just want to stream some mp4 files.
EDIT :
I installed real ffmpeg like this link : http://askubuntu.com/questions/373322/how-to-replace-avconv-with-the-real-ffmpeg-and-have-it-work-right but same error (Just change ppa to
ppa:mc3man/trusty-media
for last release) :pp@ubuntu:~$ ffmpeg -i big.mp4 http://localhost:8090/feed1.ffm
ffmpeg version 0.8.13-6:0.8.13-0ubuntu0.13.10.1, Copyright (c) 2000-2014 the Libav developers
built on Jul 15 2014 13:53:49 with gcc 4.8.1
*** THIS PROGRAM IS DEPRECATED ***
This program is only provided for compatibility and will be removed in a future release. Please use avconv instead.
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'big.mp4':
Metadata:
major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2015-02-05 20:35:09
Duration: 00:21:36.12, start: 0.000000, bitrate: 788 kb/s
Stream #0.0(und): Video: h264 (High), yuv420p, 720x404, 677 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
Metadata:
creation_time : 2015-02-05 17:05:45
Stream #0.1(und): Audio: aac, 48000 Hz, stereo, s16, 106 kb/s
Metadata:
creation_time : 2015-02-05 20:35:12
Incompatible sample format '(null)' for codec 'mp2', auto-selecting format 's16'
Last message repeated 1 times
Incompatible sample format '(null)' for codec 'libmp3lame', auto-selecting format 's16'
[buffer @ 0xa04e0c0] w:720 h:404 pixfmt:yuv420p
[scale @ 0x9ee4080] w:720 h:404 fmt:yuv420p -> w:160 h:128 fmt:yuv420p flags:0x4
[buffer @ 0x9ee24a0] Invalid pixel format string '-1'
Error opening filters!Can any one give me exact commands that I should run for test ?
(I know this is like beginners problem but I read doc and test everything as I can but still no luck) -
How to Check Website Traffic As Accurately As Possible
18 août 2023, par Erin — Analytics Tips -
Using Pipes for Stream Data in FFMPEG
17 juillet 2024, par Aryan KumarI am trying to input stream and decrease the bitrate of the video without saving it anywhere so i am hoping to pass it as a stream and get the output as a stream and send it to digital ocean spaces to get saved.
But I tried lots of things but my output Stream is getting empty. and the file is empty.


public async Task VideoOperationAsync(Stream inputStream)
 {
 try
 {
 // Ensure the input stream is at the beginning
 inputStream.Position = 0;

 // Create a memory stream to hold the output data
 using (var outputStream = new MemoryStream())
 {
 var arguments = $"-i pipe:0 -f mp4 pipe:1";

 await Cli.Wrap("ffmpeg")
 .WithArguments(arguments)
 .WithStandardInputPipe(PipeSource.FromStream(inputStream))
 .WithStandardOutputPipe(PipeTarget.ToStream(outputStream))
 .WithValidation(CommandResultValidation.None)
 .ExecuteAsync();

 // Ensure the output stream is at the beginning before reading
 outputStream.Position = 0;

 using (var fileStream = new FileStream(@"D:\Gremlin-data\VideoResized\output_cropped.mp4", FileMode.Create, FileAccess.Write))
 {
 await outputStream.CopyToAsync(fileStream);
 }
 }
 }
 catch (Exception ex)
 {
 Console.WriteLine($"An error occurred: {ex.Message}");
 throw; // Re-throw the exception if needed
 }
 }



I also earlier tried this :


public async Task VideoOperationAsync(Stream inputStream)

try

// Ensure the input stream is at the beginning
inputStream.Position = 0 ;


var ffmpegProcess = new Process
 {
 StartInfo = new ProcessStartInfo
 {
 FileName = "ffmpeg", // Ensure ffmpeg is in your PATH or provide the full path
 Arguments = $"-i pipe:0 -b:v 2000k -f mp4 pipe:1", // Correct bitrate format
 RedirectStandardInput = true,
 RedirectStandardOutput = true,
 RedirectStandardError = true, // Capture standard error
 UseShellExecute = false,
 CreateNoWindow = true
 }
 };

 ffmpegProcess.Start();

 // Write input stream to ffmpeg's standard input asynchronously
 Task writingTask = Task.Run(async () =>
 {
 await inputStream.CopyToAsync(ffmpegProcess.StandardInput.BaseStream);
 ffmpegProcess.StandardInput.BaseStream.Close();
 });

 // Read ffmpeg's standard output to a memory stream asynchronously
 using (MemoryStream ms = new MemoryStream())
 {
 Task readingTask = Task.Run(async () =>
 {
 await ffmpegProcess.StandardOutput.BaseStream.CopyToAsync(ms);
 });