
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (56)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page. -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (7773)
-
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 ?