Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • ffmpeg hls with aes encryption

    24 novembre 2016, par Ankit Vimal

    I was trying to create an encrypted hls stream using ffmpeg. I've seen other questions related to this. I've created a video.key file with the following content:

    12345678901234567890123456789011
    

    I've also created a key_info file with the following contents:

    http://10.10.102.223:59164/trial/video.key
    video.key
    

    I have a mp4 file : jellies.mp4 and I was trying to transcode and encrypt it using

    ffmpeg -i jellies.mp4 -hls_time 5 -hls_key_info_file key_info playlist.m3u8
    

    After I was done transcoding I put the folder on a server and tried to access it on a client android app.

    The app contains a VideoView to which the url is fed. And I believe that decryption is done automatically.

    But the app is not working . It shows the following errors:

    E/MediaPlayer: error (1, -1007)
    

    After this I tried the transcoding again ,this time without encryption ,using:

    ffmpeg -i jellies.mp4 -hls_time 5 playlist.m3u8
    

    This played perfectly on the app.

    Using packet capture I'm able to see the various packets sent and received .

    And the key is being received perfectly.

    Then why is the stream not working.

    Is it because I didn't encrypt it properly ? And how do I fix it?

  • Apple HLS h.264 encoding

    24 novembre 2016, par user3753682

    I know thta this is a legal question, but since this involves ffmpeg and libx264 i am going here

    For using Apple's HLS or Mpeg Dash video streaming technology, should we pay any royalties to MPEGLA?

    We use ffmpeg with libx264 to generate the content. ffmpeg and libx264 are free softwares but h.264 and Dash are patented technologies

  • FFMPEG detect color bars and tone in video

    23 novembre 2016, par Chris Harvey

    I am trying to detect if a video has any valid content or is just the standard broadcasting bars & tone. So far I've looked at this question: http://superuser.com/questions/1036449/detect-color-bars-ffmpeg/1036478#1036478 which generates bars & tone from the first frame and then compares that against the rest of the stream but in my case I need to run the ffmpeg command within a folder that only has one file that has already been found by my python script.

    Is it possible to use ffmpeg's blend=difference to check that a short bars & tone clip is a subclip of one of my video files? I'm thinking of this in the same way you can check if a string is within a string, or is there a better way to check for bars that I'm not thinking of?

    Thanks!

  • How to loop TS file in m3u8 playlist

    23 novembre 2016, par Aleksandar

    I want to create m3u8 playlist, like this:

    #EXTINF:-1,LIVE STREAM
    http://example.com/live01.ts
    

    When this file ended I want repeat in loop. After live01.ts ended, need to start again and do this infinity in loop.

    Is this possible?

  • Ubuntu 14.04 and Ubuntu 16.04 different running time in ffmpeg ?

    23 novembre 2016, par marinag

    I am developing a new codec in FFmpeg (https://github.com/magonzalezc/LHE branch lhe_develop). I have upgraded to Ubuntu 16.04 recently and I have realized that my running time has increased. I have not changed anything but the OS. However, JPEG is still running in the same time. My guess is that my codec is using big arrays of data with precalculated data and, somehow, RAM access is slower in Ubuntu 16.04. Other reason can be that OpenMP, which is used by my codec, is not working as well as it did with Ubuntu 14.04.

    Have you noticed this issue with your programs in Ubuntu 16.04? Any idea of what is exactly happening?

    Thank you!