Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (66)

  • 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

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (7425)

  • How can I concatenate these two video files that are in different formats with ffmpeg ?

    11 juin 2018, par jaybers

    File s.mp4 is created from a photo and a silent audio track was added in.
    File r.mp4 was created using the built in video record on an android tablet.

    I would like to try to match s.mp4 to r.mp4 so that they can concatenate (s then r). Right now, the time base seems off and it plays audio from the r.mp4 but never shows the video. It it always shows the video from s.mp4. I was able to match the tbn of 90k by using -video_track_timescale 90k but I did not know how to match the tbc. It is 180k on one and 59.94 on the other.

    Probe for s.mp4

    ./ffprobe s.mp4
    ffprobe version 4.0-tessus Copyright (c) 2007-2018 the FFmpeg developers
     built with Apple LLVM version 9.1.0 (clang-902.0.39.1)
     configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 's.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf57.25.100
     Duration: 00:00:05.04, start: 0.000000, bitrate: 296 kb/s
       Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 286 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
       Metadata:
         handler_name    : VideoHandler
       Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 2 kb/s (default)
       Metadata:
         handler_name    : SoundHandler

    Probe for r.mp4

    ./ffprobe r.mp4
    ffprobe version 4.0-tessus Copyright (c) 2007-2018 the FFmpeg developers
     built with Apple LLVM version 9.1.0 (clang-902.0.39.1)
     configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-version3 --pkg-config-flags=--static --disable-ffplay
     libavutil      56. 14.100 / 56. 14.100
     libavcodec     58. 18.100 / 58. 18.100
     libavformat    58. 12.100 / 58. 12.100
     libavdevice    58.  3.100 / 58.  3.100
     libavfilter     7. 16.100 /  7. 16.100
     libswscale      5.  1.100 /  5.  1.100
     libswresample   3.  1.100 /  3.  1.100
     libpostproc    55.  1.100 / 55.  1.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'r.mp4':
     Metadata:
       major_brand     : mp42
       minor_version   : 0
       compatible_brands: isommp42
       creation_time   : 2018-06-11T20:12:03.000000Z
       com.android.version: 7.0
     Duration: 00:00:10.89, start: 0.000000, bitrate: 17087 kb/s
       Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709/bt709/smpte170m), 1920x1080, 16810 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 90k tbn, 180k tbc (default)
       Metadata:
         creation_time   : 2018-06-11T20:12:03.000000Z
         handler_name    : VideoHandle
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 256 kb/s (default)
       Metadata:
         creation_time   : 2018-06-11T20:12:03.000000Z
         handler_name    : SoundHandle
  • How to insert an image in between a video ?

    10 février 2019, par robinson george

    I want to make an android app in which user can insert a images in a video. I tried drawing video over the photo(selected by user) with replacing green colour in video using ffmpeg library. But the results are not very satisfying and it’s take around 4-5 seconds to encode a video of around 15 seconds. There are already many apps present in play store but i was wondering how they achieved this effect in so much lesser time(like < 1 sec to encode 15 sec video).
    For reference - https://play.google.com/store/apps/details?id=com.yy.biu
    https://play.google.com/store/apps/details?id=com.newbiz.mvmaster

    You can have a look at the result output file here- http://www.yourfilelink.com/get.php?fid=1881360

  • Streaming Anki Vector's camera

    25 novembre 2023, par Brendan Goode

    I am trying to stream my robot to Remo.tv with my Vector robot. The website recognizes I am going live but does not stream what the robots camera is seeing. I have confirmed the camera works by a local application that runs the SDK. The very end of the code is what is giving issues, it appears somebody ripped code from Cozmo and attempted to paste it into a Vector file. The problem is it seems like the camera is taking pictures and we reach the point where it attempts to send photo but fails ?

    &#xA;

    # This is a dummy file to allow the automatic loading of modules without error on none.&#xA;import anki_vector&#xA;import atexit&#xA;import time&#xA;import _thread as thread&#xA;import logging&#xA;import networking&#xA;&#xA;log = logging.getLogger(&#x27;RemoTV.vector&#x27;)&#xA;vector = None&#xA;reserve_control = None&#xA;robotKey = None&#xA;volume = 100 #this is stupid, but who cares&#xA;annotated = False&#xA;&#xA;def connect():&#xA;    global vector&#xA;    global reserve_control&#xA;&#xA;    log.debug("Connecting to Vector")&#xA;    vector = anki_vector.AsyncRobot()&#xA;    vector.connect()&#xA;    #reserve_control = anki_vector.behavior.ReserveBehaviorControl()&#xA;    &#xA;    atexit.register(exit)&#xA;&#xA;    return(vector)&#xA;&#xA;def exit():&#xA;    log.debug("Vector exiting")&#xA;    vector.disconnect()&#xA;    &#xA;def setup(robot_config):&#xA;    global forward_speed&#xA;    global turn_speed&#xA;    global volume&#xA;    global vector&#xA;    global charge_high&#xA;    global charge_low&#xA;    global stay_on_dock&#xA;&#xA;    global robotKey&#xA;    global server&#xA;    global no_mic&#xA;    global no_camera&#xA;    global ffmpeg_location&#xA;    global v4l2_ctl_location&#xA;    global x_res&#xA;    global y_res&#xA;    &#xA;    robotKey = robot_config.get(&#x27;robot&#x27;, &#x27;robot_key&#x27;)&#xA;&#xA;    if robot_config.has_option(&#x27;misc&#x27;, &#x27;video_server&#x27;):&#xA;        server = robot_config.get(&#x27;misc&#x27;, &#x27;video_server&#x27;)&#xA;    else:&#xA;        server = robot_config.get(&#x27;misc&#x27;, &#x27;server&#x27;)&#xA; &#xA;    no_mic = robot_config.getboolean(&#x27;camera&#x27;, &#x27;no_mic&#x27;)&#xA;    no_camera = robot_config.getboolean(&#x27;camera&#x27;, &#x27;no_camera&#x27;)&#xA;&#xA;    ffmpeg_location = robot_config.get(&#x27;ffmpeg&#x27;, &#x27;ffmpeg_location&#x27;)&#xA;    v4l2_ctl_location = robot_config.get(&#x27;ffmpeg&#x27;, &#x27;v4l2-ctl_location&#x27;)&#xA;&#xA;    x_res = robot_config.getint(&#x27;camera&#x27;, &#x27;x_res&#x27;)&#xA;    y_res = robot_config.getint(&#x27;camera&#x27;, &#x27;y_res&#x27;)&#xA;&#xA;&#xA;    if vector == None:&#xA;        vector = connect()&#xA;&#xA;    #x  mod_utils.repeat_task(30, check_battery, coz)&#xA;&#xA;    if robot_config.has_section(&#x27;cozmo&#x27;):&#xA;        forward_speed = robot_config.getint(&#x27;cozmo&#x27;, &#x27;forward_speed&#x27;)&#xA;        turn_speed = robot_config.getint(&#x27;cozmo&#x27;, &#x27;turn_speed&#x27;)&#xA;        volume = robot_config.getint(&#x27;cozmo&#x27;, &#x27;volume&#x27;)&#xA;        charge_high = robot_config.getfloat(&#x27;cozmo&#x27;, &#x27;charge_high&#x27;)&#xA;        charge_low = robot_config.getfloat(&#x27;cozmo&#x27;, &#x27;charge_low&#x27;)&#xA;        stay_on_dock = robot_config.getboolean(&#x27;cozmo&#x27;, &#x27;stay_on_dock&#x27;)&#xA;&#xA;#    if robot_config.getboolean(&#x27;tts&#x27;, &#x27;ext_chat&#x27;): #ext_chat enabled, add motor commands&#xA;#        extended_command.add_command(&#x27;.anim&#x27;, play_anim)&#xA;#        extended_command.add_command(&#x27;.forward_speed&#x27;, set_forward_speed)&#xA;#        extended_command.add_command(&#x27;.turn_speed&#x27;, set_turn_speed)&#xA;#        extended_command.add_command(&#x27;.vol&#x27;, set_volume)&#xA;#        extended_command.add_command(&#x27;.charge&#x27;, set_charging)&#xA;#        extended_command.add_command(&#x27;.stay&#x27;, set_stay_on_dock)&#xA;&#xA;    vector.audio.set_master_volume(volume) # set volume&#xA;&#xA;    return&#xA;    &#xA;def move(args):&#xA;    global charging&#xA;    global low_battery&#xA;    command = args[&#x27;button&#x27;][&#x27;command&#x27;]&#xA;&#xA;    try:&#xA;        if vector.status.is_on_charger and not charging:&#xA;            if low_battery:&#xA;                print("Started Charging")&#xA;                charging = 1&#xA;            else:&#xA;                if not stay_on_dock:&#xA;                    vector.drive_off_charger_contacts().wait_for_completed()&#xA;&#xA;        if command == &#x27;f&#x27;:&#xA;            vector.behavior.say_text("Moving {}".format(command))&#xA;&#xA;            #causes delays #coz.drive_straight(distance_mm(10), speed_mmps(50), False, True).wait_for_completed()&#xA;            vector.motors.set_wheel_motors(forward_speed, forward_speed, forward_speed*4, forward_speed*4 )&#xA;            time.sleep(0.7)&#xA;            vector.motors.set_wheel_motors(0, 0)&#xA;        elif command == &#x27;b&#x27;:&#xA;            #causes delays #coz.drive_straight(distance_mm(-10), speed_mmps(50), False, True).wait_for_completed()&#xA;            vector.motors.set_wheel_motors(-forward_speed, -forward_speed, -forward_speed*4, -forward_speed*4 )&#xA;            time.sleep(0.7)&#xA;            vector.motors.set_wheel_motors(0, 0)&#xA;        elif command == &#x27;l&#x27;:&#xA;            #causes delays #coz.turn_in_place(degrees(15), False).wait_for_completed()&#xA;            vector.motors.set_wheel_motors(-turn_speed, turn_speed, -turn_speed*4, turn_speed*4 )&#xA;            time.sleep(0.5)&#xA;            vector.motors.set_wheel_motors(0, 0)&#xA;        elif command == &#x27;r&#x27;:&#xA;            #causes delays #coz.turn_in_place(degrees(-15), False).wait_for_completed()&#xA;            vector.motors.set_wheel_motors(turn_speed, -turn_speed, turn_speed*4, -turn_speed*4 )&#xA;            time.sleep(0.5)&#xA;            vector.motors.set_wheel_motors(0, 0)&#xA;&#xA;        #move lift&#xA;        elif command == &#x27;w&#x27;:&#xA;            vector.behavior.say_text("w")&#xA;            vector.set_lift_height(height=1).wait_for_completed()&#xA;        elif command == &#x27;s&#x27;:&#xA;            vector.behavior.say_text("s")&#xA;            vector.set_lift_height(height=0).wait_for_completed()&#xA;&#xA;        #look up down&#xA;        #-25 (down) to 44.5 degrees (up)&#xA;        elif command == &#x27;q&#x27;:&#xA;            #head_angle_action = coz.set_head_angle(degrees(0))&#xA;            #clamped_head_angle = head_angle_action.angle.degrees&#xA;            #head_angle_action.wait_for_completed()&#xA;            vector.behaviour.set_head_angle(45)&#xA;            time.sleep(0.35)&#xA;            vector.behaviour.set_head_angle(0)&#xA;        elif command == &#x27;a&#x27;:&#xA;            #head_angle_action = coz.set_head_angle(degrees(44.5))&#xA;            #clamped_head_angle = head_angle_action.angle.degrees&#xA;            #head_angle_action.wait_for_completed()&#xA;            vector.behaviour.set_head_angle(-22.0)&#xA;            time.sleep(0.35)&#xA;            vector.behaviour.set_head_angle(0)&#xA;   &#xA;        #things to say with TTS disabled&#xA;        elif command == &#x27;sayhi&#x27;:&#xA;            tts.say( "hi! I&#x27;m cozmo!" )&#xA;        elif command == &#x27;saywatch&#x27;:&#xA;            tts.say( "watch this" )&#xA;        elif command == &#x27;saylove&#x27;:&#xA;            tts.say( "i love you" )&#xA;        elif command == &#x27;saybye&#x27;:&#xA;            tts.say( "bye" )&#xA;        elif command == &#x27;sayhappy&#x27;:&#xA;            tts.say( "I&#x27;m happy" )&#xA;        elif command == &#x27;saysad&#x27;:&#xA;            tts.say( "I&#x27;m sad" )&#xA;        elif command == &#x27;sayhowru&#x27;:&#xA;            tts.say( "how are you?" )&#xA;    except:&#xA;        return(False)&#xA;    return&#xA;&#xA;def start():&#xA;    log.debug("Starting Vector Video Process")&#xA;    try:&#xA;        thread.start_new_thread(video, ())&#xA;    except KeyboardInterrupt as e:&#xA;        pass        &#xA;    return&#xA;    &#xA;def video():&#xA;    global vector&#xA;    # Turn on image receiving by the camera&#xA;    vector.camera.init_camera_feed()&#xA;&#xA;    vector.behavior.say_text("hey everyone, lets robot!")&#xA;&#xA;    while True:&#xA;        time.sleep(0.25)&#xA;&#xA;        from subprocess import Popen, PIPE&#xA;        from sys import platform&#xA;&#xA;        log.debug("ffmpeg location : {}".format(ffmpeg_location))&#xA;&#xA;#        import os&#xA;#        if not os.path.isfile(ffmpeg_location):&#xA;#        print("Error: cannot find " &#x2B; str(ffmpeg_location) &#x2B; " check ffmpeg is installed. Terminating controller")&#xA;#        thread.interrupt_main()&#xA;#        thread.exit()&#xA;&#xA;        while not networking.authenticated:&#xA;            time.sleep(1)&#xA;&#xA;        p = Popen([ffmpeg_location, &#x27;-y&#x27;, &#x27;-f&#x27;, &#x27;image2pipe&#x27;, &#x27;-vcodec&#x27;, &#x27;png&#x27;, &#x27;-r&#x27;, &#x27;25&#x27;, &#x27;-i&#x27;, &#x27;-&#x27;, &#x27;-vcodec&#x27;, &#x27;mpeg1video&#x27;, &#x27;-r&#x27;, &#x27;25&#x27;, "-f", "mpegts", "-headers", "\"Authorization: Bearer {}\"".format(robotKey), "http://{}:1567/transmit?name={}-video".format(server, networking.channel_id)], stdin=PIPE)&#xA;        #p = Popen([ffmpeg_location, &#x27;-nostats&#x27;, &#x27;-y&#x27;, &#x27;-f&#x27;, &#x27;image2pipe&#x27;, &#x27;-vcodec&#x27;, &#x27;png&#x27;, &#x27;-r&#x27;, &#x27;25&#x27;, &#x27;-i&#x27;, &#x27;-&#x27;, &#x27;-vcodec&#x27;, &#x27;mpeg1video&#x27;, &#x27;-r&#x27;, &#x27;25&#x27;,&#x27;-b:v&#x27;, &#x27;400k&#x27;, "-f","mpegts", "-headers", "\"Authorization: Bearer {}\"".format(robotKey), "http://{}/transmit?name=rbot-390ddbe0-f1cc-4710-b3f1-9f477f4875f9-video".format(server)], stdin=PIPE)&#xA;        #p = Popen([ffmpeg_location, &#x27;-y&#x27;, &#x27;-f&#x27;, &#x27;image2pipe&#x27;, &#x27;-vcodec&#x27;, &#x27;png&#x27;, &#x27;-r&#x27;, &#x27;25&#x27;, &#x27;-i&#x27;, &#x27;-&#x27;, &#x27;-vcodec&#x27;, &#x27;mpeg1video&#x27;, &#x27;-r&#x27;, &#x27;25&#x27;, "-f", "mpegts", "-headers", "\"Authorization: Bearer {}\"".format(robotKey), "http://{}/transmit?name=rbot-390ddbe0-f1cc-4710-b3f1-9f477f4875f9-video".format(server, networking.channel_id)], stdin=PIPE)&#xA;        print(vector)&#xA;        image = vector.camera.latest_image&#xA;        image.raw_image.save("test.png", &#x27;PNG&#x27;)&#xA;        try:&#xA;            while True:&#xA;                if vector:&#xA;                    image = vector.camera.latest_image&#xA;                    if image:&#xA;                        if annotated:&#xA;                            image = image.annotate_image()&#xA;                        else:&#xA;                            image = image.raw_image&#xA;                        print("attempting to write image")&#xA;                        image.save(p.stdin, &#x27;PNG&#x27;)&#xA;&#xA;                else:&#xA;                    time.sleep(.1)&#xA;            log.debug("Lost Vector object, terminating video stream")&#xA;            p.stdin.close()&#xA;            p.wait()&#xA;        except Exception as e:&#xA;            log.debug("Vector Video Exception! {}".format(e))&#xA;            p.stdin.close()&#xA;            p.wait()&#xA;            pass               &#xA;    &#xA;

    &#xA;

    Here is the error we get

    &#xA;

    [vost#0:0/mpeg1video @ 000001c7153c1cc0] Error submitting a packet to the muxer: Error number -10053 occurred&#xA;[out#0/mpegts @ 000001c713448480] Error muxing a packet&#xA;[out#0/mpegts @ 000001c713448480] Error writing trailer: Error number -10053 occurred&#xA;[http @ 000001c7134cab00] URL read error: Error number -10053 occurred&#xA;[out#0/mpegts @ 000001c713448480] Error closing file: Error number -10053 occurred&#xA;[out#0/mpegts @ 000001c713448480] video:56kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown&#xA;frame=   25 fps=0.0 q=2.0 Lsize=      53kB time=00:00:01.32 bitrate= 325.9kbits/s speed=7.05x&#xA;Conversion failed!&#xA;&#xA;attempting to write image&#xA;

    &#xA;

    You can see our attempts to fix by commented out code in the #p section at the bottom.

    &#xA;