Recherche avancée

Médias (16)

Mot : - Tags -/mp3

Autres articles (43)

Sur d’autres sites (8557)

  • Forward youtube-dl output to ffmpeg with hardware-accelerated encoding [closed]

    16 mars 2021, par Yehor

    I'm trying to download some videos from youtube and simultaneously forward those to ffmpeg for hardware decoding to h265 (just for purpose of seeing how it works).

    


    My command, that works, but uses (as I understand) software encoding :

    


    youtube-dl -o "./%(playlist)s/%(title)s.%(ext)s" --merge-output-format mkv --postprocessor-args "-c:v libx265 -c:a opus -strict experimental" "target_url"


    


    When I specify the hardware acceleration, I receive the error "Invalid argument". The command is :

    


    youtube-dl -o "./%(playlist)s/%(title)s.%(ext)s" --merge-output-format mkv --postprocessor-args "-hwaccel cuda -c:v hevc_nvenc -c:a opus -strict experimental" "target_url"


    


    What I've done wrong ?

    


    System info :

    


      

    • OS : Windows 10 x64
    • 


    • GPU : Nvidia GeForce 960M (installed the latest driver and CUDA) and should be supported by CUDA
    • 


    • latest youtube-dl and ffmpeg build
    • 


    


    The ffmpeg -encoders output contains 265 codecs, so they also should be supported :

    


    V..... libx265              libx265 H.265 / HEVC (codec hevc)
V..... nvenc_hevc           NVIDIA NVENC hevc encoder (codec hevc)
V..... hevc_amf             AMD AMF HEVC encoder (codec hevc)
V..... hevc_nvenc           NVIDIA NVENC hevc encoder (codec hevc)
V..... hevc_qsv             HEVC (Intel Quick Sync Video acceleration) (codec hevc)


    


  • H264 Encoders other than ffmpeg x264

    5 septembre 2016, par 0pcl

    The iPhone app I am working on captures images in series within certain user-defined time interval, I am looking for a way to combine these images into H264 encoded videos. I have done some research on Google, it looks like I will have to use something like ffmpeg/mencoder on iPhone ? (Also found someone ported ffmpeg to iPhone, ffmpeg4iPhone)

    However, I found that x264 is under GPL license, and requires me to open source my project if I use ffmpeg. Also found some people suggested to use Ogg Theora, but I will need to port it to iPhone if I use it. (Which I am not sure how to do it now).

    Is there any workaround for this ? Any ideas ? Thanks.

  • H264 Encoders other than ffmpeg x264

    5 septembre 2016, par 0pcl

    The iPhone app I am working on captures images in series within certain user-defined time interval, I am looking for a way to combine these images into H264 encoded videos. I have done some research on Google, it looks like I will have to use something like ffmpeg/mencoder on iPhone ? (Also found someone ported ffmpeg to iPhone, ffmpeg4iPhone)

    However, I found that x264 is under GPL license, and requires me to open source my project if I use ffmpeg. Also found some people suggested to use Ogg Theora, but I will need to port it to iPhone if I use it. (Which I am not sure how to do it now).

    Is there any workaround for this ? Any ideas ? Thanks.