Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (91)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP 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" (...)

Sur d’autres sites (21130)

  • How to synchronize audio and video in FFMPEG/C++

    4 juillet 2016, par rlnunes

    I’m receiving 2 streams (an audio and a video) with timestamps from other PCs in my network.
    I’m able to record the video and the audio to separated files (mp4 and aac) with no problems.
    Now I’m trying to put the 2 streams together into a mp4 file, I’ve created 2 queues, one for audio packets and another for video packets and trying to sync them like this :

    void * muxer(void * param) {
       QPair completePacketAudio;
       QPair completePacketVideo;
       AVPacket pkt;
       int vts = 0;
       int ats = 0;
       while(threadMuxRun) {
           contextMutex.lock();
           if(audioPacketQueue.isEmpty() && videoPacketQueue.isEmpty()) {
               contextMutex.unlock();
               Sleep(0);
               continue;
           } else if(audioPacketQueue.isEmpty()) {
               completePacketVideo = videoPacketQueue.head();
               pkt = videoPacketQueue.dequeue().first;
               pkt.pts = vts;
               vts++;
               std::cout << "video ts:" << pkt.pts << std::endl;
               av_packet_rescale_ts(&pkt, video_st.st->time_base, video_st.enc->time_base);            
           } else if(videoPacketQueue.isEmpty()) {
               completePacketAudio = audioPacketQueue.head();
               pkt = audioPacketQueue.dequeue().first;
               pkt.pts = ats;
               ats++;
               std::cout << "audio ts:" << pkt.pts << std::endl;
               av_packet_rescale_ts(&pkt, audio_st.st->time_base, audio_st.enc->time_base);
           } else {
               completePacketAudio = audioPacketQueue.head();
               completePacketVideo = videoPacketQueue.head();
               if(completePacketVideo.second < completePacketAudio.second)
               {
                   pkt = completePacketVideo.first;
                   pkt.pts = vts;
                   vts++;
                   videoPacketQueue.dequeue();
                   std::cout << "video ts:" << pkt.pts << std::endl;
                   av_packet_rescale_ts(&pkt, video_st.st->time_base, video_st.enc->time_base);
               } else {
                   audioPacketQueue.dequeue();
                   pkt = completePacketAudio.first;
                   pkt.pts = ats;
                   ats++;
                   std::cout << "audio ts:" << pkt.pts << std::endl;
                   av_packet_rescale_ts(&pkt, audio_st.st->time_base, audio_st.enc->time_base);
               }
           }
           av_interleaved_write_frame(outputContext, &pkt);
           av_free_packet(&pkt);
           contextMutex.unlock();

       }

       return NULL;
    }

    my videos is about 10% faster than the audio, and the audio timing is correct (it has 2 minutes when I record for 2 minutes, but the video has just 1:48).

    If someone can give a tip, thanks in advance.

  • fftools/ffmpeg : update text requesting samples

    10 mai 2020, par Andriy Gelman
    fftools/ffmpeg : update text requesting samples
    

    Signed-off-by : Andriy Gelman <andriy.gelman@gmail.com>
    Reviewed-by : Marton Balint <cus@passwd.hu>

    • [DH] doc/developer.texi
    • [DH] fftools/cmdutils.c
    • [DH] fftools/ffmpeg.c
  • Complie FFMpeg with Xcode5 preview's clang

    2 août 2013, par Yeung

    With release of IOS7 beta, I would like to try compiling ffmpeg for ios7.

    There is a lots answer like this. It use the llvm-gcc as compiler.

    However, seem like Xcode 5 would not include llvm-gcc. Then I have no choice but to use clang to compile.

    I use the following to config :

    export IOS_SDK="/Applications/Xcode5-DP4.app/Contents/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk"

    ./configure $CONFIG_DISABLE_FLAG $CONFIG_ENABLE_FLAG \
    --arch=arm \
    --target-os=darwin \
    --cc=/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang \
    --as=&#39;gas-preprocessor.pl /Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang&#39; \
    --ar=/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar  \
    --sysroot=$IOS_SDK \
    --cpu=cortex-a8 \
    --extra-cflags="-arch armv7 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot ${IOS_SDK} -I${IOS_SDK}/usr/include" \
    --extra-ldflags="-arch armv7 -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot ${IOS_SDK} -L${IOS_SDK}/usr/lib" \
    --enable-pic

    clang would probably not take CFLAGS other than -arch  -isysroot -I into account, but let it be.

    I seems it can complie but I encounter this. Actually, I don't understand the answer in this question. Using the external assembler ? Yes, the toolchains do have a assembler stated it is GNU version 1.38. Using --as=/Application/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as, it even cannot pass the check as test. It fall back to use &#39;gas-preprocessor.pl $CC&#39;

    Here is the config log to cannot pass :

       check_asm armv6t2 "movt r0, #0"
    check_as
    BEGIN /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
       1   void foo(void){ __asm__ volatile("movt r0, #0"); }
    END /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
    /Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as --sysroot=/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7 -no-cpp-precomp -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot /Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -I/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include -mcpu=cortex-a8 -fPIC -c -o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.g896h4Sb.o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
    FATAL:/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/arm/as: I don&#39;t understand &#39;-&#39; flag!
    check_asm armvfp "fadds s0, s0, s0"
    check_as
    BEGIN /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
       1   void foo(void){ __asm__ volatile("fadds s0, s0, s0"); }
    END /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
    /Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as --sysroot=/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7 -no-cpp-precomp -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot /Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -I/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include -mcpu=cortex-a8 -fPIC -c -o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.g896h4Sb.o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
    FATAL:/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/arm/as: I don&#39;t understand &#39;-&#39; flag!
    check_asm neon "vadd.i16 q0, q0, q0"
    check_as
    BEGIN /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
       1   void foo(void){ __asm__ volatile("vadd.i16 q0, q0, q0"); }
    END /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
    /Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as --sysroot=/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7 -no-cpp-precomp -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot /Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -I/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include -mcpu=cortex-a8 -fPIC -c -o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.g896h4Sb.o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
    FATAL:/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/arm/as: I don&#39;t understand &#39;-&#39; flag!
    check_asm vfpv3 "vmov.f32 s0, #1.0"
    check_as
    BEGIN /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
       1   void foo(void){ __asm__ volatile("vmov.f32 s0, #1.0"); }
    END /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
    /Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as --sysroot=/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7 -no-cpp-precomp -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot /Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -I/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include -mcpu=cortex-a8 -fPIC -c -o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.g896h4Sb.o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
    FATAL:/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/arm/as: I don&#39;t understand &#39;-&#39; flag!
    check_asm asm_mod_y "vmul.i32 d0, d0, %y0" :: "x"(0)
    check_as
    BEGIN /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
       1   void foo(void){ __asm__ volatile("vmul.i32 d0, d0, %y0" :: "x"(0)); }
    END /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
    /Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/as --sysroot=/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -arch armv7 -no-cpp-precomp -mfpu=neon -mfloat-abi=softfp -ftree-vectorize -ffast-math -funsafe-math-optimizations -fsingle-precision-constant -isysroot /Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -I/Applications/Xcode5-DP4.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk/usr/include -mcpu=cortex-a8 -fPIC -c -o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.g896h4Sb.o /var/folders/gx/_k242p6s5cb0hss_pvj4s7vh0000gn/T//ffconf.4wwSSmLm.c
    FATAL:/Applications/Xcode5-DP4.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../libexec/as/arm/as: I don&#39;t understand &#39;-&#39; flag!
    check_asm gnu_as ".macro m n
    \n:.int 0
    .endm
    m x"

    Yep, with config --disable-asm would complie but it probably not a option.