Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th February 2016, 23:37   #1  |  Link
440
Registered User
 
Join Date: Feb 2016
Posts: 3
FFMS2 fourcc tagging

I am new to Vapoursynth and I am liking it so far.

In a script, I have been trying to use AVI containers that lack the appropriate fourcc header "MJPG". However, so far to no succeess.

Via the following FFMPEG commands, I can create playable AVI containers:

Code:
ffmpeg -vcodec mjpeg -i "source file.avi" -y -vcodec copy -vtag MJPG "playable file.avi"
The following Vapoursynth code yields "Vapoursynth.Error: AVISource: couldn't locate a decompressor for fourcc MJPG":

Code:
import vapoursynth as vs
core = vs.get_core(threads=4)

video1 = core.avisource.AVISource("C:\\sourcefile.avi", fourcc="MJPG")
video1.set_output()
Preferably, I would like to use FFMS2.

How can I add a fourcc header on the fly via a Vapoursynth script using FFMS2?

Thank you very much for your help
440 is offline   Reply With Quote
Old 19th February 2016, 10:52   #2  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
Have you tried opening one of these files with ffms2 without doing anything about the fourcc?
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 19th February 2016, 17:00   #3  |  Link
440
Registered User
 
Join Date: Feb 2016
Posts: 3
Yes, thank you - the following code yields "vapoursynth.Error: Index: Couldn't find stream information":

Code:
import vapoursynth as vs
core = vs.get_core(threads=4)

video = core.ffms2.Source(source="C:\\sourcefile.avi")

video.set_output()

Last edited by 440; 19th February 2016 at 17:03.
440 is offline   Reply With Quote
Old 19th February 2016, 18:06   #4  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
I don't think ffms2 has a way to specify the fourcc or the video decoder to use. Maybe lsmas.LWLibavSource works?
__________________
Buy me a "coffee" and/or hire me to write code!
jackoneill is offline   Reply With Quote
Old 19th February 2016, 18:50   #5  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
Or easier, let ffmpeg output an uncompressed raw video and load that with raws.Source
feisty2 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.