Homebrew [Release] Video Channels Creator - Custom CIA videos for everyone!

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
I'm having an error.
Code:
Insert framerate: 20
Insert video quality (1 = HQ, 2 = LQ): 2
Insert cia Unique ID (Example: 0xAAAAAA): 0xAAAAAA
Starting video extraction through ffmpeg, please wait...
ffmpeg version N-66931-gbbd8c85 Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct 17 2014 01:05:12 with gcc 4.9.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      54. 10.100 / 54. 10.100
  libavcodec     56.  8.100 / 56.  8.100
  libavformat    56.  9.100 / 56.  9.100
  libavdevice    56.  1.100 / 56.  1.100
  libavfilter     5.  1.106 /  5.  1.106
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../files/video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-02-18 22:42:45
  Duration: 00:01:03.95, start: 0.000000, bitrate: 3269 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720
[SAR 1:1 DAR 16:9], 3075 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default
)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 19
1 kb/s (default)
    Metadata:
      creation_time   : 2016-02-18 22:42:45
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
[swscaler @ 0000000002b38bc0] deprecated pixel format used, make sure you did se
t range correctly
Output #0, image2, to 'temp\output%1d.jpg':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf56.9.100
    Stream #0:0(und): Video: mjpeg, yuvj420p(pc), 240x400 [SAR 15:16 DAR 9:16],
q=2-31, 200 kb/s, 20 fps, 20 tbn, 20 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      encoder         : Lavc56.8.100 mjpeg
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mjpeg (native))
Press [q] to stop, [?] for help
frame=   76 fps=0.0 q=24.8 size=N/A time=00:00:03.80 bitrate=N/A dup=0 drop=35
frame=  154 fps=153 q=24.8 size=N/A time=00:00:07.70 bitrate=N/A dup=0 drop=73
frame=  226 fps=150 q=24.8 size=N/A time=00:00:11.30 bitrate=N/A dup=0 drop=109
frame=  303 fps=151 q=24.8 size=N/A time=00:00:15.15 bitrate=N/A dup=0 drop=147
frame=  371 fps=148 q=24.8 size=N/A time=00:00:18.55 bitrate=N/A dup=0 drop=182
frame=  455 fps=151 q=24.8 size=N/A time=00:00:22.75 bitrate=N/A dup=0 drop=223
frame=  530 fps=151 q=24.8 size=N/A time=00:00:26.50 bitrate=N/A dup=0 drop=261
frame=  611 fps=152 q=24.8 size=N/A time=00:00:30.55 bitrate=N/A dup=0 drop=301
frame=  692 fps=153 q=24.8 size=N/A time=00:00:34.60 bitrate=N/A dup=0 drop=342
frame=  750 fps=148 q=24.8 size=N/A time=00:00:37.50 bitrate=N/A dup=0 drop=370
frame=  826 fps=149 q=24.8 size=N/A time=00:00:41.30 bitrate=N/A dup=0 drop=409
frame=  907 fps=150 q=24.8 size=N/A time=00:00:45.35 bitrate=N/A dup=0 drop=449
frame=  973 fps=148 q=24.8 size=N/A time=00:00:48.65 bitrate=N/A dup=0 drop=481
frame= 1045 fps=147 q=24.8 size=N/A time=00:00:52.25 bitrate=N/A dup=0 drop=517
frame= 1117 fps=147 q=24.8 size=N/A time=00:00:55.85 bitrate=N/A dup=0 drop=553
frame= 1192 fps=147 q=24.8 size=N/A time=00:00:59.60 bitrate=N/A dup=0 drop=591
frame= 1230 fps=143 q=24.8 size=N/A time=00:01:01.50 bitrate=N/A dup=0 drop=610
frame= 1281 fps=144 q=24.8 Lsize=N/A time=00:01:04.05 bitrate=N/A dup=0 drop=635

video:6422kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead: unknown
Starting audio extraction through ffmpeg, please wait...
ffmpeg version N-66931-gbbd8c85 Copyright (c) 2000-2014 the FFmpeg developers
  built on Oct 17 2014 01:05:12 with gcc 4.9.1 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-lib
modplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrw
b --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinge
r --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --en
able-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis
--enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-
libx265 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      54. 10.100 / 54. 10.100
  libavcodec     56.  8.100 / 56.  8.100
  libavformat    56.  9.100 / 56.  9.100
  libavdevice    56.  1.100 / 56.  1.100
  libavfilter     5.  1.106 /  5.  1.106
  libswscale      3.  1.101 /  3.  1.101
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  3.100 / 53.  3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../files/video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2016-02-18 22:42:45
  Duration: 00:01:03.95, start: 0.000000, bitrate: 3269 kb/s
    Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720
[SAR 1:1 DAR 16:9], 3075 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default
)
    Metadata:
      handler_name    : VideoHandler
    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 19
1 kb/s (default)
    Metadata:
      creation_time   : 2016-02-18 22:42:45
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
Output #0, ogg, to 'temp\audio.ogg':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf56.9.100
    Stream #0:0(und): Audio: vorbis (libvorbis), 24000 Hz, stereo, fltp (default
)
    Metadata:
      creation_time   : 2016-02-18 22:42:45
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
      encoder         : Lavc56.8.100 libvorbis
      major_brand     : mp42
      minor_version   : 0
      compatible_brands: isommp42
Stream mapping:
  Stream #0:1 -> #0:0 (aac (native) -> vorbis (libvorbis))
Press [q] to stop, [?] for help
size=      13kB time=00:01:03.93 bitrate=   1.6kbits/s
video:0kB audio:4kB subtitle:0kB other streams:0kB global headers:4kB muxing ove
rhead: 189.935715%
Encoding video to JPGV format...
Deleting temp files...
        1 file(s) moved.
Creating icon and banner files...
ERROR: Could not open output file: No such file or directory
ERROR: Could not open output file: No such file or directory
Creating romfs file...
ERROR: open file ../tmp/romfs.bin failed

ERROR: create file failed

Building cia file...
[NCCH ERROR] Failed to open RomFs file '../tmp/romfs.bin'
[NCCH ERROR] NCCH Build Process Failed
[RESULT] Failed to build outfile
Deleting temp files...
The system cannot find the file specified.
Video converted successfully!
Press ENTER to exit
@Rinnegatamante

Can you take a screenshot of your folder?
 

izy

Advanced Tech Pleb
Member
Joined
Sep 17, 2010
Messages
2,311
Trophies
2
XP
4,025
Country
United Kingdom
compare to jpg
the bpg format is much more smaller and support animations
information: http://bellard.org/bpg/
source: https://github.com/mirrorer/libbpg

but it's better if we can have h.264 codec on 3ds :D
Problem with that is he its not a valid video format.

yes he has *Made* JPGV its just MJPEG AVI with a backwards encoding method and a new file extension
which i already mentioned could be optimized if he did a direct conversion but that would involve an actually real conversion command and an avisynth script.
too bad MJPEG doesnt support CRF or VBR
btw if you edit his Bat script to USE LIBVORBIS in the HQ setting instead of WAV(its set to LQ dafuq) you should get better audio unless its got some weird encoding setting.


Btw if you wanna know how high quality he has set the converter

its using -qscale 2

Default for Most Converters is 21 on other formats
51 is usually max = Maximum blockage but smalllest filesize
21(default) gets you most videos (escept mjpeg unless you like missingo videos)
1(highest is literally Lossless)

If you want you videos smaller edit the Bat script to use -qscale 4 (dont go higher)


Besides if he did use new libs he may aswell just use FFMPG libs and go directly to MP4 decoding

I think you need to wise the bap my friend, as we say back home.
OP only mentioned anime because he is aware of the framerate that anime usually runs at, and you'd have to have serious brain problems to misinterpret that.

TBF i misinterpreted it from alot of thing for example

All video are encoded in 30fps Normally and HD (60fps)

That and his encoding methods.


But hey guess i will just Stall the Ball
ps wrong flag
 
Last edited by izy,

Mr.ButtButt

The Cancer Of Gbatemp <3
Member
Joined
Sep 22, 2015
Messages
1,465
Trophies
0
XP
893
Country
United States
do the videos have to be a certain length? I tried it with a 7 second video and it's really laggy, and the audio is really screwed up..
 

sniper_x002

