audio channel missing from video
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Regular
- Posts: 47
- Joined: Tue Jul 25, 2017 3:25 am
- Projects: 7th Goddess
- Tumblr: 7thgoddess-vn
- Contact:
audio channel missing from video
Hello. I am new to Ren'Py and so far I was able to solve anything myself, but now I am really stuck.
I want to have a video play in loop, giving me the option to add dialogue while the video is playing.
I followed this guide: https://www.renpy.org/wiki/renpy/doc/co ... ackgrounds
I use VSDC Video Editor for making a movie. The movie itself plays normally if I just add it as a normal movie.
I added a silent mp3 file in VSDC and made sure it plays the whole movie (only 11 seconds).
On the Video Editor screen it mentions that there's an audio track with codec PCM signed 16-bit little-endian.
I know Ren'Py only accepts certain types of video and audio but I am really not sure what is the issue here now.
Thanks for any help!
I want to have a video play in loop, giving me the option to add dialogue while the video is playing.
I followed this guide: https://www.renpy.org/wiki/renpy/doc/co ... ackgrounds
I use VSDC Video Editor for making a movie. The movie itself plays normally if I just add it as a normal movie.
I added a silent mp3 file in VSDC and made sure it plays the whole movie (only 11 seconds).
On the Video Editor screen it mentions that there's an audio track with codec PCM signed 16-bit little-endian.
I know Ren'Py only accepts certain types of video and audio but I am really not sure what is the issue here now.
Thanks for any help!
Working on a Visual Novel since May 2017.
https://imavera.itch.io/7th-goddess
http://7thgoddess-vn.tumblr.com
https://www.youtube.com/channel/UCNN9HB ... Yr4YHffHeg
https://imavera.itch.io/7th-goddess
http://7thgoddess-vn.tumblr.com
https://www.youtube.com/channel/UCNN9HB ... Yr4YHffHeg
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: audio channel missing from video
You need to tell us what is wrong, more descriptively. Does it not play any audio at all? Does it not play the additional noises? Does it crash?
Does your sound channel not appear inside the video container?
Right now all I know is you made a video and it plays and you have a silent audio file to go with it which appears to be your mp3 file being converted into LPCM wav
Does your sound channel not appear inside the video container?
Right now all I know is you made a video and it plays and you have a silent audio file to go with it which appears to be your mp3 file being converted into LPCM wav
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 47
- Joined: Tue Jul 25, 2017 3:25 am
- Projects: 7th Goddess
- Tumblr: 7thgoddess-vn
- Contact:
Re: audio channel missing from video
While playing the story, I get the following message when arriving at the point where the video should play:
Exception: Audio channel u'moviefirstdream' is unknown. (see also attachment)
So it doesn't play anything this way.
In Ren'Py I did the following:
line 16 image moviefirstdream = Movie(size=(960, 640), xpos=0, ypos=0, xanchor=0, yanchor=0)
line 258 play moviefirstdream "firstdreamdonothing.webm" loop
line 259 show movie with dissolve
I can play the video without loop if I just use a command like this $ renpy.movie_cutscene('moviefirstdream.webm'). So I am assuming that the video file itself is ok. However for using it with a loop, it seems you need to add a silent music channel to it. I thought that's what I did, but it keeps repeating that audio channel is unknown.
Exception: Audio channel u'moviefirstdream' is unknown. (see also attachment)
So it doesn't play anything this way.
In Ren'Py I did the following:
line 16 image moviefirstdream = Movie(size=(960, 640), xpos=0, ypos=0, xanchor=0, yanchor=0)
line 258 play moviefirstdream "firstdreamdonothing.webm" loop
line 259 show movie with dissolve
I can play the video without loop if I just use a command like this $ renpy.movie_cutscene('moviefirstdream.webm'). So I am assuming that the video file itself is ok. However for using it with a loop, it seems you need to add a silent music channel to it. I thought that's what I did, but it keeps repeating that audio channel is unknown.
Working on a Visual Novel since May 2017.
https://imavera.itch.io/7th-goddess
http://7thgoddess-vn.tumblr.com
https://www.youtube.com/channel/UCNN9HB ... Yr4YHffHeg
https://imavera.itch.io/7th-goddess
http://7thgoddess-vn.tumblr.com
https://www.youtube.com/channel/UCNN9HB ... Yr4YHffHeg
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: audio channel missing from video
Ok now I see.
You just need to add the audio to the video and play the video. No other special requirements.
Renpy will determine how to loop the video, from the audio present in the video.
Either add the audio when creating the video, or after via a process known as muxing.
I can give examples later if required, but I am.not at my computer right now and do not expect to be for at least several hours. Maybe 10 hours or so.
You just need to add the audio to the video and play the video. No other special requirements.
Renpy will determine how to loop the video, from the audio present in the video.
Either add the audio when creating the video, or after via a process known as muxing.
I can give examples later if required, but I am.not at my computer right now and do not expect to be for at least several hours. Maybe 10 hours or so.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 47
- Joined: Tue Jul 25, 2017 3:25 am
- Projects: 7th Goddess
- Tumblr: 7thgoddess-vn
- Contact:
Re: audio channel missing from video
Ok. Thank you for the replies.
I don't quite understand what you mean by adding audio to the video. I already added an mp3 file to the video in VSDC Video Editor. See the other attachment in previous message where it mentions video and audio codec.
I could look for some muxing software and try to combine it this way also. I will sleep now.
EDIT: When I make a new project in VSDC Video Editor it's like there's already an audio channel associated with it. Because both video and audio codec are listed in the source files (as in the attachment above). I tried MP4muxer but it doesn't seem to work with webm files. This is now the first time that I miss Tyranobuilder. I could just add a video backdrop in a few seconds without any hassle
I don't quite understand what you mean by adding audio to the video. I already added an mp3 file to the video in VSDC Video Editor. See the other attachment in previous message where it mentions video and audio codec.
I could look for some muxing software and try to combine it this way also. I will sleep now.
EDIT: When I make a new project in VSDC Video Editor it's like there's already an audio channel associated with it. Because both video and audio codec are listed in the source files (as in the attachment above). I tried MP4muxer but it doesn't seem to work with webm files. This is now the first time that I miss Tyranobuilder. I could just add a video backdrop in a few seconds without any hassle
Working on a Visual Novel since May 2017.
https://imavera.itch.io/7th-goddess
http://7thgoddess-vn.tumblr.com
https://www.youtube.com/channel/UCNN9HB ... Yr4YHffHeg
https://imavera.itch.io/7th-goddess
http://7thgoddess-vn.tumblr.com
https://www.youtube.com/channel/UCNN9HB ... Yr4YHffHeg
- PyTom
- Ren'Py Creator
- Posts: 16096
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
- Contact:
Re: audio channel missing from video
Code: Select all
image moviefirstdream = Movie(size=(960, 640), xpos=0, ypos=0, xanchor=0, yanchor=0)
play moviefirstdream "firstdreamdonothing.webm" loop
show movie with dissolve
What you want to do is to just use the Play parameter to the movie, and then show the movie. Ren'Py will automatically take care of playing the movie, and it will loop as well.
Code: Select all
image moviefirstdream = Movie(play="firstdreamdonothing.webm")
label start:
scene moviefirstdream
"The movie is playing, and will loop forever."
hide moviefirstdream
"And, it's done."
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
-
- Regular
- Posts: 47
- Joined: Tue Jul 25, 2017 3:25 am
- Projects: 7th Goddess
- Tumblr: 7thgoddess-vn
- Contact:
Re: audio channel missing from video
Awesome! That did it!
Thanks a lot!
Thanks a lot!
Working on a Visual Novel since May 2017.
https://imavera.itch.io/7th-goddess
http://7thgoddess-vn.tumblr.com
https://www.youtube.com/channel/UCNN9HB ... Yr4YHffHeg
https://imavera.itch.io/7th-goddess
http://7thgoddess-vn.tumblr.com
https://www.youtube.com/channel/UCNN9HB ... Yr4YHffHeg
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3794
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: audio channel missing from video
Very handy to know, thanks PyTom
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor