Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (98)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

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

Sur d’autres sites (12555)

  • Can't import to Unity video clip rendered using FFmpeg for Unity

    29 juin 2023, par Maximiliano Bezmalinovic

    I am using FFmpeg to render a video in Unity. For the FFmpegCaptureCommand.OutputOptions I'm using this command :

    


    -g 24 -c:v h264 -preset medium -crf 32 -pix_fmt yuv420p -color_primaries bt709 -color_trc bt709 -colorspace bt709 -color_range pc -f mov -movflags frag_keyframe+empty_moov -vf setpts=2*PTS


    


    The video output plays fine on windows media player or VLC but when I try to import the clip into Unity I get the following error :

    


    WindowsVideoMedia error 0xc00d36e6 while reading C:/.../d.mov

Context: Getting duration.
Error details: The requested attribute was not found.
Track types:
   Video Track [1024 x 1024], type: H264


    


    I can create a working copy of the video with this command :

    


    ffmpeg -i input.mov output.mov


    


    I assume ffmpeg creates a new container for the video when it copies it but I can't figure out why is not doing it in the first place.

    


    Using ffprobe

    


    ffprobe -show_streams -select_streams v C:\...\d.mov   


    


    I get this info on the original video :

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\...\d.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf59.4.101
  Duration: 00:00:02.97, start: 0.066667, bitrate: 2471 kb/s
  Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1024x1024, 2465 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : FFMP
      encoder         : Lavc59.4.100 libx264
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_tag_string=avc1
codec_tag=0x31637661
width=1024
height=1024
coded_width=1024
coded_height=1024
closed_captions=0
has_b_frames=2
sample_aspect_ratio=N/A
display_aspect_ratio=N/A
pix_fmt=yuvj420p
level=32
color_range=pc
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
field_order=unknown
refs=1
is_avc=true
nal_length_size=4
id=N/A
r_frame_rate=30/1
avg_frame_rate=30/1
time_base=1/15360
start_pts=1024
start_time=0.066667
duration_ts=45568
duration=2.966667
bit_rate=2465649
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:handler_name=VideoHandler
TAG:vendor_id=FFMP
TAG:encoder=Lavc59.4.100 libx264
[/STREAM]


    


    and this on the copied video :

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\...\d1.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 512
    compatible_brands: qt
    encoder         : Lavf59.4.101
  Duration: 00:00:02.97, start: 0.000000, bitrate: 2869 kb/s
  Stream #0:0: Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 1024x1024, 2865 kb/s, 30 fps, 30 tbr, 15360 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : FFMP
      encoder         : Lavc59.4.100 libx264
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_tag_string=avc1
codec_tag=0x31637661
width=1024
height=1024
coded_width=1024
coded_height=1024
closed_captions=0
has_b_frames=2
sample_aspect_ratio=N/A
display_aspect_ratio=N/A
pix_fmt=yuvj420p
level=32
color_range=pc
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
field_order=unknown
refs=1
is_avc=true
nal_length_size=4
id=N/A
r_frame_rate=30/1
avg_frame_rate=30/1
time_base=1/15360
start_pts=0
start_time=0.000000
duration_ts=45568
duration=2.966667
bit_rate=2865152
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=89
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=1
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
TAG:handler_name=VideoHandler
TAG:vendor_id=FFMP
TAG:encoder=Lavc59.4.100 libx264
[/STREAM]


    


    I noticed the start_time is 0.000000 on the copied video but the original is 0.066667, I wonder if that has anything to do with it.

    


    If I look at the video properties/details the "Length" attribute is missing on the original video but exists in the copy. Does Unity need that info maybe ?

    


    What am I missing here ? How could I make my original command output a video with the proper data that Unity needs for importing it ?.

    


    Thanks in advance.

    


  • avcodec/x86/mathops : clip constants used with shift instructions within inline assembly

    16 juillet 2023, par Rémi Denis-Courmont
    avcodec/x86/mathops : clip constants used with shift instructions within inline assembly
    

    Fixes assembling with binutil as >= 2.41

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

    • [DH] libavcodec/x86/mathops.h
  • Ffmpeg ouputting empty file to s3 when editing a remote video clip on AWS Lambda function

    8 août 2023, par enjoysturtles

    I'm trying to take a clip from a remote url, use ffmpeg to edit it, and save the result to s3.

    &#xA;

    I have a layer installed with ffmpeg attached to a lambda function. The lambda function runs an ffmpeg script on it and uploads the result to S3, however, the file size is either much smaller than it should be, or 0 bytes.

    &#xA;

    Locally, the code works perfectly, and it's outputting 500kb files into lambda. I'm running python 3.9 locally as well as on the lambda.

    &#xA;

    I thought that the file was not downloading fully before ffmpeg begins processing, which would explain the much smaller output file sizes.

    &#xA;

    I tried downloading the remote file to the lambda's /tmp and using that as the input for ffmpeg, but I continued having the same issue with the empty file.

    &#xA;

    Here's all the code in my lambda function :

    &#xA;

    import json&#xA;import subprocess&#xA;import shlex&#xA;import boto3&#xA;from datetime import datetime&#xA;&#xA;def lambda_handler(event, context):&#xA;    download_url = &#x27;https://newslater-resources.s3.us-west-2.amazonaws.com/ca4a9d5b-691a-49cc-90aa-15636c222017.mov&#x27;&#xA;&#xA;    s3 = boto3.client(&#xA;      &#x27;s3&#x27;,&#xA;      region_name="us-east-1",&#xA;    )&#xA;&#xA;    key = &#x27;/edits/%s.mov&#x27; % int(datetime.utcnow().timestamp())&#xA;&#xA;    command=&#x27;&#x27;&#x27;&#xA;      /opt/bin/ffmpeg -i %s \&#xA;        -vf "crop=w=in_h*9/16:h=in_h,scale=1080x1920" \&#xA;        -vcodec libx264 \&#xA;        -crf 23 \&#xA;        -preset veryfast \&#xA;        -c: a copy \&#xA;        -s 1080x1920 \&#xA;         - -y&#xA;    &#x27;&#x27;&#x27; % (download_url)&#xA;&#xA;    split_command = shlex.split(command)&#xA;&#xA;    p1 = subprocess.run(split_command, stdout=subprocess.PIPE, stderr=subprocess.PIPE)&#xA;&#xA;    response = s3.put_object(Body=p1.stdout, Bucket=&#x27;edited-clips&#x27;, Key=key)&#xA;&#xA;    signed_url = s3.generate_presigned_url(&#xA;      ClientMethod=&#x27;get_object&#x27;,&#xA;      Params={&#xA;        &#x27;Bucket&#x27;: &#x27;edited-clips&#x27;,&#xA;        &#x27;Key&#x27;: key,&#xA;      } &#xA;    )&#xA;

    &#xA;

    Any help would be greatly appreciated. Thank you !

    &#xA;