
Recherche avancée
Autres articles (59)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (9247)
-
Decoding RIMM streaming file format
10 septembre 2011, par ThomasI want to decode the video (visual) frames within a Blackberry RIMM file. So far I have a parser, and some corresponding container documentation from RIM.
The video codec is H264 and is explicitly set on the device using one of the video.encodings properties. However, FFMPEG is not able to decode the frames and this is driving me nuts.
Edit 1 : The issues seems to be lack of SPS and PPS in the frames, and artificially inserting them have proven unsuccessful so far (all grey image). Blackberry 9700 sends
0x00 0x00 0x ?? 0x ?? 0xType
where Type is according to table 7-1 in the H264 spec (I and P frames). We believe the 0x ?? 0x ?? represent the size of the frame, however the size does not always correspond to the size found by the parser (the parser seems to be working correctly).
I have a windows decoder codec from blackberry, called mc_demux_mp2_ds.ax, and can play some MPEG-4 files captured the same way, but it is a binary for windows. And the H264 files will not play either way. I am aware of previous attempts. The capture url for javax.microedition.media.Manager is
encoding=video-3gpp_width=176_height=144_video_codec=H264_audio_codec=AAC
and I am writing to an output stream. Some example files here.
Edit 2 :Turns out that about 3-4 of the 12-15 available video capture modes are flat out failing and refusing to output data, even in the simplest of test applications. So any working solution should implement MPEG-4, H264 and H263 in both AMR and AAC, in so getting fallback alternatives when one sound codec and/or resolution fails. Reboots, hangs and what not litters the Blackberry video implementation and vary from firmware to firmware ; total suckage.
-
Decoding video packets received from TCPReplay using C++/Qt
12 septembre 2020, par LakshyaI have a PCAP file having the encoded video data. I am using TCPReplay to broadcast this PCAP data to my server.


In my server I have written a QT UDP socket program to receive these packets. I am able to receive these packets successfully in my server and stored the data in QByteArray.


Here I am using PCAP file and TCPReplay as a simulator. In reality these packets will be received from another process/server.


I would like to decode these packets. How can I decode these packets in C++/Qt ?


What data structure to use ? Do I need to use FFMPEG or gstreamer APIs ?


I am completely new to video decoding.


So please elaborate answer with some sample code.


Here is my hex values copied from Wireshark ;-


