Recherche avancée

Médias (17)

Mot : - Tags -/wired

Autres articles (111)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette 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 2011

    MediaSPIP 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 (12865)

  • What should I do if the video is broken on a black screen when encoding with FFmpeg(h264) ?

    19 novembre 2018, par wowi77

    The MOV is broken when H.264 is encoded as below image. Can I encode it without breaking ?

    Encoding options :

    ffmpeg -y -i "background.mp4" -s "160x64" -c:v libx264 -vprofile baseline -level 3 -q:v 0 -mbtree 1 -r 30 -pix_fmt yuv420p -an -t "0:00:15.000000" "sample.mp4"

    Screen capture

  • Android Studio - Append two videos but showing black screen

    6 septembre 2020, par Darkhmar

    First of all hello,

    


    When I add another mp4 file at the end of an mp4 file, the video looks completely black screen but I can get the video sounds.

    


    If I add a copy of a video to the end of it, I saw that there was no problem, but this is not a scenario I want.

    


    I am getting the "text relocations" error when merging with the FFmpeg library. (This problem is fixed when I change this library version, but I have other problems. Therefore, mp4parser is an alternative I see.)

    


    The piece of code that allows the videos to be merged is as follows. Thank you from now.

    


    private void appendTwoVideos(String firstVideoPath, String secondVideoPath) {&#xA;    try {&#xA;        Movie[] inMovies = new Movie[2];&#xA;&#xA;        inMovies[0] = MovieCreator.build(firstVideoPath);&#xA;        inMovies[1] = MovieCreator.build(secondVideoPath);&#xA;&#xA;        List<track> videoTracks = new LinkedList&lt;>();&#xA;        List<track> audioTracks = new LinkedList&lt;>();&#xA;&#xA;        for (Movie m : inMovies) {&#xA;            for (Track t : m.getTracks()) {&#xA;                if (t.getHandler().equals("soun")) {&#xA;                    audioTracks.add(t);&#xA;                }&#xA;                if (t.getHandler().equals("vide")) {&#xA;                    videoTracks.add(t);&#xA;                }&#xA;            }&#xA;        }&#xA;&#xA;        Movie result = new Movie();&#xA;&#xA;        if (audioTracks.size() > 0) {&#xA;            result.addTrack(new AppendTrack(audioTracks&#xA;                    .toArray(new Track[audioTracks.size()])));&#xA;        }&#xA;        if (videoTracks.size() > 0) {&#xA;            result.addTrack(new AppendTrack(videoTracks&#xA;                    .toArray(new Track[videoTracks.size()])));&#xA;        }&#xA;&#xA;        BasicContainer out = (BasicContainer) new DefaultMp4Builder().build(result);&#xA;&#xA;        @SuppressWarnings("resource")&#xA;        FileChannel fc = new RandomAccessFile(DIRECTORY_PATH &#x2B; "output.mp4", "rw").getChannel();&#xA;        out.writeContainer(fc);&#xA;        fc.close();&#xA;    } catch (FileNotFoundException e) {&#xA;        e.printStackTrace();&#xA;    } catch (IOException e) {&#xA;        e.printStackTrace();&#xA;    }&#xA;}&#xA;</track></track>

    &#xA;

  • Trying to concatenate 11 seconds of black video onto the end of a 5 min video. Getting non-monotonous DTS in output stream error

    14 janvier 2020, par TidusWulf

    I have a video shot from my smartphone that is 3840x2160@57.74. Originally, it was exactly 5 minutes long. I replaced the audio with a music file that is 5 minutes and 11 seconds using ffmpeg -i video.mp4 -i audio.mp3 -c copy -map 0:v:0 -map 1:a:0 output.mp4 I expected 11 seconds of black at the end, but instead the video output freezes on the last frame for 11 seconds. There’s definitely something funky going on because when I try to upload to youtube, it only sees the first 5 minutes. The last 10 seconds of audio get dropped.

    I tried making a second black clip with ffmpeg -f lavfi -i color=c=black:s=uhd2160:r=57.74 -t 11 -pix_fmt yuv420p blk2.mp4. When I try to concat the two files with ffmpeg -f concat -safe 0 -i list.txt -c copy teacup6.mp4 I get a huge list of errors such as [mp4 @ 00000166fda994c0] Non-monotonous DTS in output stream 0:0; previous: 27002920, current: 3728954; changing to 27002921. This may result in incorrect timestamps in the output file. for what appears to be about 11 seconds worth of frames, so basically the entire 11 second black clip. When I play it in VLC it goes black, but I suspect it’s not actually processing/playing 11 seconds of good black video because if I click along the track timeline, visual glitches start happening in the canvas.

    Here is what ffmpeg tells me about my inputs and outputs as far as framerate, pixel format, etc.

    [mov,mp4,m4a,3gp,3g2,mj2 @ 00000239e6cb2880] Auto-inserting h264_mp4toannexb bitstream filter
    Input #0, concat, from 'list.txt':
     Duration: N/A, start: -0.023021, bitrate: 72244 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160, 71994 kb/s, SAR 1:1 DAR 16:9, 57.74 fps, 59 tbr, 90k tbn, 180k tbc
       Metadata:
         handler_name    : VideoHandle
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 250 kb/s
       Metadata:
         handler_name    : SoundHandler
    Output #0, mp4, to 'teacup5.mp4':
     Metadata:
       encoder         : Lavf58.35.102
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 71994 kb/s, 57.74 fps, 59 tbr, 90k tbn, 90k tbc
       Metadata:
         handler_name    : VideoHandle
       Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 250 kb/s
       Metadata:
         handler_name    : SoundHandler
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
     Stream #0:1 -> #0:1 (copy)
    Press [q] to stop, [?] for help

    alternatively, I tried to make a black 3840x2160 png file and create an 11 second slideshow. It didn’t turn out any better. I tried a single image for 11 seconds @ 57.74fps, I also tried a looping slideshow of that one image, looping on every single frame, at 57.74 fps. I should note that wether a slideshow or a color generator, the filesize for the 11 seconds of black comes out to about 160KB. Strangely small in my opinion, but I was chalking it up to a good compression algorithm.

    I tried to do this in Da Vinci Resolve 16.1 instead and the video wouldn’t play. I also couldn’t find a way to maintain the same unusual 57.74 framerate with the free version, so it was undesirable anyway. I tried to re-process using Handbrake, but it threw an error. The output of the Handbrake processed video file also gets stuck on the last frame of the video, instead of going to black.