Well-Known Member
Member
Joined
Jan 13, 2016
Messages
489
Trophies
0
XP
277
Country
Works pretty decent, I only have a few complaints (still having a custom video on the home menu is pretty cool). First off, my audio is unsynced by maybe 2-3 seconds. Second, my video file size tripled, and I have the quality set to low. Last, is that my N3DS can't keep up 30 frames with what I'm watching. Also the bootrate for the app isn't very good, I'll get into the video maybe 2/5 times. But despite all this stuff I still think its pretty cool.
 

ProNiteBite

Well-Known Member
Newcomer
Joined
Jan 27, 2015
Messages
49
Trophies
0
Age
37
XP
313
Country
United States
I'm getting the error, "Could not find WAV data chunk." Any ideas?
Okay I figured it out. Adobe Audition doesn't export the correct kind of WAV the program is looking for, so I took the export from Audition, threw it in Audacity, and exported it from there. It works like a charm now!
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
Okay I figured it out. Adobe Audition doesn't export the correct kind of WAV the program is looking for, so I took the export from Audition, threw it in Audacity, and exported it from there. It works like a charm now!

Yep, i've already submitted an issue to @Steveice10 bannertool repository about this, waiting for his answer.
 

Februarysn0w

Well-Known Member
Member
Joined
Oct 31, 2014
Messages
1,206
Trophies
0
Age
36
XP
835
Country
Japan
Video Channels Creator v.1.0
by Rinnegatamante

Description
Video Channels Creator is a *Windows-only (for now) PC program which will make you to create your own CIA videos easily and comfortable.
It supports any video format thanks to ffmpeg decoder and can handle correctly a large amount of videos.
Player is not tested on O3DS, it will probably have lower framerate, but on N3DS it runs pretty good with anime videos and similars (23-27 fps) and probably also with normal videos (30 fps).

How does it work?
Basically, Video Channels Creator will produce an homebrew running lpp-3ds core which will load a video encoded as JPGV video from romfs. This will allows to store the video inside the CIA file and so it allows users to have infinite custom videos on Home Menu.

Video Preview
A little video preview can be found here: http://rinnegatamante.it/custom_cia.mp4

Usage Instructions
1) Download the homebrew and extract it in a folder.
2) Open files folder and place here a video file named as video.mp4 (it can be also another format but it should be renamed as video.mp4).
3) (Optional) Replace icon.png, banner.png and audio.wav with your own files (Wav files must be 3 seconds or less).
4) Start build.bat script and follow screen instructions
5) Profit!

Credits
@ihaveamac for testing the homebrew during creation
@Steveice10 for bannertool
@Sgt. Lulz for banner and icon used for demo video
Everyone involved in ctrulib creation
Everyone involved in ffmpeg creation
Everyone involved in makerom creation
Everyone involved in 3dstool creation

Tips & Warnings
- Unique_ID allowed range is 0x0 to 0xFFFFFF.
- Cinema Mode will reduce battery usage (due to screen backlight power-off for bottom screen).
- Cinema Mode will slightly boost framerate (due to bottom screen rendering disabling).
- You found a bug or you have suggestions to improve the tool? Just make a reply to this thread explaining your report!

Download
http://rinnegatamante.it

*NOTE: An unofficial version for Mac has been released by @olizbu . You can download it here: http://gbatemp.net/threads/release-...ideos-for-everyone.415708/page-7#post-6101330


Could you please share the source code for ffmpeg and hex_set? I want to build these *.exe for x86 my computer. Please.
 

Rinnegatamante

Well-Known Member
OP
Member
Joined
Nov 24, 2014
Messages
3,162
Trophies
2
Age
29
Location
Bologna
Website
rinnegatamante.it
XP
4,857
Country
Italy
  • Like
Reactions: Februarysn0w

Februarysn0w

Well-Known Member
Member
Joined
Oct 31, 2014
Messages
1,206
Trophies
0
Age
36
XP
835
Country
Japan
I'm very appreciate for this!! thank you.


:edit:
all works fine!
Xroktcb.png
 
Last edited by Februarysn0w,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    K3Nv2 @ K3Nv2: https://youtube.com/shorts/nUrYC-wHwzQ?si=CIF5SWwWIx4sXmqH