[mistelix] Fixes PTS in video generation + allows spaces in paths



commit 4745c8bb77b09111e3b859ac1e0956883990116a
Author: Jordi Mas <jmas softcatala org>
Date:   Sat Jun 27 14:09:36 2009 +0200

    Fixes PTS in video generation + allows spaces in paths

 libmistelix/mistelix.c |   12 ++++++------
 libmistelix/video.c    |   16 ++++++++--------
 2 files changed, 14 insertions(+), 14 deletions(-)
---
diff --git a/libmistelix/mistelix.c b/libmistelix/mistelix.c
index 611a855..7190efc 100644
--- a/libmistelix/mistelix.c
+++ b/libmistelix/mistelix.c
@@ -523,20 +523,20 @@ mistelix_launch_gstreamer  (gpointer data)
 			if (vorbis) { /* Source audio in Vorbis */
 				sprintf (desc, 
 					"mistelixvideosrc num-buffers=%u ! video/x-raw-yuv,format=(fourcc)I420,width=%u,height=%u,framerate=(fraction)%u/1 !"
-					"theoraenc ! mux. filesrc location=%s ! oggdemux ! vorbisdec ! audioconvert ! vorbisenc ! "
-					"oggmux name=mux ! filesink location=%s",
+					"theoraenc ! mux. filesrc location=\"%s\" ! oggdemux ! vorbisdec ! audioconvert ! vorbisenc ! "
+					"oggmux name=mux ! filesink location=\"%s\"",
 					params->total_frames, params->weight, params->height, params->frames_sec, audio, params->filename);
 			} else { /* Source audio in MP3 */
 				sprintf (desc, 
 					"mistelixvideosrc num-buffers=%u ! video/x-raw-yuv,format=(fourcc)I420,width=%u,height=%u,framerate=(fraction)%u/1 !"
-					"theoraenc ! mux. filesrc location=%s ! flump3dec ! audioconvert ! vorbisenc ! "
-					"oggmux name=mux ! filesink location=%s",
+					"theoraenc ! mux. filesrc location=\"%s\" ! flump3dec ! audioconvert ! vorbisenc ! "
+					"oggmux name=mux ! filesink location=\"%s\"",
 					params->total_frames, params->weight, params->height, params->frames_sec, audio, params->filename);
 			}
 		} else {
 			sprintf (desc, 
 				"mistelixvideosrc num-buffers=%u ! video/x-raw-yuv,format=(fourcc)I420,width=%u,height=%u,framerate=(fraction)%u/1 !"
-				"theoraenc ! oggmux !filesink location=%s", 
+				"theoraenc ! oggmux !filesink location=\"%s\"", 
 				params->total_frames, params->weight, params->height, params->frames_sec, params->filename);
 		}
 	}	
@@ -555,7 +555,7 @@ mistelix_launch_gstreamer  (gpointer data)
 		/* No audio support for now */
 		sprintf (desc, 
 			"mistelixvideosrc num-buffers=%u ! video/x-raw-yuv,format=(fourcc)I420,width=%u,height=%u,framerate=(fraction)%u/1 !"
-			"ffenc_mpeg2video bitrate=500000 ! ffmux_dvd preload=500000 maxdelay=699999 !filesink location=%s", 
+			"ffenc_mpeg2video bitrate=500000 ! ffmux_dvd preload=500000 maxdelay=699999 !filesink location=\"%s\"", 
 			params->total_frames, params->weight, params->height, params->frames_sec, params->filename);
 	}	
 #ifdef _DEBUG
diff --git a/libmistelix/video.c b/libmistelix/video.c
index e2bb466..07f9b1e 100644
--- a/libmistelix/video.c
+++ b/libmistelix/video.c
@@ -34,26 +34,26 @@ typedef struct
 supported_media supported_medias[] = 
 {
 	{"video/mpeg", "ffenc_mpeg2video", 
-		"filesrc location=%s ! flupsdemux name=demux \\ "
-		"{ffmux_dvd name=mux ! filesink location=%s } \\ "
+		"filesrc location=\"%s\" ! flupsdemux name=demux \\ "
+		"{ffmux_dvd preload=500000 maxdelay=699999 name=mux ! filesink location=\"%s\" } \\ "
 		"{demux. ! queue ! flump3dec ! queue ! lame ! mux. } \\ "
 		"{demux. ! queue ! mpeg2dec ! ffmpegcolorspace ! videorate ! video/x-raw-yuv,format=(fourcc)I420,framerate=%u/1 ! queue ! ffenc_mpeg2video ! mux. }"},
 
 	{"video/x-msvideo", "avidemux", 
-		"filesrc location=%s ! decodebin name=demux \\ "
-		"{ffmux_dvd name=mux ! filesink location=%s } \\ "
+		"filesrc location=\"%s\" ! decodebin name=demux \\ "
+		"{ffmux_dvd  preload=500000 maxdelay=699999 name=mux ! filesink location=\"%s\" } \\ "
 		"{demux. ! queue ! lame ! mux. } \\ "
 		"{demux. ! queue ! ffmpegcolorspace ! videorate ! video/x-raw-yuv,format=(fourcc)I420,framerate=%u/1 ! queue ! ffenc_mpeg2video ! mux. }"},
 
 	{"video/x-ms-asf", "asfdemux", 
-		"filesrc location=%s ! decodebin name=demux \\ "
-		"{ffmux_dvd name=mux ! filesink location=%s } \\ "
+		"filesrc location=\"%s\" ! decodebin name=demux \\ "
+		"{ffmux_dvd  preload=500000 maxdelay=699999 name=mux ! filesink location=\"%s\" } \\ "
 		"{demux. ! queue ! lame ! mux. } \\ "
 		"{demux. ! queue ! ffmpegcolorspace ! videorate ! video/x-raw-yuv,format=(fourcc)I420,framerate=%u/1 ! queue ! ffenc_mpeg2video ! mux. }"},
 
 	{"application/ogg", "oggdemux", 
-		"filesrc location=%s ! decodebin name=demux \\ "
-		"{ffmux_dvd name=mux ! filesink location=%s } \\ "
+		"filesrc location=\"%s\" ! decodebin name=demux \\ "
+		"{ffmux_dvd  preload=500000 maxdelay=699999 name=mux ! filesink location=\"%s\" } \\ "
 		"{demux. !queue ! vorbisdec ! queue ! audioconvert ! lame ! mux. } \\ "
 		"{demux. ! queue ! ffmpegcolorspace ! videorate ! video/x-raw-yuv,format=(fourcc)I420,framerate=%u/1 ! queue ! ffenc_mpeg2video ! mux. }"},
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]