VideoHelp Forum




+ Reply to Thread
Page 1 of 2
1 2 LastLast
Results 1 to 30 of 32
  1. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    I don't know what's going on, but I have a video I'm trying to lower the size of...which I know how to do. But there's a problem. No matter what I do, when I lower the size of the video, the audio is out of sync. I checked the original video and the sound is perfectly fine.

    https://123-movies.as/movie/spacecamp-6054
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  2. I did a quick re-encode with ffmpeg and the audio was still in sync.

    Code:
    ffmpeg -y -benchmark -init_hw_device qsv=hw -filter_hw_device hw -v verbose ^
        -i %1 ^
        -vf "scale=720:-4:flags=spline,hqdn3d=1.0:1.0:1.0:1.0" ^
        -c:v libx264 -preset veryfast -crf 23 -g 50 ^
        -profile:v high -level:v 4.2 -g 50 -colorspace bt709 -color_range tv ^
        -acodec copy ^
        "%~dpn1.avc.mkv"
    Quote Quote  
  3. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo View Post
    I did a quick re-encode with ffmpeg and the audio was still in sync.

    Code:
    ffmpeg -y -benchmark -init_hw_device qsv=hw -filter_hw_device hw -v verbose ^
        -i %1 ^
        -vf "scale=720:-4:flags=spline,hqdn3d=1.0:1.0:1.0:1.0" ^
        -c:v libx264 -preset veryfast -crf 23 -g 50 ^
        -profile:v high -level:v 4.2 -g 50 -colorspace bt709 -color_range tv ^
        -acodec copy ^
        "%~dpn1.avc.mkv"
    what is that code for ?
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  4. Downscale, denoise and re-encode the video + keeping the original audio, and outputting the result as .mkv, by means of ffmpeg (commandline tool).
    Quote Quote  
  5. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by Spottedfeather View Post
    No matter what I do, when I lower the size of the video, the audio is out of sync. I checked the original video and the sound is perfectly fine.

    https://123-movies.as/movie/spacecamp-6054
    Please define "No matter what I do".
    Learning how NOT to do something is as important as learning how to do something correctly.
    "Programmers are human-shaped machines that transform alcohol into bugs."
    Quote Quote  
  6. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by Sharc View Post
    Downscale, denoise and re-encode the video + keeping the original audio, and outputting the result as .mkv, by means of ffmpeg (commandline tool).
    I'd just have to convert it to mp4...which is where the problem comes from. Plus, I've never used ffmpeg before.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  7. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by El Heggunte View Post
    Originally Posted by Spottedfeather View Post
    No matter what I do, when I lower the size of the video, the audio is out of sync. I checked the original video and the sound is perfectly fine.

    https://123-movies.as/movie/spacecamp-6054
    Please define "No matter what I do".
    Learning how NOT to do something is as important as learning how to do something correctly.
    Please go troll somewhere else.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  8. Originally Posted by Spottedfeather View Post
    I'd just have to convert it to mp4...
    To get mp4 instead of mkv all you have to do is change the "mkv" at the end of the command line to "mp4".
    Quote Quote  
  9. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo View Post
    Originally Posted by Spottedfeather View Post
    I'd just have to convert it to mp4...
    To get mp4 instead of mkv all you have to do is change the "mkv" at the end of the command line to "mp4".
    I don't know how to do the command line stuff, though.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  10. There are many GUI front ends for ffmpeg. Use one of those.
    Quote Quote  
  11. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo View Post
    There are many GUI front ends for ffmpeg. Use one of those.
    Or you could actually be helpful and explain what you seem to think is so simple. Today is NOT the right day...
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  12. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by jagabo View Post
    Originally Posted by Spottedfeather View Post
    I'd just have to convert it to mp4...
    To get mp4 instead of mkv all you have to do is change the "mkv" at the end of the command line to "mp4".
    that's not a lot of help if I can't tell it what file to mess with. Why didn't you tell me how to do that part ?
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  13. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Can someone who ISN'T rude please help me ? A person tried to "help" but just sent me a bunch of gibberish but refused to tell me what to do with it. He said it was command line but decided not to explain how to use the nonsense he posted.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  14. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    Originally Posted by Spottedfeather View Post
    Originally Posted by El Heggunte View Post
    Originally Posted by Spottedfeather View Post
    No matter what I do, when I lower the size of the video, the audio is out of sync. I checked the original video and the sound is perfectly fine.

    https://123-movies.as/movie/spacecamp-6054
    Please define "No matter what I do".
    Learning how NOT to do something is as important as learning how to do something correctly.
    Please go troll somewhere else.
    I was not trolling at all.
    jagabo had already given you a good answer.
    Many newbies don't get what they want because they use bad software, usually commercial cr@ppy software.
    OR because they use the right application in a wrong way, go figure.

    But be welcome to my Ignore List.
    "Programmers are human-shaped machines that transform alcohol into bugs."
    Quote Quote  
  15. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by El Heggunte View Post
    Originally Posted by Spottedfeather View Post
    Originally Posted by El Heggunte View Post
    Originally Posted by Spottedfeather View Post
    No matter what I do, when I lower the size of the video, the audio is out of sync. I checked the original video and the sound is perfectly fine.

    https://123-movies.as/movie/spacecamp-6054
    Please define "No matter what I do".
    Learning how NOT to do something is as important as learning how to do something correctly.
    Please go troll somewhere else.
    I was not trolling at all.
    jagabo had already given you a good answer.
    Many newbies don't get what they want because they use bad software, usually commercial cr@ppy software.
    OR because they use the right application in a wrong way, go figure.

    But be welcome to my Ignore List.
    He didn't give me a good answer. He just gave me a long text block but didn't tell me what to do with it. Like I should know. If I knew what to do, I wouldn't be asking, would I ? I invite you to apply your lips to my butt, troll.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  16. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Can ANYONE here help me ? No trolling answers like the ones already given. If you want to give me a block of text but actually tell me what to do with it, I welcome your assistance. Not a lot of helpful people here.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  17. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    create a new text file on the desktop and call it ffmpeg.txt.
    Open it and copy in jagabo's lines (see below)

    Download ffmpeg if you don't have it already and extract the files and put the folder on the desktop or downloads.
    https://www.videohelp.com/software/ffmpeg

    Edit the txt file to add the path where your ffmpeg.exe is located and add pause at the bottom
    Code:
    "i:\bin\ffmpeg.exe" -y -benchmark -init_hw_device qsv=hw -filter_hw_device hw -v verbose ^
        -i %1 ^
        -vf "scale=720:-4:flags=spline,hqdn3d=1.0:1.0:1.0:1.0" ^
        -c:v libx264 -preset veryfast -crf 23 -g 50 ^
        -profile:v high -level:v 4.2 -g 50 -colorspace bt709 -color_range tv ^
        -acodec copy ^
        "%~dpn1.avc.mkv"
    pause
    Save the changes and rename the txt file to ffmpeg.bat (right click the file/properties and change the name in the box at the top)

    Drag your video file onto the bat file's icon and it will reencode and store the new file in the same folder as the old.
    It will open a CMD box and the progress can be seen. Any errors will also appear there.
    Image Attached Thumbnails Click image for larger version

