Recherche avancée

Médias (1)

Mot : - Tags -/censure

Autres articles (43)

Sur d’autres sites (8334)

  • HLS and ffmpeg - losing audio ?

    12 octobre 2015, par Stefan Kendall

    With the following command, I only get video. The same setup with -f segment gets video and audio, but then the resulting stream doesn’t play on an iPhone.

    How do I get ffmpeg to encode video and audio into the HLS segments ?

    ffmpeg -v 9 -loglevel error -re -i rtmp://localhost/live/test \
    -c:v libx264 -c:a copy \
    -flags -global_header -map 0 -f hls \
    -hls_list_size 10 \
    -hls_flags delete_segments /usr/local/nginx-streaming/html/video/stream.m3u8
  • AudioQueue bytes to ffmpeg understandable WAV format

    24 décembre 2015, par moeseth

    I got the recorded AudioQueueBufferRef buffer using the following code.

    NSData *data = [NSData dataWithBytes:inBuffer->mAudioData length:inBuffer->mAudioDataByteSize];

    And then, I send the data to my server. However, FFMPEG isn’t able to read that because the data is not in any audio standard format.

    It’s just plain data.

    So, how do I do either on iPhone or backend ffmpeg to convert that raw buffer to WAV ?

    Thank so much.

  • Timelapse (1/6 fps) from slo-mo (240 fps) with ffmpeg

    4 avril 2022, par baskak

    I recorded slo-mo video on an iPhone SE (2) by mistake instead of timelapse.

    


    I know there's a lot of answers to this question here, but I'm trying again and again and always something's wrong (like a video that has a correct total no. of frames, but lasts 3 hours and is basically a freeze :D )
My recent command was

    


    


    ffmpeg -i IMG_2174.MOV -vf framestep=1440,setpts=N/120/TB -c:v libx264
-preset slow -crf 22 -an -r 30 IMG_2174.timelapse.MOV

    


    


    but it resulted in a one-second-long video, so way over-timelapsed. Should be several seconds IINM. The source video is 30 minutes long @240fps, 17GB.
Thx.