Recherche avancée

Médias (1)

Mot : - Tags -/lev manovitch

Autres articles (95)

  • Les vidéos

    21 avril 2011, par

    Comme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
    Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
    Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

Sur d’autres sites (8090)

  • ffmpeg with double ethernet interfaces works wrong

    21 janvier 2019, par CharlesCui

    A server with double interfaces.

    1. One(eht0) is used for WAN which provides http/ssh services for internet users.

    2. The other(eth1) is used to receive multicast data from intranet.

    218.108.132.177 is public network gateway.

    125.210.198.1 is private network gateway.

    233.49.3.*/24 is multicast address.

    10.0.11.*/24 is the source of multicast data.

    When the route table is like below, ffmpeg can’t read the udp data from eth1, ffmpeg hung up :

    rrca@rcasnap02:~$ route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    218.108.132.176 *               255.255.255.252 U     0      0        0 eth0
    125.210.198.0   *               255.255.255.240 U     0      0        0 eth1
    default         218.108.132.177 0.0.0.0         UG    100    0        0 eth0
    default         125.210.198.1   0.0.0.0         UG    100    0        0 eth1

    or

    rrca@rcasnap02:~$ route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    218.108.132.176 *               255.255.255.252 U     0      0        0 eth0
    125.210.198.0   *               255.255.255.240 U     0      0        0 eth1
    default         218.108.132.177 0.0.0.0         UG    100    0        0 eth0
    10.0.11.0       125.210.198.1   0.0.0.0         UG    100    0        0 eth1

    or

    rrca@rcasnap02:~$ route
    Kernel IP routing table
    Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
    218.108.132.176 *               255.255.255.252 U     0      0        0 eth0
    125.210.198.0   *               255.255.255.240 U     0      0        0 eth1
    default         218.108.132.177 0.0.0.0         UG    100    0        0 eth0
    233.49.3.0      125.210.198.1   255.255.255.0   UG    100    0        0 eth1

    I want to the ffmpeg work right,but now I think the two default route in route table disturb eachother, and I take a try, when the public gateway route is deleted, or the private gateway route is at the head of public default gateway route, ffmpeg works well, I think it read multicast from eth1.But the route table is not thus, ffmpeg can’t read data from eth1, I think it read data on eth0(which is not private network interface).

    How to do ffmpeg works well with two interfaces at the same time ?

  • Code runs when in a main method but not when in another method

    8 août 2018, par Zubair Ahmed

    I created the setArtwork method to set the artwork of an aac file in an .m4a container and it does exactly what I want it to when I run the main method

    public static void setArtwork(File art, File m4a) throws Exception{
       Mp4TagReader reader = new Mp4TagReader();
       Mp4TagWriter writer = new Mp4TagWriter();
       RandomAccessFile song = new RandomAccessFile(m4a.toString(),"rw");
       Mp4Tag mp4tag = reader.read(song);

       Artwork artwork = ArtworkFactory.createArtworkFromFile(art);
       mp4tag.addField(artwork);
       mp4tag.setField(artwork);

       RandomAccessFile temp = new RandomAccessFile(m4a,"rw");
       writer.write(mp4tag,song,temp);
    }
    public static void main(String[] args) throws Exception{
       File art = new File("C:\\Users\\Zubair\\Documents\\music\\coverArt.jpeg");
       File m4a = new File("C:\\Users\\Zubair\\Documents\\music\\song.m4a");
       setArtwork(art,m4a);
    }

    BUT, when I try to use the setArtwork method in a different method in a different class it doesn’t actually save the mp4 tag to the File. I did some debugging to see if the picture was even being added to the artwork tag and it all looks good, but it seems that the tag doesn’t get written to the file.

    public static void mp3Tom4a(File mp3File, File m4aFolder, File coverArt) throws Exception {
       String input = mp3File.toString();
       String name = mp3File.getName();

       String output = name.substring(0,name.indexOf(MP3)) + M4A;
       output = m4aFolder.toString() + "\\" + output;

       //cd ffmpeg\bin && ffmpeg -y -i input.mp3 -an -vcodec copy cover.jpg && ffmpeg -y -i input.mp3 -c:a aac -b:a 192k -vn output.m4a
       ProcessBuilder builder = new ProcessBuilder(
               "cmd.exe","/c","cd ffmpeg\\bin && ffmpeg -y -i "
               + input +" -an -vcodec copy "+coverArt+
               " && ffmpeg -y -i " + input + " -c:a aac -b:a 128k -vn " + output);
       builder.redirectErrorStream(true);
       builder.start();
       JAudioData.setArtwork(coverArt,new File(output));
    }
    public static void main(String[] args) throws Exception {
       mp3Tom4a(new File("C:\\Users\\Zubair\\Documents\\music\\song.mp3"),
               new File("C:\\Users\\Zubair\\Documents\\music"),
               new File("C:\\Users\\Zubair\\Documents\\music\\coverArt.jpeg"));
    }

    it doesn’t make sense that setArtwork only works when it’s in the main method of its own class, especially because the objects I am using for the parameters are identical to eachother, so there should be no difference in the result. I think it might have something to do with the RandomAccessFile object being updated but the physical storage not getting updated

    Edit- If I comment out builder.start() then it can successfully write the mp4tag to the m4a file. But I don’t see why having builder.start() would prevent that from happenning. My best guess is that because builder.start() is what creates song.m4a it is still being "edited" by that and can’t be edited by any other processes.

  • fate : fix hapqa-extract-nosnappy tests on small builds

    7 septembre 2018, par James Almer
    fate : fix hapqa-extract-nosnappy tests on small builds
    

    Fixes ticket #7324

    Signed-off-by : James Almer <jamrial@gmail.com>

    • [DH] tests/fate/hap.mak
    • [DH] tests/ref/fate/hapqa-extract-nosnappy-to-hapalphaonly-mov
    • [DH] tests/ref/fate/hapqa-extract-nosnappy-to-hapq-mov