
Recherche avancée
Médias (29)
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#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
Autres articles (89)
-
Selection of projects using MediaSPIP
2 mai 2011, parThe examples below are representative elements of MediaSPIP specific uses for specific projects.
MediaSPIP farm @ Infini
The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...) -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 is the first MediaSPIP stable release.
Its official release date is June 21, 2013 and is announced here.
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (6792)
-
When I run ffmpeg Im getting "output file #0 does not contain any stream" [duplicate]
29 novembre 2020, par 0 dayIm trying to feed live stream from ffmpeg to ffserver but Im getting this error


libavutil 55. 78.100 / 55. 78.100
 libavcodec 57.107.100 / 57.107.100
 libavformat 57. 83.100 / 57. 83.100
 libavdevice 57. 10.100 / 57. 10.100
 libavfilter 6.107.100 / 6.107.100
 libavresample 3. 7. 0 / 3. 7. 0
 libswscale 4. 8.100 / 4. 8.100
 libswresample 2. 9.100 / 2. 9.100
 libpostproc 54. 7.100 / 54. 7.100
Input #0, x11grab, from ':0.0':
 Duration: N/A, start: 1606657336.654899, bitrate: N/A
 Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1680x1050, 25 fps, 24.92 tbr, 1000k tbn, 1000k tbc
Output #0, alsa, to 'http://localhost:8090/feed.ffm':
Output file #0 does not contain any stream



here is my cli


ffmpeg -probesize 1000M -framerate 25 -video_size 1680x1050 -f x11grab -i :0.0 -f alsa -c:a aac -vf format=yuv420p http://localhost:8090/feed1.ffm



I'v looked at this and this but it did not helped


How can I fix


Output file #0 does not contain any stream


EDIT :


ffmpeg -probesize 1000M -framerate 25 -video_size 1680x1050 -f x11grab -i :0.0 -f alsa -i default -c:a aac -vf format=yuv420p http://localhost:8090/feed1.ffm
ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers

Input #0, x11grab, from ':0.0':
 Duration: N/A, start: 1606679309.355016, bitrate: N/A
 Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1680x1050, 25 fps, 24.92 tbr, 1000k tbn, 1000k tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, alsa, from 'default':
 Duration: N/A, start: 1606679310.190079, bitrate: 1536 kb/s
 Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
 Stream #1:0 -> #0:0 (pcm_s16le (native) -> mp2 (native))
 Stream #0:0 -> #0:1 (rawvideo (native) -> mpeg1video (native))
 Stream #0:0 -> #0:2 (rawvideo (native) -> vp8 (libvpx))
Press [q] to stop, [?] for help
[x11grab @ 0x561e2391da00] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[mpeg1video @ 0x561e23968400] bitrate tolerance 21333 too small for bitrate 64000, overriding
[mpeg1video @ 0x561e23968400] MPEG-1/2 does not support 3/1 fps
Error initializing output stream 0:1 -- Error while opening encoder for output stream #0:1 - maybe incorrect parameters such as bit_rate, rate, width or height
[alsa @ 0x561e23926c40] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
Conversion failed!



-
audio/mp4 ; codecs="mp4a.40.2" not playing in Chrome and Firefox
19 octobre 2020, par Stefan FalkIt seems I want to convert audios, which I want to stream on my website, to
audio/mp4; codecs="mp4a.40.2"
.

Using
ffmpeg-cli-wrapper
, I am converting my uploaded audio files with this command here :

ffmpeg -i /tmp/input.any -acodec aac -b:a 256000 /tmp/output.aac



On the client I am creating a SourceBuffer like this :


this.sourceBuffer = this.mediaSource.addSourceBuffer('audio/mp4; codecs="mp4a.40.2"');



The errors are :


Chrome :


NotSupportedError: Failed to load because no supported source was found.



Firefox :


NotSupportedError: The media resource indicated by the src attribute or assigned media provider object was not suitable.



Here comes the fun part :


If I create the SourceBuffer using
audio/aac
as mime-type :

