Newest 'ffmpeg' Questions - Stack Overflow

http://stackoverflow.com/questions/tagged/ffmpeg

Les articles publiés sur le site

  • Unable to get the audio from webcam and play it at the same time [FFMPEG]

    5 avril 2019, par Apoorv Mishra

    I'm trying to grab the audio and video from the webcam and play it in slow motion and proper sync between audio and video at the same time. But when I try the following command:

    ffmpeg -f v4l2 -rtbufsize 1000000k -i /dev/video0 -f alsa -i default \
    -profile:v high -pix_fmt yuvj420p -level:v 4.1 -preset ultrafast \
    -tune zerolatency -vcodec libx264 -r 10 -b:v 512k -s 640x360 \
    -acodec aac -strict -2 -ac 1 -b:a 64k -b:v 300k -g 30 -ar 44100 \
    -map 0 -f tee "output.mkv|[f=nut]pipe:" | ffplay \
    pipe: -vf "setpts=2.0*N/FRAME_RATE/TB"
    

    I was unable to hear the audio. In the command, I'd only slowed down video but I will slow down the audio as well once I'll be able to get the audio along with the video.

    Above command will play the video for you but not the audio.

    Please help me out with this. Any help is appreciated.

  • Convert s3 video files resolution and store it back to s3

    5 avril 2019, par Pritam Roy

    I want to convert s3 bucket video file resolutions to other resolutions and store it back to s3. I know we can use ffmpeg locally to change the resolution. Can we use ffmpeg to convert s3 files and store it back using Django?

    I am puzzled as from where to start and what should be the process. Whether I should have the video file from s3 bucket in buffer and then convert it using ffmpeg and then upload it back to s3. Or is there anyway to do it directly without having to keep it in buffer.

  • recive klv data from a ffmpeg mulsticast

    5 avril 2019, par diego

    I am trying to get the klv data from a .mpeg.

    I tried this command and it works perfectly:

    ffmpeg -i video.mpg -map data-re -codec copy -f data data.klv

    Now I would like to open two CMD and transfer it by multicast, how could I do this? i tried many comands like next ones, but I do not get the same .klv

    sender: ffmpeg -i video.mpeg -c copy -f mpegts udp://239.1.1.1:49410

    receiver: ffmpeg -i udp://239.1.1.1:49410 -map 0 -codec copy -f data data.klv

    I am new with ffmpeg and I do not know exactly what I need to change to get exactly whay I get in the first command.

    Thanks

  • fs.readFile is failed to read thumbnail generated file using ffmpeg in nodejs

    5 avril 2019, par Schüler

    I am using ffmpeg to extract the screenshot from the video it is working as expected but that file is unable to read/buffer using fs.read, later I will have to upload the image to the s3 bucket, So who can I make the file readable?

    var thumPath =  path.join(global.__base, 'Temp/');
        ffmpeg(req.file.path).screenshots({
                count: 1,
                filename: req.file.filename + 'thumbnail-at-%s-seconds.png',
                folder: thumPath,
                size: '320x240'
            });
    
           fs.readFile(thumPath + req.file.filename + 'thumbnail-at-%s-seconds.png', function(err, thumb) {
              console.log(thumb) 
    //s3 bucket feature will come
           })
    
  • Access files at the same time from different folders and save in third folder

    5 avril 2019, par Manza Ari

    I want to access files from two different folders process them and save the resultant file in third folder. I am making a video file from images belong to two different folders.