Recherche avancée

Médias (91)

Autres articles (91)

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP 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.

  • Configuration spécifique pour PHP5

    4 février 2011, par

    PHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
    Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
    Modules spécifiques
    Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

Sur d’autres sites (6429)

  • ffmpeg simple re-mux short video : Invalid data found when processing input

    19 mai 2021, par Nic

    I try to remux (surveillance cam) raw AVC files (file header begins with "STL Stream Format v1.0") to get playable MP4 files.

    


    The command I used does work for the longer file but not for the short one :

    


    .\ffmpeg.exe -framerate 25 -i video.ssf -c copy video.mp4


    


    Good result for long video :

    


    Trailing option(s) found in the command: may be ignored.
Input #0, h264, from 'file.ssf':
  Duration: N/A, bitrate: N/A
  Stream #0:0: Video: h264 (Baseline), yuv420p(progressive), 704x576, 25 fps, 25 tbr, 1200k tbn, 50 tbc
Output #0, mp4, to 'file.mp4':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(progressive), 704x576, q=2-31, 25 fps, 25 tbr, 1200k tbn, 1200k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
[mp4 @ 0000020c1a048240] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly
[NULL @ 0000020c1997f640] sps_id 32 out of range00:00:00.00 bitrate=384000.0kbits/s speed= 0.2x
frame= 4814 fps=0.0 q=-1.0 Lsize=   21829kB time=00:03:12.52 bitrate= 928.9kbits/s speed=2.34e+03x
video:21808kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.098001%


    


    Bad result for short video :

    


    [AVIOContext @ 000002c6db8e6d80] Statistics: 846679 bytes read, 0 seeks
video.ssf: Invalid data found when processing input


    


    Is there anything I can adjust to fix this ?

    


    Thanks !

    


    Nico

    


  • lavfi/dnn : refine code to separate processing and detection in backends

    17 mai 2021, par Guo, Yejun
    lavfi/dnn : refine code to separate processing and detection in backends
    
    • [DH] libavfilter/dnn/dnn_backend_native.c
    • [DH] libavfilter/dnn/dnn_backend_openvino.c
    • [DH] libavfilter/dnn/dnn_backend_tf.c
    • [DH] libavfilter/dnn/dnn_io_proc.c
    • [DH] libavfilter/dnn/dnn_io_proc.h
  • Slow down background processing when USB is disconnected

    28 mai 2021, par Taku

    I create video editing app with openCV and ffmpeg in kotlin.
After taking movie with USB debugging, it can edited for about 5 min.
but, as soon as disconnect the USB, it will take 30 min to edit the video for some reason...

    


    I am in trouble because I can not correct it without debugging.
Is it problem to do from editing it to saving it in the background ?

    


    class OpenCV(val inputPath: String, val context: Context, val setuptime: Int){

         .....

        init{
            videoCapture = VideoCapture()
            videoCapture.open(inputPath)

            videoCapture.grab()
            width = videoCapture.get(Videoio.CAP_PROP_FRAME_WIDTH)
            height = videoCapture.get(Videoio.CAP_PROP_FRAME_HEIGHT)

            val file = File(context.getExternalFilesDir(Environment.DIRECTORY_MOVIES), "output.avi")

            writer = VideoWriter()
            writer.open(
                file.path,
                VideoWriter.fourcc('M', 'J', 'P', 'G'),
                30.0,
                Size(width,height)
            )


            if(writer.isOpened){
                posefinish=true
                val inpMat = Mat(width.toInt(), height.toInt(),CvType.CV_8UC4)
                while (true){
                    if (!posefinish){continue}//Wait in an infinite loop until one frame is processed

                    if(videoCapture.read(inpMat)){
                        posefinish=false
                        if(inpMat.dims() == 0){ posefinish = true;  continue }


                        val bmp = Bitmap.createBitmap(
                            width.toInt(),
                            height.toInt(),
                            Bitmap.Config.ARGB_8888
                        )

                        Utils.matToBitmap(inpMat, bmp, false)

                        DrawPose(inpMat, bmp)// the function to edit video frame by frame

                    }else{
                        if(MainActivity.debag){Log.d(MainActivity.TAG, "videoCapture終了!")}
                        writer.release()
                        videoCapture.release()


                        with_ffmpeg(file, file2, file3, file4)//     avi -> mp4 -> save video  with ffmpeg

                        break
                    }
                }

            }
        }

    }


    


    And I call the above code with thread of coroutine.

    


    val job =CoroutineScope(Dispatchers.Default).launch {
                            OpenCV(file.toString(),this, taskSec)
                        }