0000 00 0c 29 02 e2 f7 04 91 62 ca 68 51 08 00 45 00 ..).....b.hQ..E.
0010 05 ba 00 00 00 00 80 11 5f f4 0a 00 02 0f c0 a8 ........_.......
0020 08 88 c3 51 c3 51 05 a6 00 00 54 50 54 82 00 00 ...Q.Q....TPT...
0030 40 01 01 01 05 88 91 5a fb 3b 37 90 cd c7 11 35 @......Z. ;7....5
0040 56 03 20 20 02 0b e2 00 0a 80 08 00 09 80 08 00 V. ............
0050 08 64 64 64 06 00 00 00 00 00 00 00 00 00 00 00 .ddd............
0060 64 64 64 64 64 64 ff ff 64 64 64 64 64 64 ff ff dddddd..dddddd..
0070 64 64 64 64 64 64 f8 02 00 00 00 00 00 00 04 00 dddddd..........
0080 64 64 64 64 64 64 ff ff 64 64 64 64 64 64 ff ff dddddd..dddddd..
0090 64 64 64 64 64 64 ff ff 64 64 64 64 64 64 ff ff dddddd..dddddd..
00a0 64 64 64 64 64 64 ff ff 64 64 64 64 64 64 ff ff dddddd..dddddd..
00b0 64 64 64 64 64 64 ac e1 00 00 00 00 00 66 00 01 dddddd.......f..
00c0 5c 80 ff 80 80 ff 00 01 80 80 ff 80 80 ff 00 02 ...............
00d0 5c 33 00 00 00 00 00 01 64 64 64 64 64 64 03 eb \3......dddddd..
00e0 00 ff 00 00 ff 00 00 04 00 ff 00 00 00 00 00 01 ................
00f0 64 64 64 64 64 64 00 0b 00 00 00 00 00 66 00 01 dddddd.......f..
0100 5c 80 ff 80 80 b6 00 01 33 00 00 00 00 00 00 01 .......3.......
0110 64 64 64 64 64 64 00 0d 00 00 66 5c 80 ff 00 01 dddddd....f....
0120 80 80 b6 33 00 66 00 01 5c 80 ff 80 80 b6 00 01 ...3.f.........
0130 33 00 00 00 00 00 00 01 64 64 64 64 64 64 03 dc 3.......dddddd..
0140 00 ff 00 00 00 00 00 01 64 64 64 64 64 64 00 03 ........dddddd..
0150 00 ff 00 00 00 00 00 01 64 64 64 64 64 64 00 0b ........dddddd..
0160 00 00 00 00 00 66 00 01 5c 80 ff 80 80 b6 00 01 .....f.........
0170 33 00 00 00 00 00 00 01 64 64 64 64 64 64 00 0e 3.......dddddd..
0180 00 00 00 00 00 66 00 01 5c 80 ff 80 80 b6 00 01 .....f.........
0190 33 00 00 00 00 00 00 01 64 64 64 64 64 64 03 dc 3.......dddddd..
01a0 00 ff 00 00 00 00 00 01 64 64 64 64 64 64 00 03 ........dddddd..
01b0 00 ff 00 00 00 00 00 01 64 64 64 64 64 64 00 0b ........dddddd..
01c0 00 00 00 00 00 66 00 01 5c 80 ff 80 80 b6 00 01 .....f.........
01d0 33 00 00 00 00 00 00 01 64 64 64 64 64 64 00 01 3.......dddddd..
01e0 1d 48 db 80 80 ff 00 01 80 80 ff 80 80 ff 00 01 .H..............
01f0 80 80 ff 80 80 b6 00 01 33 00 3a 48 6e ff 00 01 ........3.:Hn...
0200 80 80 ff 6e 48 3a 00 01 00 00 3a 48 6e ff 00 01 ...nH :....:Hn...
0210 80 80 ff 6e 48 3a 00 01 00 00 66 5c 80 ff 00 01 ...nH :....f....
0220 80 80 ff 80 80 ff 00 01 80 80 ff 5c 33 00 00 01 ...........\3...
0230 00 00 66 5c 80 ff 00 01 80 80 ff 80 80 ff 00 02 ..f............
0240 80 80 b6 5c 5c ff 00 01 80 80 ff 80 80 ff 00 01 ...\...........
0250 80 80 b6 33 00 00 00 01 00 00 66 5c 80 ff 00 01 ...3......f....
0260 80 80 ff 80 80 ff 00 01 80 80 ff 80 5c 66 00 01 ............\f..
0270 00 00 00 00 33 b6 00 01 80 80 ff 80 80 ff 00 01 ....3...........
0280 80 80 ff 80 6e 90 00 01 1d 00 00 00 00 00 00 01 ....n...........
0290 64 64 64 64 64 64 03 d5 00 ff 00 00 00 00 00 01 dddddd..........
02a0 64 64 64 64 64 64 00 03 00 ff 00 00 00 00 00 01 dddddd..........
02b0 64 64 64 64 64 64 00 0b 00 00 00 00 00 66 00 01 dddddd.......f..
02c0 5c 80 ff 80 80 ff 00 01 80 80 ff 80 80 ff 00 01 ...............
02d0 80 80 ff 80 5c 66 00 01 64 64 64 64 64 64 00 02 ....\f..dddddd..
02e0 1d 48 db 80 80 ff 00 01 6e 48 3a 00 1d 90 00 01 .H......nH :.....
02f0 6e 80 ff 80 6e 90 00 01 1d 1d 90 6e 80 ff 00 01 n...n......n....
0300 80 80 b6 33 00 3a 00 01 48 6e ff 80 80 ff 00 01 ...3. :..Hn......
0310 6e 48 3a 00 00 66 00 01 5c 80 ff 80 80 db 00 01 nH :..f.........
0320 48 1d 66 5c 80 ff 00 01 80 80 ff 5c 33 00 00 01 H.f.......\3...
0330 00 00 66 5c 80 ff 00 01 80 80 b6 33 00 66 00 01 ..f.......3.f..
0340 5c 80 ff 80 80 b6 00 01 33 00 00 00 00 3a 00 01 .......3.... :..
0350 48 6e ff 80 80 db 00 01 48 1d 00 00 00 00 00 01 Hn......H.......
0360 33 5c ff 80 80 ff 00 01 6e 48 66 48 6e ff 00 01 3......nHfHn...
0370 80 80 db 48 1d 00 00 01 33 5c ff 80 80 ff 00 01 ...H....3......
0380 6e 48 3a 00 00 00 00 01 64 64 64 64 64 64 00 0b nH :.....dddddd..
0390 00 00 00 02 05 17 00 01 64 64 64 64 64 64 03 c9 ........dddddd..
03a0 00 ff 00 00 00 00 00 01 ff ff 00 ff ff 00 00 02 ................
03b0 ff ff 00 00 00 00 00 01 00 ff 00 00 00 00 00 01 ................
03c0 64 64 64 64 64 64 00 0b 00 00 00 00 00 66 00 01 dddddd.......f..
03d0 5c 80 ff 80 80 b6 00 01 33 00 00 00 00 00 00 01 .......3.......
03e0 64 64 64 64 64 64 00 01 00 00 3a 48 6e ff 00 01 dddddd....:Hn...
03f0 80 80 ff 80 80 ff 00 02 6e 48 3a 00 00 3a 00 01 ........nH :.. :..
0400 48 6e ff 80 80 ff 00 01 80 80 ff 80 80 ff 00 01 Hn..............
0410 80 5c 66 00 00 66 00 01 5c 80 ff 80 80 b6 00 01 .\f..f.........
0420 33 00 00 00 00 00 00 01 1d 48 db 80 80 ff 00 01 3........H......
0430 6e 48 90 5c 80 ff 00 01 80 80 b6 33 00 00 00 01 nH........3....
0440 00 00 66 5c 80 ff 00 01 80 80 b6 33 00 66 00 01 ..f.......3.f..
0450 5c 80 ff 80 80 b6 00 01 33 00 00 00 00 66 00 01 .......3....f..
0460 5c 80 ff 80 80 ff 00 01 80 80 ff 80 80 ff 00 02 ...............
0470 80 5c 66 33 5c ff 00 01 80 80 ff 80 80 ff 00 01 .\f3...........
0480 80 6e 90 1d 00 00 00 01 64 64 64 64 64 64 00 0c .n......dddddd..
0490 00 00 00 02 05 17 00 01 02 04 13 00 01 05 00 01 ................
04a0 64 64 64 64 64 64 03 c8 00 ff 00 00 00 00 00 01 dddddd..........
04b0 64 64 64 64 64 64 00 03 00 ff 00 00 00 00 00 01 dddddd..........
04c0 64 64 64 64 64 64 00 0b 00 00 00 00 00 66 00 01 dddddd.......f..
04d0 5c 80 ff 80 80 b6 00 01 33 00 00 00 00 00 00 01 .......3.......
04e0 00 00 00 00 00 3a 00 01 48 6e ff 80 80 ff 00 01 ..... :..Hn......
04f0 5c 33 00 00 00 00 00 01 1d 48 db 80 80 ff 00 01 \3.......H......
0500 6e 48 3a 00 00 00 00 01 1d 48 db 80 80 ff 00 01 nH :......H......
0510 80 80 ff 80 80 db 00 01 48 1d 00 00 00 66 00 01 ........H....f..
0520 5c 80 ff 80 80 b6 00 01 33 00 00 00 00 00 00 01 .......3.......
0530 1d 48 db 80 80 ff 00 01 6e 48 90 5c 80 ff 00 01 .H......nH.....
0540 80 80 b6 33 00 00 00 01 00 00 66 5c 80 ff 00 01 ...3......f....
0550 80 80 b6 33 00 66 00 01 5c 80 ff 80 80 b6 00 01 ...3.f.........
0560 33 00 00 00 1d 90 00 01 6e 80 ff 80 80 b6 00 01 3.......n.......
0570 33 00 00 00 00 00 00 01 64 64 64 64 64 64 00 02 3.......dddddd..
0580 00 00 00 00 33 b6 00 01 80 80 ff 80 80 ff 00 01 ....3...........
0590 80 5c 66 00 00 00 00 01 64 64 64 64 64 64 00 0b .\f.....dddddd..
05a0 00 00 00 02 05 17 00 01 e5 e6 e8 02 04 13 00 01 ................
05b0 64 64 64 64 64 64 03 c8 00 ff 00 00 00 00 00 01 dddddd..........
05c0 64 64 64 64 64 64 00 03 dddddd..









