Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Derperview - A Command Line Superview Alternative
#16
(20-Sep-2019, 07:07 PM)khvi Wrote: Hey,

This looks like the best way to "fake" superview that i have seen. So i tried to use it with GoPro Session 4 (that i can use protune, sadly can't have protune and superview on at the same time) but the program seems to do nothing. Maybe the pixel format is to blame? I have linked the output of the program and the smallest sample file i could find (good time for gopro to start freezing) if you want to take a look at it. 

https://drive.google.com/open?id=190sOkq...XLD9LfAopq

https://i.imgur.com/7VQBuut.png

The pixel format is OK, and the aspect ratio is fine. It must be something else. But the test file will help a load, so many thanks for that!

I should have some time on Sunday to wrestle with it, so I'll post in this thread if I get to the bottom of it.

EDIT: OK, it's 0230 and I'm a little drunk, but I have a fix. I'll put it up tomorrow night and post back in here when it's on Github.

The ground is for dead people.
[-] The following 1 user Likes Banelle's post:
  • sloscotty
Reply
Login to remove this ad | Register Here
#17
(21-Sep-2019, 01:12 AM)Banelle Wrote: The pixel format is OK, and the aspect ratio is fine. It must be something else. But the test file will help a load, so many thanks for that!

I should have some time on Sunday to wrestle with it, so I'll post in this thread if I get to the bottom of it.

EDIT: OK, it's 0230 and I'm a little drunk, but I have a fix. I'll put it up tomorrow night and post back in here when it's on Github.

Haha, thanks a lot man. That was fast.
Reply
#18
OK, we're up. Hopefully that works for you - it was fine with that file you sent over.

Derperview v0.6.1

The ground is for dead people.
Reply
#19
Working like a charm. Really happy with the output quality of the video and the ease of use compared to alternatives. Judging from github commits the gopro files had some extra data besides video/audio (highlight tags maybe?) that your program didn't like? Anyway, thanks again a lot. Here's the first test:

Reply
#20
Glad it's working for you!

The extra stream is labelled 'tmcd', and the smart money on the Internet seems to be on a seperate stream for timecode data. Either way, the old behaviour was to quit out if it encountered streams it didn't know how to handle, whereas now they're just stripped. I fixed another issue while I was in there that was causing a crash when the source audio was in mono (I assumed the AAC encoder would either blank out one of the channels or copy it across - it didn't), so that it should work with a wider range of inputs now.

But yeah, 0.6.1 is your version - thanks for the sample files ;-)

The ground is for dead people.
Reply
#21
Hi.

Sorry for late response. Youtube did not send me any notification that you replied
I want to use derperview to stretch 4K 4:3 video to 16:9.
First i use ffmpeg to get 4:3 (according to your instructions on youtube Big Grin )  
Code:
ffmpeg -i IN_FILE -vf scale="iw/4*3:ih" OUT_FILE

but when i try to use derperview i get this error

Code:
C:\test>derperview --threads 1 out.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.32.104
  Duration: 00:00:05.04, start: 0.000000, bitrate: 22753 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 2880x2160, 22771 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[libx264 @ 0047fb00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [error]: malloc of size 33177600 failed
Error creating video codec
Total time: 0m 0s
It works fine with 1440p videos but anything above that i get this error.


And one more thing. can you add an option like --noaudio.
Program just crashed when i tried to convert video without audio stream

thanks for help ^^
Reply
#22
(13-Oct-2019, 02:20 PM)Seba112PL Wrote: Hi.

Sorry for late response. Youtube did not send me any notification that you replied
I want to use derperview to stretch 4K 4:3 video to 16:9.
First i use ffmpeg to get 4:3 (according to your instructions on youtube Big Grin )  
Code:
ffmpeg -i IN_FILE -vf scale="iw/4*3:ih" OUT_FILE

but when i try to use derperview i get this error

Code:
C:\test>derperview --threads 1 out.mp4
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'out.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.32.104
  Duration: 00:00:05.04, start: 0.000000, bitrate: 22753 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc), 2880x2160, 22771 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 130 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
[libx264 @ 0047fb00] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [error]: malloc of size 33177600 failed
Error creating video codec
Total time: 0m 0s
It works fine with 1440p videos but anything above that i get this error.


And one more thing. can you add an option like --noaudio.
Program just crashed when i tried to convert video without audio stream

thanks for help ^^

Hi there!

So I had a play with this today. The problem is that the x264 codec is trying to use too much memory, and that's because I'm using the 32-bit version of the ffmpeg libraries. If I switch over to the 64-bit libs, then we should be OK - at least with my test videos. Hopefully I'll get a chance to do a release over the weekend with the changes in - fingers crossed that should solve your problem!

I'll post again on here when it's done.

The ground is for dead people.
Reply
#23
Done and released! Let me know if you're still having problems with 0.6.2, and I'll take another look.

The ground is for dead people.
[-] The following 1 user Likes Banelle's post:
  • sloscotty
Reply
#24
Love your flying and video @Banelle.
Reply
#25
Hi @Banelle,

first of all, a huge thank you for the application. I don't really use my GoPro Hero Session and RunCam 5 without this anymore. Big Grin
Since DerperView is a command-line tool only at the moment, would you mind if I would write a GUI wrapper for it, which packs DerperView?
I'm thinking of doing a nice little C#-Wrapper (WPF with .NET Core) with batch-processing support, because often I'm processing multiple files and you know, we're all kinda lazy. Tongue

I just wanted to ask for your permission before even getting into this.

Greetings Smile
[-] The following 1 user Likes Jackjan's post:
  • sloscotty
Reply
#26
(23-Oct-2019, 10:44 AM)Jackjan Wrote: Hi @Banelle,

first of all, a huge thank you for the application. I don't really use my GoPro Hero Session and RunCam 5 without this anymore. Big Grin
Since DerperView is a command-line tool only at the moment, would you mind if I would write a GUI wrapper for it, which packs DerperView?
I'm thinking of doing a nice little C#-Wrapper (WPF with .NET Core) with batch-processing support, because often I'm processing multiple files and you know, we're all kinda lazy. Tongue

I just wanted to ask for your permission before even getting into this.

Greetings Smile

Please do! I batch process with a shell script that I keep meaning to add to the repo, but a GUI would be cool.

That reminds me: I really should add a license to the project so it's clear people can reuse it ...

The ground is for dead people.
[-] The following 1 user Likes Banelle's post:
  • sloscotty
Reply
#27
Hi Banelle, I like your tool! I tried to use it with Fatshark DVR Avi files but that is not working:

[avi @ 0000000005957ec0] non-interleaved AVI
Input #0, avi, from 'D:/Video/Bras_DVR/2020-01-15 04-56-28.AVI':
Duration: 00:00:59.51, start: 0.000000, bitrate: 11600 kb/s
Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 11411 kb/s, 29.34 fps, 29.34 tbr, 29.34 tbn, 29.34 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s
Source not in compatible pixel format
x264 [error]: high profile doesn't support 4:2:2
[libx264 @ 0000000005ac99c0] Error setting profile high.
[libx264 @ 0000000005ac99c0] Possible profiles: baseline main high high10 high422 high444
Error creating video codec


Do you know if the code can be changed to make it work for AVI files as well? I am happy to help coding.


Actually I am working on a "Video Companion" for Action Cams in general and drone footage in particular (I am a FPV pilot) and I managed to make your code work in there: right click on a file to create the superview file.
Still a beta product, did not market the tool until now (working towards version 1.0.0, will become open source then). Are you Ok I will embed the code here? By this you get a gui for free and also MacOS support is in the making, and you get the credits off course!!

(and one more tiny thing: in order to get your command line tool working it was necessary to install VC to avoid a VCRuntime140_1.dll error, some people may have it, others not)

Reply
#28
(23-Jan-2020, 04:16 PM)ewowi Wrote: Hi Banelle, I like your tool! I tried to use it with Fatshark DVR Avi files but that is not working:

[avi @ 0000000005957ec0] non-interleaved AVI
Input #0, avi, from 'D:/Video/Bras_DVR/2020-01-15 04-56-28.AVI':
Duration: 00:00:59.51, start: 0.000000, bitrate: 11600 kb/s
Stream #0:0: Video: mjpeg (Baseline) (MJPG / 0x47504A4D), yuvj422p(pc, bt470bg/unknown/unknown), 640x480, 11411 kb/s, 29.34 fps, 29.34 tbr, 29.34 tbn, 29.34 tbc
Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 8000 Hz, 1 channels, s16, 128 kb/s
Source not in compatible pixel format
x264 [error]: high profile doesn't support 4:2:2
[libx264 @ 0000000005ac99c0] Error setting profile high.
[libx264 @ 0000000005ac99c0] Possible profiles: baseline main high high10 high422 high444
Error creating video codec


Do you know if the code can be changed to make it work for AVI files as well? I am happy to help coding.

It's not the fact that it's an AVI file that's the problem - it's the slightly quirky pixel format. My code doesn't support YUV422, and apparently neither does the 'high' profile of the video encoder. I might be able to side-step that last bit, but I'll still have to make tweaks to my code to support the 422 layout. I'll have a play around at some point and see how much of a pain it will be.

(23-Jan-2020, 04:16 PM)ewowi Wrote: Actually I am working on a "Video Companion" for Action Cams in general and drone footage in particular (I am a FPV pilot) and I managed to make your code work in there: right click on a file to create the superview file.
Still a beta product, did not market the tool until now (working towards version 1.0.0, will become open source then). Are you Ok I will embed the code here? By this you get a gui for free and also MacOS support is in the making, and you get the credits off course!!

Go for it!

(23-Jan-2020, 04:16 PM)ewowi Wrote: (and one more tiny thing: in order to get your command line tool working it was necessary to install VC to avoid a VCRuntime140_1.dll error, some people may have it, others not)

Good point. I'll look into statically linking the runtime. I suspect I didn't because the FFMPEG libraries I'm using are linked with the DLL runtime, but I'll have another look.

The ground is for dead people.
Reply
#29
(24-Jan-2020, 05:48 PM)Banelle Wrote: It's not the fact that it's an AVI file that's the problem - it's the slightly quirky pixel format. My code doesn't support YUV422, and apparently neither does the 'high' profile of the video encoder. I might be able to side-step that last bit, but I'll still have to make tweaks to my code to support the 422 layout. I'll have a play around at some point and see how much of a pain it will be.

You are right. It are the codecs in the AVI, not the AVI itself ;-). The fatshark has MJPEG for video and araw??? for audio. The audio is shit anyways so maybe can leave that out. I will also try to make 4.2.2 work.


Go for it!
Thx!


Good point. I'll look into statically linking the runtime. I suspect I didn't because the FFMPEG libraries I'm using are linked with the DLL runtime, but I'll have another look.
Great! I covered this in my build also.
Reply
#30
Included Derperview in the new release of ActionCamVideoCompanion. See here . Please note this tool is still in early stages but I would be happy if you take a look and let me know especially on the Derperview part if you like it and if you have suggestions to further improve. 
Kind regards,
Ewoud
[-] The following 1 user Likes ewowi's post:
  • sloscotty
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Tutorial Using free command-line sorcery to fake Superview Banelle 9 6,420 27-Jun-2019, 06:09 PM
Last Post: quantumvortex


Login to remove this ad | Register Here