Newest 'ffmpeg' Questions - Stack Overflow

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

Les articles publiés sur le site

  • DASH playback for encrypted .webm video files in Shaka Player

    7 mars 2017, par Prabhdeep Singh

    I have been trying to play encrypted .WEBM media files in ShakaPlayer without much success and I am here to seek advise from anybody who had been through this. It would be great if somebody in this awesome developer community can guide me here.

    Round 1 - What I tried (Encoded & Dashed):

    • Encoded .MP4 file to multiple-streams Video .WEBM (VP9) & single-stream Audio .WEBM (Vorbis) files using FFMPEG.
    • Created DASH MANIFEST.MPD file with WEBM_TOOLS/WEBM_DASH_MANIFEST

    Outcome: I am able to play this in Shaka Player without any issues.

    Round 2 - What I tried (Encoded, Encrypted & Dashed):

    • Encoded .MP4 file to multiple-streams Video .WEBM (VP9) & single-stream Audio .WEBM (Vorbis) files using FFMPEG.

    • Encrypted generated .WEBM files with WEBM_TOOLS/WEBM_CRYPT

    • Created DASH MANIFEST.MPD file with WEBM_TOOLS/WEBM_DASH_MANIFEST

    Outcome: I don't know how should I play this content in Shaka Player. Where and how should I provide the .key file generated in step 2 above to Shaka Player. I would like to use Clearkeys with CENC on browser. I don't want to encode to multi-stream .MP4, but only .WEBM.

    Thanks so much!

  • sync dumped rtp streams

    7 mars 2017, par Pawel K

    I need a bit of a guidance. I am writing a bit of an application to parse two streams of RTP data to get the actual video (h264) and audio (PCM alaw), it's not a RTSP client but a rather dump parser (Interleved RTP/RTCP). Question is now how to synchronise these both streams?

    I know I need to do some calculations between timestamps from packets and NTP from RTCP (I research it currently) but what then how to prepare two tracks to mux them into some container like matroska (using for instance ffmpeg)? Do I have to create some empty frames for audio to lengthen it or stretch somehow I don't have a clue how to approach it.

  • after scaled transparent video,Video scaled with white background(jpg) [on hold]

    7 mars 2017, par Sohaib Raza

    I am scaled video using ffmpeg. After scaled video the transparent video to the scaled video with white background. Using below commend

    ffmpeg -i inputVideo.mp4 -vf scale=100p:100 outputVideo.mp4

    using this commend transparent video convert to the white background video.

  • FFMpeg : Falied to combine two MPEG TS files into a Single MP4 File

    7 mars 2017, par Akhil Sekharan

    I'm trying to combine 2 .ts files in to a single .mp4 file here using FFMpeg. I need to make the concat dumuxer method working in order to use it in my Android App. In my android app the concat protocol is not recognized. So I'm trying the concat demuxer method.

    The concat protocol works fine in my windows pc :

    ffmpeg -i "concat:s1.ts|s2.ts" -c copy -bsf:a aac_adtstoasc output.mp4
    

    But, the concat demuxer is not working in my windows pc :

    ffmpeg -f concat -i s1.ts -i s2.ts -c copy -bsf:a aac_adtstoasc output2.mp4
    
    Error : 
    [concat @ 0000000000516e00] Line 1: unknown keyword 'G@'
    s1.ts: Invalid data found when processing input
    

    enter image description here

    There are the files used for the testing: http://fourbigbrothers.com/s1.ts And http://fourbigbrothers.com/s2.ts

    Pls help. I've been chewing my brains lately.

  • What is the diference between ISO BMFF and other mp4 format ?

    7 mars 2017, par linus wang

    As about. I want to play a MP4 via Media Source Extensions, but not any MP4 file can play. Please check FLV.js, it works by transmuxing FLV file stream into ISO BMFF (Fragmented MP4) segments, followed by feeding mp4 segments into an HTML5 element through Media Source Extensions API.

    So, What is the diference between ISO BMFF and other mp4 format?