Recherche avancée

Médias (1)

Mot : - Tags -/biomaping

Autres articles (41)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

  • Submit enhancements and plugins

    13 avril 2011

    If you have developed a new extension to add one or more useful features to MediaSPIP, let us know and its integration into the core MedisSPIP functionality will be considered.
    You can use the development discussion list to request for help with creating a plugin. As MediaSPIP is based on SPIP - or you can use the SPIP discussion list SPIP-Zone.

Sur d’autres sites (8751)

  • How to specifiy ffmpeg creation time as the segment creation time

    6 novembre 2023, par şahin

    I am using ffmpeg to create video records from streams. Ffmpeg command creates segments from the streams. Think that 24 hours record with ffmpeg and divide it into 1 hour segments so i have 24 video records at the end. Problem is that ffmpeg always put the first segment creation time to the following ones meta data. Last video has the first video creation time. How to create segments with the time they created ?

    


    My ffmpeg commands

    


    ffmpeg -y -buffer_size 500000 -thread_queue_size 128 -i $1 -metadata title=$2 -metadata creation_time="`date +%F` `date +%T`" -c:a copy -c:v copy -f segment -segment_time 01:00:00 segment_format mp4


    


  • create video chunks with giving start and end time using ffmpeg and play those chunks sequentially with expiry time for each chunk using java

    4 octobre 2018, par JAVA Coder

    I have done like this I found it from the given link Just modified the code for start and end time and hard coded the times.
    Split video into smaller timed segments in Java

    @RequestMapping(value="/playVideo",method = RequestMethod.GET)
    @ResponseBody
    public void playVideo() {
       System.out.println("controller is working");
       int videoDurationSecs = 1800 ;
       int numberOfChunks = 5;//dynamically we can define according to video duration
        int chunkSize = videoDurationSecs/(numberOfChunks);
           int startSecs = 0;
           for (int i=0; i/*******Create video chunk*******//

               String startTime = convertSecsToTimeString(startSecs);
               int endSecs = startSecs+chunkSize;
               startSecs = endSecs+1;
               if (endSecs > videoDurationSecs) {
                   //**make sure rounding does not mean we go beyond end of video**//
                   endSecs = videoDurationSecs;
               }
               String endTime = convertSecsToTimeString(endSecs);

               System.out.println("start time for-------------------->>>> "+startTime);
               System.out.println("end time for------------------->>>> "+endTime);

               /*
                * how to do this means send times for chunk and
                * getting chunks and play them one by one like one video
                * with expiry time for each
                */


               //Call ffmpeg to create this chunk of the video using a ffmpeg wrapper
               /*String argv[] = {"ffmpeg", "-i", videoPath,
                       "-ss",startTime, "-t", endTime,
                       "-c","copy", segmentVideoPath[i]};
               int ffmpegWrapperReturnCode = ffmpegWrapper(argv);*/
           }


    }

    private String convertSecsToTimeString(int timeSeconds) {
       //Convert number of seconds into hours:mins:seconds string
       int hours = timeSeconds / 3600;
       int mins = (timeSeconds % 3600) / 60;
       int secs = timeSeconds % 60;
       String timeString = String.format("%02d:%02d:%02d", hours, mins, secs);
       return timeString;
    }

    }

  • Not reading the first character of every second line in a file [duplicate]

    13 janvier 2024, par Monki Majik

    In a BASH script (latest Xubuntu) this successfully reads and prints every line in mp4.txt

    


    ls *.mp4 > mp4.txt
while read F ; do
    echo $F
    echo ${F/mp4}mkv
#        ffmpeg -i "$F" -map 0 -c copy "${F/mp4}mkv"
done < ./mp4.txt


    


    Uncommenting the ffmpeg line causes the first character from every other line in mp4.txt to not be in F.

    


    I'm expecting every file line to be read consistently.

    


    I've tried Bash : Special characters lost when reading file