Comments (8)
As a suggestion it may be simpler to go to the command line options I used in the following comment or some equivalent: #24 (comment) Essentially it should copy all streams over from the input file regardless of type and just ignore the original video stream (since we are upscaling and providing a new copy of course). I'm not sure if there's any reason we should potentially be ignoring certain streams and not just keeping the original intact 1:1 save for the upscaled video.
from video2x.
@cr08 ok. I'll follow your suggestions and try it out.
from video2x.
I have made a test with your solution, but it didn't seem to copy anything over besides the video stream.
-map 1:v:0 -map 0 -c copy -map -0:v
from video2x.
I had a look through again and it may be the input videos are flipped around in the ffmpeg command. Right now the no_audio.mp4 is coming first. So either the above options need to be flipped to
-map 0:v:0 -map 1 -c copy -map -1:v
or flip around the input -i parameters so the no_audio.mp4 comes second.
I'm running a quick test on my end to confirm.
from video2x.
Oops you're right. I changed it to
-map 0:v:0? -map 1? -c copy -map -1:v?
I don't know if it's necessary to add the ?
s, is it?
Everything is looking good right now though. All streams have been copied over.
from video2x.
Theoretically the question marks shouldn't be needed. Based on how I am reading the documentation it is only necessary if there is a possibility of that map not existing so the command doesn't outright fail, it just ignores that map.
-map 0:v:0?
^ We know the input video track is going to exist there from the no_audio.mp4 file
-map 1?
^ We know the source input file should still exist at this stage and the map is just saying to grab everything regardless of track type. The only POTENTIAL issue I could see is if someone deletes the input file mid-way through running the script but I don't know why they would?
-map -1:v?
^ Much like the last map, the original source file we know should have a video track that needs to be cancelled out.
With that all said there's nothing harmful leaving the question marks in there, just extraneous characters.
from video2x.
And confirmed on my end that swapping those around works just fine with my test content.
from video2x.
Changes committed. It should be working now.
from video2x.
Related Issues (20)
- How to use custom config with the docker container image.
- Video2x needs the ability to process a list of folders with each folder in different resolutions and you should set a pause between files for your overheating GPU.
- Command '['C:\\Users\\USER\\Desktop\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\waifu2x-caffe-cui', '--tta', '0', '--gpu', '0', '--batch_size', '1', '--crop_size', '128', '--output_depth', '24', '--output_quality', '-1', '--process', 'gpu', '--model_dir', 'C:\\Users\\USER\\Desktop\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\models\\upconv_7_anime_style_art_rgb', '--noise_level', '3', '--mode', 'noise_scale', '--output_extention', 'png', '--scale_width', '1280', '--scale_height', '960', '--input_path', 'C:\\Users\\USER\\AppData\\Local\\Temp\\video2x\\tmpw5w7yujg\\0', '--output_path', 'C:\\Users\\USER\\AppData\\Local\\Temp\\video2x\\tmp159x_ymr']' returned non-zero exit status 1.
- Error: 'video2x.upscale(input_file, output_file' & 'get basic video information'
- Command '['C:\\Users\\arzum\\OneDrive\\Рабочий стол\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\waifu2x-caffe-cui', '--tta', '0', '--gpu', '0', '--batch_size', '1', '--crop_size', '128', '--output_depth', '24', '--output_quality', '-1', '--process', 'gpu', '--model_dir', 'C:\\Users\\arzum\\OneDrive\\Рабочий стол\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-caffe\\models\\cunet', '--noise_level', '3', '--mode', 'noise_scale', '--output_extention', 'png', '--scale_width', '1440', '--scale_height', '1080', '--input_path', 'C:\\Users\\arzum\\AppData\\Local\\Temp\\video2x\\tmpgja_t4mj\\0', '--output_path', 'C:\\Users\\arzum\\AppData\\Local\\Temp\\video2x\\tmp_gvqc1tv']' returned non-zero exit status 1.
- Automatically delete original file immediately after processing original file successfully - optional feature requirement HOT 1
- Command '['C:\\Users\\Md Rasel\\Downloads\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\waifu2x-ncnn-vulkan', '-n', '2', '-s', '2', '-t', '400', '-m', 'C:\\Users\\Md Rasel\\Downloads\\video2x-4.8.1-win32-full\\video2x-4.8.1-win32-full\\dependencies\\waifu2x-ncnn-vulkan\\models-cunet', '-g', '0', '-j', '1:1:1', '-f', 'png', '-i', 'C:\\Users\\MDRASE~1\\AppData\\Local\\Temp\\video2x\\tmp_9rr4wmq', '-o', 'C:\\Users\\MDRASE~1\\AppData\\Local\\Temp\\video2x\\tmp_ha7k59f']' returned non-zero exit status 3221225781.
- When i try to upscale an image or video, it shows returned non zeroexit status 259
- C:\Windows\system32\dependencies\ffmpeg\bin
- Command '['D:\\DOWNLOAD\\video2x-4.8.1-win32-full\\dependencies\\realsr-ncnn-vulkan\\realsr-ncnn-vulkan', '-s', '4', '-t', '0', '-m', 'D:\\DOWNLOAD\\video2x-4.8.1-win32-full\\dependencies\\realsr-ncnn-vulkan\\models-DF2K_JPEG', '-g', '0', '-j', '1:1:1', '-f', 'png', '-i', 'C:\\Users\\chris\\AppData\\Local\\Temp\\video2x\\tmp4egb3jec', '-o', 'C:\\Users\\chris\\AppData\\Local\\Temp\\video2x\\tmp0mppbb7q']' returned non-zero exit status 3221226505.
- GUI might need some work
- 'NoneType' object has no attribute 'split'.
- 'NoneType' object has no attribute 'split'
- TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'
- Command '['dependencies\\ffmpeg\\bin\\ffmpeg', '-hwaccel', 'auto', '-y', '-i', 'C:\\Users\\azeem\\OneDrive\\Documents\\ytvideos (and oh, sources for recreations)\\GA_MOVIE.mp4', '-pix_fmt', 'rgb24', 'C:\\Users\\azeem\\AppData\\Local\\Temp\\video2x\\tmp9s2n0je4\\extracted_%0d.png']' returned non-zero exit status 1. HOT 1
- WSL2 Docker Exception: process died unexpectedly
- Slow Speed with RTX 4090
- C:\WINDOWS\System32\dependencies\ffmpeg\bin
- Request support for Real ESRGAN
- anime4k not working in Docker image HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from video2x.