Author: nicodvb Date: Sun Oct 22 11:12:08 2006 New Revision: 6755 Modified: trunk/ffmpeg.c Log: support for sub-only streams; patch by borat subsense com Modified: trunk/ffmpeg.c ============================================================================== --- trunk/ffmpeg.c (original) +++ trunk/ffmpeg.c Sun Oct 22 11:12:08 2006 @@ -3123,8 +3123,7 @@ } if (!oc->nb_streams) { - fprintf(stderr, "No audio or video streams available\n"); - exit(1); + fprintf(stderr, "Note: Output file will not contain a video or audio stream\n"); } oc->timestamp = rec_timestamp;
nicodvb wrote:
Author: nicodvb Date: Sun Oct 22 11:12:08 2006 New Revision: 6755
Modified: trunk/ffmpeg.c
Log: support for sub-only streams; patch by borat subsense com
Modified: trunk/ffmpeg.c ============================================================================== --- trunk/ffmpeg.c (original) +++ trunk/ffmpeg.c Sun Oct 22 11:12:08 2006 @@ -3123,8 +3123,7 @@ }
if (!oc->nb_streams) { - fprintf(stderr, "No audio or video streams available\n"); - exit(1); + fprintf(stderr, "Note: Output file will not contain a video or audio stream\n"); }
oc->timestamp = rec_timestamp;
That commit makes ffmpeg segault: Take a file without audio stream and convert it to audio file only: ffmpeg -i test.mpg test.wav Input #0, mpeg, from 'test.mpg': Duration: 00:00:00.0, start: 0.500000, bitrate: 36454 kb/s Stream #0.0[0x1e0]: Video: mpeg1video, yuv420p, 720x608, 104857 kb/s, 25.00 fps(r) Note: Output file will not contain a video or audio stream File 'test.wav' already exists. Overwrite ? [y/N] y Output #0, wav, to 'test.wav': Stream mapping: zsh: segmentation fault ffmpeg -i test.mpg test.wav Is that modification needed at all ? -vn -an -newsubtitle does not work ? -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
Baptiste Coudurier wrote:
Is that modification needed at all ? -vn -an -newsubtitle does not work ?
it did not work without this patch applied
Nico Sabbi wrote:
Baptiste Coudurier wrote:
Is that modification needed at all ? -vn -an -newsubtitle does not work ?
it did not work without this patch applied
Humm it seems to work here: ffmpeg -i a_batrak_igazsaga_cd1.sub -scodec dvdsub test.vob -newsubtitle also with -scodec copy. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
Baptiste Coudurier wrote:
Nico Sabbi wrote:
Baptiste Coudurier wrote:
Is that modification needed at all ? -vn -an -newsubtitle does not work ?
it did not work without this patch applied
Humm it seems to work here:
ffmpeg -i a_batrak_igazsaga_cd1.sub -scodec dvdsub test.vob -newsubtitle
also with -scodec copy.
Humm sorry, yes it will exit 1. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
Baptiste Coudurier wrote:
Baptiste Coudurier wrote:
Nico Sabbi wrote:
Baptiste Coudurier wrote:
Is that modification needed at all ? -vn -an -newsubtitle does not work ?
it did not work without this patch applied Humm it seems to work here:
ffmpeg -i a_batrak_igazsaga_cd1.sub -scodec dvdsub test.vob -newsubtitle
also with -scodec copy.
Humm sorry, yes it will exit 1.
Fixed. -- Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA SMARTJOG S.A. http://www.smartjog.com Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA Phone: +33 1 49966312
participants (3)
-
baptiste.coudurier@smartjog.com -
nicola_sabbi@fastwebnet.it -
subversion@mplayerhq.hu