Name:	path.png
Views:	12
Size:	16.7 KB
ID:	62529  

    Quote Quote  
  18. You didn't even mention what software you've tried. As already implied by El Heggunte (who wasn't trolling), you should do that first thing, rather than just saying, "No matter what I do...".

    If you don't understand command line tools and can't be bothered to investigate and learn, then try VidCoder.
    Quote Quote  
  19. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    create a new text file on the desktop and call it ffmpeg.txt.
    Open it and copy in jagabo's lines (see below)

    Download ffmpeg if you don't have it already and extract the files and put the folder on the desktop or downloads.
    https://www.videohelp.com/software/ffmpeg

    Edit the txt file to add the path where your ffmpeg.exe is located and add pause at the bottom
    Code:
    "i:\bin\ffmpeg.exe" -y -benchmark -init_hw_device qsv=hw -filter_hw_device hw -v verbose ^
        -i %1 ^
        -vf "scale=720:-4:flags=spline,hqdn3d=1.0:1.0:1.0:1.0" ^
        -c:v libx264 -preset veryfast -crf 23 -g 50 ^
        -profile:v high -level:v 4.2 -g 50 -colorspace bt709 -color_range tv ^
        -acodec copy ^
        "%~dpn1.avc.mkv"
    pause
    Save the changes and rename the txt file to ffmpeg.bat (right click the file/properties and change the name in the box at the top)

    Drag your video file onto the bat file's icon and it will reencode and store the new file in the same folder as the old.
    It will open a CMD box and the progress can be seen. Any errors will also appear there.
    I want it to be an mp4 file. Also, WHERE do I put the file path ?

    Just tried...I think. And it doesn't work. I dragged the video onto the icon and nothing happened except that it moved the file to the folder. Oh, well.

    Another also...I changed the name of the file, but it was still a .txt file. It became ffmpeg.bat.txt
    Last edited by Spottedfeather; 24th Dec 2021 at 16:12.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  20. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Spottedfeather View Post
    Originally Posted by davexnet View Post
    create a new text file on the desktop and call it ffmpeg.txt.
    Open it and copy in jagabo's lines (see below)

    Download ffmpeg if you don't have it already and extract the files and put the folder on the desktop or downloads.
    https://www.videohelp.com/software/ffmpeg

    Edit the txt file to add the path where your ffmpeg.exe is located and add pause at the bottom
    Code:
    "i:\bin\ffmpeg.exe" -y -benchmark -init_hw_device qsv=hw -filter_hw_device hw -v verbose ^
        -i %1 ^
        -vf "scale=720:-4:flags=spline,hqdn3d=1.0:1.0:1.0:1.0" ^
        -c:v libx264 -preset veryfast -crf 23 -g 50 ^
        -profile:v high -level:v 4.2 -g 50 -colorspace bt709 -color_range tv ^
        -acodec copy ^
        "%~dpn1.avc.mkv"
    pause
    Save the changes and rename the txt file to ffmpeg.bat (right click the file/properties and change the name in the box at the top)

    Drag your video file onto the bat file's icon and it will reencode and store the new file in the same folder as the old.
    It will open a CMD box and the progress can be seen. Any errors will also appear there.
    I want it to be an mp4 file. Also, WHERE do I put the file path ?

    Just tried...I think. And it doesn't work. I dragged the video onto the icon and nothing happened except that it moved the file to the folder. Oh, well.

    Another also...I changed the name of the file, but it was still a .txt file. It became ffmpeg.bat.txt
    No it should be called ffmpeg.bat without the .txt extension
    Make sure extensions are visible. In any Windows Explorer window, select view (at the top), options (right)/change folder and search options
    View tab/deselect "hide extensions for known file types"

    Here's a portion of my desktop with the bat file, right click, Edit and it opens in Notepad

    On the otherhand, manono's choice of Vidcoder is a good choice if you don't want to be bothered with setting all this
    up (it's easy to maintain/duplicate once you understand and get it working)
    Image Attached Thumbnails Click image for larger version

Name:	batfile.png
Views:	12
Size:	127.1 KB
ID:	62530  

    Quote Quote  
  21. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    Originally Posted by davexnet View Post
    create a new text file on the desktop and call it ffmpeg.txt.
    Open it and copy in jagabo's lines (see below)

    Download ffmpeg if you don't have it already and extract the files and put the folder on the desktop or downloads.
    https://www.videohelp.com/software/ffmpeg

    Edit the txt file to add the path where your ffmpeg.exe is located and add pause at the bottom
    Code:
    "i:\bin\ffmpeg.exe" -y -benchmark -init_hw_device qsv=hw -filter_hw_device hw -v verbose ^
        -i %1 ^
        -vf "scale=720:-4:flags=spline,hqdn3d=1.0:1.0:1.0:1.0" ^
        -c:v libx264 -preset veryfast -crf 23 -g 50 ^
        -profile:v high -level:v 4.2 -g 50 -colorspace bt709 -color_range tv ^
        -acodec copy ^
        "%~dpn1.avc.mkv"
    pause
    Save the changes and rename the txt file to ffmpeg.bat (right click the file/properties and change the name in the box at the top)

    Drag your video file onto the bat file's icon and it will reencode and store the new file in the same folder as the old.
    It will open a CMD box and the progress can be seen. Any errors will also appear there.
    I want it to be an mp4 file. Also, WHERE do I put the file path ?

    Just tried...I think. And it doesn't work. I dragged the video onto the icon and nothing happened except that it moved the file to the folder. Oh, well.

    Another also...I changed the name of the file, but it was still a .txt file. It became ffmpeg.bat.txt
    No it should be called ffmpeg.bat without the .txt extension
    Make sure extensions are visible. In any Windows Explorer window, select view (at the top), options (right)/change folder and search options
    View tab/deselect "hide extensions for known file types"

    Here's a portion of my desktop with the bat file, right click, Edit and it opens in Notepad

    On the otherhand, manono's choice of Vidcoder is a good choice if you don't want to be bothered with setting all this
    up (it's easy to maintain/duplicate once you understand and get it working)
    I did that exact thing and nothing happened. I'll try the vidcoder...
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  22. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Spottedfeather View Post
    I did that exact thing and nothing happened. I'll try the vidcoder...
    OK. It seems my rename example posted earlier doesn't work until you first deselect "hide file extensions for known file types" -
    Windows protects the file types pretty well otherwise
    Quote Quote  
  23. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    I did that exact thing and nothing happened. I'll try the vidcoder...
    OK. It seems my rename example posted earlier doesn't work until you first deselect "hide file extensions for known file types" -
    Windows protects the file types pretty well otherwise
    I was able to rename the file, but dragging the video onto it didn't do anything. I'm about 60% into trying the vidcoder program, though.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  24. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    Originally Posted by Spottedfeather View Post
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    I did that exact thing and nothing happened. I'll try the vidcoder...
    OK. It seems my rename example posted earlier doesn't work until you first deselect "hide file extensions for known file types" -
    Windows protects the file types pretty well otherwise
    I was able to rename the file, but dragging the video onto it didn't do anything. I'm about 60% into trying the vidcoder program, though.
    You dragged your video onto the BAT file icon? Should have opened the CMD window and either process the file or give
    an immediate error message.
    If you want to pursue further, post this BAT file here to the thread and I'll take a look
    Quote Quote  
  25. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    I did that exact thing and nothing happened. I'll try the vidcoder...
    OK. It seems my rename example posted earlier doesn't work until you first deselect "hide file extensions for known file types" -
    Windows protects the file types pretty well otherwise
    I was able to rename the file, but dragging the video onto it didn't do anything. I'm about 60% into trying the vidcoder program, though.
    You dragged your video onto the BAT file icon? Should have opened the CMD window and either process the file or give
    an immediate error message.
    If you want to pursue further, post this BAT file here to the thread and I'll take a look
    Yeah. I changed it from .txt to .bat. Then, I pulled the video over top of it. The only thing that happened was it moved the video to the folder the .bat file was in. I tried attaching the .bat file but it says it's an invalid file.
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  26. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    Originally Posted by davexnet View Post
    Originally Posted by Spottedfeather View Post
    I did that exact thing and nothing happened. I'll try the vidcoder...
    OK. It seems my rename example posted earlier doesn't work until you first deselect "hide file extensions for known file types" -
    Windows protects the file types pretty well otherwise
    I was able to rename the file, but dragging the video onto it didn't do anything. I'm about 60% into trying the vidcoder program, though.
    You dragged your video onto the BAT file icon? Should have opened the CMD window and either process the file or give
    an immediate error message.
    If you want to pursue further, post this BAT file here to the thread and I'll take a look
    Here's the file.
    Image Attached Files
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  27. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    It should be ffmpeg.bat, I've renamed it for you. You have to update the path to ffmpeg.exe as I showed earlier (on the first line),
    also the hardcoding of the complete output file name on the last line will probably be OK, but it was the better the way it was;
    the code generates an output name based the name of the source media file
    Quote Quote  
  28. Member
    Join Date
    Dec 2006
    Location
    United States
    Search Comp PM
    Originally Posted by davexnet View Post
    It should be ffmpeg.bat, I've renamed it for you. You have to update the path to ffmpeg.exe as I showed earlier (on the first line),
    also the hardcoding of the complete output file name on the last line will probably be OK, but it was the better the way it was;
    the code generates an output name based the name of the source media file
    it was named ffmpeg.bat, but this site wouldn't accept the file.

    This is way more complicated than it should be. I was told to put the video path in the txt file, now I have to put the ffmpeg path in the file ?
    Think about this. Once bread becomes toast, you can't make it back into bread.
    Quote Quote  
  29. Member
    Join Date
    Mar 2008
    Location
    United States
    Search Comp PM
    The first line must point to the ffmpeg.exe you downloaded and extracted into a folder somewhere.
    Otherwise the command processor has nothing to execute when you drag a file to it.

    In my system, ffmpeg.exe lives in i:\bin, edit your bat file accordingly

    I agree, it's a bit complicated to set up for non-tech users.
    But once you get it working, it's a very useful tool to have
    Image Attached Thumbnails Click image for larger version

Name:	ibin.png
Views:	12
Size:	18.5 KB
ID:	62534  

    Quote Quote  



Similar Threads

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