You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
char*sep=strrchr( filename, '/' ); // last path separator
char*e=strrchr( filename, '.' );
if ( e&&e>sep&&*(e+1) !='\0' ) {
ext=e+1;
*e='\0';
}
}
}
However, ffmpeg allows overriding the auto-determined container with -f <containter> flag. Combining this with video-pipe produces a correct container as per the -f flag, but the extension is still forced to be mp4. It would be nice to introduce something like cl_aviPipeExtension or cl_aviPipeContainer to allow specifying the extension.
With cl_aviPipeFormat "-pix_fmt yuvj420p -c:v mjpeg -q:v 10 -c:a pcm_s16le -f mov", which results in a MJPEG encoded video + wav audio in a .mov container, the resulting file is still .mp4, but the actual container is still .mov, and just requires manual renaming.
When using
video-pipe
to pipe video/audio toffmpeg
, the extension is hardcoded to bemp4
.Quake3e/code/client/cl_main.c
Lines 3539 to 3562 in 14e33fb
However,
ffmpeg
allows overriding the auto-determined container with-f <containter>
flag. Combining this withvideo-pipe
produces a correct container as per the-f
flag, but the extension is still forced to bemp4
. It would be nice to introduce something likecl_aviPipeExtension
orcl_aviPipeContainer
to allow specifying the extension.With
cl_aviPipeFormat "-pix_fmt yuvj420p -c:v mjpeg -q:v 10 -c:a pcm_s16le -f mov"
, which results in a MJPEG encoded video + wav audio in a.mov
container, the resulting file is still.mp4
, but the actual container is still.mov
, and just requires manual renaming.Parsing
cl_aviPipeFormat
for the-f
flag might be another option in place of a dedicated cvar, but I'm not sure how reliable that would be.The text was updated successfully, but these errors were encountered: