Recherche avancée

Médias (1)

Mot : - Tags -/biographie

Autres articles (68)

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

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • 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

Sur d’autres sites (11608)

  • avcodec/hevc_sei : replace en dash character with a hyphen

    6 décembre 2020, par James Almer
    avcodec/hevc_sei : replace en dash character with a hyphen
    

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

    • [DH] libavcodec/hevc_sei.c
  • MP4 to DASH using ffmpeg linux too slow

    16 mai 2022, par darox

    Currently, I'm working at a project that contains 2000 video mp4 files, and I need convert all of them in mpeg dash files.

    &#xA;&#xA;

    I have this script :

    &#xA;&#xA;

    MYDIR=$(dirname $(readlink -f ${BASH_SOURCE[0]}))&#xA;SAVEDIR=$(pwd)&#xA;&#xA;# Check programs&#xA;if [ -z "$(which ffmpeg)" ]; then&#xA;    echo "Error: ffmpeg is not installed"&#xA;    exit 1&#xA;fi&#xA;&#xA;if [ -z "$(which MP4Box)" ]; then&#xA;    echo "Error: MP4Box is not installed"&#xA;    exit 1&#xA;fi&#xA;&#xA;cd "$MYDIR"&#xA;&#xA;TARGET_FILES=$(find ./ -maxdepth 1 -type f \( -name "*.mov" -or -name "*.mp4" \))&#xA;for f in $TARGET_FILES&#xA;do&#xA;  fe=$(basename "$f") # fullname of the file&#xA;  f="${fe%.*}" # name without extension&#xA;&#xA;  if [ ! -d "${f}" ]; then #if directory does not exist, convert&#xA;    echo "Converting \"$f\" to multi-bitrate video in MPEG-DASH"&#xA;&#xA;    mkdir "${f}"&#xA;&#xA;    ffmpeg -y -i "${fe}" -c:a aac -b:a 192k -vn "${f}_audio.m4a"&#xA;&#xA;&#xA;    ffmpeg -y -i "${fe}" -preset slow -tune film -vsync passthrough -write_tmcd 0 -an -c:v libx264 -x264opts &#x27;keyint=25:min-keyint=25:no-scenecut&#x27; -crf 23 -maxrate 800k -bufsize 2000k -pix_fmt yuv420p -vf "scale=-2:720" -f mp4  "${f}_800.mp4"&#xA;    # static file for ios and old browsers and mobile safari&#xA;    ffmpeg -y -i "${fe}" -preset slow -tune film -movflags &#x2B;faststart -vsync passthrough -write_tmcd 0 -c:a aac -b:a 160k -c:v libx264  -crf 23 -maxrate 1400 -bufsize 3000k -pix_fmt yuv420p -f mp4 "${f}/${f}.mp4"&#xA;&#xA;&#xA;    rm -f ffmpeg*log*&#xA;    # if audio stream does not exist, ignore it&#xA;    if [ -e "${f}_audio.m4a" ]; then&#xA;        MP4Box -dash-strict 2000 -rap -frag-rap  -bs-switching no -profile "dashavc264:live" "${f}_5000.mp4" "${f}_3000.mp4" "${f}_1500.mp4" "${f}_800.mp4" "${f}_400.mp4" "${f}_audio.m4a" -out "${f}/${f}.mpd"&#xA;        rm "${f}_5000.mp4" "${f}_3000.mp4" "${f}_1500.mp4" "${f}_800.mp4" "${f}_400.mp4" "${f}_audio.m4a"&#xA;    else&#xA;        MP4Box -dash-strict 2000 -rap -frag-rap  -bs-switching no -profile "dashavc264:live" "${f}_5000.mp4" "${f}_3000.mp4" "${f}_1500.mp4" "${f}_800.mp4" "${f}_400.mp4" -out "${f}/${f}.mpd"&#xA;        rm "${f}_5000.mp4" "${f}_3000.mp4" "${f}_1500.mp4" "${f}_800.mp4" "${f}_400.mp4" &#xA;    fi&#xA;    # create a jpg for poster. Use imagemagick or just save the frame directly from ffmpeg is you don&#x27;t have cjpeg installed.&#xA;    ffmpeg -i "${fe}" -ss 00:00:00 -vframes 1  -qscale:v 10 -n -f image2 - | cjpeg -progressive -quality 75 -outfile "${f}"/"${f}".jpg&#xA;&#xA;    fi&#xA;&#xA;done&#xA;&#xA;cd "$SAVEDIR"&#xA;

    &#xA;&#xA;

    This is working fine, but, taking a long time to convert only single file, I have intel 7 and a simple mp4 file take 30 min to be converted. How can I accelerate this process ? Must I change something in this script ?

    &#xA;&#xA;

    Thank you.

    &#xA;

  • ffmpeg dash/hls wrong timestamp when using mp4, -ss, and -copyts

    6 décembre 2019, par user2114284

    I have noticed some inconsistencies with the output timestamp when using ffmpeg with the dash/hls muxers with mp4, -ss, and -coptyts and I am wondering if it is a bug or if I am just misunderstanding something about how ffmpeg is supposed to work.

    Here I seek 15 seconds in the input and use the copyts argument to copy the input timestamp :

    However, when checking the output with ffprobe, it shows the timestamps starting at 30 seconds, double what I would expect :

    ffmpeg -ss 15 -i big_buck_bunny_720p_10mb.mkv -to 30 -copyts -acodec aac -vcodec libx264 -f hls -hls_time 2 -hls_init_time 2 -hls_list_size 0 -hls_segment_type fmp4 out.m3u8

    cat init.mp4 out0.m4s | ffprobe -show_frames -pretty -

    [FRAME]
    media_type=video
    stream_index=0
    key_frame=1
    pkt_pts=384000
    pkt_pts_time=0:00:30.000000
    pkt_dts=384000
    pkt_dts_time=0:00:30.000000
    best_effort_timestamp=384000
    best_effort_timestamp_time=0:00:30.000000
    ...

    If I switch the hls_segment_type to mpegts, the timestamp shows around 15 seconds which I would expect :

    ffmpeg -ss 15 -i big_buck_bunny_720p_10mb.mkv -to 30 -copyts -acodec aac -vcodec libx264 -f hls -hls_time 2 -hls_init_time 2 -hls_list_size 0 -hls_segment_type mpegts out.m3u8

    ffprobe -i out0.ts -show_frames -pretty

    [FRAME]
    media_type=audio
    stream_index=1
    key_frame=1
    pkt_pts=1474080
    pkt_pts_time=0:00:16.378667
    pkt_dts=1474080
    pkt_dts_time=0:00:16.378667
    best_effort_timestamp=1474080
    best_effort_timestamp_time=0:00:16.378667
    ...

    I also see the timestamp being doubled when using -ss, -copyts, and mp4 with the dash muxer. Similarly, the dash muxer seems to output the correct timestamps when switched to webm.

    I have seen the same results with several different input files. Am I misunderstanding something about how ffmpeg works, or is this a bug somewhere in the mp4 segmenting ?