this.sourceBuffer = this.mediaSource.addSourceBuffer('audio/aac');



the audio gets played correctly on Chrome but Firefox says :


MediaSource.addSourceBuffer: Type not supported in MediaSource




Update


After changing the command to


ffmpeg -i /tmp/input.any -acodec aac -b:a 256000 /tmp/output.mp4
 ^^^ 



Chrome/Firefox do not give an error when using
audio/mp4; codecs="mp4a.40.2"
, but the audio is not being played.


See


- 

- https://stackoverflow.com/a/64432478/826983




-
"Could not demultiplex stream" in loading Video recorded by Opencv's VideoWriter
21 novembre 2020, par batumanMy program is



int main(){
 cout << "Start the process" << endl;
 cv::VideoCapture vcap("rtsp://root:pass@192.168.0.90/axis-media/media.amp?camera=1");
 cout << "Camera connection done!" << endl;
 cv::Mat image, small;
 //Output video
 cv::Size S = cv::Size((int) vcap.get(CV_CAP_PROP_FRAME_WIDTH), (int) vcap.get(CV_CAP_PROP_FRAME_HEIGHT));
 int ex = static_cast<int>(vcap.get(CV_CAP_PROP_FOURCC));
 int fps = vcap.get(CV_CAP_PROP_FPS);
 cout << "fps " << fps << " ex " << ex << endl;
 cv::VideoWriter outputVideo;
 outputVideo.open("TEST.avi", ex/*CV_FOURCC('X', '2', '6', '4')*/, vcap.get(CV_CAP_PROP_FPS), S, true);
 if(!outputVideo.isOpened()){
 cout << "Could not open the output video for write" << endl;
 return -1;
 }

 for(;;){
 if(!vcap.read(image)){
 std::cout << "No frame" << std::endl;
 cv::waitKey(0);
 }

 cv::resize(image, small, image.size()/2, 0, 0 , cv::INTER_LINEAR);
 cv::imshow("Display", small);
 cv::waitKey(1);
 outputVideo.write(small);
 if(getkey() == '\n')
 break;
 }
 cout << "Camera release" << endl;
 outputVideo.release();
 vcap.release();
 image.release();
 small.release();
 return 0;
}
</int>



int ex = static_cast<int>(vcap.get(CV_CAP_PROP_FOURCC));</int>
ex is 0 here.


I can record the TEST.avi, but can't be read by cv::VideoCapture vcap("TEST.avi") ; or VLC player or Videos in Ubuntu.
The error is
"Could not demultiplex stream"
.


If I changed to



outputVideo.open("TEST.avi", CV_FOURCC('X', '2', '6', '4'), vcap.get(CV_CAP_PROP_FPS), S, true);
outputVideo.open("TEST.avi", CV_FOURCC('P','I','M','1'), vcap.get(CV_CAP_PROP_FPS), S, true);
outputVideo.open("TEST.avi", CV_FOURCC('M', 'P', '4', '2'), vcap.get(CV_CAP_PROP_FPS), S, true);
etc.




all have same problem.



If I set



outputVideo.open("TEST.avi", CV_FOURCC('i', 'Y', 'U', 'V'), vcap.get(CV_CAP_PROP_FPS), S, true);




I have error as
Opencv: FFMPEG iYUV is not supported with codec id 14



For



outputVideo.open("TEST.avi", CV_FOURCC('M', 'J', 'P', 'G'), vcap.get(CV_CAP_PROP_FPS), S, true);


OpenCV Error: Assertion failed (img.cols == width && img.rows == height && chann
els == 3) in write, file /home/Softwares/opencv/opencv/modules/videoio/src/
cap_mjpeg_encoder.cpp, line 829
terminate called after throwing an instance of 'cv::Exception'
 what(): /home/Softwares/opencv/opencv/modules/videoio/src/cap_mjpeg_enco
der.cpp:829: error: (-215) img.cols == width && img.rows == height && channels =
= 3 in function write




What could be wrong ? Is that my FFMPEG has problem ?