VideoHelp Forum
+ Reply to Thread
Results 1 to 6 of 6
Thread
  1. Originally Posted by florinus View Post
    thanks!

    it works. it took about 5 minutes.

    i use this command to special build:
    ffmpeg -i infile -vcodec copy -acodec copy -vbsf h264_changesps=level=41 outfile.mkv

    great tool.
    i want to convert x264 5.1 profile video file to 4.1 profile
    Expert tell me how to use this command, when i click on ffmpeg in this directory:
    C:\Users\*****\Desktop\ffmpeg-4.1-win32-static\ffmpeg-4.1-win32-static\bin

    dos/cmd open for 2-3 seconds and close automatically

    i have windows 7 32 bit
    Quote Quote  
  2. You are answering an 8 year old post. Things have changed a little:
    1. get latest ffmpeg, not "special" version linked in first answer (I think you already have, this is for others)
    2. ffmpeg is a command-line utility. It expects you to type some command on the command prompt instead of double-clicking it. See this tutorial. (here so asked a similar question)
    3. Use command:
    Code:
    ffmpeg -i "YOURINPUTFILE" -map 0 -c copy -bsf:v h264_metadata=level=41 "OUTPUTFILE"

    Note: this will only change the flag of the bitstream. If it exceeds e.g. the DPB size your player supports then playback will continue to fail. Then you need to completely re-encode the file.
    https://ffmpeg.org/ffmpeg-bitstream-filters.html#h264_005fmetadata
    https://trac.ffmpeg.org/wiki/Encode/H.264 (<- for re-encoding)
    Last edited by sneaker; 21st Feb 2019 at 11:52.
    Quote Quote  
  3. Originally Posted by sneaker View Post
    You are answering an 8 year old post. Things have changed a little:
    1. get latest ffmpeg, not "special" version linked in first answer (I think you already have, this is for others)
    2. ffmpeg is a command-line utility. It expects you to type some command on the command prompt instead of double-clicking it. See this tutorial. (here so asked a similar question)
    3. Use command:
    Code:
    ffmpeg -i "YOURINPUTFILE" -map 0 -c copy -bsf:v h264_metadata=level=41 "OUTPUTFILE"

    Note: this will only change the flag of the bitstream. If it exceeds e.g. the DPB size your player supports then playback will continue to fail. Then you need to completely re-encode the file.
    https://ffmpeg.org/ffmpeg-bitstream-filters.html#h264_005fmetadata
    https://trac.ffmpeg.org/wiki/Encode/H.264 (<- for re-encoding)
    Thanks , You saved my time, without re-encode profile change from 5.1 to 4.1 without loosing video quality
    Quote Quote  
  4. I'm a Super Moderator johns0's Avatar
    Join Date
    Jun 2002
    Location
    canada
    Search Comp PM
    dc7800,I moved your post to a new thread,next time start a new thread instead of grave digging.
    I think,therefore i am a hamster.
    Quote Quote  
  5. Originally Posted by dc7800 View Post
    Originally Posted by sneaker View Post
    You are answering an 8 year old post. Things have changed a little:
    1. get latest ffmpeg, not "special" version linked in first answer (I think you already have, this is for others)
    2. ffmpeg is a command-line utility. It expects you to type some command on the command prompt instead of double-clicking it. See this tutorial. (here so asked a similar question)
    3. Use command:
    Code:
    ffmpeg -i "YOURINPUTFILE" -map 0 -c copy -bsf:v h264_metadata=level=41 "OUTPUTFILE"

    Note: this will only change the flag of the bitstream. If it exceeds e.g. the DPB size your player supports then playback will continue to fail. Then you need to completely re-encode the file.
    https://ffmpeg.org/ffmpeg-bitstream-filters.html#h264_005fmetadata
    https://trac.ffmpeg.org/wiki/Encode/H.264 (<- for re-encoding)
    Thanks , You saved my time, without re-encode profile change from 5.1 to 4.1 without loosing video quality
    This trick working for me..

    my question is can i convert whole folder/directory full of videos ?
    is there any command ? if yes, please tell me... i shall be thankful to you
    Quote Quote  
  6. In folder run:
    Code:
    for %a in (*.mkv) do ffmpeg -i "%~a" -map 0 -c copy -bsf:v h264_metadata=level=41 "outputfolder\%~a"
    With /R parameter it can also run recursively in sub-folders.
    https://ss64.com/nt/for_r.html
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!