-
ffmpeg won't execute properly in google app engine standard nodejs
3 septembre 2019, par tommyc38I have tried for three full days to get GAE (standard - nodejs) to run a simple video transcoder from MOV to MP4 using ffmpeg. I have tried using ffluent-ffmpeg, kicking off a child process (e.g. spawn), and nothing works. As soon as it hits the call to the executable it always errors. I have confirmed ffmpeg is installed and even tried using ffmpeg-static. Moreover, I have it working on my local machine with no problems (using all of the aforementioned ways).
I have also tried logging the errors and nothing is really all that helpful. I can see its working through any installed package including ffmpeg (system package).
Below is the pseudo code...step three is where the problem occurs.
- Send file name to GAE endpoint
- Download the file from google cloud storage to a temp file
- Transcode using ffmpeg
- Upload temp file to google cloud storage
- Remove old google cloud storage file
- Remove temp file
The file I am using to test is 6MB...a 5 second video I took on my iPhone. Thank you in advance.
UPDATE : I successfully deployed the exact same code to Node Flex environment and everything works great. I wasn’t able to get any errors in the standard environment that directed me where to look but my guess is it has something to do with how it stores the file I pipe into FFMPEG on GAE Node Standard. The docs say its a virtual file system that uses RAM. I’d love to hear if anybody managed to get it working in the standard environment.